From a53e4181972f90989c0597fee444864d1fd7c923 Mon Sep 17 00:00:00 2001 From: Burak Benligiray Date: Fri, 25 Oct 2024 16:32:58 +0300 Subject: [PATCH] Deploy missing arbitrum contracts --- deployments/arbitrum/AirseekerRegistry.json | 1224 ++++++++++ deployments/arbitrum/Api3MarketV2.json | 1963 +++++++++++++++++ .../arbitrum/Api3ReaderProxyV1Factory.json | 324 +++ .../arbitrum/Api3ServerV1OevExtension.json | 1020 +++++++++ 4 files changed, 4531 insertions(+) create mode 100644 deployments/arbitrum/AirseekerRegistry.json create mode 100644 deployments/arbitrum/Api3MarketV2.json create mode 100644 deployments/arbitrum/Api3ReaderProxyV1Factory.json create mode 100644 deployments/arbitrum/Api3ServerV1OevExtension.json diff --git a/deployments/arbitrum/AirseekerRegistry.json b/deployments/arbitrum/AirseekerRegistry.json new file mode 100644 index 0000000..302331b --- /dev/null +++ b/deployments/arbitrum/AirseekerRegistry.json @@ -0,0 +1,1224 @@ +{ + "address": "0x6Adee21784F459Dec78d32024aE08A7dC3eF7343", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "owner_", + "type": "address" + }, + { + "internalType": "address", + "name": "api3ServerV1_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "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": "bytes32", + "name": "dapiName", + "type": "bytes32" + } + ], + "name": "ActivatedDapiName", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "dataFeedId", + "type": "bytes32" + } + ], + "name": "ActivatedDataFeedId", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "dapiName", + "type": "bytes32" + } + ], + "name": "DeactivatedDapiName", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "dataFeedId", + "type": "bytes32" + } + ], + "name": "DeactivatedDataFeedId", + "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" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "dataFeedId", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "dataFeedDetails", + "type": "bytes" + } + ], + "name": "RegisteredDataFeed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "dapiName", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "updateParameters", + "type": "bytes" + } + ], + "name": "UpdatedDapiNameUpdateParameters", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "dataFeedId", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "updateParameters", + "type": "bytes" + } + ], + "name": "UpdatedDataFeedIdUpdateParameters", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "airnode", + "type": "address" + }, + { + "indexed": false, + "internalType": "string", + "name": "signedApiUrl", + "type": "string" + } + ], + "name": "UpdatedSignedApiUrl", + "type": "event" + }, + { + "inputs": [], + "name": "MAXIMUM_BEACON_COUNT_IN_SET", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "MAXIMUM_SIGNED_API_URL_LENGTH", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "MAXIMUM_UPDATE_PARAMETERS_LENGTH", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "activeDapiNameCount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "activeDataFeed", + "outputs": [ + { + "internalType": "bytes32", + "name": "dataFeedId", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "dapiName", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "dataFeedDetails", + "type": "bytes" + }, + { + "internalType": "int224", + "name": "dataFeedValue", + "type": "int224" + }, + { + "internalType": "uint32", + "name": "dataFeedTimestamp", + "type": "uint32" + }, + { + "internalType": "int224[]", + "name": "beaconValues", + "type": "int224[]" + }, + { + "internalType": "uint32[]", + "name": "beaconTimestamps", + "type": "uint32[]" + }, + { + "internalType": "bytes", + "name": "updateParameters", + "type": "bytes" + }, + { + "internalType": "string[]", + "name": "signedApiUrls", + "type": "string[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "activeDataFeedCount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "activeDataFeedIdCount", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "airnodeToSignedApiUrl", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "api3ServerV1", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "containsBytecode", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dapiName", + "type": "bytes32" + } + ], + "name": "dapiNameToUpdateParameters", + "outputs": [ + { + "internalType": "bytes", + "name": "updateParameters", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "name": "dataFeedIdToDetails", + "outputs": [ + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dataFeedId", + "type": "bytes32" + } + ], + "name": "dataFeedIdToUpdateParameters", + "outputs": [ + { + "internalType": "bytes", + "name": "updateParameters", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dataFeedId", + "type": "bytes32" + } + ], + "name": "dataFeedIsRegistered", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "getBalance", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getBlockBasefee", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getBlockNumber", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getBlockTimestamp", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getChainId", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes[]", + "name": "data", + "type": "bytes[]" + } + ], + "name": "multicall", + "outputs": [ + { + "internalType": "bytes[]", + "name": "returndata", + "type": "bytes[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "dataFeedDetails", + "type": "bytes" + } + ], + "name": "registerDataFeed", + "outputs": [ + { + "internalType": "bytes32", + "name": "dataFeedId", + "type": "bytes32" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dapiName", + "type": "bytes32" + } + ], + "name": "setDapiNameToBeActivated", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dapiName", + "type": "bytes32" + } + ], + "name": "setDapiNameToBeDeactivated", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dapiName", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "updateParameters", + "type": "bytes" + } + ], + "name": "setDapiNameUpdateParameters", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dataFeedId", + "type": "bytes32" + } + ], + "name": "setDataFeedIdToBeActivated", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dataFeedId", + "type": "bytes32" + } + ], + "name": "setDataFeedIdToBeDeactivated", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dataFeedId", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "updateParameters", + "type": "bytes" + } + ], + "name": "setDataFeedIdUpdateParameters", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "airnode", + "type": "address" + }, + { + "internalType": "string", + "name": "signedApiUrl", + "type": "string" + } + ], + "name": "setSignedApiUrl", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes[]", + "name": "data", + "type": "bytes[]" + } + ], + "name": "tryMulticall", + "outputs": [ + { + "internalType": "bool[]", + "name": "successes", + "type": "bool[]" + }, + { + "internalType": "bytes[]", + "name": "returndata", + "type": "bytes[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "transactionHash": "0xfcc516b30ffd7c54db8054e3b98a4c3475067cb6334f446e218c86254d22d353", + "receipt": { + "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", + "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", + "contractAddress": null, + "transactionIndex": 1, + "gasUsed": "3996551", + "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000100000000000000000001000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000002000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000400000000000000000000000000000000000000000000000000400000000000000020000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x4a9eb33f3690d3bdb32ee6eababcc7249c3a03d2ccddcd5125857a8bed505bb4", + "transactionHash": "0xfcc516b30ffd7c54db8054e3b98a4c3475067cb6334f446e218c86254d22d353", + "logs": [ + { + "transactionIndex": 1, + "blockNumber": 267516877, + "transactionHash": "0xfcc516b30ffd7c54db8054e3b98a4c3475067cb6334f446e218c86254d22d353", + "address": "0x6Adee21784F459Dec78d32024aE08A7dC3eF7343", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x00000000000000000000000081bc85f329cdb28936fbb239f734ae495121f9a6" + ], + "data": "0x", + "logIndex": 0, + "blockHash": "0x4a9eb33f3690d3bdb32ee6eababcc7249c3a03d2ccddcd5125857a8bed505bb4" + } + ], + "blockNumber": 267516877, + "cumulativeGasUsed": "3996551", + "status": 1, + "byzantium": true + }, + "args": ["0x81bc85f329cDB28936FbB239f734AE495121F9A6", "0x709944a48cAf83535e43471680fDA4905FB3920a"], + "numDeployments": 1, + "solcInputHash": "177b63d92e411ff33ad899d659df8ac2", + "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"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\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"ActivatedDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"ActivatedDataFeedId\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"DeactivatedDapiName\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"DeactivatedDataFeedId\",\"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\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"RegisteredDataFeed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"UpdatedDapiNameUpdateParameters\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"UpdatedDataFeedIdUpdateParameters\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"}],\"name\":\"UpdatedSignedApiUrl\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"MAXIMUM_BEACON_COUNT_IN_SET\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_SIGNED_API_URL_LENGTH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_UPDATE_PARAMETERS_LENGTH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDapiNameCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"activeDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dataFeedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dataFeedTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"string[]\",\"name\":\"signedApiUrls\",\"type\":\"string[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDataFeedCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeDataFeedIdCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"airnodeToSignedApiUrl\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIdToDetails\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIdToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"dataFeedIsRegistered\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"registerDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"setDapiNameToBeActivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"setDapiNameToBeDeactivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"setDapiNameUpdateParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDataFeedIdToBeActivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"setDataFeedIdToBeDeactivated\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"name\":\"setDataFeedIdUpdateParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"}],\"name\":\"setSignedApiUrl\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}]},\"kind\":\"dev\",\"methods\":{\"activeDapiNameCount()\":{\"returns\":{\"_0\":\"Active dAPI name count\"}},\"activeDataFeed(uint256)\":{\"details\":\"Airseeker uses this function to get all the data it needs about an active data feed with a single RPC call. Since active data feed IDs and dAPI names are kept in respective EnumerableSet types, addition and removal of items to these may change the order of the remaining items. Therefore, do not depend on an index to address a specific data feed consistently.\",\"params\":{\"index\":\"Index\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dapiName\":\"dAPI name (`bytes32(0)` if the active data feed is identified by a data feed ID)\",\"dataFeedDetails\":\"Data feed details\",\"dataFeedId\":\"Data feed ID\",\"dataFeedTimestamp\":\"Data feed timestamp read from Api3ServerV1\",\"dataFeedValue\":\"Data feed value read from Api3ServerV1\",\"signedApiUrls\":\"Signed API URLs of the Beacon Airnodes\",\"updateParameters\":\"Update parameters\"}},\"activeDataFeedCount()\":{\"returns\":{\"_0\":\"Active data feed count\"}},\"activeDataFeedIdCount()\":{\"returns\":{\"_0\":\"Active data feed ID count\"}},\"constructor\":{\"params\":{\"api3ServerV1_\":\"Api3ServerV1 contract address\",\"owner_\":\"Owner address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"dapiNameToUpdateParameters(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"dataFeedIdToUpdateParameters(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"dataFeedIsRegistered(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"_0\":\"If the data feed with ID is registered\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"owner()\":{\"returns\":{\"_0\":\"Owner address\"}},\"registerDataFeed(bytes)\":{\"params\":{\"dataFeedDetails\":\"Data feed details\"},\"returns\":{\"dataFeedId\":\"Data feed ID\"}},\"setDapiNameToBeActivated(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"}},\"setDapiNameToBeDeactivated(bytes32)\":{\"params\":{\"dapiName\":\"dAPI name\"}},\"setDapiNameUpdateParameters(bytes32,bytes)\":{\"params\":{\"dapiName\":\"dAPI name\",\"updateParameters\":\"Update parameters\"}},\"setDataFeedIdToBeActivated(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"}},\"setDataFeedIdToBeDeactivated(bytes32)\":{\"params\":{\"dataFeedId\":\"Data feed ID\"}},\"setDataFeedIdUpdateParameters(bytes32,bytes)\":{\"params\":{\"dataFeedId\":\"Data feed ID\",\"updateParameters\":\"Update parameters\"}},\"setSignedApiUrl(address,string)\":{\"params\":{\"airnode\":\"Airnode address\",\"signedApiUrl\":\"Signed API URL\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}}},\"stateVariables\":{\"MAXIMUM_BEACON_COUNT_IN_SET\":{\"details\":\"Api3ServerV1 introduces the concept of a Beacon, which is a single-source data feed. Api3ServerV1 allows Beacons to be read individually, or arbitrary combinations of them to be aggregated on-chain to form multiple-source data feeds, which are called Beacon sets. This contract does not support Beacon sets that consist of more than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered.\"},\"airnodeToSignedApiUrl\":{\"details\":\"An Airseeker can be configured to refer to additional signed APIs than the ones whose URLs are stored in this contract for redundancy\"}},\"title\":\"A contract where active data feeds and their specs are registered by the contract owner for the respective Airseeker to refer to\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"MAXIMUM_BEACON_COUNT_IN_SET()\":{\"notice\":\"Maximum number of Beacons in a Beacon set that can be registered\"},\"MAXIMUM_SIGNED_API_URL_LENGTH()\":{\"notice\":\"Maximum signed API URL length\"},\"MAXIMUM_UPDATE_PARAMETERS_LENGTH()\":{\"notice\":\"Maximum encoded update parameters length\"},\"activeDapiNameCount()\":{\"notice\":\"Returns the number of active data feeds identified by a dAPI name\"},\"activeDataFeed(uint256)\":{\"notice\":\"In an imaginary array consisting of the active data feed IDs and active dAPI names, picks the index-th identifier, and returns all data about the respective data feed that is available. Whenever data is not available (including the case where index does not correspond to an active data feed), returns empty values.\"},\"activeDataFeedCount()\":{\"notice\":\"Returns the number of active data feeds identified by a data feed ID or dAPI name\"},\"activeDataFeedIdCount()\":{\"notice\":\"Returns the number of active data feeds identified by a data feed ID\"},\"airnodeToSignedApiUrl(address)\":{\"notice\":\"Airnode address to signed API URL\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameToUpdateParameters(bytes32)\":{\"notice\":\"dAPI name to update parameters\"},\"dataFeedIdToDetails(bytes32)\":{\"notice\":\"Data feed ID to encoded details\"},\"dataFeedIdToUpdateParameters(bytes32)\":{\"notice\":\"Data feed ID to update parameters\"},\"dataFeedIsRegistered(bytes32)\":{\"notice\":\"Returns if the data feed with ID is registered\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"owner()\":{\"notice\":\"Returns the owner address\"},\"registerDataFeed(bytes)\":{\"notice\":\"Registers the data feed. In the case that the data feed is a Beacon, the details should be the ABI-encoded Airnode address and template ID. In the case that the data feed is a Beacon set, the details should be the ABI-encoded Airnode addresses array and template IDs array.\"},\"renounceOwnership()\":{\"notice\":\"Overriden to be disabled\"},\"setDapiNameToBeActivated(bytes32)\":{\"notice\":\"Called by the owner to set the dAPI name to be activated\"},\"setDapiNameToBeDeactivated(bytes32)\":{\"notice\":\"Called by the owner to set the dAPI name to be deactivated\"},\"setDapiNameUpdateParameters(bytes32,bytes)\":{\"notice\":\"Called by the owner to set the dAPI name update parameters. The update parameters must be encoded in a format that Airseeker expects.\"},\"setDataFeedIdToBeActivated(bytes32)\":{\"notice\":\"Called by the owner to set the data feed ID to be activated\"},\"setDataFeedIdToBeDeactivated(bytes32)\":{\"notice\":\"Called by the owner to set the data feed ID to be deactivated\"},\"setDataFeedIdUpdateParameters(bytes32,bytes)\":{\"notice\":\"Called by the owner to set the data feed ID update parameters. The update parameters must be encoded in a format that Airseeker expects.\"},\"setSignedApiUrl(address,string)\":{\"notice\":\"Called by the owner to set the signed API URL for the Airnode. The signed API must implement the specific interface that Airseeker expects.\"},\"transferOwnership(address)\":{\"notice\":\"Overriden to be disabled\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"}},\"notice\":\"Airseeker is an application that pushes API provider-signed data to chain when certain conditions are met so that the data feeds served on the Api3ServerV1 contract are updated according to the respective specs. In other words, this contract is an on-chain configuration file for an Airseeker (or multiple Airseekers in a setup with redundancy). The Airseeker must know which data feeds are active (and thus need to be updated), the constituting Airnode (the oracle node that API providers operate to sign data) addresses and request template IDs, what the respective on-chain data feed values are, what the update parameters are, and the URL of the signed APIs (from which Airseeker can fetch signed data) that are hosted by the respective API providers. The contract owner is responsible with leaving the state of this contract in a way that Airseeker expects. For example, if a dAPI name is activated without registering the respective data feed, the Airseeker will not have access to the data that it needs to execute updates.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/AirseekerRegistry.sol\":\"AirseekerRegistry\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"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\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0x7fdae1b6079bd51604f096a075a9abf4eacba5d332319b38cbeb1cca0c1745f6\",\"license\":\"MIT\"},\"contracts/api3-server-v1/AirseekerRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./interfaces/IAirseekerRegistry.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/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 respective Airseeker 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_) Ownable(owner_) {\\n require(api3ServerV1_ != address(0), \\\"Api3ServerV1 address zero\\\");\\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 active data feed IDs\\n /// and active dAPI names, picks the index-th identifier, and returns all\\n /// data about the respective data feed that is available. Whenever data is\\n /// not available (including the case where index does not correspond to an\\n /// 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 /// Since active data feed IDs and dAPI names are kept in respective\\n /// EnumerableSet types, addition and removal of items to these may change\\n /// the order of the remaining items. Therefore, do not depend on an index\\n /// to address a specific data feed consistently.\\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\",\"keccak256\":\"0x8c4a9b6c85900ee11d62fc213810ad9e1e936a6f1768f90164d195ffd01ade0a\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0xdbc7e84e55802570ee304651b9827c72d001f1755792f69acca5da648792044d\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../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 * The initial owner is set to the address provided by the deployer. This can\\n * 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 /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\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 if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\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 if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\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\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\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\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/structs/EnumerableSet.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableSet.sol)\\n// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.\\n\\npragma solidity ^0.8.20;\\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 is the index of the value in the `values` array plus 1.\\n // Position 0 is used to mean a value is not in the set.\\n mapping(bytes32 value => uint256) _positions;\\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._positions[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 cache the value's position to prevent multiple reads from the same storage slot\\n uint256 position = set._positions[value];\\n\\n if (position != 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 valueIndex = position - 1;\\n uint256 lastIndex = set._values.length - 1;\\n\\n if (valueIndex != lastIndex) {\\n bytes32 lastValue = set._values[lastIndex];\\n\\n // Move the lastValue to the index where the value to delete is\\n set._values[valueIndex] = lastValue;\\n // Update the tracked position of the lastValue (that was just moved)\\n set._positions[lastValue] = position;\\n }\\n\\n // Delete the slot where the moved value was stored\\n set._values.pop();\\n\\n // Delete the tracked position for the deleted slot\\n delete set._positions[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._positions[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\",\"keccak256\":\"0x86c1470cbfd878491e5de030072b647352d36bd27122cffb928970b1945282aa\",\"license\":\"MIT\"}},\"version\":1}", + "bytecode": "0x60a060405234801561001057600080fd5b50604051612bc7380380612bc783398101604081905261002f9161013d565b816001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610068816100d1565b506001600160a01b0381166100bf5760405162461bcd60e51b815260206004820152601960248201527f4170693353657276657256312061646472657373207a65726f000000000000006044820152606401610056565b6001600160a01b031660805250610170565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461013857600080fd5b919050565b6000806040838503121561015057600080fd5b61015983610121565b915061016760208401610121565b90509250929050565b608051612a206101a76000396000818161025e0152818161131d015281816114ad015281816115c101526118ac0152612a206000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c8063796b89b91161010f578063be3cc74d116100a2578063ddb2575211610071578063ddb2575214610420578063f2fde38b14610433578063f8b2cb4f14610446578063fba8f22f1461046157600080fd5b8063be3cc74d146103ca578063d23bab14146103dd578063d3cc6647146103f0578063d4a66d921461041857600080fd5b80638f634751116100de5780638f6347511461037c57806391af241114610384578063ac9650d814610397578063b07a0c2f146103b757600080fd5b8063796b89b91461033f5780637a821819146103455780637ca50e85146103585780638da5cb5b1461036b57600080fd5b806342cbb15c116101875780635d868194116101565780635d868194146103095780636e85b69a1461031c578063715018a61461032f578063773f2edc1461033757600080fd5b806342cbb15c146102af578063437b9116146102b55780634dcc19fe146102d65780635989eaeb146102dc57600080fd5b80632d6a744e116101c35780632d6a744e146102595780633408e4701461029857806336b7840d1461029e5780633aad52b9146102a757600080fd5b8063074244ce146101f5578063085df6ab146102115780631761c219146102315780632412a9cb14610246575b600080fd5b6101fe61010081565b6040519081526020015b60405180910390f35b61022461021f366004611f0d565b610474565b6040516102089190611f77565b61024461023f366004611fd3565b61050e565b005b61024461025436600461201f565b610679565b6102807f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610208565b466101fe565b6101fe61040081565b6101fe601581565b436101fe565b6102c86102c3366004612038565b610700565b60405161020892919061210b565b486101fe565b6102f96102ea366004611f0d565b6001600160a01b03163b151590565b6040519015158152602001610208565b6101fe610317366004612165565b610866565b61022461032a36600461201f565b610ce2565b610244610cfb565b6101fe610d43565b426101fe565b6102f961035336600461201f565b610d54565b61022461036636600461201f565b610d76565b6000546001600160a01b0316610280565b6101fe610e25565b61024461039236600461201f565b610e41565b6103aa6103a5366004612038565b610ec9565b60405161020891906121a7565b6102446103c536600461201f565b61104a565b6102446103d836600461201f565b6110d3565b6102446103eb366004611fd3565b611159565b6104036103fe36600461201f565b6112aa565b604051610208999897969594939291906121fc565b6101fe611ab3565b61022461042e36600461201f565b611abf565b610244610441366004611f0d565b611ae9565b6101fe610454366004611f0d565b6001600160a01b03163190565b61024461046f3660046122ba565b611b31565b6001602052600090815260409020805461048d906122f6565b80601f01602080910402602001604051908101604052809291908181526020018280546104b9906122f6565b80156105065780601f106104db57610100808354040283529160200191610506565b820191906000526020600020905b8154815290600101906020018083116104e957829003601f168201915b505050505081565b610516611cda565b828061055d5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b60448201526064015b60405180910390fd5b82826104008111156105b15760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b600085856040516105c3929190612330565b6040518091039020905080600760008981526020019081526020016000205414610670576000878152600760209081526040808320849055838352600990915290208054869190610613906122f6565b9050146106355760008181526009602052604090206106338688836123a4565b505b867f0aea1ab3b222f6786a08c16b8f93ba421dfe07d2511afa7250ec3e9163b0b420878760405161066792919061248d565b60405180910390a25b50505050505050565b610681611cda565b80806106c05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b6106cb600583611d22565b156106fc5760405182907ff9f5c4d39275e5bd5f3c5c8c55bc35400693aeb978d180b545f88580dc4e1e7790600090a25b5050565b606080828067ffffffffffffffff81111561071d5761071d612340565b604051908082528060200260200182016040528015610746578160200160208202803683370190505b5092508067ffffffffffffffff81111561076257610762612340565b60405190808252806020026020018201604052801561079557816020015b60608152602001906001900390816107805790505b50915060005b8181101561085d57308686838181106107b6576107b66124a9565b90506020028101906107c891906124bf565b6040516107d6929190612330565b600060405180830381855af49150503d8060008114610811576040519150601f19603f3d011682016040523d82523d6000602084013e610816565b606091505b50858381518110610829576108296124a9565b60200260200101858481518110610842576108426124a9565b6020908102919091010191909152901515905260010161079b565b50509250929050565b600081603f1981016109255760008061088185870187612506565b90925090506001600160a01b0382166108dc5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b60408051606084901b6bffffffffffffffffffffffff19166020808301919091526034808301859052835180840390910181526054909201909252805191012093505050610c63565b6101008110610c1b5761093a60156020612548565b61094590602061255f565b61095160156020612548565b61095c90602061255f565b61096790604061255f565b610971919061255f565b8111156109c05760405162461bcd60e51b815260206004820152601a60248201527f4461746120666565642064657461696c7320746f6f206c6f6e670000000000006044820152606401610554565b6000806109cf85870187612634565b915091508282826040516020016109e7929190612731565b6040516020818303038152906040525114610a445760405162461bcd60e51b815260206004820152601760248201527f4461746120666565642064657461696c7320747261696c0000000000000000006044820152606401610554565b815181518114610a965760405162461bcd60e51b815260206004820152601960248201527f506172616d65746572206c656e677468206d69736d61746368000000000000006044820152606401610554565b60008167ffffffffffffffff811115610ab157610ab1612340565b604051908082528060200260200182016040528015610ada578160200160208202803683370190505b50905060005b82811015610c065760006001600160a01b0316858281518110610b0557610b056124a9565b60200260200101516001600160a01b031603610b635760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b610be1858281518110610b7857610b786124a9565b6020026020010151858381518110610b9257610b926124a9565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b828281518110610bf357610bf36124a9565b6020908102919091010152600101610ae0565b50610c1081611d37565b955050505050610c63565b60405162461bcd60e51b815260206004820152601b60248201527f4461746120666565642064657461696c7320746f6f2073686f727400000000006044820152606401610554565b60008281526002602052604090208054829190610c7f906122f6565b905014610cdb576000828152600260205260409020610c9f8486836123a4565b50817f4fe18adb29a4bae727e770ff666414a639679c10704d95f308a220b9a1b7477c8585604051610cd292919061248d565b60405180910390a25b5092915050565b6002602052600090815260409020805461048d906122f6565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610554565b6000610d4f6003611d67565b905090565b60008181526002602052604081208054610d6d906122f6565b15159392505050565b600081815260076020908152604080832054835260099091529020805460609190610da0906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcc906122f6565b8015610e195780601f10610dee57610100808354040283529160200191610e19565b820191906000526020600020905b815481529060010190602001808311610dfc57829003601f168201915b50505050509050919050565b6000610e2f611ab3565b610e37610d43565b610d4f919061255f565b610e49611cda565b8080610e8b5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b610e96600383611d22565b156106fc5760405182907e58637e39931c35fef05bbfd96b3881a0301ada925534f93fbfd5544df032cd90600090a25050565b6060818067ffffffffffffffff811115610ee557610ee5612340565b604051908082528060200260200182016040528015610f1857816020015b6060815260200190600190039081610f035790505b50915060005b8181101561104257600030868684818110610f3b57610f3b6124a9565b9050602002810190610f4d91906124bf565b604051610f5b929190612330565b600060405180830381855af49150503d8060008114610f96576040519150601f19603f3d011682016040523d82523d6000602084013e610f9b565b606091505b50858481518110610fae57610fae6124a9565b6020908102919091010152905080611039576000848381518110610fd457610fd46124a9565b60200260200101519050600081511115610ff15780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610554565b50600101610f1e565b505092915050565b611052611cda565b80806110945760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b61109f600383611d71565b156106fc5760405182907f0b7c1d36481aee25427040847eb1bb0fe4419a9daf1a3daa7a2ed118a20128bf90600090a25050565b6110db611cda565b808061111a5760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b611125600583611d71565b156106fc5760405182907f240586c4e7a24b6151c6cbee3daebf773eae2e14f003cf24b204cc164c3066a790600090a25050565b611161611cda565b82806111a05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b82826104008111156111f45760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b60008585604051611206929190612330565b6040518091039020905080600860008981526020019081526020016000205414610670576000878152600860209081526040808320849055838352600990915290208054869190611256906122f6565b9050146112785760008181526009602052604090206112768688836123a4565b505b867f3ebb9b0f7d1ab582553a43d38e03a3533602282ff4fc10f5073d0b67d990dbfd878760405161066792919061248d565b600080606060008060608060608060006112c2610d43565b9050808b10156112e9576112d760038c611d7d565b99506112e28a610d76565b92506113e0565b6112f36005611d67565b6112fd908261255f565b8b10156113e057611319611311828d612788565b600590611d7d565b98507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18a60405160200161135d91815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161139191815260200190565b602060405180830381865afa1580156113ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d2919061279b565b99506113dd89611abf565b92505b89156115285760008a815260026020526040902080546113ff906122f6565b80601f016020809104026020016040519081016040528092919081815260200182805461142b906122f6565b80156114785780601f1061144d57610100808354040283529160200191611478565b820191906000526020600020905b81548152906001019060200180831161145b57829003601f168201915b50506040517f67a7cfb7000000000000000000000000000000000000000000000000000000008152600481018f9052939b50507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316926367a7cfb7925060240190506040805180830381865afa1580156114fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152291906127b4565b90975095505b875115611aa55760408851036117a8576040805160018082528183019092529060208083019080368337505060408051600180825281830190925292975090506020808301908036833701905050604080516001808252818301909252919550816020015b606081526020019060019003908161158d579050509150600080898060200190518101906115bb91906127fd565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb761163a84846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b815260040161165891815260200190565b6040805180830381865afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169891906127b4565b886000815181106116ab576116ab6124a9565b60200260200101886000815181106116c5576116c56124a9565b63ffffffff909316602093840291909101830152601b9290920b9091526001600160a01b03831660009081526001909152604090208054611705906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611731906122f6565b801561177e5780601f106117535761010080835404028352916020019161177e565b820191906000526020600020905b81548152906001019060200180831161176157829003601f168201915b505050505084600081518110611796576117966124a9565b60200260200101819052505050611aa5565b600080898060200190518101906117bf9190612889565b815191935091508067ffffffffffffffff8111156117df576117df612340565b604051908082528060200260200182016040528015611808578160200160208202803683370190505b5097508067ffffffffffffffff81111561182457611824612340565b60405190808252806020026020018201604052801561184d578160200160208202803683370190505b5096508067ffffffffffffffff81111561186957611869612340565b60405190808252806020026020018201604052801561189c57816020015b60608152602001906001900390816118875790505b50945060005b81811015611aa0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb76119088684815181106118ee576118ee6124a9565b6020026020010151868581518110610b9257610b926124a9565b6040518263ffffffff1660e01b815260040161192691815260200190565b6040805180830381865afa158015611942573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196691906127b4565b8a8381518110611978576119786124a9565b602002602001018a8481518110611991576119916124a9565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b8152505050600160008583815181106119ca576119ca6124a9565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002080546119fd906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611a29906122f6565b8015611a765780601f10611a4b57610100808354040283529160200191611a76565b820191906000526020600020905b815481529060010190602001808311611a5957829003601f168201915b5050505050868281518110611a8d57611a8d6124a9565b60209081029190910101526001016118a2565b505050505b509193959799909294969850565b6000610d4f6005611d67565b600081815260086020908152604080832054835260099091529020805460609190610da0906122f6565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610554565b611b39611cda565b6001600160a01b038316611b8f5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b6101008282604051602001611ba5929190612330565b604051602081830303815290604052511115611c035760405162461bcd60e51b815260206004820152601760248201527f5369676e6564204150492055524c20746f6f206c6f6e670000000000000000006044820152606401610554565b8181604051602001611c16929190612330565b60408051601f1981840301815282825280516020918201206001600160a01b038716600090815260018352929092209192611c5292910161294c565b6040516020818303038152906040528051906020012014611cd5576001600160a01b0383166000908152600160205260409020611c908284836123a4565b50826001600160a01b03167f1de1502db80e21e5a66f15b7adabc8c7c32f1fa1a0b7c51dbe01f4e50fe65c498383604051611ccc92919061248d565b60405180910390a25b505050565b6000546001600160a01b03163314611d20576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610554565b565b6000611d2e8383611d89565b90505b92915050565b600081604051602001611d4a91906129c1565b604051602081830303815290604052805190602001209050919050565b6000611d31825490565b6000611d2e8383611e7c565b6000611d2e8383611ecb565b60008181526001830160205260408120548015611e72576000611dad600183612788565b8554909150600090611dc190600190612788565b9050808214611e26576000866000018281548110611de157611de16124a9565b9060005260206000200154905080876000018481548110611e0457611e046124a9565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611e3757611e376129d4565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611d31565b6000915050611d31565b6000818152600183016020526040812054611ec357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611d31565b506000611d31565b6000826000018281548110611ee257611ee26124a9565b9060005260206000200154905092915050565b6001600160a01b0381168114611f0a57600080fd5b50565b600060208284031215611f1f57600080fd5b8135611f2a81611ef5565b9392505050565b6000815180845260005b81811015611f5757602081850181015186830182015201611f3b565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000611d2e6020830184611f31565b60008083601f840112611f9c57600080fd5b50813567ffffffffffffffff811115611fb457600080fd5b602083019150836020828501011115611fcc57600080fd5b9250929050565b600080600060408486031215611fe857600080fd5b83359250602084013567ffffffffffffffff81111561200657600080fd5b61201286828701611f8a565b9497909650939450505050565b60006020828403121561203157600080fd5b5035919050565b6000806020838503121561204b57600080fd5b823567ffffffffffffffff81111561206257600080fd5b8301601f8101851361207357600080fd5b803567ffffffffffffffff81111561208a57600080fd5b8560208260051b840101111561209f57600080fd5b6020919091019590945092505050565b600082825180855260208501945060208160051b8301016020850160005b838110156120ff57601f198584030188526120e9838351611f31565b60209889019890935091909101906001016120cd565b50909695505050505050565b6040808252835190820181905260009060208501906060840190835b818110156121475783511515835260209384019390920191600101612127565b5050838103602085015261215b81866120af565b9695505050505050565b6000806020838503121561217857600080fd5b823567ffffffffffffffff81111561218f57600080fd5b61219b85828601611f8a565b90969095509350505050565b602081526000611d2e60208301846120af565b600081518084526020840193506020830160005b828110156121f257815163ffffffff168652602095860195909101906001016121ce565b5093949350505050565b8981528860208201526101206040820152600061221d61012083018a611f31565b601b89900b606084015263ffffffff8816608084015282810360a08401528651808252602080890192019060005b8181101561226c578351601b0b83526020938401939092019160010161224b565b505083810360c085015261228081886121ba565b91505082810360e08401526122958186611f31565b90508281036101008401526122aa81856120af565b9c9b505050505050505050505050565b6000806000604084860312156122cf57600080fd5b83356122da81611ef5565b9250602084013567ffffffffffffffff81111561200657600080fd5b600181811c9082168061230a57607f821691505b60208210810361232a57634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b634e487b7160e01b600052604160045260246000fd5b601f821115611cd557806000526020600020601f840160051c8101602085101561237d5750805b601f840160051c820191505b8181101561239d5760008155600101612389565b5050505050565b67ffffffffffffffff8311156123bc576123bc612340565b6123d0836123ca83546122f6565b83612356565b6000601f84116001811461240457600085156123ec5750838201355b600019600387901b1c1916600186901b17835561239d565b600083815260209020601f19861690835b828110156124355786850135825560209485019460019092019101612415565b50868210156124525760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006124a1602083018486612464565b949350505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126124d657600080fd5b83018035915067ffffffffffffffff8211156124f157600080fd5b602001915036819003821315611fcc57600080fd5b6000806040838503121561251957600080fd5b823561252481611ef5565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417611d3157611d31612532565b80820180821115611d3157611d31612532565b604051601f8201601f1916810167ffffffffffffffff8111828210171561259b5761259b612340565b604052919050565b600067ffffffffffffffff8211156125bd576125bd612340565b5060051b60200190565b600082601f8301126125d857600080fd5b81356125eb6125e6826125a3565b612572565b8082825260208201915060208360051b86010192508583111561260d57600080fd5b602085015b8381101561262a578035835260209283019201612612565b5095945050505050565b6000806040838503121561264757600080fd5b823567ffffffffffffffff81111561265e57600080fd5b8301601f8101851361266f57600080fd5b803561267d6125e6826125a3565b8082825260208201915060208360051b85010192508783111561269f57600080fd5b6020840193505b828410156126ca5783356126b981611ef5565b8252602093840193909101906126a6565b9450505050602083013567ffffffffffffffff8111156126e957600080fd5b6126f5858286016125c7565b9150509250929050565b600081518084526020840193506020830160005b828110156121f2578151865260209586019590910190600101612713565b6040808252835190820181905260009060208501906060840190835b818110156127745783516001600160a01b031683526020938401939092019160010161274d565b5050838103602085015261215b81866126ff565b81810381811115611d3157611d31612532565b6000602082840312156127ad57600080fd5b5051919050565b600080604083850312156127c757600080fd5b825180601b0b81146127d857600080fd5b602084015190925063ffffffff811681146127f257600080fd5b809150509250929050565b6000806040838503121561281057600080fd5b825161281b81611ef5565b6020939093015192949293505050565b600082601f83011261283c57600080fd5b815161284a6125e6826125a3565b8082825260208201915060208360051b86010192508583111561286c57600080fd5b602085015b8381101561262a578051835260209283019201612871565b6000806040838503121561289c57600080fd5b825167ffffffffffffffff8111156128b357600080fd5b8301601f810185136128c457600080fd5b80516128d26125e6826125a3565b8082825260208201915060208360051b8501019250878311156128f457600080fd5b6020840193505b8284101561291f57835161290e81611ef5565b8252602093840193909101906128fb565b80955050505050602083015167ffffffffffffffff81111561294057600080fd5b6126f58582860161282b565b600080835461295a816122f6565b6001821680156129715760018114612986576129b6565b60ff19831686528115158202860193506129b6565b86600052602060002060005b838110156129ae57815488820152600190910190602001612992565b505081860193505b509195945050505050565b602081526000611d2e60208301846126ff565b634e487b7160e01b600052603160045260246000fdfea264697066735822122053f2748f5faa2186176f50becc1d9d3be61b0dbf659987c55628173423e5126964736f6c634300081b0033", + "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101f05760003560e01c8063796b89b91161010f578063be3cc74d116100a2578063ddb2575211610071578063ddb2575214610420578063f2fde38b14610433578063f8b2cb4f14610446578063fba8f22f1461046157600080fd5b8063be3cc74d146103ca578063d23bab14146103dd578063d3cc6647146103f0578063d4a66d921461041857600080fd5b80638f634751116100de5780638f6347511461037c57806391af241114610384578063ac9650d814610397578063b07a0c2f146103b757600080fd5b8063796b89b91461033f5780637a821819146103455780637ca50e85146103585780638da5cb5b1461036b57600080fd5b806342cbb15c116101875780635d868194116101565780635d868194146103095780636e85b69a1461031c578063715018a61461032f578063773f2edc1461033757600080fd5b806342cbb15c146102af578063437b9116146102b55780634dcc19fe146102d65780635989eaeb146102dc57600080fd5b80632d6a744e116101c35780632d6a744e146102595780633408e4701461029857806336b7840d1461029e5780633aad52b9146102a757600080fd5b8063074244ce146101f5578063085df6ab146102115780631761c219146102315780632412a9cb14610246575b600080fd5b6101fe61010081565b6040519081526020015b60405180910390f35b61022461021f366004611f0d565b610474565b6040516102089190611f77565b61024461023f366004611fd3565b61050e565b005b61024461025436600461201f565b610679565b6102807f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610208565b466101fe565b6101fe61040081565b6101fe601581565b436101fe565b6102c86102c3366004612038565b610700565b60405161020892919061210b565b486101fe565b6102f96102ea366004611f0d565b6001600160a01b03163b151590565b6040519015158152602001610208565b6101fe610317366004612165565b610866565b61022461032a36600461201f565b610ce2565b610244610cfb565b6101fe610d43565b426101fe565b6102f961035336600461201f565b610d54565b61022461036636600461201f565b610d76565b6000546001600160a01b0316610280565b6101fe610e25565b61024461039236600461201f565b610e41565b6103aa6103a5366004612038565b610ec9565b60405161020891906121a7565b6102446103c536600461201f565b61104a565b6102446103d836600461201f565b6110d3565b6102446103eb366004611fd3565b611159565b6104036103fe36600461201f565b6112aa565b604051610208999897969594939291906121fc565b6101fe611ab3565b61022461042e36600461201f565b611abf565b610244610441366004611f0d565b611ae9565b6101fe610454366004611f0d565b6001600160a01b03163190565b61024461046f3660046122ba565b611b31565b6001602052600090815260409020805461048d906122f6565b80601f01602080910402602001604051908101604052809291908181526020018280546104b9906122f6565b80156105065780601f106104db57610100808354040283529160200191610506565b820191906000526020600020905b8154815290600101906020018083116104e957829003601f168201915b505050505081565b610516611cda565b828061055d5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b60448201526064015b60405180910390fd5b82826104008111156105b15760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b600085856040516105c3929190612330565b6040518091039020905080600760008981526020019081526020016000205414610670576000878152600760209081526040808320849055838352600990915290208054869190610613906122f6565b9050146106355760008181526009602052604090206106338688836123a4565b505b867f0aea1ab3b222f6786a08c16b8f93ba421dfe07d2511afa7250ec3e9163b0b420878760405161066792919061248d565b60405180910390a25b50505050505050565b610681611cda565b80806106c05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b6106cb600583611d22565b156106fc5760405182907ff9f5c4d39275e5bd5f3c5c8c55bc35400693aeb978d180b545f88580dc4e1e7790600090a25b5050565b606080828067ffffffffffffffff81111561071d5761071d612340565b604051908082528060200260200182016040528015610746578160200160208202803683370190505b5092508067ffffffffffffffff81111561076257610762612340565b60405190808252806020026020018201604052801561079557816020015b60608152602001906001900390816107805790505b50915060005b8181101561085d57308686838181106107b6576107b66124a9565b90506020028101906107c891906124bf565b6040516107d6929190612330565b600060405180830381855af49150503d8060008114610811576040519150601f19603f3d011682016040523d82523d6000602084013e610816565b606091505b50858381518110610829576108296124a9565b60200260200101858481518110610842576108426124a9565b6020908102919091010191909152901515905260010161079b565b50509250929050565b600081603f1981016109255760008061088185870187612506565b90925090506001600160a01b0382166108dc5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b60408051606084901b6bffffffffffffffffffffffff19166020808301919091526034808301859052835180840390910181526054909201909252805191012093505050610c63565b6101008110610c1b5761093a60156020612548565b61094590602061255f565b61095160156020612548565b61095c90602061255f565b61096790604061255f565b610971919061255f565b8111156109c05760405162461bcd60e51b815260206004820152601a60248201527f4461746120666565642064657461696c7320746f6f206c6f6e670000000000006044820152606401610554565b6000806109cf85870187612634565b915091508282826040516020016109e7929190612731565b6040516020818303038152906040525114610a445760405162461bcd60e51b815260206004820152601760248201527f4461746120666565642064657461696c7320747261696c0000000000000000006044820152606401610554565b815181518114610a965760405162461bcd60e51b815260206004820152601960248201527f506172616d65746572206c656e677468206d69736d61746368000000000000006044820152606401610554565b60008167ffffffffffffffff811115610ab157610ab1612340565b604051908082528060200260200182016040528015610ada578160200160208202803683370190505b50905060005b82811015610c065760006001600160a01b0316858281518110610b0557610b056124a9565b60200260200101516001600160a01b031603610b635760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b610be1858281518110610b7857610b786124a9565b6020026020010151858381518110610b9257610b926124a9565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b828281518110610bf357610bf36124a9565b6020908102919091010152600101610ae0565b50610c1081611d37565b955050505050610c63565b60405162461bcd60e51b815260206004820152601b60248201527f4461746120666565642064657461696c7320746f6f2073686f727400000000006044820152606401610554565b60008281526002602052604090208054829190610c7f906122f6565b905014610cdb576000828152600260205260409020610c9f8486836123a4565b50817f4fe18adb29a4bae727e770ff666414a639679c10704d95f308a220b9a1b7477c8585604051610cd292919061248d565b60405180910390a25b5092915050565b6002602052600090815260409020805461048d906122f6565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610554565b6000610d4f6003611d67565b905090565b60008181526002602052604081208054610d6d906122f6565b15159392505050565b600081815260076020908152604080832054835260099091529020805460609190610da0906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054610dcc906122f6565b8015610e195780601f10610dee57610100808354040283529160200191610e19565b820191906000526020600020905b815481529060010190602001808311610dfc57829003601f168201915b50505050509050919050565b6000610e2f611ab3565b610e37610d43565b610d4f919061255f565b610e49611cda565b8080610e8b5760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b610e96600383611d22565b156106fc5760405182907e58637e39931c35fef05bbfd96b3881a0301ada925534f93fbfd5544df032cd90600090a25050565b6060818067ffffffffffffffff811115610ee557610ee5612340565b604051908082528060200260200182016040528015610f1857816020015b6060815260200190600190039081610f035790505b50915060005b8181101561104257600030868684818110610f3b57610f3b6124a9565b9050602002810190610f4d91906124bf565b604051610f5b929190612330565b600060405180830381855af49150503d8060008114610f96576040519150601f19603f3d011682016040523d82523d6000602084013e610f9b565b606091505b50858481518110610fae57610fae6124a9565b6020908102919091010152905080611039576000848381518110610fd457610fd46124a9565b60200260200101519050600081511115610ff15780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610554565b50600101610f1e565b505092915050565b611052611cda565b80806110945760405162461bcd60e51b8152602060048201526011602482015270446174612066656564204944207a65726f60781b6044820152606401610554565b61109f600383611d71565b156106fc5760405182907f0b7c1d36481aee25427040847eb1bb0fe4419a9daf1a3daa7a2ed118a20128bf90600090a25050565b6110db611cda565b808061111a5760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b611125600583611d71565b156106fc5760405182907f240586c4e7a24b6151c6cbee3daebf773eae2e14f003cf24b204cc164c3066a790600090a25050565b611161611cda565b82806111a05760405162461bcd60e51b815260206004820152600e60248201526d64415049206e616d65207a65726f60901b6044820152606401610554565b82826104008111156111f45760405162461bcd60e51b815260206004820152601a60248201527f55706461746520706172616d657465727320746f6f206c6f6e670000000000006044820152606401610554565b60008585604051611206929190612330565b6040518091039020905080600860008981526020019081526020016000205414610670576000878152600860209081526040808320849055838352600990915290208054869190611256906122f6565b9050146112785760008181526009602052604090206112768688836123a4565b505b867f3ebb9b0f7d1ab582553a43d38e03a3533602282ff4fc10f5073d0b67d990dbfd878760405161066792919061248d565b600080606060008060608060608060006112c2610d43565b9050808b10156112e9576112d760038c611d7d565b99506112e28a610d76565b92506113e0565b6112f36005611d67565b6112fd908261255f565b8b10156113e057611319611311828d612788565b600590611d7d565b98507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18a60405160200161135d91815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161139191815260200190565b602060405180830381865afa1580156113ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d2919061279b565b99506113dd89611abf565b92505b89156115285760008a815260026020526040902080546113ff906122f6565b80601f016020809104026020016040519081016040528092919081815260200182805461142b906122f6565b80156114785780601f1061144d57610100808354040283529160200191611478565b820191906000526020600020905b81548152906001019060200180831161145b57829003601f168201915b50506040517f67a7cfb7000000000000000000000000000000000000000000000000000000008152600481018f9052939b50507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316926367a7cfb7925060240190506040805180830381865afa1580156114fe573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152291906127b4565b90975095505b875115611aa55760408851036117a8576040805160018082528183019092529060208083019080368337505060408051600180825281830190925292975090506020808301908036833701905050604080516001808252818301909252919550816020015b606081526020019060019003908161158d579050509150600080898060200190518101906115bb91906127fd565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb761163a84846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b815260040161165891815260200190565b6040805180830381865afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061169891906127b4565b886000815181106116ab576116ab6124a9565b60200260200101886000815181106116c5576116c56124a9565b63ffffffff909316602093840291909101830152601b9290920b9091526001600160a01b03831660009081526001909152604090208054611705906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611731906122f6565b801561177e5780601f106117535761010080835404028352916020019161177e565b820191906000526020600020905b81548152906001019060200180831161176157829003601f168201915b505050505084600081518110611796576117966124a9565b60200260200101819052505050611aa5565b600080898060200190518101906117bf9190612889565b815191935091508067ffffffffffffffff8111156117df576117df612340565b604051908082528060200260200182016040528015611808578160200160208202803683370190505b5097508067ffffffffffffffff81111561182457611824612340565b60405190808252806020026020018201604052801561184d578160200160208202803683370190505b5096508067ffffffffffffffff81111561186957611869612340565b60405190808252806020026020018201604052801561189c57816020015b60608152602001906001900390816118875790505b50945060005b81811015611aa0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb76119088684815181106118ee576118ee6124a9565b6020026020010151868581518110610b9257610b926124a9565b6040518263ffffffff1660e01b815260040161192691815260200190565b6040805180830381865afa158015611942573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196691906127b4565b8a8381518110611978576119786124a9565b602002602001018a8481518110611991576119916124a9565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b8152505050600160008583815181106119ca576119ca6124a9565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002080546119fd906122f6565b80601f0160208091040260200160405190810160405280929190818152602001828054611a29906122f6565b8015611a765780601f10611a4b57610100808354040283529160200191611a76565b820191906000526020600020905b815481529060010190602001808311611a5957829003601f168201915b5050505050868281518110611a8d57611a8d6124a9565b60209081029190910101526001016118a2565b505050505b509193959799909294969850565b6000610d4f6005611d67565b600081815260086020908152604080832054835260099091529020805460609190610da0906122f6565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610554565b611b39611cda565b6001600160a01b038316611b8f5760405162461bcd60e51b815260206004820152601460248201527f4169726e6f64652061646472657373207a65726f0000000000000000000000006044820152606401610554565b6101008282604051602001611ba5929190612330565b604051602081830303815290604052511115611c035760405162461bcd60e51b815260206004820152601760248201527f5369676e6564204150492055524c20746f6f206c6f6e670000000000000000006044820152606401610554565b8181604051602001611c16929190612330565b60408051601f1981840301815282825280516020918201206001600160a01b038716600090815260018352929092209192611c5292910161294c565b6040516020818303038152906040528051906020012014611cd5576001600160a01b0383166000908152600160205260409020611c908284836123a4565b50826001600160a01b03167f1de1502db80e21e5a66f15b7adabc8c7c32f1fa1a0b7c51dbe01f4e50fe65c498383604051611ccc92919061248d565b60405180910390a25b505050565b6000546001600160a01b03163314611d20576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610554565b565b6000611d2e8383611d89565b90505b92915050565b600081604051602001611d4a91906129c1565b604051602081830303815290604052805190602001209050919050565b6000611d31825490565b6000611d2e8383611e7c565b6000611d2e8383611ecb565b60008181526001830160205260408120548015611e72576000611dad600183612788565b8554909150600090611dc190600190612788565b9050808214611e26576000866000018281548110611de157611de16124a9565b9060005260206000200154905080876000018481548110611e0457611e046124a9565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080611e3757611e376129d4565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611d31565b6000915050611d31565b6000818152600183016020526040812054611ec357508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155611d31565b506000611d31565b6000826000018281548110611ee257611ee26124a9565b9060005260206000200154905092915050565b6001600160a01b0381168114611f0a57600080fd5b50565b600060208284031215611f1f57600080fd5b8135611f2a81611ef5565b9392505050565b6000815180845260005b81811015611f5757602081850181015186830182015201611f3b565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000611d2e6020830184611f31565b60008083601f840112611f9c57600080fd5b50813567ffffffffffffffff811115611fb457600080fd5b602083019150836020828501011115611fcc57600080fd5b9250929050565b600080600060408486031215611fe857600080fd5b83359250602084013567ffffffffffffffff81111561200657600080fd5b61201286828701611f8a565b9497909650939450505050565b60006020828403121561203157600080fd5b5035919050565b6000806020838503121561204b57600080fd5b823567ffffffffffffffff81111561206257600080fd5b8301601f8101851361207357600080fd5b803567ffffffffffffffff81111561208a57600080fd5b8560208260051b840101111561209f57600080fd5b6020919091019590945092505050565b600082825180855260208501945060208160051b8301016020850160005b838110156120ff57601f198584030188526120e9838351611f31565b60209889019890935091909101906001016120cd565b50909695505050505050565b6040808252835190820181905260009060208501906060840190835b818110156121475783511515835260209384019390920191600101612127565b5050838103602085015261215b81866120af565b9695505050505050565b6000806020838503121561217857600080fd5b823567ffffffffffffffff81111561218f57600080fd5b61219b85828601611f8a565b90969095509350505050565b602081526000611d2e60208301846120af565b600081518084526020840193506020830160005b828110156121f257815163ffffffff168652602095860195909101906001016121ce565b5093949350505050565b8981528860208201526101206040820152600061221d61012083018a611f31565b601b89900b606084015263ffffffff8816608084015282810360a08401528651808252602080890192019060005b8181101561226c578351601b0b83526020938401939092019160010161224b565b505083810360c085015261228081886121ba565b91505082810360e08401526122958186611f31565b90508281036101008401526122aa81856120af565b9c9b505050505050505050505050565b6000806000604084860312156122cf57600080fd5b83356122da81611ef5565b9250602084013567ffffffffffffffff81111561200657600080fd5b600181811c9082168061230a57607f821691505b60208210810361232a57634e487b7160e01b600052602260045260246000fd5b50919050565b8183823760009101908152919050565b634e487b7160e01b600052604160045260246000fd5b601f821115611cd557806000526020600020601f840160051c8101602085101561237d5750805b601f840160051c820191505b8181101561239d5760008155600101612389565b5050505050565b67ffffffffffffffff8311156123bc576123bc612340565b6123d0836123ca83546122f6565b83612356565b6000601f84116001811461240457600085156123ec5750838201355b600019600387901b1c1916600186901b17835561239d565b600083815260209020601f19861690835b828110156124355786850135825560209485019460019092019101612415565b50868210156124525760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260006124a1602083018486612464565b949350505050565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126124d657600080fd5b83018035915067ffffffffffffffff8211156124f157600080fd5b602001915036819003821315611fcc57600080fd5b6000806040838503121561251957600080fd5b823561252481611ef5565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417611d3157611d31612532565b80820180821115611d3157611d31612532565b604051601f8201601f1916810167ffffffffffffffff8111828210171561259b5761259b612340565b604052919050565b600067ffffffffffffffff8211156125bd576125bd612340565b5060051b60200190565b600082601f8301126125d857600080fd5b81356125eb6125e6826125a3565b612572565b8082825260208201915060208360051b86010192508583111561260d57600080fd5b602085015b8381101561262a578035835260209283019201612612565b5095945050505050565b6000806040838503121561264757600080fd5b823567ffffffffffffffff81111561265e57600080fd5b8301601f8101851361266f57600080fd5b803561267d6125e6826125a3565b8082825260208201915060208360051b85010192508783111561269f57600080fd5b6020840193505b828410156126ca5783356126b981611ef5565b8252602093840193909101906126a6565b9450505050602083013567ffffffffffffffff8111156126e957600080fd5b6126f5858286016125c7565b9150509250929050565b600081518084526020840193506020830160005b828110156121f2578151865260209586019590910190600101612713565b6040808252835190820181905260009060208501906060840190835b818110156127745783516001600160a01b031683526020938401939092019160010161274d565b5050838103602085015261215b81866126ff565b81810381811115611d3157611d31612532565b6000602082840312156127ad57600080fd5b5051919050565b600080604083850312156127c757600080fd5b825180601b0b81146127d857600080fd5b602084015190925063ffffffff811681146127f257600080fd5b809150509250929050565b6000806040838503121561281057600080fd5b825161281b81611ef5565b6020939093015192949293505050565b600082601f83011261283c57600080fd5b815161284a6125e6826125a3565b8082825260208201915060208360051b86010192508583111561286c57600080fd5b602085015b8381101561262a578051835260209283019201612871565b6000806040838503121561289c57600080fd5b825167ffffffffffffffff8111156128b357600080fd5b8301601f810185136128c457600080fd5b80516128d26125e6826125a3565b8082825260208201915060208360051b8501019250878311156128f457600080fd5b6020840193505b8284101561291f57835161290e81611ef5565b8252602093840193909101906128fb565b80955050505050602083015167ffffffffffffffff81111561294057600080fd5b6126f58582860161282b565b600080835461295a816122f6565b6001821680156129715760018114612986576129b6565b60ff19831686528115158202860193506129b6565b86600052602060002060005b838110156129ae57815488820152600190910190602001612992565b505081860193505b509195945050505050565b602081526000611d2e60208301846126ff565b634e487b7160e01b600052603160045260246000fdfea264697066735822122053f2748f5faa2186176f50becc1d9d3be61b0dbf659987c55628173423e5126964736f6c634300081b0033", + "devdoc": { + "errors": { + "OwnableInvalidOwner(address)": [ + { + "details": "The owner is not a valid owner account. (eg. `address(0)`)" + } + ], + "OwnableUnauthorizedAccount(address)": [ + { + "details": "The caller account is not authorized to perform an operation." + } + ] + }, + "kind": "dev", + "methods": { + "activeDapiNameCount()": { + "returns": { + "_0": "Active dAPI name count" + } + }, + "activeDataFeed(uint256)": { + "details": "Airseeker uses this function to get all the data it needs about an active data feed with a single RPC call. Since active data feed IDs and dAPI names are kept in respective EnumerableSet types, addition and removal of items to these may change the order of the remaining items. Therefore, do not depend on an index to address a specific data feed consistently.", + "params": { + "index": "Index" + }, + "returns": { + "beaconTimestamps": "Beacon timestamps read from Api3ServerV1", + "beaconValues": "Beacon values read from Api3ServerV1", + "dapiName": "dAPI name (`bytes32(0)` if the active data feed is identified by a data feed ID)", + "dataFeedDetails": "Data feed details", + "dataFeedId": "Data feed ID", + "dataFeedTimestamp": "Data feed timestamp read from Api3ServerV1", + "dataFeedValue": "Data feed value read from Api3ServerV1", + "signedApiUrls": "Signed API URLs of the Beacon Airnodes", + "updateParameters": "Update parameters" + } + }, + "activeDataFeedCount()": { + "returns": { + "_0": "Active data feed count" + } + }, + "activeDataFeedIdCount()": { + "returns": { + "_0": "Active data feed ID count" + } + }, + "constructor": { + "params": { + "api3ServerV1_": "Api3ServerV1 contract address", + "owner_": "Owner address" + } + }, + "containsBytecode(address)": { + "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", + "returns": { + "_0": "If the account contains bytecode" + } + }, + "dapiNameToUpdateParameters(bytes32)": { + "params": { + "dapiName": "dAPI name" + }, + "returns": { + "updateParameters": "Update parameters" + } + }, + "dataFeedIdToUpdateParameters(bytes32)": { + "params": { + "dataFeedId": "Data feed ID" + }, + "returns": { + "updateParameters": "Update parameters" + } + }, + "dataFeedIsRegistered(bytes32)": { + "params": { + "dataFeedId": "Data feed ID" + }, + "returns": { + "_0": "If the data feed with ID is registered" + } + }, + "getBalance(address)": { + "params": { + "account": "Account address" + }, + "returns": { + "_0": "Account balance" + } + }, + "getBlockBasefee()": { + "returns": { + "_0": "Current block basefee" + } + }, + "getBlockNumber()": { + "returns": { + "_0": "Current block number" + } + }, + "getBlockTimestamp()": { + "returns": { + "_0": "Current block timestamp" + } + }, + "getChainId()": { + "returns": { + "_0": "Chain ID" + } + }, + "multicall(bytes[])": { + "params": { + "data": "Array of calldata of batched calls" + }, + "returns": { + "returndata": "Array of returndata of batched calls" + } + }, + "owner()": { + "returns": { + "_0": "Owner address" + } + }, + "registerDataFeed(bytes)": { + "params": { + "dataFeedDetails": "Data feed details" + }, + "returns": { + "dataFeedId": "Data feed ID" + } + }, + "setDapiNameToBeActivated(bytes32)": { + "params": { + "dapiName": "dAPI name" + } + }, + "setDapiNameToBeDeactivated(bytes32)": { + "params": { + "dapiName": "dAPI name" + } + }, + "setDapiNameUpdateParameters(bytes32,bytes)": { + "params": { + "dapiName": "dAPI name", + "updateParameters": "Update parameters" + } + }, + "setDataFeedIdToBeActivated(bytes32)": { + "params": { + "dataFeedId": "Data feed ID" + } + }, + "setDataFeedIdToBeDeactivated(bytes32)": { + "params": { + "dataFeedId": "Data feed ID" + } + }, + "setDataFeedIdUpdateParameters(bytes32,bytes)": { + "params": { + "dataFeedId": "Data feed ID", + "updateParameters": "Update parameters" + } + }, + "setSignedApiUrl(address,string)": { + "params": { + "airnode": "Airnode address", + "signedApiUrl": "Signed API URL" + } + }, + "tryMulticall(bytes[])": { + "params": { + "data": "Array of calldata of batched calls" + }, + "returns": { + "returndata": "Array of returndata of batched calls", + "successes": "Array of success conditions of batched calls" + } + } + }, + "stateVariables": { + "MAXIMUM_BEACON_COUNT_IN_SET": { + "details": "Api3ServerV1 introduces the concept of a Beacon, which is a single-source data feed. Api3ServerV1 allows Beacons to be read individually, or arbitrary combinations of them to be aggregated on-chain to form multiple-source data feeds, which are called Beacon sets. This contract does not support Beacon sets that consist of more than `MAXIMUM_BEACON_COUNT_IN_SET` Beacons to be registered." + }, + "airnodeToSignedApiUrl": { + "details": "An Airseeker can be configured to refer to additional signed APIs than the ones whose URLs are stored in this contract for redundancy" + } + }, + "title": "A contract where active data feeds and their specs are registered by the contract owner for the respective Airseeker to refer to", + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": { + "MAXIMUM_BEACON_COUNT_IN_SET()": { + "notice": "Maximum number of Beacons in a Beacon set that can be registered" + }, + "MAXIMUM_SIGNED_API_URL_LENGTH()": { + "notice": "Maximum signed API URL length" + }, + "MAXIMUM_UPDATE_PARAMETERS_LENGTH()": { + "notice": "Maximum encoded update parameters length" + }, + "activeDapiNameCount()": { + "notice": "Returns the number of active data feeds identified by a dAPI name" + }, + "activeDataFeed(uint256)": { + "notice": "In an imaginary array consisting of the active data feed IDs and active dAPI names, picks the index-th identifier, and returns all data about the respective data feed that is available. Whenever data is not available (including the case where index does not correspond to an active data feed), returns empty values." + }, + "activeDataFeedCount()": { + "notice": "Returns the number of active data feeds identified by a data feed ID or dAPI name" + }, + "activeDataFeedIdCount()": { + "notice": "Returns the number of active data feeds identified by a data feed ID" + }, + "airnodeToSignedApiUrl(address)": { + "notice": "Airnode address to signed API URL" + }, + "api3ServerV1()": { + "notice": "Api3ServerV1 contract address" + }, + "containsBytecode(address)": { + "notice": "Returns if the account contains bytecode" + }, + "dapiNameToUpdateParameters(bytes32)": { + "notice": "dAPI name to update parameters" + }, + "dataFeedIdToDetails(bytes32)": { + "notice": "Data feed ID to encoded details" + }, + "dataFeedIdToUpdateParameters(bytes32)": { + "notice": "Data feed ID to update parameters" + }, + "dataFeedIsRegistered(bytes32)": { + "notice": "Returns if the data feed with ID is registered" + }, + "getBalance(address)": { + "notice": "Returns the account balance" + }, + "getBlockBasefee()": { + "notice": "Returns the current block basefee" + }, + "getBlockNumber()": { + "notice": "Returns the current block number" + }, + "getBlockTimestamp()": { + "notice": "Returns the current block timestamp" + }, + "getChainId()": { + "notice": "Returns the chain ID" + }, + "multicall(bytes[])": { + "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" + }, + "owner()": { + "notice": "Returns the owner address" + }, + "registerDataFeed(bytes)": { + "notice": "Registers the data feed. In the case that the data feed is a Beacon, the details should be the ABI-encoded Airnode address and template ID. In the case that the data feed is a Beacon set, the details should be the ABI-encoded Airnode addresses array and template IDs array." + }, + "renounceOwnership()": { + "notice": "Overriden to be disabled" + }, + "setDapiNameToBeActivated(bytes32)": { + "notice": "Called by the owner to set the dAPI name to be activated" + }, + "setDapiNameToBeDeactivated(bytes32)": { + "notice": "Called by the owner to set the dAPI name to be deactivated" + }, + "setDapiNameUpdateParameters(bytes32,bytes)": { + "notice": "Called by the owner to set the dAPI name update parameters. The update parameters must be encoded in a format that Airseeker expects." + }, + "setDataFeedIdToBeActivated(bytes32)": { + "notice": "Called by the owner to set the data feed ID to be activated" + }, + "setDataFeedIdToBeDeactivated(bytes32)": { + "notice": "Called by the owner to set the data feed ID to be deactivated" + }, + "setDataFeedIdUpdateParameters(bytes32,bytes)": { + "notice": "Called by the owner to set the data feed ID update parameters. The update parameters must be encoded in a format that Airseeker expects." + }, + "setSignedApiUrl(address,string)": { + "notice": "Called by the owner to set the signed API URL for the Airnode. The signed API must implement the specific interface that Airseeker expects." + }, + "transferOwnership(address)": { + "notice": "Overriden to be disabled" + }, + "tryMulticall(bytes[])": { + "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" + } + }, + "notice": "Airseeker is an application that pushes API provider-signed data to chain when certain conditions are met so that the data feeds served on the Api3ServerV1 contract are updated according to the respective specs. In other words, this contract is an on-chain configuration file for an Airseeker (or multiple Airseekers in a setup with redundancy). The Airseeker must know which data feeds are active (and thus need to be updated), the constituting Airnode (the oracle node that API providers operate to sign data) addresses and request template IDs, what the respective on-chain data feed values are, what the update parameters are, and the URL of the signed APIs (from which Airseeker can fetch signed data) that are hosted by the respective API providers. The contract owner is responsible with leaving the state of this contract in a way that Airseeker expects. For example, if a dAPI name is activated without registering the respective data feed, the Airseeker will not have access to the data that it needs to execute updates.", + "version": 1 + }, + "storageLayout": { + "storage": [ + { + "astId": 13488, + "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", + "label": "_owner", + "offset": 0, + "slot": "0", + "type": "t_address" + }, + { + "astId": 903, + "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", + "label": "airnodeToSignedApiUrl", + "offset": 0, + "slot": "1", + "type": "t_mapping(t_address,t_string_storage)" + }, + { + "astId": 909, + "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", + "label": "dataFeedIdToDetails", + "offset": 0, + "slot": "2", + "type": "t_mapping(t_bytes32,t_bytes_storage)" + }, + { + "astId": 912, + "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", + "label": "activeDataFeedIds", + "offset": 0, + "slot": "3", + "type": "t_struct(Bytes32Set)19019_storage" + }, + { + "astId": 915, + "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", + "label": "activeDapiNames", + "offset": 0, + "slot": "5", + "type": "t_struct(Bytes32Set)19019_storage" + }, + { + "astId": 919, + "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", + "label": "dataFeedIdToUpdateParametersHash", + "offset": 0, + "slot": "7", + "type": "t_mapping(t_bytes32,t_bytes32)" + }, + { + "astId": 923, + "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", + "label": "dapiNameToUpdateParametersHash", + "offset": 0, + "slot": "8", + "type": "t_mapping(t_bytes32,t_bytes32)" + }, + { + "astId": 927, + "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", + "label": "updateParametersHashToValue", + "offset": 0, + "slot": "9", + "type": "t_mapping(t_bytes32,t_bytes_storage)" + } + ], + "types": { + "t_address": { + "encoding": "inplace", + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_bytes32)dyn_storage": { + "base": "t_bytes32", + "encoding": "dynamic_array", + "label": "bytes32[]", + "numberOfBytes": "32" + }, + "t_bytes32": { + "encoding": "inplace", + "label": "bytes32", + "numberOfBytes": "32" + }, + "t_bytes_storage": { + "encoding": "bytes", + "label": "bytes", + "numberOfBytes": "32" + }, + "t_mapping(t_address,t_string_storage)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => string)", + "numberOfBytes": "32", + "value": "t_string_storage" + }, + "t_mapping(t_bytes32,t_bytes32)": { + "encoding": "mapping", + "key": "t_bytes32", + "label": "mapping(bytes32 => bytes32)", + "numberOfBytes": "32", + "value": "t_bytes32" + }, + "t_mapping(t_bytes32,t_bytes_storage)": { + "encoding": "mapping", + "key": "t_bytes32", + "label": "mapping(bytes32 => bytes)", + "numberOfBytes": "32", + "value": "t_bytes_storage" + }, + "t_mapping(t_bytes32,t_uint256)": { + "encoding": "mapping", + "key": "t_bytes32", + "label": "mapping(bytes32 => uint256)", + "numberOfBytes": "32", + "value": "t_uint256" + }, + "t_string_storage": { + "encoding": "bytes", + "label": "string", + "numberOfBytes": "32" + }, + "t_struct(Bytes32Set)19019_storage": { + "encoding": "inplace", + "label": "struct EnumerableSet.Bytes32Set", + "members": [ + { + "astId": 19018, + "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", + "label": "_inner", + "offset": 0, + "slot": "0", + "type": "t_struct(Set)18825_storage" + } + ], + "numberOfBytes": "64" + }, + "t_struct(Set)18825_storage": { + "encoding": "inplace", + "label": "struct EnumerableSet.Set", + "members": [ + { + "astId": 18820, + "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", + "label": "_values", + "offset": 0, + "slot": "0", + "type": "t_array(t_bytes32)dyn_storage" + }, + { + "astId": 18824, + "contract": "contracts/api3-server-v1/AirseekerRegistry.sol:AirseekerRegistry", + "label": "_positions", + "offset": 0, + "slot": "1", + "type": "t_mapping(t_bytes32,t_uint256)" + } + ], + "numberOfBytes": "64" + }, + "t_uint256": { + "encoding": "inplace", + "label": "uint256", + "numberOfBytes": "32" + } + } + } +} diff --git a/deployments/arbitrum/Api3MarketV2.json b/deployments/arbitrum/Api3MarketV2.json new file mode 100644 index 0000000..9dfc6c9 --- /dev/null +++ b/deployments/arbitrum/Api3MarketV2.json @@ -0,0 +1,1963 @@ +{ + "address": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "owner_", + "type": "address" + }, + { + "internalType": "address", + "name": "api3ReaderProxyV1Factory_", + "type": "address" + }, + { + "internalType": "uint256", + "name": "maximumSubscriptionQueueLength_", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "ECDSAInvalidSignature", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "length", + "type": "uint256" + } + ], + "name": "ECDSAInvalidSignatureLength", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "s", + "type": "bytes32" + } + ], + "name": "ECDSAInvalidSignatureS", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "owner", + "type": "address" + } + ], + "name": "OwnableInvalidOwner", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "OwnableUnauthorizedAccount", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "uint8", + "name": "bits", + "type": "uint8" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "SafeCastOverflowedUintDowncast", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "dapiName", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "subscriptionId", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "dataFeedId", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "address", + "name": "sponsorWallet", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "updateParameters", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "duration", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "price", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "paymentAmount", + "type": "uint256" + } + ], + "name": "BoughtSubscription", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "dapiName", + "type": "bytes32" + } + ], + "name": "CanceledSubscriptions", + "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" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "hashType", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "hashValue", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "hashTimestamp", + "type": "uint256" + } + ], + "name": "RegisteredHash", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "airseekerRegistry", + "type": "address" + } + ], + "name": "SetAirseekerRegistry", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "hashType", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "hashValue", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "hashTimestamp", + "type": "uint256" + } + ], + "name": "SetHash", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "hashType", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "address[]", + "name": "signers", + "type": "address[]" + } + ], + "name": "SetSigners", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "dapiName", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "subscriptionId", + "type": "bytes32" + } + ], + "name": "UpdatedCurrentSubscriptionId", + "type": "event" + }, + { + "inputs": [], + "name": "DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "DAPI_PRICING_MERKLE_ROOT_HASH_TYPE", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "MAXIMUM_DAPI_UPDATE_AGE", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "airseekerRegistry", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "api3ReaderProxyV1Factory", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "api3ServerV1", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dapiName", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "dataFeedId", + "type": "bytes32" + }, + { + "internalType": "address payable", + "name": "sponsorWallet", + "type": "address" + }, + { + "internalType": "bytes", + "name": "updateParameters", + "type": "bytes" + }, + { + "internalType": "uint256", + "name": "duration", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "price", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "dapiManagementAndDapiPricingMerkleData", + "type": "bytes" + } + ], + "name": "buySubscription", + "outputs": [ + { + "internalType": "bytes32", + "name": "subscriptionId", + "type": "bytes32" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dapiName", + "type": "bytes32" + } + ], + "name": "cancelSubscriptions", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dapiName", + "type": "bytes32" + } + ], + "name": "computeExpectedSponsorWalletBalance", + "outputs": [ + { + "internalType": "uint256", + "name": "expectedSponsorWalletBalance", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dapiName", + "type": "bytes32" + }, + { + "internalType": "bytes", + "name": "updateParameters", + "type": "bytes" + }, + { + "internalType": "uint256", + "name": "duration", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "price", + "type": "uint256" + } + ], + "name": "computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded", + "outputs": [ + { + "internalType": "uint256", + "name": "expectedSponsorWalletBalance", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "containsBytecode", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "name": "dapiNameToCurrentSubscriptionId", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dapiName", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "dappId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "metadata", + "type": "bytes" + } + ], + "name": "deployApi3ReaderProxyV1", + "outputs": [ + { + "internalType": "address", + "name": "api3ReaderProxyV1", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "getBalance", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getBlockBasefee", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getBlockNumber", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getBlockTimestamp", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getChainId", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dapiName", + "type": "bytes32" + } + ], + "name": "getDapiData", + "outputs": [ + { + "internalType": "bytes", + "name": "dataFeedDetails", + "type": "bytes" + }, + { + "internalType": "int224", + "name": "dapiValue", + "type": "int224" + }, + { + "internalType": "uint32", + "name": "dapiTimestamp", + "type": "uint32" + }, + { + "internalType": "int224[]", + "name": "beaconValues", + "type": "int224[]" + }, + { + "internalType": "uint32[]", + "name": "beaconTimestamps", + "type": "uint32[]" + }, + { + "internalType": "bytes[]", + "name": "updateParameters", + "type": "bytes[]" + }, + { + "internalType": "uint32[]", + "name": "endTimestamps", + "type": "uint32[]" + }, + { + "internalType": "uint224[]", + "name": "dailyPrices", + "type": "uint224[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dataFeedId", + "type": "bytes32" + } + ], + "name": "getDataFeedData", + "outputs": [ + { + "internalType": "bytes", + "name": "dataFeedDetails", + "type": "bytes" + }, + { + "internalType": "int224", + "name": "dataFeedValue", + "type": "int224" + }, + { + "internalType": "uint32", + "name": "dataFeedTimestamp", + "type": "uint32" + }, + { + "internalType": "int224[]", + "name": "beaconValues", + "type": "int224[]" + }, + { + "internalType": "uint32[]", + "name": "beaconTimestamps", + "type": "uint32[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "hashType", + "type": "bytes32" + } + ], + "name": "getHashValue", + "outputs": [ + { + "internalType": "bytes32", + "name": "hashValue", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "name": "hashTypeToSignersHash", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "name": "hashes", + "outputs": [ + { + "internalType": "bytes32", + "name": "value", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "maximumSubscriptionQueueLength", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes[]", + "name": "data", + "type": "bytes[]" + } + ], + "name": "multicall", + "outputs": [ + { + "internalType": "bytes[]", + "name": "returndata", + "type": "bytes[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes[]", + "name": "multicallData", + "type": "bytes[]" + }, + { + "internalType": "bytes32", + "name": "dapiName", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "dataFeedId", + "type": "bytes32" + }, + { + "internalType": "address payable", + "name": "sponsorWallet", + "type": "address" + }, + { + "internalType": "bytes", + "name": "updateParameters", + "type": "bytes" + }, + { + "internalType": "uint256", + "name": "duration", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "price", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "dapiManagementAndDapiPricingMerkleData", + "type": "bytes" + } + ], + "name": "multicallAndBuySubscription", + "outputs": [ + { + "internalType": "bytes[]", + "name": "returndata", + "type": "bytes[]" + }, + { + "internalType": "bytes32", + "name": "subscriptionId", + "type": "bytes32" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "dataFeedDetails", + "type": "bytes" + } + ], + "name": "registerDataFeed", + "outputs": [ + { + "internalType": "bytes32", + "name": "dataFeedId", + "type": "bytes32" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "hashType", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "hashValue", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "hashTimestamp", + "type": "uint256" + }, + { + "internalType": "bytes[]", + "name": "signatures", + "type": "bytes[]" + } + ], + "name": "registerHash", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "airseekerRegistry_", + "type": "address" + } + ], + "name": "setAirseekerRegistry", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "hashType", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "hashValue", + "type": "bytes32" + } + ], + "name": "setHash", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "hashType", + "type": "bytes32" + }, + { + "internalType": "address[]", + "name": "signers", + "type": "address[]" + } + ], + "name": "setSigners", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "signatureDelegationHashType", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "subscriptionId", + "type": "bytes32" + } + ], + "name": "subscriptionIdToUpdateParameters", + "outputs": [ + { + "internalType": "bytes", + "name": "updateParameters", + "type": "bytes" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "name": "subscriptions", + "outputs": [ + { + "internalType": "bytes32", + "name": "updateParametersHash", + "type": "bytes32" + }, + { + "internalType": "uint32", + "name": "endTimestamp", + "type": "uint32" + }, + { + "internalType": "uint224", + "name": "dailyPrice", + "type": "uint224" + }, + { + "internalType": "bytes32", + "name": "nextSubscriptionId", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes[]", + "name": "data", + "type": "bytes[]" + } + ], + "name": "tryMulticall", + "outputs": [ + { + "internalType": "bool[]", + "name": "successes", + "type": "bool[]" + }, + { + "internalType": "bytes[]", + "name": "returndata", + "type": "bytes[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes[]", + "name": "tryMulticallData", + "type": "bytes[]" + }, + { + "internalType": "bytes32", + "name": "dapiName", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "dataFeedId", + "type": "bytes32" + }, + { + "internalType": "address payable", + "name": "sponsorWallet", + "type": "address" + }, + { + "internalType": "bytes", + "name": "updateParameters", + "type": "bytes" + }, + { + "internalType": "uint256", + "name": "duration", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "price", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "dapiManagementAndDapiPricingMerkleData", + "type": "bytes" + } + ], + "name": "tryMulticallAndBuySubscription", + "outputs": [ + { + "internalType": "bool[]", + "name": "successes", + "type": "bool[]" + }, + { + "internalType": "bytes[]", + "name": "returndata", + "type": "bytes[]" + }, + { + "internalType": "bytes32", + "name": "subscriptionId", + "type": "bytes32" + } + ], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32[]", + "name": "beaconIds", + "type": "bytes32[]" + } + ], + "name": "updateBeaconSetWithBeacons", + "outputs": [ + { + "internalType": "bytes32", + "name": "beaconSetId", + "type": "bytes32" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "airnode", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "templateId", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "signature", + "type": "bytes" + } + ], + "name": "updateBeaconWithSignedData", + "outputs": [ + { + "internalType": "bytes32", + "name": "beaconId", + "type": "bytes32" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dapiName", + "type": "bytes32" + } + ], + "name": "updateCurrentSubscriptionId", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dapiName", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "dataFeedId", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "sponsorWallet", + "type": "address" + }, + { + "internalType": "bytes", + "name": "dapiManagementMerkleData", + "type": "bytes" + } + ], + "name": "updateDapiName", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "airnode", + "type": "address" + }, + { + "internalType": "string", + "name": "signedApiUrl", + "type": "string" + }, + { + "internalType": "bytes", + "name": "signedApiUrlMerkleData", + "type": "bytes" + } + ], + "name": "updateSignedApiUrl", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "transactionHash": "0x453b0e74f626f0e6019e7b77285086ecb76ce022b348ee5aa097a3b961460bfd", + "receipt": { + "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", + "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", + "contractAddress": null, + "transactionIndex": 2, + "gasUsed": "8162218", + "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000004000800000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000400000000000000000000000000000000000000000000000000000000000000000400000000000000020000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x23ef775d0efa4faac822113593f4a4963b9946b0c4f9221e64b113484c60e7c9", + "transactionHash": "0x453b0e74f626f0e6019e7b77285086ecb76ce022b348ee5aa097a3b961460bfd", + "logs": [ + { + "transactionIndex": 2, + "blockNumber": 267516897, + "transactionHash": "0x453b0e74f626f0e6019e7b77285086ecb76ce022b348ee5aa097a3b961460bfd", + "address": "0x3f5C77BB36a16118ccC9Ca83ddEe8A01b6C01811", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x00000000000000000000000081bc85f329cdb28936fbb239f734ae495121f9a6" + ], + "data": "0x", + "logIndex": 1, + "blockHash": "0x23ef775d0efa4faac822113593f4a4963b9946b0c4f9221e64b113484c60e7c9" + } + ], + "blockNumber": 267516897, + "cumulativeGasUsed": "8244854", + "status": 1, + "byzantium": true + }, + "args": ["0x81bc85f329cDB28936FbB239f734AE495121F9A6", "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", 10], + "numDeployments": 1, + "solcInputHash": "89a967c3fe04edb8f5f592132d878a35", + "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ReaderProxyV1Factory_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"maximumSubscriptionQueueLength_\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ECDSAInvalidSignature\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"ECDSAInvalidSignatureLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"ECDSAInvalidSignatureS\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"bits\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"SafeCastOverflowedUintDowncast\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"paymentAmount\",\"type\":\"uint256\"}],\"name\":\"BoughtSubscription\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"CanceledSubscriptions\",\"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\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"}],\"name\":\"RegisteredHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"airseekerRegistry\",\"type\":\"address\"}],\"name\":\"SetAirseekerRegistry\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"}],\"name\":\"SetHash\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"signers\",\"type\":\"address[]\"}],\"name\":\"SetSigners\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"name\":\"UpdatedCurrentSubscriptionId\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DAPI_PRICING_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAXIMUM_DAPI_UPDATE_AGE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"airseekerRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ReaderProxyV1Factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"buySubscription\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"cancelSubscriptions\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"computeExpectedSponsorWalletBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"expectedSponsorWalletBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"expectedSponsorWalletBalance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"dapiNameToCurrentSubscriptionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"deployApi3ReaderProxyV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"api3ReaderProxyV1\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"getDapiData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dapiValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dapiTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"bytes[]\",\"name\":\"updateParameters\",\"type\":\"bytes[]\"},{\"internalType\":\"uint32[]\",\"name\":\"endTimestamps\",\"type\":\"uint32[]\"},{\"internalType\":\"uint224[]\",\"name\":\"dailyPrices\",\"type\":\"uint224[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"getDataFeedData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"},{\"internalType\":\"int224\",\"name\":\"dataFeedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"dataFeedTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"int224[]\",\"name\":\"beaconValues\",\"type\":\"int224[]\"},{\"internalType\":\"uint32[]\",\"name\":\"beaconTimestamps\",\"type\":\"uint32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"}],\"name\":\"getHashValue\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"hashTypeToSignersHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"hashes\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"value\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maximumSubscriptionQueueLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"multicallData\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"multicallAndBuySubscription\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"dataFeedDetails\",\"type\":\"bytes\"}],\"name\":\"registerDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"hashTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signatures\",\"type\":\"bytes[]\"}],\"name\":\"registerHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airseekerRegistry_\",\"type\":\"address\"}],\"name\":\"setAirseekerRegistry\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"hashValue\",\"type\":\"bytes32\"}],\"name\":\"setHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hashType\",\"type\":\"bytes32\"},{\"internalType\":\"address[]\",\"name\":\"signers\",\"type\":\"address[]\"}],\"name\":\"setSigners\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"signatureDelegationHashType\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"name\":\"subscriptionIdToUpdateParameters\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"subscriptions\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"updateParametersHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"endTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"uint224\",\"name\":\"dailyPrice\",\"type\":\"uint224\"},{\"internalType\":\"bytes32\",\"name\":\"nextSubscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"tryMulticallData\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address payable\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"updateParameters\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementAndDapiPricingMerkleData\",\"type\":\"bytes\"}],\"name\":\"tryMulticallAndBuySubscription\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"},{\"internalType\":\"bytes32\",\"name\":\"subscriptionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"templateId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"updateBeaconWithSignedData\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"}],\"name\":\"updateCurrentSubscriptionId\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"sponsorWallet\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"dapiManagementMerkleData\",\"type\":\"bytes\"}],\"name\":\"updateDapiName\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"airnode\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"signedApiUrl\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"signedApiUrlMerkleData\",\"type\":\"bytes\"}],\"name\":\"updateSignedApiUrl\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"The user is strongly recommended to use the API3 Market frontend while interacting with this contract, mostly because doing so successfully requires some amount of knowledge of other API3 contracts. Specifically, Api3MarketV2 requires the data feed for which the subscription is being purchased to be \\\"readied\\\", the correct Merkle proofs to be provided, and enough payment to be made. The API3 Market frontend will fetch the appropriate Merkle proofs, create a multicall transaction that will ready the data feed before making the call to buy the subscription, and compute the amount to be sent that will barely allow the subscription to be purchased. For most users, building such a transaction themselves would be impractical.\",\"errors\":{\"ECDSAInvalidSignature()\":[{\"details\":\"The signature derives the `address(0)`.\"}],\"ECDSAInvalidSignatureLength(uint256)\":[{\"details\":\"The signature has an invalid length.\"}],\"ECDSAInvalidSignatureS(bytes32)\":[{\"details\":\"The signature has an S value that is in the upper half order.\"}],\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}],\"SafeCastOverflowedUintDowncast(uint8,uint256)\":[{\"details\":\"Value doesn't fit in an uint of `bits` size.\"}]},\"kind\":\"dev\",\"methods\":{\"buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"The data feed that the dAPI name will be set to after this function is called must be readied (see `validateDataFeedReadiness()`) before calling this function. Enough funds must be sent to put the sponsor wallet balance over its expected amount after the subscription is bought. Since sponsor wallets send data feed update transactions, it is not possible to determine what their balance will be at the time sent transactions are confirmed. To avoid transactions being reverted as a result of this, consider sending some extra.\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"subscriptionId\":\"Subscription ID\"}},\"cancelSubscriptions(bytes32)\":{\"details\":\"The root of a new dAPI pricing Merkle tree that excludes the dAPI should be registered before canceling the subscriptions. Otherwise, anyone can immediately buy the subscriptions again.\",\"params\":{\"dapiName\":\"dAPI name\"}},\"computeExpectedSponsorWalletBalance(bytes32)\":{\"details\":\"API3 estimates the transaction fee cost of subscriptions, and prices them accordingly. The subscription fees paid for a dAPI are sent to the respective sponsor wallet, which will send the update transactions. In the case that a subscription is overpriced, the extra funds are automatically rolled over as a discount to the next subscription bought for the same dAPI. In the case that a subscription is underpriced, there is a risk of the sponsor wallet running out of funds, resulting in the subscription specs to not be met. To avoid this, API3 should poll this function for all active dAPI names, check the respective sponsor wallet balances, and top up the sponsor wallets as necessary. The conditions that result in the underpricing will most likely require an updated dAPI pricing Merkle root to be published.\",\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"expectedSponsorWalletBalance\":\"Expected sponsor wallet balance\"}},\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to calculate how much the user should pay to purchase a specific subscription. As mentioned in the `buySubscription()` docstring, the user should aim for the sponsor wallet balance to be slightly more than the required amount in case it sends a transaction in the meantime, whose gas cost may decrease the sponsor wallet balance unexpectedly. Unit prices of the queued subscriptions are recorded on a daily basis and the expected balance is computed from these, which introduces a rounding error in the order of Weis. This also applies in practice (in that one can buy a subscription whose price is 1 ETH at 0.999... ETH). This behavior is accepted due to its effect being negligible.\",\"params\":{\"dapiName\":\"dAPI name\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"expectedSponsorWalletBalance\":\"Expected sponsor wallet balance\"}},\"constructor\":{\"details\":\"The maximum subscription queue length should be large enough to not obstruct subscription purchases under usual conditions, and small enough to keep the queue at an iterable size. For example, if the number of unique update parameters in the dAPI pricing Merkle trees that are being used is around 5, a maximum subscription queue length of 10 would be acceptable for a chain with typical gas costs.\",\"params\":{\"api3ReaderProxyV1Factory_\":\"Api3ReaderProxyV1Factory contract address\",\"maximumSubscriptionQueueLength_\":\"Maximum subscription queue length\",\"owner_\":\"Owner address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"details\":\"It is recommended for the users to read data feeds through proxies deployed by Api3ReaderProxyV1Factory, rather than calling the underlying contracts directly. Even though proxy deployment is not a condition for purchasing subscriptions, the interface is implemented here to allow the user to purchase a dAPI subscription and deploy the respective proxy in the same transaction with a multicall.\",\"params\":{\"dapiName\":\"dAPI name\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata associated with the proxy\"},\"returns\":{\"api3ReaderProxyV1\":\"Api3ReaderProxyV1 address\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"getDapiData(bytes32)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to get all data related to a specific dAPI. It returns the entire subscription queue, including the items whose end timestamps are in the past.\",\"params\":{\"dapiName\":\"dAPI name\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dailyPrices\":\"Daily prices of the subscriptions in the queue\",\"dapiTimestamp\":\"dAPI timestamp read from Api3ServerV1\",\"dapiValue\":\"dAPI value read from Api3ServerV1\",\"dataFeedDetails\":\"Data feed details\",\"endTimestamps\":\"End timestamps of the subscriptions in the queue\",\"updateParameters\":\"Update parameters of the subscriptions in the queue\"}},\"getDataFeedData(bytes32)\":{\"details\":\"This function is intended to be used by the API3 Market frontend to determine what needs to be done to ready the data feed to purchase the respective subscription. In the case that the client wants to use this to fetch the respective Beacon readings for an unregistered data feed, they can do a static multicall where the `getDataFeedData()` call is preceded by a `registerDataFeed()` call.\",\"params\":{\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"beaconTimestamps\":\"Beacon timestamps read from Api3ServerV1\",\"beaconValues\":\"Beacon values read from Api3ServerV1\",\"dataFeedDetails\":\"Data feed details\",\"dataFeedTimestamp\":\"Data feed timestamp read from Api3ServerV1\",\"dataFeedValue\":\"Data feed value read from Api3ServerV1\"}},\"getHashValue(bytes32)\":{\"params\":{\"hashType\":\"Hash type\"},\"returns\":{\"hashValue\":\"Hash value\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"This function is for the API3 Market frontend to call `eth_estimateGas` on a single transaction that readies a data feed and buys the respective subscription\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"multicallData\":\"Array of calldata of batched calls\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"subscriptionId\":\"Subscription ID\"}},\"owner()\":{\"returns\":{\"_0\":\"Owner address\"}},\"registerDataFeed(bytes)\":{\"params\":{\"dataFeedDetails\":\"Data feed details\"},\"returns\":{\"dataFeedId\":\"Data feed ID\"}},\"registerHash(bytes32,bytes32,uint256,bytes[])\":{\"params\":{\"hashTimestamp\":\"Hash timestamp\",\"hashType\":\"Hash type\",\"hashValue\":\"Hash value\",\"signatures\":\"Signatures\"}},\"setAirseekerRegistry(address)\":{\"details\":\"There is a circular dependency between an Api3MarketV2 and its respective AirseekerRegistry. In a previous implementation, Api3Market deployed its AirseekerRegistry in its constructor, yet the resulting deployment transaction required too much gas, which ended up being an issue on some chains. Instead, the current deployment flow is for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry to be deployed with another transaction with the Api3MarketV2 address as an argument, and finally, for the Api3MarketV2 owner to set the AirseekerRegister address with a third transaction. Once the AirseekerRegister address is set, it cannot be updated.\",\"params\":{\"airseekerRegistry_\":\"AirseekerRegistry address\"}},\"setHash(bytes32,bytes32)\":{\"params\":{\"hashType\":\"Hash type\",\"hashValue\":\"Hash value\"}},\"setSigners(bytes32,address[])\":{\"params\":{\"hashType\":\"Hash type\",\"signers\":\"Signer addresses\"}},\"signatureDelegationHashType()\":{\"returns\":{\"_0\":\"Signature delegation hash type\"}},\"subscriptionIdToUpdateParameters(bytes32)\":{\"params\":{\"subscriptionId\":\"Subscription ID\"},\"returns\":{\"updateParameters\":\"Update parameters\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"details\":\"This function is for the API3 Market frontend to send a single transaction that readies a data feed and buys the respective subscription. `tryMulticall()` is preferred in the purchase transaction because the readying calls may revert due to race conditions.\",\"params\":{\"dapiManagementAndDapiPricingMerkleData\":\"ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"duration\":\"Subscription duration\",\"price\":\"Subscription price\",\"sponsorWallet\":\"Sponsor wallet address\",\"tryMulticallData\":\"Array of calldata of batched calls\",\"updateParameters\":\"Update parameters\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"subscriptionId\":\"Subscription ID\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Updated Beacon set ID\"}},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"details\":\"The user is intended to make a multicall transaction through the API3 Market frontend to satisfy the required conditions to be able to buy a subscription and buy the subscription in a single transaction. The functions to which external calls must be made to to satisfy said conditions (such as this one) are added to this contract so that they can be multi-called by the user.\",\"params\":{\"airnode\":\"Airnode address\",\"data\":\"Update data (an `int256` encoded in contract ABI)\",\"signature\":\"Template ID, timestamp and the update data signed by the Airnode\",\"templateId\":\"Template ID\",\"timestamp\":\"Signature timestamp\"},\"returns\":{\"beaconId\":\"Updated Beacon ID\"}},\"updateCurrentSubscriptionId(bytes32)\":{\"details\":\"The fact that there is a current subscription that has ended would mean that API3 is providing a service that was not paid for. Therefore, API3 should poll this function for all active dAPI names and call it whenever it is not going to revert to downgrade the specs.\",\"params\":{\"dapiName\":\"dAPI name\"}},\"updateDapiName(bytes32,bytes32,address,bytes)\":{\"details\":\"Buying a dAPI subscription always updates the dAPI name if necessary. However, API3 may also publish new Merkle roots between subscription purchases, in which case API3 should call this function to bring the chain state up to date. Therefore, API3 should poll this function for all active dAPI names and call it whenever it will not revert. Similar to `buySubscription()`, this function requires the data feed that the dAPI will be pointed to to be readied. This function is allowed to be called even when the respective dAPI is not active, which means that a dAPI name being set does not imply that the respective data feed is in service. Users should only use dAPIs for which there is an active subscription with update parameters that satisfy their needs.\",\"params\":{\"dapiManagementMerkleData\":\"ABI-encoded dAPI management Merkle root and proof\",\"dapiName\":\"dAPI name\",\"dataFeedId\":\"Data feed ID\",\"sponsorWallet\":\"Sponsor wallet address\"}},\"updateSignedApiUrl(address,string,bytes)\":{\"details\":\"Unlike the dAPI management and pricing Merkle leaves, the signed API URL Merkle leaves are not registered by the users as a part of subscription purchase transactions. API3 should poll this function for all Airnodes that are used in active dAPIs and call it whenever it will not revert.\",\"params\":{\"airnode\":\"Airnode address\",\"signedApiUrl\":\"Signed API URL\",\"signedApiUrlMerkleData\":\"ABI-encoded signed API URL Merkle root and proof\"}}},\"stateVariables\":{\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE\":{\"details\":\"\\\"Hash type\\\" is what HashRegistry uses to address hashes used for different purposes\"},\"maximumSubscriptionQueueLength\":{\"details\":\"Some functionality in this contract requires to iterate through the entire subscription queue for a dAPI, and the queue length is limited to prevent this process from being bloated. Considering that each item in the subscription queue has unique update parameters, the length of the subscription queue is also limited by the number of unique update parameters offered in the dAPI pricing Merkle tree. For reference, at the time this contract is implemented, the API3 Market offers 4 update parameter options.\"}},\"title\":\"The contract that API3 users interact with using the API3 Market frontend to purchase data feed subscriptions\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"dAPI management Merkle root hash type\"},\"DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"dAPI pricing Merkle root hash type\"},\"MAXIMUM_DAPI_UPDATE_AGE()\":{\"notice\":\"Maximum dAPI update age. This contract cannot be used to set a dAPI name to a data feed that has not been updated in the last `MAXIMUM_DAPI_UPDATE_AGE`.\"},\"SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()\":{\"notice\":\"Signed API URL Merkle root hash type\"},\"airseekerRegistry()\":{\"notice\":\"AirseekerRegistry contract address\"},\"api3ReaderProxyV1Factory()\":{\"notice\":\"Api3ReaderProxyV1Factory contract address\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Buys subscription and updates the current subscription ID if necessary. The user is recommended to interact with this contract over the API3 Market frontend due to its complexity.\"},\"cancelSubscriptions(bytes32)\":{\"notice\":\"Called by the owner to cancel all subscriptions for a dAPI that needs to be decommissioned urgently\"},\"computeExpectedSponsorWalletBalance(bytes32)\":{\"notice\":\"Computes the expected sponsor wallet balance based on the current subscription queue\"},\"computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)\":{\"notice\":\"Computes the expected sponsor wallet balance after the respective subscription is added to the queue\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dapiNameToCurrentSubscriptionId(bytes32)\":{\"notice\":\"dAPI name to current subscription ID, which denotes the start of the subscription queue for the dAPI\"},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"notice\":\"Calls Api3ReaderProxyV1Factory to deterministically deploy an Api3ReaderProxyV1\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"getDapiData(bytes32)\":{\"notice\":\"Gets all data about the dAPI that is available\"},\"getDataFeedData(bytes32)\":{\"notice\":\"Gets all data about the data feed that is available\"},\"getHashValue(bytes32)\":{\"notice\":\"Returns get the hash value for the type\"},\"hashTypeToSignersHash(bytes32)\":{\"notice\":\"Hash type to the hash of the array of signer addresses\"},\"hashes(bytes32)\":{\"notice\":\"Hash type to the last registered value and timestamp\"},\"maximumSubscriptionQueueLength()\":{\"notice\":\"Maximum subscription queue length for a dAPI\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Multi-calls this contract, followed by a call with value to buy the subscription\"},\"owner()\":{\"notice\":\"Returns the owner address\"},\"registerDataFeed(bytes)\":{\"notice\":\"Calls AirseekerRegistry to register the data feed\"},\"registerHash(bytes32,bytes32,uint256,bytes[])\":{\"notice\":\"Registers the hash value and timestamp for the respective type. The hash value cannot be zero. The timestamp must not exceed the block timestamp, yet be larger than the timestamp of the previous registration. The signers must have been set for the hash type, and the signatures must be sorted for the respective signer addresses to be in ascending order. Each signature can either be a standalone signature by the respective signer, or a signature by the signer's delegate, encoded along with the delegation end timestamp and delegation signature.\"},\"renounceOwnership()\":{\"notice\":\"Overriden to be disabled\"},\"setAirseekerRegistry(address)\":{\"notice\":\"Called once by the owner to set the AirseekerRegistry address\"},\"setHash(bytes32,bytes32)\":{\"notice\":\"Called by the owner to set a hash. Overrides previous registrations and is allowed to set the value to `bytes32(0)`.\"},\"setSigners(bytes32,address[])\":{\"notice\":\"Called by the contract owner to set signers for a hash type. The signer addresses must be in ascending order.\"},\"signatureDelegationHashType()\":{\"notice\":\"Returns the signature delegation hash type used in delegation signatures\"},\"subscriptionIdToUpdateParameters(bytes32)\":{\"notice\":\"Subscription ID to update parameters\"},\"subscriptions(bytes32)\":{\"notice\":\"Subscriptions indexed by their IDs\"},\"transferOwnership(address)\":{\"notice\":\"Overriden to be disabled\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)\":{\"notice\":\"Multi-calls this contract in a way that the transaction does not revert if any of the batched calls reverts, followed by a call with value to buy the subscription\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Calls Api3ServerV1 to update the Beacon set using the current values of its Beacons\"},\"updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)\":{\"notice\":\"Calls Api3ServerV1 to update the Beacon using data signed by the Airnode\"},\"updateCurrentSubscriptionId(bytes32)\":{\"notice\":\"If the current subscription has ended, updates it with the one that will end next\"},\"updateDapiName(bytes32,bytes32,address,bytes)\":{\"notice\":\"Updates the dAPI name to match the respective Merkle leaf\"},\"updateSignedApiUrl(address,string,bytes)\":{\"notice\":\"Updates the signed API URL of the Airnode to match the respective Merkle leaf\"}},\"notice\":\"API3 streamlines and protocolizes its integration processes through the API3 Market (https://market.api3.org), which is a data feed subscription marketplace. The Api3MarketV2 contract is the on-chain portion of this system. Api3MarketV2 enables API3 to predetermine the decisions related to its data feed services (such as the curation of data feed sources or subscription prices) and publish them on-chain. This streamlines the intergation flow, as it allows the users to initiate subscriptions immediately, without requiring any two-way communication with API3. Furthermore, this removes the need for API3 to have agents operating in the meatspace gathering order details, quoting prices and reviewing payments, and allows all such operations to be cryptographically secured with a multi-party scheme in an end-to-end manner.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3MarketV2.sol\":\"Api3MarketV2\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/HashRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"./interfaces/IHashRegistry.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MessageHashUtils.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title A contract where a value for each hash type can be registered using\\n/// the signatures of the respective signers that are set by the contract owner\\n/// @notice Hashes are identified by a unique \\\"hash type\\\", which is a `bytes32`\\n/// type that can be determined based on any arbitrary convention. The contract\\n/// owner can set a list of signers for each hash type. For a hash value to be\\n/// registered, its signers must be set by the contract owner, and valid\\n/// signatures by each signer must be provided. The hash values are bundled\\n/// with timestamps that act as nonces, meaning that each registration must\\n/// be with a larger timestamp than the previous. The contract owner can\\n/// override previously registered hashes.\\n/// A signer can sign a delegation message that allows the delegate to sign\\n/// hashes on their behalf across all instances of this contract until the\\n/// specified time. This delegation is irrevocable by design (as revoking\\n/// across all instances would be error-prone). To undo an unwanted delegation,\\n/// the signer must be swapped out by the contract owner until the delegation\\n/// runs out.\\n/// @dev This contract can be used in standalone form to be referred to through\\n/// external calls, or inherited by the contract that will access the\\n/// registered hashes internally.\\n/// HashRegistry is intended for use-cases where signatures and delegations\\n/// need to apply universally across domains, which is why it is blind to the\\n/// domain (unlike ERC-712). However, the inheriting contract can implement the\\n/// type hashes to be domain-specific.\\ncontract HashRegistry is Ownable, IHashRegistry {\\n struct Hash {\\n bytes32 value;\\n uint256 timestamp;\\n }\\n\\n /// @notice Hash type to the last registered value and timestamp\\n mapping(bytes32 => Hash) public override hashes;\\n\\n /// @notice Hash type to the hash of the array of signer addresses\\n mapping(bytes32 => bytes32) public override hashTypeToSignersHash;\\n\\n uint256 private constant ECDSA_SIGNATURE_LENGTH = 65;\\n\\n // Length of abi.encode(uint256, bytes, bytes), where the bytes types are\\n // ECDSA signatures padded to the next largest multiple of 32 bytes, which\\n // is 96\\n uint256 private constant DELEGATED_SIGNATURE_LENGTH =\\n 32 + 32 + 32 + (32 + 96) + (32 + 96);\\n\\n bytes32 private constant HASHREGISTRY_SIGNATURE_DELEGATION_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"HashRegistry signature delegation\\\"));\\n\\n /// @param initialOwner Initial owner address\\n constructor(address initialOwner) Ownable(initialOwner) {}\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner()\\n public\\n view\\n virtual\\n override(Ownable, IOwnable)\\n returns (address)\\n {\\n return super.owner();\\n }\\n\\n /// @notice Called by the owner to renounce the ownership of the contract\\n function renounceOwnership() public virtual override(Ownable, IOwnable) {\\n return super.renounceOwnership();\\n }\\n\\n /// @notice Called by the owner to transfer the ownership of the contract\\n /// @param newOwner New owner address\\n function transferOwnership(\\n address newOwner\\n ) public virtual override(Ownable, IOwnable) {\\n return super.transferOwnership(newOwner);\\n }\\n\\n /// @notice Called by the contract owner to set signers for a hash type.\\n /// The signer addresses must be in ascending order.\\n /// @param hashType Hash type\\n /// @param signers Signer addresses\\n function setSigners(\\n bytes32 hashType,\\n address[] calldata signers\\n ) external override onlyOwner {\\n require(hashType != bytes32(0), \\\"Hash type zero\\\");\\n uint256 signersCount = signers.length;\\n require(signersCount != 0, \\\"Signers empty\\\");\\n require(signers[0] != address(0), \\\"First signer address zero\\\");\\n for (uint256 ind = 1; ind < signersCount; ind++) {\\n require(\\n signers[ind] > signers[ind - 1],\\n \\\"Signers not in ascending order\\\"\\n );\\n }\\n hashTypeToSignersHash[hashType] = keccak256(abi.encodePacked(signers));\\n emit SetSigners(hashType, signers);\\n }\\n\\n /// @notice Called by the owner to set a hash. Overrides previous\\n /// registrations and is allowed to set the value to `bytes32(0)`.\\n /// @param hashType Hash type\\n /// @param hashValue Hash value\\n function setHash(\\n bytes32 hashType,\\n bytes32 hashValue\\n ) external override onlyOwner {\\n hashes[hashType] = Hash({value: hashValue, timestamp: block.timestamp});\\n emit SetHash(hashType, hashValue, block.timestamp);\\n }\\n\\n /// @notice Registers the hash value and timestamp for the respective type.\\n /// The hash value cannot be zero.\\n /// The timestamp must not exceed the block timestamp, yet be larger than\\n /// the timestamp of the previous registration.\\n /// The signers must have been set for the hash type, and the signatures\\n /// must be sorted for the respective signer addresses to be in ascending\\n /// order.\\n /// Each signature can either be a standalone signature by the respective\\n /// signer, or a signature by the signer's delegate, encoded along with\\n /// the delegation end timestamp and delegation signature.\\n /// @param hashType Hash type\\n /// @param hashValue Hash value\\n /// @param hashTimestamp Hash timestamp\\n /// @param signatures Signatures\\n function registerHash(\\n bytes32 hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp,\\n bytes[] calldata signatures\\n ) external override {\\n require(hashValue != bytes32(0), \\\"Hash value zero\\\");\\n require(hashTimestamp <= block.timestamp, \\\"Hash timestamp from future\\\");\\n require(\\n hashTimestamp > hashes[hashType].timestamp,\\n \\\"Hash timestamp not more recent\\\"\\n );\\n bytes32 signersHash = hashTypeToSignersHash[hashType];\\n require(signersHash != bytes32(0), \\\"Signers not set\\\");\\n uint256 signaturesCount = signatures.length;\\n address[] memory signers = new address[](signaturesCount);\\n bytes32 ethSignedMessageHash = MessageHashUtils.toEthSignedMessageHash(\\n keccak256(abi.encodePacked(hashType, hashValue, hashTimestamp))\\n );\\n for (uint256 ind = 0; ind < signaturesCount; ind++) {\\n uint256 signatureLength = signatures[ind].length;\\n if (signatureLength == ECDSA_SIGNATURE_LENGTH) {\\n signers[ind] = ECDSA.recover(\\n ethSignedMessageHash,\\n signatures[ind]\\n );\\n } else if (signatureLength == DELEGATED_SIGNATURE_LENGTH) {\\n (\\n uint256 delegationEndTimestamp,\\n bytes memory delegationSignature,\\n bytes memory hashSignature\\n ) = abi.decode(signatures[ind], (uint256, bytes, bytes));\\n require(\\n block.timestamp < delegationEndTimestamp,\\n \\\"Delegation ended\\\"\\n );\\n signers[ind] = ECDSA.recover(\\n MessageHashUtils.toEthSignedMessageHash(\\n keccak256(\\n abi.encodePacked(\\n signatureDelegationHashType(),\\n ECDSA.recover(\\n ethSignedMessageHash,\\n hashSignature\\n ),\\n delegationEndTimestamp\\n )\\n )\\n ),\\n delegationSignature\\n );\\n } else {\\n revert(\\\"Invalid signature length\\\");\\n }\\n }\\n require(\\n signersHash == keccak256(abi.encodePacked(signers)),\\n \\\"Signature mismatch\\\"\\n );\\n hashes[hashType] = Hash({value: hashValue, timestamp: hashTimestamp});\\n emit RegisteredHash(hashType, hashValue, hashTimestamp);\\n }\\n\\n /// @notice Returns the signature delegation hash type used in delegation\\n /// signatures\\n /// @dev Delegation signatures signed with a signature delegation hash type\\n /// will apply universally across all HashRegistry instances that use that\\n /// same signature delegation hash type. The inheriting contract can\\n /// specify a special signature delegation hash type by overriding this\\n /// function.\\n /// @return Signature delegation hash type\\n function signatureDelegationHashType()\\n public\\n view\\n virtual\\n override\\n returns (bytes32)\\n {\\n return HASHREGISTRY_SIGNATURE_DELEGATION_HASH_TYPE;\\n }\\n\\n /// @notice Returns get the hash value for the type\\n /// @param hashType Hash type\\n /// @return hashValue Hash value\\n function getHashValue(\\n bytes32 hashType\\n ) external view override returns (bytes32 hashValue) {\\n hashValue = hashes[hashType].value;\\n }\\n}\\n\",\"keccak256\":\"0x12a3386f644896f1711d0100004ac329fc5089f8faee75ad5f05fea5da2c8dcc\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/access/interfaces/IHashRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IOwnable.sol\\\";\\n\\ninterface IHashRegistry is IOwnable {\\n event SetSigners(bytes32 indexed hashType, address[] signers);\\n\\n event SetHash(\\n bytes32 indexed hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp\\n );\\n\\n event RegisteredHash(\\n bytes32 indexed hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp\\n );\\n\\n function setSigners(bytes32 hashType, address[] calldata signers) external;\\n\\n function setHash(bytes32 hashType, bytes32 hashValue) external;\\n\\n function registerHash(\\n bytes32 hashType,\\n bytes32 hashValue,\\n uint256 hashTimestamp,\\n bytes[] calldata signatures\\n ) external;\\n\\n function signatureDelegationHashType() external view returns (bytes32);\\n\\n function getHashValue(\\n bytes32 hashType\\n ) external view returns (bytes32 hashValue);\\n\\n function hashes(\\n bytes32 hashType\\n ) external view returns (bytes32 hashValue, uint256 hashTimestamp);\\n\\n function hashTypeToSignersHash(\\n bytes32 hashType\\n ) external view returns (bytes32 signersHash);\\n}\\n\",\"keccak256\":\"0x07bf00948add53f8b96929f13a4ce6227c954c886c7c9c809e4eefc7644147ab\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0x7fdae1b6079bd51604f096a075a9abf4eacba5d332319b38cbeb1cca0c1745f6\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3MarketV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../access/HashRegistry.sol\\\";\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./interfaces/IApi3MarketV2.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/math/SafeCast.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MerkleProof.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtension.sol\\\";\\nimport \\\"./proxies/interfaces/IApi3ReaderProxyV1Factory.sol\\\";\\nimport \\\"./interfaces/IAirseekerRegistry.sol\\\";\\n\\n/// @title The contract that API3 users interact with using the API3 Market\\n/// frontend to purchase data feed subscriptions\\n/// @notice API3 streamlines and protocolizes its integration processes through\\n/// the API3 Market (https://market.api3.org), which is a data feed\\n/// subscription marketplace. The Api3MarketV2 contract is the on-chain portion\\n/// of this system.\\n/// Api3MarketV2 enables API3 to predetermine the decisions related to its data\\n/// feed services (such as the curation of data feed sources or subscription\\n/// prices) and publish them on-chain. This streamlines the intergation flow,\\n/// as it allows the users to initiate subscriptions immediately, without\\n/// requiring any two-way communication with API3. Furthermore, this removes\\n/// the need for API3 to have agents operating in the meatspace gathering order\\n/// details, quoting prices and reviewing payments, and allows all such\\n/// operations to be cryptographically secured with a multi-party scheme in an\\n/// end-to-end manner.\\n/// @dev The user is strongly recommended to use the API3 Market frontend while\\n/// interacting with this contract, mostly because doing so successfully\\n/// requires some amount of knowledge of other API3 contracts. Specifically,\\n/// Api3MarketV2 requires the data feed for which the subscription is being\\n/// purchased to be \\\"readied\\\", the correct Merkle proofs to be provided, and\\n/// enough payment to be made. The API3 Market frontend will fetch the\\n/// appropriate Merkle proofs, create a multicall transaction that will ready\\n/// the data feed before making the call to buy the subscription, and compute\\n/// the amount to be sent that will barely allow the subscription to be\\n/// purchased. For most users, building such a transaction themselves would be\\n/// impractical.\\ncontract Api3MarketV2 is HashRegistry, ExtendedSelfMulticall, IApi3MarketV2 {\\n enum UpdateParametersComparisonResult {\\n EqualToQueued,\\n BetterThanQueued,\\n WorseThanQueued\\n }\\n\\n // The update parameters for each subscription is kept in a hash map rather\\n // than in full form as an optimization. Refer to AirseekerRegistry for a\\n // similar scheme.\\n // The subscription queues are kept as linked lists, for which each\\n // subscription has a next subscription ID field.\\n struct Subscription {\\n bytes32 updateParametersHash;\\n uint32 endTimestamp;\\n uint224 dailyPrice;\\n bytes32 nextSubscriptionId;\\n }\\n\\n /// @notice dAPI management Merkle root hash type\\n /// @dev \\\"Hash type\\\" is what HashRegistry uses to address hashes used for\\n /// different purposes\\n bytes32 public constant override DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"dAPI management Merkle root\\\"));\\n\\n /// @notice dAPI pricing Merkle root hash type\\n bytes32 public constant override DAPI_PRICING_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"dAPI pricing Merkle root\\\"));\\n\\n /// @notice Signed API URL Merkle root hash type\\n bytes32 public constant override SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"Signed API URL Merkle root\\\"));\\n\\n /// @notice Maximum dAPI update age. This contract cannot be used to set a\\n /// dAPI name to a data feed that has not been updated in the last\\n /// `MAXIMUM_DAPI_UPDATE_AGE`.\\n uint256 public constant override MAXIMUM_DAPI_UPDATE_AGE = 1 days;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Api3ReaderProxyV1Factory contract address\\n address public immutable override api3ReaderProxyV1Factory;\\n\\n /// @notice AirseekerRegistry contract address\\n address public override airseekerRegistry;\\n\\n /// @notice Maximum subscription queue length for a dAPI\\n /// @dev Some functionality in this contract requires to iterate through\\n /// the entire subscription queue for a dAPI, and the queue length is\\n /// limited to prevent this process from being bloated. Considering that\\n /// each item in the subscription queue has unique update parameters, the\\n /// length of the subscription queue is also limited by the number of\\n /// unique update parameters offered in the dAPI pricing Merkle tree. For\\n /// reference, at the time this contract is implemented, the API3 Market\\n /// offers 4 update parameter options.\\n uint256 public immutable override maximumSubscriptionQueueLength;\\n\\n /// @notice Subscriptions indexed by their IDs\\n mapping(bytes32 => Subscription) public override subscriptions;\\n\\n /// @notice dAPI name to current subscription ID, which denotes the start\\n /// of the subscription queue for the dAPI\\n mapping(bytes32 => bytes32) public override dapiNameToCurrentSubscriptionId;\\n\\n // Update parameters hash map\\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(uint256, int224, uint256)\\n uint256 private constant UPDATE_PARAMETERS_LENGTH = 32 + 32 + 32;\\n\\n bytes32 private constant API3MARKETV2_SIGNATURE_DELEGATION_HASH_TYPE =\\n keccak256(abi.encodePacked(\\\"Api3MarketV2 signature delegation\\\"));\\n\\n /// @dev The maximum subscription queue length should be large enough to\\n /// not obstruct subscription purchases under usual conditions, and small\\n /// enough to keep the queue at an iterable size. For example, if the\\n /// number of unique update parameters in the dAPI pricing Merkle trees\\n /// that are being used is around 5, a maximum subscription queue length of\\n /// 10 would be acceptable for a chain with typical gas costs.\\n /// @param owner_ Owner address\\n /// @param api3ReaderProxyV1Factory_ Api3ReaderProxyV1Factory contract\\n /// address\\n /// @param maximumSubscriptionQueueLength_ Maximum subscription queue\\n /// length\\n constructor(\\n address owner_,\\n address api3ReaderProxyV1Factory_,\\n uint256 maximumSubscriptionQueueLength_\\n ) HashRegistry(owner_) {\\n require(\\n maximumSubscriptionQueueLength_ != 0,\\n \\\"Maximum queue length zero\\\"\\n );\\n api3ReaderProxyV1Factory = api3ReaderProxyV1Factory_;\\n api3ServerV1 = IApi3ServerV1OevExtension(\\n IApi3ReaderProxyV1Factory(api3ReaderProxyV1Factory_)\\n .api3ServerV1OevExtension()\\n ).api3ServerV1();\\n maximumSubscriptionQueueLength = maximumSubscriptionQueueLength_;\\n }\\n\\n /// @notice Returns the owner address\\n /// @return Owner address\\n function owner()\\n public\\n view\\n override(HashRegistry, IOwnable)\\n returns (address)\\n {\\n return super.owner();\\n }\\n\\n /// @notice Overriden to be disabled\\n function renounceOwnership() public pure override(HashRegistry, IOwnable) {\\n revert(\\\"Ownership cannot be renounced\\\");\\n }\\n\\n /// @notice Overriden to be disabled\\n function transferOwnership(\\n address\\n ) public pure override(HashRegistry, IOwnable) {\\n revert(\\\"Ownership cannot be transferred\\\");\\n }\\n\\n /// @notice Called once by the owner to set the AirseekerRegistry address\\n /// @dev There is a circular dependency between an Api3MarketV2 and its\\n /// respective AirseekerRegistry. In a previous implementation,\\n /// Api3Market deployed its AirseekerRegistry in its constructor, yet the\\n /// resulting deployment transaction required too much gas, which ended up\\n /// being an issue on some chains. Instead, the current deployment flow is\\n /// for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry\\n /// to be deployed with another transaction with the Api3MarketV2 address\\n /// as an argument, and finally, for the Api3MarketV2 owner to set the\\n /// AirseekerRegister address with a third transaction.\\n /// Once the AirseekerRegister address is set, it cannot be updated.\\n /// @param airseekerRegistry_ AirseekerRegistry address\\n function setAirseekerRegistry(\\n address airseekerRegistry_\\n ) external override onlyOwner {\\n require(\\n airseekerRegistry_ != address(0),\\n \\\"AirseekerRegistry address zero\\\"\\n );\\n require(\\n airseekerRegistry == address(0),\\n \\\"AirseekerRegistry already set\\\"\\n );\\n // The following check does not guarantee that `airseekerRegistry_`\\n // belongs to a valid AirseekerRegistry instance. The Api3MarketV2\\n // owner is responsible with verifying that it is before calling this\\n // function.\\n require(\\n IAirseekerRegistry(airseekerRegistry_).owner() == address(this),\\n \\\"Not AirseekerRegistry owner\\\"\\n );\\n airseekerRegistry = airseekerRegistry_;\\n emit SetAirseekerRegistry(airseekerRegistry_);\\n }\\n\\n /// @notice Buys subscription and updates the current subscription ID if\\n /// necessary. The user is recommended to interact with this contract over\\n /// the API3 Market frontend due to its complexity.\\n /// @dev The data feed that the dAPI name will be set to after this\\n /// function is called must be readied (see `validateDataFeedReadiness()`)\\n /// before calling this function.\\n /// Enough funds must be sent to put the sponsor wallet balance over its\\n /// expected amount after the subscription is bought. Since sponsor wallets\\n /// send data feed update transactions, it is not possible to determine\\n /// what their balance will be at the time sent transactions are confirmed.\\n /// To avoid transactions being reverted as a result of this, consider\\n /// sending some extra.\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return subscriptionId Subscription ID\\n function buySubscription(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) public payable override returns (bytes32 subscriptionId) {\\n require(dataFeedId != bytes32(0), \\\"Data feed ID zero\\\");\\n require(sponsorWallet != address(0), \\\"Sponsor wallet address zero\\\");\\n verifyDapiManagementAndDapiPricingMerkleProofs(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n subscriptionId = addSubscriptionToQueue(\\n dapiName,\\n dataFeedId,\\n updateParameters,\\n duration,\\n price\\n );\\n require(\\n sponsorWallet.balance + msg.value >=\\n computeExpectedSponsorWalletBalance(dapiName),\\n \\\"Insufficient payment\\\"\\n );\\n emit BoughtSubscription(\\n dapiName,\\n subscriptionId,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n msg.value\\n );\\n if (msg.value > 0) {\\n (bool success, ) = sponsorWallet.call{value: msg.value}(\\\"\\\");\\n require(success, \\\"Transfer unsuccessful\\\");\\n }\\n }\\n\\n /// @notice Called by the owner to cancel all subscriptions for a dAPI\\n /// that needs to be decommissioned urgently\\n /// @dev The root of a new dAPI pricing Merkle tree that excludes the dAPI\\n /// should be registered before canceling the subscriptions. Otherwise,\\n /// anyone can immediately buy the subscriptions again.\\n /// @param dapiName dAPI name\\n function cancelSubscriptions(bytes32 dapiName) external override onlyOwner {\\n require(\\n dapiNameToCurrentSubscriptionId[dapiName] != bytes32(0),\\n \\\"Subscription queue empty\\\"\\n );\\n dapiNameToCurrentSubscriptionId[dapiName] = bytes32(0);\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeDeactivated(\\n dapiName\\n );\\n emit CanceledSubscriptions(dapiName);\\n }\\n\\n /// @notice If the current subscription has ended, updates it with the one\\n /// that will end next\\n /// @dev The fact that there is a current subscription that has ended would\\n /// mean that API3 is providing a service that was not paid for. Therefore,\\n /// API3 should poll this function for all active dAPI names and call it\\n /// whenever it is not going to revert to downgrade the specs.\\n /// @param dapiName dAPI name\\n function updateCurrentSubscriptionId(bytes32 dapiName) public override {\\n bytes32 currentSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n require(\\n currentSubscriptionId != bytes32(0),\\n \\\"Subscription queue empty\\\"\\n );\\n require(\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp,\\n \\\"Current subscription not ended\\\"\\n );\\n updateEndedCurrentSubscriptionId(dapiName, currentSubscriptionId);\\n }\\n\\n /// @notice Updates the dAPI name to match the respective Merkle leaf\\n /// @dev Buying a dAPI subscription always updates the dAPI name if\\n /// necessary. However, API3 may also publish new Merkle roots between\\n /// subscription purchases, in which case API3 should call this function to\\n /// bring the chain state up to date. Therefore, API3 should poll this\\n /// function for all active dAPI names and call it whenever it will not\\n /// revert.\\n /// Similar to `buySubscription()`, this function requires the data feed\\n /// that the dAPI will be pointed to to be readied.\\n /// This function is allowed to be called even when the respective dAPI is\\n /// not active, which means that a dAPI name being set does not imply that\\n /// the respective data feed is in service. Users should only use dAPIs for\\n /// which there is an active subscription with update parameters that\\n /// satisfy their needs.\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param dapiManagementMerkleData ABI-encoded dAPI management Merkle root\\n /// and proof\\n function updateDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) external override {\\n if (dataFeedId != bytes32(0)) {\\n require(sponsorWallet != address(0), \\\"Sponsor wallet address zero\\\");\\n } else {\\n require(\\n sponsorWallet == address(0),\\n \\\"Sponsor wallet address not zero\\\"\\n );\\n }\\n verifyDapiManagementMerkleProof(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n dapiManagementMerkleData\\n );\\n bytes32 currentDataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(keccak256(abi.encodePacked(dapiName)));\\n require(currentDataFeedId != dataFeedId, \\\"Does not update dAPI name\\\");\\n if (dataFeedId != bytes32(0)) {\\n validateDataFeedReadiness(dataFeedId);\\n }\\n IApi3ServerV1(api3ServerV1).setDapiName(dapiName, dataFeedId);\\n }\\n\\n /// @notice Updates the signed API URL of the Airnode to match the\\n /// respective Merkle leaf\\n /// @dev Unlike the dAPI management and pricing Merkle leaves, the signed\\n /// API URL Merkle leaves are not registered by the users as a part of\\n /// subscription purchase transactions. API3 should poll this function for\\n /// all Airnodes that are used in active dAPIs and call it whenever it will\\n /// not revert.\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n /// @param signedApiUrlMerkleData ABI-encoded signed API URL Merkle root\\n /// and proof\\n function updateSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) external override {\\n verifySignedApiUrlMerkleProof(\\n airnode,\\n signedApiUrl,\\n signedApiUrlMerkleData\\n );\\n require(\\n keccak256(abi.encodePacked(signedApiUrl)) !=\\n keccak256(\\n abi.encodePacked(\\n IAirseekerRegistry(airseekerRegistry)\\n .airnodeToSignedApiUrl(airnode)\\n )\\n ),\\n \\\"Does not update signed API URL\\\"\\n );\\n IAirseekerRegistry(airseekerRegistry).setSignedApiUrl(\\n airnode,\\n signedApiUrl\\n );\\n }\\n\\n /// @notice Multi-calls this contract, followed by a call with value to buy\\n /// the subscription\\n /// @dev This function is for the API3 Market frontend to call\\n /// `eth_estimateGas` on a single transaction that readies a data feed and\\n /// buys the respective subscription\\n /// @param multicallData Array of calldata of batched calls\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return returndata Array of returndata of batched calls\\n /// @return subscriptionId Subscription ID\\n function multicallAndBuySubscription(\\n bytes[] calldata multicallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n override\\n returns (bytes[] memory returndata, bytes32 subscriptionId)\\n {\\n returndata = this.multicall(multicallData);\\n subscriptionId = buySubscription(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n }\\n\\n /// @notice Multi-calls this contract in a way that the transaction does\\n /// not revert if any of the batched calls reverts, followed by a call with\\n /// value to buy the subscription\\n /// @dev This function is for the API3 Market frontend to send a single\\n /// transaction that readies a data feed and buys the respective\\n /// subscription. `tryMulticall()` is preferred in the purchase transaction\\n /// because the readying calls may revert due to race conditions.\\n /// @param tryMulticallData Array of calldata of batched calls\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @param dapiManagementAndDapiPricingMerkleData ABI-encoded dAPI\\n /// management and dAPI pricing Merkle roots and proofs\\n /// @return successes Array of success conditions of batched calls\\n /// @return returndata Array of returndata of batched calls\\n /// @return subscriptionId Subscription ID\\n function tryMulticallAndBuySubscription(\\n bytes[] calldata tryMulticallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n override\\n returns (\\n bool[] memory successes,\\n bytes[] memory returndata,\\n bytes32 subscriptionId\\n )\\n {\\n (successes, returndata) = this.tryMulticall(tryMulticallData);\\n subscriptionId = buySubscription(\\n dapiName,\\n dataFeedId,\\n sponsorWallet,\\n updateParameters,\\n duration,\\n price,\\n dapiManagementAndDapiPricingMerkleData\\n );\\n }\\n\\n /// @notice Calls Api3ServerV1 to update the Beacon using data signed by\\n /// the Airnode\\n /// @dev The user is intended to make a multicall transaction through the\\n /// API3 Market frontend to satisfy the required conditions to be able to\\n /// buy a subscription and buy the subscription in a single transaction.\\n /// The functions to which external calls must be made to to satisfy said\\n /// conditions (such as this one) are added to this contract so that they\\n /// can be multi-called by the user.\\n /// @param airnode Airnode address\\n /// @param templateId Template ID\\n /// @param timestamp Signature timestamp\\n /// @param data Update data (an `int256` encoded in contract ABI)\\n /// @param signature Template ID, timestamp and the update data signed by\\n /// the Airnode\\n /// @return beaconId Updated Beacon ID\\n function updateBeaconWithSignedData(\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes calldata data,\\n bytes calldata signature\\n ) external override returns (bytes32 beaconId) {\\n return\\n IApi3ServerV1(api3ServerV1).updateBeaconWithSignedData(\\n airnode,\\n templateId,\\n timestamp,\\n data,\\n signature\\n );\\n }\\n\\n /// @notice Calls Api3ServerV1 to update the Beacon set using the current\\n /// values of its Beacons\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Updated Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] calldata beaconIds\\n ) external override returns (bytes32 beaconSetId) {\\n return\\n IApi3ServerV1(api3ServerV1).updateBeaconSetWithBeacons(beaconIds);\\n }\\n\\n /// @notice Calls Api3ReaderProxyV1Factory to deterministically deploy an\\n /// Api3ReaderProxyV1\\n /// @dev It is recommended for the users to read data feeds through proxies\\n /// deployed by Api3ReaderProxyV1Factory, rather than calling the\\n /// underlying contracts directly.\\n /// Even though proxy deployment is not a condition for purchasing\\n /// subscriptions, the interface is implemented here to allow the user to\\n /// purchase a dAPI subscription and deploy the respective proxy in the\\n /// same transaction with a multicall.\\n /// @param dapiName dAPI name\\n /// @param dappId dApp ID\\n /// @param metadata Metadata associated with the proxy\\n /// @return api3ReaderProxyV1 Api3ReaderProxyV1 address\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external override returns (address api3ReaderProxyV1) {\\n api3ReaderProxyV1 = IApi3ReaderProxyV1Factory(api3ReaderProxyV1Factory)\\n .deployApi3ReaderProxyV1(dapiName, dappId, metadata);\\n }\\n\\n /// @notice Calls AirseekerRegistry to register the data feed\\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 dataFeedId = IAirseekerRegistry(airseekerRegistry).registerDataFeed(\\n dataFeedDetails\\n );\\n }\\n\\n /// @notice Computes the expected sponsor wallet balance based on the\\n /// current subscription queue\\n /// @dev API3 estimates the transaction fee cost of subscriptions, and\\n /// prices them accordingly. The subscription fees paid for a dAPI are sent\\n /// to the respective sponsor wallet, which will send the update\\n /// transactions. In the case that a subscription is overpriced, the extra\\n /// funds are automatically rolled over as a discount to the next\\n /// subscription bought for the same dAPI. In the case that a subscription\\n /// is underpriced, there is a risk of the sponsor wallet running out of\\n /// funds, resulting in the subscription specs to not be met. To avoid\\n /// this, API3 should poll this function for all active dAPI names, check\\n /// the respective sponsor wallet balances, and top up the sponsor wallets\\n /// as necessary. The conditions that result in the underpricing will most\\n /// likely require an updated dAPI pricing Merkle root to be published.\\n /// @param dapiName dAPI name\\n /// @return expectedSponsorWalletBalance Expected sponsor wallet balance\\n function computeExpectedSponsorWalletBalance(\\n bytes32 dapiName\\n ) public view override returns (uint256 expectedSponsorWalletBalance) {\\n uint32 startTimestamp = SafeCast.toUint32(block.timestamp);\\n Subscription storage queuedSubscription;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = queuedSubscription.nextSubscriptionId\\n ) {\\n queuedSubscription = subscriptions[queuedSubscriptionId];\\n uint32 endTimestamp = queuedSubscription.endTimestamp;\\n if (endTimestamp > block.timestamp) {\\n expectedSponsorWalletBalance +=\\n ((endTimestamp - startTimestamp) *\\n queuedSubscription.dailyPrice) /\\n 1 days;\\n startTimestamp = endTimestamp;\\n }\\n }\\n }\\n\\n /// @notice Computes the expected sponsor wallet balance after the\\n /// respective subscription is added to the queue\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to calculate how much the user should pay to purchase a specific\\n /// subscription. As mentioned in the `buySubscription()` docstring, the\\n /// user should aim for the sponsor wallet balance to be slightly more than\\n /// the required amount in case it sends a transaction in the meantime,\\n /// whose gas cost may decrease the sponsor wallet balance unexpectedly.\\n /// Unit prices of the queued subscriptions are recorded on a daily basis\\n /// and the expected balance is computed from these, which introduces a\\n /// rounding error in the order of Weis. This also applies in practice (in\\n /// that one can buy a subscription whose price is 1 ETH at 0.999... ETH).\\n /// This behavior is accepted due to its effect being negligible.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n /// @return expectedSponsorWalletBalance Expected sponsor wallet balance\\n function computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) external view override returns (uint256 expectedSponsorWalletBalance) {\\n require(\\n updateParameters.length == UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters length invalid\\\"\\n );\\n (\\n bytes32 subscriptionId,\\n uint32 endTimestamp,\\n bytes32 previousSubscriptionId,\\n bytes32 nextSubscriptionId\\n ) = prospectSubscriptionPositionInQueue(\\n dapiName,\\n updateParameters,\\n duration\\n );\\n uint256 dailyPrice = (price * 1 days) / duration;\\n uint32 startTimestamp = SafeCast.toUint32(block.timestamp);\\n bytes32 queuedSubscriptionId = previousSubscriptionId == bytes32(0)\\n ? subscriptionId\\n : dapiNameToCurrentSubscriptionId[dapiName];\\n for (; queuedSubscriptionId != bytes32(0); ) {\\n if (queuedSubscriptionId == subscriptionId) {\\n expectedSponsorWalletBalance +=\\n ((endTimestamp - startTimestamp) * dailyPrice) /\\n 1 days;\\n startTimestamp = endTimestamp;\\n queuedSubscriptionId = nextSubscriptionId;\\n } else {\\n Subscription storage queuedSubscription = subscriptions[\\n queuedSubscriptionId\\n ];\\n uint32 queuedSubscriptionEndTimestamp = queuedSubscription\\n .endTimestamp;\\n if (queuedSubscriptionEndTimestamp > block.timestamp) {\\n expectedSponsorWalletBalance +=\\n ((queuedSubscriptionEndTimestamp - startTimestamp) *\\n queuedSubscription.dailyPrice) /\\n 1 days;\\n startTimestamp = queuedSubscriptionEndTimestamp;\\n }\\n if (previousSubscriptionId == queuedSubscriptionId) {\\n queuedSubscriptionId = subscriptionId;\\n } else {\\n queuedSubscriptionId = queuedSubscription\\n .nextSubscriptionId;\\n }\\n }\\n }\\n }\\n\\n /// @notice Gets all data about the dAPI that is available\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to get all data related to a specific dAPI. It returns the entire\\n /// subscription queue, including the items whose end timestamps are in the\\n /// past.\\n /// @param dapiName dAPI name\\n /// @return dataFeedDetails Data feed details\\n /// @return dapiValue dAPI value read from Api3ServerV1\\n /// @return dapiTimestamp dAPI 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 of the subscriptions in the\\n /// queue\\n /// @return endTimestamps End timestamps of the subscriptions in the queue\\n /// @return dailyPrices Daily prices of the subscriptions in the queue\\n function getDapiData(\\n bytes32 dapiName\\n )\\n external\\n view\\n override\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dapiValue,\\n uint32 dapiTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes[] memory updateParameters,\\n uint32[] memory endTimestamps,\\n uint224[] memory dailyPrices\\n )\\n {\\n bytes32 currentDataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(keccak256(abi.encodePacked(dapiName)));\\n (\\n dataFeedDetails,\\n dapiValue,\\n dapiTimestamp,\\n beaconValues,\\n beaconTimestamps\\n ) = getDataFeedData(currentDataFeedId);\\n uint256 queueLength = 0;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = subscriptions[queuedSubscriptionId]\\n .nextSubscriptionId\\n ) {\\n queueLength++;\\n }\\n updateParameters = new bytes[](queueLength);\\n endTimestamps = new uint32[](queueLength);\\n dailyPrices = new uint224[](queueLength);\\n Subscription storage queuedSubscription = subscriptions[\\n dapiNameToCurrentSubscriptionId[dapiName]\\n ];\\n for (uint256 ind = 0; ind < queueLength; ind++) {\\n updateParameters[ind] = updateParametersHashToValue[\\n queuedSubscription.updateParametersHash\\n ];\\n endTimestamps[ind] = queuedSubscription.endTimestamp;\\n dailyPrices[ind] = queuedSubscription.dailyPrice;\\n queuedSubscription = subscriptions[\\n queuedSubscription.nextSubscriptionId\\n ];\\n }\\n }\\n\\n /// @notice Gets all data about the data feed that is available\\n /// @dev This function is intended to be used by the API3 Market frontend\\n /// to determine what needs to be done to ready the data feed to purchase\\n /// the respective subscription.\\n /// In the case that the client wants to use this to fetch the respective\\n /// Beacon readings for an unregistered data feed, they can do a static\\n /// multicall where the `getDataFeedData()` call is preceded by a\\n /// `registerDataFeed()` call.\\n /// @param dataFeedId 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 function getDataFeedData(\\n bytes32 dataFeedId\\n )\\n public\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps\\n )\\n {\\n dataFeedDetails = IAirseekerRegistry(airseekerRegistry)\\n .dataFeedIdToDetails(dataFeedId);\\n (dataFeedValue, dataFeedTimestamp) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(dataFeedId);\\n if (\\n dataFeedDetails.length == DATA_FEED_DETAILS_LENGTH_FOR_SINGLE_BEACON\\n ) {\\n beaconValues = new int224[](1);\\n beaconTimestamps = new uint32[](1);\\n (address airnode, bytes32 templateId) = abi.decode(\\n dataFeedDetails,\\n (address, bytes32)\\n );\\n (beaconValues[0], beaconTimestamps[0]) = IApi3ServerV1(api3ServerV1)\\n .dataFeeds(deriveBeaconId(airnode, templateId));\\n } else if (dataFeedDetails.length != 0) {\\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 for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (beaconValues[ind], beaconTimestamps[ind]) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(deriveBeaconId(airnodes[ind], templateIds[ind]));\\n }\\n }\\n }\\n\\n /// @notice Subscription ID to update parameters\\n /// @param subscriptionId Subscription ID\\n /// @return updateParameters Update parameters\\n function subscriptionIdToUpdateParameters(\\n bytes32 subscriptionId\\n ) public view override returns (bytes memory updateParameters) {\\n updateParameters = updateParametersHashToValue[\\n subscriptions[subscriptionId].updateParametersHash\\n ];\\n }\\n\\n /// @notice Returns the signature delegation hash type used in delegation\\n /// signatures\\n /// @return Signature delegation hash type\\n function signatureDelegationHashType()\\n public\\n view\\n virtual\\n override(HashRegistry, IHashRegistry)\\n returns (bytes32)\\n {\\n return API3MARKETV2_SIGNATURE_DELEGATION_HASH_TYPE;\\n }\\n\\n /// @notice Adds the subscription to the queue if applicable\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @param price Subscription price\\n function addSubscriptionToQueue(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) internal returns (bytes32 subscriptionId) {\\n uint32 endTimestamp;\\n bytes32 previousSubscriptionId;\\n bytes32 nextSubscriptionId;\\n (\\n subscriptionId,\\n endTimestamp,\\n previousSubscriptionId,\\n nextSubscriptionId\\n ) = prospectSubscriptionPositionInQueue(\\n dapiName,\\n updateParameters,\\n duration\\n );\\n bytes32 updateParametersHash = keccak256(updateParameters);\\n if (updateParametersHashToValue[updateParametersHash].length == 0) {\\n updateParametersHashToValue[\\n updateParametersHash\\n ] = updateParameters;\\n }\\n subscriptions[subscriptionId] = Subscription({\\n updateParametersHash: updateParametersHash,\\n endTimestamp: endTimestamp,\\n dailyPrice: SafeCast.toUint224((price * 1 days) / duration),\\n nextSubscriptionId: nextSubscriptionId\\n });\\n if (previousSubscriptionId == bytes32(0)) {\\n if (subscriptionId != dapiNameToCurrentSubscriptionId[dapiName]) {\\n emit UpdatedCurrentSubscriptionId(dapiName, subscriptionId);\\n dapiNameToCurrentSubscriptionId[dapiName] = subscriptionId;\\n }\\n IAirseekerRegistry(airseekerRegistry).setDapiNameUpdateParameters(\\n dapiName,\\n updateParameters\\n );\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeActivated(\\n dapiName\\n );\\n } else {\\n subscriptions[previousSubscriptionId]\\n .nextSubscriptionId = subscriptionId;\\n bytes32 currentSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n if (\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp\\n ) {\\n updateEndedCurrentSubscriptionId(\\n dapiName,\\n currentSubscriptionId\\n );\\n }\\n }\\n validateDataFeedReadiness(dataFeedId);\\n if (\\n IApi3ServerV1(api3ServerV1).dapiNameHashToDataFeedId(\\n keccak256(abi.encodePacked(dapiName))\\n ) != dataFeedId\\n ) {\\n IApi3ServerV1(api3ServerV1).setDapiName(dapiName, dataFeedId);\\n }\\n }\\n\\n /// @notice Updates the current subscription that has ended with the one\\n /// that will end next\\n /// @param dapiName dAPI name\\n /// @param currentSubscriptionId Current subscription ID\\n function updateEndedCurrentSubscriptionId(\\n bytes32 dapiName,\\n bytes32 currentSubscriptionId\\n ) private {\\n do {\\n currentSubscriptionId = subscriptions[currentSubscriptionId]\\n .nextSubscriptionId;\\n } while (\\n currentSubscriptionId != bytes32(0) &&\\n subscriptions[currentSubscriptionId].endTimestamp <=\\n block.timestamp\\n );\\n emit UpdatedCurrentSubscriptionId(dapiName, currentSubscriptionId);\\n dapiNameToCurrentSubscriptionId[dapiName] = currentSubscriptionId;\\n if (currentSubscriptionId == bytes32(0)) {\\n IAirseekerRegistry(airseekerRegistry).setDapiNameToBeDeactivated(\\n dapiName\\n );\\n } else {\\n IAirseekerRegistry(airseekerRegistry).setDapiNameUpdateParameters(\\n dapiName,\\n subscriptionIdToUpdateParameters(currentSubscriptionId)\\n );\\n }\\n }\\n\\n /// @notice Prospects the subscription position in the queue. It iterates\\n /// through the entire subscription queue, which is implemented as a linked\\n /// list, and returns the previous and next nodes of the subscription to be\\n /// added.\\n /// It reverts if no suitable position can be found, which would be because\\n /// the addition of the subscription to the queue does not upgrade its\\n /// specs unambiguously or the addition of it results in the maximum queue\\n /// length to be exceeded.\\n /// @param dapiName dAPI name\\n /// @param updateParameters Update parameters\\n /// @param duration Subscription duration\\n /// @return subscriptionId Subscription ID\\n /// @return endTimestamp End timestamp\\n /// @return previousSubscriptionId Previous subscription ID\\n /// @return nextSubscriptionId Next subscription ID\\n function prospectSubscriptionPositionInQueue(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration\\n )\\n private\\n view\\n returns (\\n bytes32 subscriptionId,\\n uint32 endTimestamp,\\n bytes32 previousSubscriptionId,\\n bytes32 nextSubscriptionId\\n )\\n {\\n subscriptionId = keccak256(\\n abi.encodePacked(dapiName, keccak256(updateParameters))\\n );\\n endTimestamp = SafeCast.toUint32(block.timestamp + duration);\\n (\\n uint256 deviationThresholdInPercentage,\\n int224 deviationReference,\\n uint256 heartbeatInterval\\n ) = abi.decode(updateParameters, (uint256, int224, uint256));\\n uint256 newQueueLength = 0;\\n Subscription storage queuedSubscription;\\n for (\\n bytes32 queuedSubscriptionId = dapiNameToCurrentSubscriptionId[\\n dapiName\\n ];\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = queuedSubscription.nextSubscriptionId\\n ) {\\n queuedSubscription = subscriptions[queuedSubscriptionId];\\n UpdateParametersComparisonResult updateParametersComparisonResult = compareUpdateParametersWithQueued(\\n deviationThresholdInPercentage,\\n deviationReference,\\n heartbeatInterval,\\n queuedSubscription.updateParametersHash\\n );\\n uint32 queuedSubscriptionEndTimestamp = queuedSubscription\\n .endTimestamp;\\n require(\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.BetterThanQueued ||\\n endTimestamp > queuedSubscriptionEndTimestamp,\\n \\\"Subscription does not upgrade\\\"\\n );\\n if (\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.WorseThanQueued &&\\n queuedSubscriptionEndTimestamp > block.timestamp\\n ) {\\n previousSubscriptionId = queuedSubscriptionId;\\n newQueueLength++;\\n }\\n if (\\n updateParametersComparisonResult ==\\n UpdateParametersComparisonResult.BetterThanQueued &&\\n endTimestamp < queuedSubscriptionEndTimestamp\\n ) {\\n nextSubscriptionId = queuedSubscriptionId;\\n for (\\n ;\\n queuedSubscriptionId != bytes32(0);\\n queuedSubscriptionId = subscriptions[queuedSubscriptionId]\\n .nextSubscriptionId\\n ) {\\n newQueueLength++;\\n }\\n break;\\n }\\n }\\n require(\\n newQueueLength < maximumSubscriptionQueueLength,\\n \\\"Subscription queue full\\\"\\n );\\n }\\n\\n /// @notice Compares the update parameters with the ones that belong to a\\n /// queued subscription\\n /// @param deviationThresholdInPercentage Deviation threshold in percentage\\n /// @param deviationReference Deviation reference\\n /// @param heartbeatInterval Heartbeat interval\\n /// @param queuedUpdateParametersHash Queued update parameters hash\\n /// @return Update parameters comparison result\\n function compareUpdateParametersWithQueued(\\n uint256 deviationThresholdInPercentage,\\n int224 deviationReference,\\n uint256 heartbeatInterval,\\n bytes32 queuedUpdateParametersHash\\n ) private view returns (UpdateParametersComparisonResult) {\\n // The update parameters that belong to a queued subscription are\\n // guaranteed to have been stored in the hash map\\n (\\n uint256 queuedDeviationThresholdInPercentage,\\n int224 queuedDeviationReference,\\n uint256 queuedHeartbeatInterval\\n ) = abi.decode(\\n updateParametersHashToValue[queuedUpdateParametersHash],\\n (uint256, int224, uint256)\\n );\\n require(\\n deviationReference == queuedDeviationReference,\\n \\\"Deviation references not equal\\\"\\n );\\n if (\\n (deviationThresholdInPercentage ==\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval == queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.EqualToQueued;\\n } else if (\\n (deviationThresholdInPercentage <=\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval <= queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.BetterThanQueued;\\n } else if (\\n (deviationThresholdInPercentage >=\\n queuedDeviationThresholdInPercentage) &&\\n (heartbeatInterval >= queuedHeartbeatInterval)\\n ) {\\n return UpdateParametersComparisonResult.WorseThanQueued;\\n } else {\\n // This is hit when the set of parameters are superior to each\\n // other in different aspects, in which case they should not be\\n // allowed to be in the same queue\\n revert(\\\"Update parameters incomparable\\\");\\n }\\n }\\n\\n /// @notice Validates the readiness of the data feed. The data feed must\\n /// have been updated on Api3ServerV1 in the last `MAXIMUM_DAPI_UPDATE_AGE`\\n /// and registered on AirseekerRegistry.\\n /// @param dataFeedId Data feed ID\\n function validateDataFeedReadiness(bytes32 dataFeedId) private view {\\n (, uint32 timestamp) = IApi3ServerV1(api3ServerV1).dataFeeds(\\n dataFeedId\\n );\\n require(\\n block.timestamp <= timestamp + MAXIMUM_DAPI_UPDATE_AGE,\\n \\\"Data feed value stale\\\"\\n );\\n require(\\n IAirseekerRegistry(airseekerRegistry).dataFeedIsRegistered(\\n dataFeedId\\n ),\\n \\\"Data feed not registered\\\"\\n );\\n }\\n\\n /// @notice Verifies the dAPI management Merkle proof\\n /// @param dapiName dAPI name\\n /// @param dataFeedId Data feed ID\\n /// @param sponsorWallet Sponsor wallet address\\n /// @param dapiManagementMerkleData ABI-encoded dAPI management Merkle root\\n /// and proof\\n function verifyDapiManagementMerkleProof(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) private view {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n (\\n bytes32 dapiManagementMerkleRoot,\\n bytes32[] memory dapiManagementMerkleProof\\n ) = abi.decode(dapiManagementMerkleData, (bytes32, bytes32[]));\\n require(\\n hashes[DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiManagementMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiManagementMerkleProof,\\n dapiManagementMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(dapiName, dataFeedId, sponsorWallet)\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n function verifyDapiManagementAndDapiPricingMerkleProofs(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) private view {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(\\n updateParameters.length == UPDATE_PARAMETERS_LENGTH,\\n \\\"Update parameters length invalid\\\"\\n );\\n require(duration != 0, \\\"Duration zero\\\");\\n require(price != 0, \\\"Price zero\\\");\\n (\\n bytes32 dapiManagementMerkleRoot,\\n bytes32[] memory dapiManagementMerkleProof,\\n bytes32 dapiPricingMerkleRoot,\\n bytes32[] memory dapiPricingMerkleProof\\n ) = abi.decode(\\n dapiManagementAndDapiPricingMerkleData,\\n (bytes32, bytes32[], bytes32, bytes32[])\\n );\\n require(\\n hashes[DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiManagementMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiManagementMerkleProof,\\n dapiManagementMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(dapiName, dataFeedId, sponsorWallet)\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n require(\\n hashes[DAPI_PRICING_MERKLE_ROOT_HASH_TYPE].value ==\\n dapiPricingMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n dapiPricingMerkleProof,\\n dapiPricingMerkleRoot,\\n keccak256(\\n bytes.concat(\\n keccak256(\\n abi.encode(\\n dapiName,\\n block.chainid,\\n updateParameters,\\n duration,\\n price\\n )\\n )\\n )\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\n }\\n\\n /// @notice Verifies the signed API URL Merkle proof\\n /// @param airnode Airnode address\\n /// @param signedApiUrl Signed API URL\\n /// @param signedApiUrlMerkleData ABI-encoded signed API URL Merkle root\\n /// and proof\\n function verifySignedApiUrlMerkleProof(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) private view {\\n (\\n bytes32 signedApiUrlMerkleRoot,\\n bytes32[] memory signedApiUrlMerkleProof\\n ) = abi.decode(signedApiUrlMerkleData, (bytes32, bytes32[]));\\n require(\\n hashes[SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE].value ==\\n signedApiUrlMerkleRoot,\\n \\\"Invalid root\\\"\\n );\\n require(\\n MerkleProof.verify(\\n signedApiUrlMerkleProof,\\n signedApiUrlMerkleRoot,\\n keccak256(\\n bytes.concat(keccak256(abi.encode(airnode, signedApiUrl)))\\n )\\n ),\\n \\\"Invalid proof\\\"\\n );\\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\",\"keccak256\":\"0x370e48e7772e1d46b0dcf697d62d328493bf0c08520a6bd4f5c2099b483e1343\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0xdbc7e84e55802570ee304651b9827c72d001f1755792f69acca5da648792044d\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3MarketV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IHashRegistry.sol\\\";\\nimport \\\"../../utils/interfaces/IExtendedSelfMulticall.sol\\\";\\n\\ninterface IApi3MarketV2 is IHashRegistry, IExtendedSelfMulticall {\\n event SetAirseekerRegistry(address airseekerRegistry);\\n\\n event BoughtSubscription(\\n bytes32 indexed dapiName,\\n bytes32 indexed subscriptionId,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes updateParameters,\\n uint256 duration,\\n uint256 price,\\n uint256 paymentAmount\\n );\\n\\n event CanceledSubscriptions(bytes32 indexed dapiName);\\n\\n event UpdatedCurrentSubscriptionId(\\n bytes32 indexed dapiName,\\n bytes32 indexed subscriptionId\\n );\\n\\n function setAirseekerRegistry(address airseekerRegistry_) external;\\n\\n function buySubscription(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n ) external payable returns (bytes32 subscriptionId);\\n\\n function cancelSubscriptions(bytes32 dapiName) external;\\n\\n function updateCurrentSubscriptionId(bytes32 dapiName) external;\\n\\n function updateDapiName(\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address sponsorWallet,\\n bytes calldata dapiManagementMerkleData\\n ) external;\\n\\n function updateSignedApiUrl(\\n address airnode,\\n string calldata signedApiUrl,\\n bytes calldata signedApiUrlMerkleData\\n ) external;\\n\\n function multicallAndBuySubscription(\\n bytes[] calldata multicallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n returns (bytes[] memory returndata, bytes32 subscriptionId);\\n\\n function tryMulticallAndBuySubscription(\\n bytes[] calldata tryMulticallData,\\n bytes32 dapiName,\\n bytes32 dataFeedId,\\n address payable sponsorWallet,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price,\\n bytes calldata dapiManagementAndDapiPricingMerkleData\\n )\\n external\\n payable\\n returns (\\n bool[] memory successes,\\n bytes[] memory returndata,\\n bytes32 subscriptionId\\n );\\n\\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 function updateBeaconSetWithBeacons(\\n bytes32[] calldata beaconIds\\n ) external returns (bytes32 beaconSetId);\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address api3ReaderProxyV1);\\n\\n function registerDataFeed(\\n bytes calldata dataFeedDetails\\n ) external returns (bytes32 dataFeedId);\\n\\n function computeExpectedSponsorWalletBalance(\\n bytes32 dapiName\\n ) external view returns (uint256 expectedSponsorWalletBalance);\\n\\n function computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(\\n bytes32 dapiName,\\n bytes calldata updateParameters,\\n uint256 duration,\\n uint256 price\\n ) external view returns (uint256 expectedSponsorWalletBalance);\\n\\n function getDapiData(\\n bytes32 dapiName\\n )\\n external\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dapiValue,\\n uint32 dapiTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps,\\n bytes[] memory updateParameters,\\n uint32[] memory endTimestamps,\\n uint224[] memory dailyPrices\\n );\\n\\n function getDataFeedData(\\n bytes32 dataFeedId\\n )\\n external\\n view\\n returns (\\n bytes memory dataFeedDetails,\\n int224 dataFeedValue,\\n uint32 dataFeedTimestamp,\\n int224[] memory beaconValues,\\n uint32[] memory beaconTimestamps\\n );\\n\\n function subscriptionIdToUpdateParameters(\\n bytes32 subscriptionId\\n ) external view returns (bytes memory updateParameters);\\n\\n function DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()\\n external\\n view\\n returns (bytes32);\\n\\n function MAXIMUM_DAPI_UPDATE_AGE() external view returns (uint256);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function api3ReaderProxyV1Factory() external view returns (address);\\n\\n function airseekerRegistry() external view returns (address);\\n\\n function maximumSubscriptionQueueLength() external view returns (uint256);\\n\\n function subscriptions(\\n bytes32 subscriptionId\\n )\\n external\\n view\\n returns (\\n bytes32 updateParametersHash,\\n uint32 endTimestamp,\\n uint224 dailyPrice,\\n bytes32 nextSubscriptionId\\n );\\n\\n function dapiNameToCurrentSubscriptionId(\\n bytes32 dapiName\\n ) external view returns (bytes32 currentSubscriptionId);\\n}\\n\",\"keccak256\":\"0x4451518ef3acf9bc6d6698de016cefed18ae2d72888567053a710be772fbc464\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IApi3ReaderProxyV1Factory {\\n event DeployedApi3ReaderProxyV1(\\n address indexed proxy,\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes metadata\\n );\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address proxy);\\n\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view returns (address proxy);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n}\\n\",\"keccak256\":\"0x5b467c0e92810c99febcf06be1e0e50b2ef04d17aa8490f85b12ff5eea1d745e\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../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 * The initial owner is set to the address provided by the deployer. This can\\n * 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 /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\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 if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\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 if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\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\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\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\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Math} from \\\"./math/Math.sol\\\";\\nimport {SignedMath} from \\\"./math/SignedMath.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant HEX_DIGITS = \\\"0123456789abcdef\\\";\\n uint8 private constant ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev The `value` string doesn't fit in the specified `length`.\\n */\\n error StringsInsufficientHexLength(uint256 value, uint256 length);\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\\n */\\n function toStringSigned(int256 value) internal pure returns (string memory) {\\n return string.concat(value < 0 ? \\\"-\\\" : \\\"\\\", toString(SignedMath.abs(value)));\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n uint256 localValue = value;\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = HEX_DIGITS[localValue & 0xf];\\n localValue >>= 4;\\n }\\n if (localValue != 0) {\\n revert StringsInsufficientHexLength(value, length);\\n }\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal\\n * representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);\\n }\\n\\n /**\\n * @dev Returns true if the two strings are equal.\\n */\\n function equal(string memory a, string memory b) internal pure returns (bool) {\\n return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));\\n }\\n}\\n\",\"keccak256\":\"0x55f102ea785d8399c0e58d1108e2d289506dde18abc6db1b7f68c1f9f9bc5792\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS\\n }\\n\\n /**\\n * @dev The signature derives the `address(0)`.\\n */\\n error ECDSAInvalidSignature();\\n\\n /**\\n * @dev The signature has an invalid length.\\n */\\n error ECDSAInvalidSignatureLength(uint256 length);\\n\\n /**\\n * @dev The signature has an S value that is in the upper half order.\\n */\\n error ECDSAInvalidSignatureS(bytes32 s);\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not\\n * return address(0) without also returning an error description. Errors are documented using an enum (error type)\\n * and a bytes32 providing additional information about the error.\\n *\\n * If no error is returned, then the address can be used for verification purposes.\\n *\\n * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError, bytes32) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n */\\n function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) {\\n unchecked {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n // We do not check for an overflow here since the shift operation results in 0 or 1.\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n */\\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError, bytes32) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS, s);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature, bytes32(0));\\n }\\n\\n return (signer, RecoverError.NoError, bytes32(0));\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\\n (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);\\n _throwError(error, errorArg);\\n return recovered;\\n }\\n\\n /**\\n * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.\\n */\\n function _throwError(RecoverError error, bytes32 errorArg) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert ECDSAInvalidSignature();\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert ECDSAInvalidSignatureLength(uint256(errorArg));\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert ECDSAInvalidSignatureS(errorArg);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xeed0a08b0b091f528356cbc7245891a4c748682d4f6a18055e8e6ca77d12a6cf\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MerkleProof.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev These functions deal with verification of Merkle Tree proofs.\\n *\\n * The tree and the proofs can be generated using our\\n * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].\\n * You will find a quickstart guide in the readme.\\n *\\n * WARNING: You should avoid using leaf values that are 64 bytes long prior to\\n * hashing, or use a hash function other than keccak256 for hashing leaves.\\n * This is because the concatenation of a sorted pair of internal nodes in\\n * the Merkle tree could be reinterpreted as a leaf value.\\n * OpenZeppelin's JavaScript library generates Merkle trees that are safe\\n * against this attack out of the box.\\n */\\nlibrary MerkleProof {\\n /**\\n *@dev The multiproof provided is not valid.\\n */\\n error MerkleProofInvalidMultiproof();\\n\\n /**\\n * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree\\n * defined by `root`. For this, a `proof` must be provided, containing\\n * sibling hashes on the branch from the leaf to the root of the tree. Each\\n * pair of leaves and each pair of pre-images are assumed to be sorted.\\n */\\n function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {\\n return processProof(proof, leaf) == root;\\n }\\n\\n /**\\n * @dev Calldata version of {verify}\\n */\\n function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {\\n return processProofCalldata(proof, leaf) == root;\\n }\\n\\n /**\\n * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up\\n * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt\\n * hash matches the root of the tree. When processing the proof, the pairs\\n * of leafs & pre-images are assumed to be sorted.\\n */\\n function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {\\n bytes32 computedHash = leaf;\\n for (uint256 i = 0; i < proof.length; i++) {\\n computedHash = _hashPair(computedHash, proof[i]);\\n }\\n return computedHash;\\n }\\n\\n /**\\n * @dev Calldata version of {processProof}\\n */\\n function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {\\n bytes32 computedHash = leaf;\\n for (uint256 i = 0; i < proof.length; i++) {\\n computedHash = _hashPair(computedHash, proof[i]);\\n }\\n return computedHash;\\n }\\n\\n /**\\n * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by\\n * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function multiProofVerify(\\n bytes32[] memory proof,\\n bool[] memory proofFlags,\\n bytes32 root,\\n bytes32[] memory leaves\\n ) internal pure returns (bool) {\\n return processMultiProof(proof, proofFlags, leaves) == root;\\n }\\n\\n /**\\n * @dev Calldata version of {multiProofVerify}\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function multiProofVerifyCalldata(\\n bytes32[] calldata proof,\\n bool[] calldata proofFlags,\\n bytes32 root,\\n bytes32[] memory leaves\\n ) internal pure returns (bool) {\\n return processMultiProofCalldata(proof, proofFlags, leaves) == root;\\n }\\n\\n /**\\n * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction\\n * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another\\n * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false\\n * respectively.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree\\n * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the\\n * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).\\n */\\n function processMultiProof(\\n bytes32[] memory proof,\\n bool[] memory proofFlags,\\n bytes32[] memory leaves\\n ) internal pure returns (bytes32 merkleRoot) {\\n // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by\\n // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the\\n // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of\\n // the Merkle tree.\\n uint256 leavesLen = leaves.length;\\n uint256 proofLen = proof.length;\\n uint256 totalHashes = proofFlags.length;\\n\\n // Check proof validity.\\n if (leavesLen + proofLen != totalHashes + 1) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n\\n // The xxxPos values are \\\"pointers\\\" to the next value to consume in each array. All accesses are done using\\n // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's \\\"pop\\\".\\n bytes32[] memory hashes = new bytes32[](totalHashes);\\n uint256 leafPos = 0;\\n uint256 hashPos = 0;\\n uint256 proofPos = 0;\\n // At each step, we compute the next hash using two values:\\n // - a value from the \\\"main queue\\\". If not all leaves have been consumed, we get the next leaf, otherwise we\\n // get the next hash.\\n // - depending on the flag, either another value from the \\\"main queue\\\" (merging branches) or an element from the\\n // `proof` array.\\n for (uint256 i = 0; i < totalHashes; i++) {\\n bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];\\n bytes32 b = proofFlags[i]\\n ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])\\n : proof[proofPos++];\\n hashes[i] = _hashPair(a, b);\\n }\\n\\n if (totalHashes > 0) {\\n if (proofPos != proofLen) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n unchecked {\\n return hashes[totalHashes - 1];\\n }\\n } else if (leavesLen > 0) {\\n return leaves[0];\\n } else {\\n return proof[0];\\n }\\n }\\n\\n /**\\n * @dev Calldata version of {processMultiProof}.\\n *\\n * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.\\n */\\n function processMultiProofCalldata(\\n bytes32[] calldata proof,\\n bool[] calldata proofFlags,\\n bytes32[] memory leaves\\n ) internal pure returns (bytes32 merkleRoot) {\\n // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by\\n // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the\\n // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of\\n // the Merkle tree.\\n uint256 leavesLen = leaves.length;\\n uint256 proofLen = proof.length;\\n uint256 totalHashes = proofFlags.length;\\n\\n // Check proof validity.\\n if (leavesLen + proofLen != totalHashes + 1) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n\\n // The xxxPos values are \\\"pointers\\\" to the next value to consume in each array. All accesses are done using\\n // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's \\\"pop\\\".\\n bytes32[] memory hashes = new bytes32[](totalHashes);\\n uint256 leafPos = 0;\\n uint256 hashPos = 0;\\n uint256 proofPos = 0;\\n // At each step, we compute the next hash using two values:\\n // - a value from the \\\"main queue\\\". If not all leaves have been consumed, we get the next leaf, otherwise we\\n // get the next hash.\\n // - depending on the flag, either another value from the \\\"main queue\\\" (merging branches) or an element from the\\n // `proof` array.\\n for (uint256 i = 0; i < totalHashes; i++) {\\n bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];\\n bytes32 b = proofFlags[i]\\n ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])\\n : proof[proofPos++];\\n hashes[i] = _hashPair(a, b);\\n }\\n\\n if (totalHashes > 0) {\\n if (proofPos != proofLen) {\\n revert MerkleProofInvalidMultiproof();\\n }\\n unchecked {\\n return hashes[totalHashes - 1];\\n }\\n } else if (leavesLen > 0) {\\n return leaves[0];\\n } else {\\n return proof[0];\\n }\\n }\\n\\n /**\\n * @dev Sorts the pair (a, b) and hashes the result.\\n */\\n function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {\\n return a < b ? _efficientHash(a, b) : _efficientHash(b, a);\\n }\\n\\n /**\\n * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory.\\n */\\n function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore(0x00, a)\\n mstore(0x20, b)\\n value := keccak256(0x00, 0x40)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x6400c4bee15052e043e5d10315135972529bd1c8012f43da494dc6b4f4661058\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/cryptography/MessageHashUtils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Strings} from \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\\n *\\n * The library provides methods for generating a hash of a message that conforms to the\\n * https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\\n * specifications.\\n */\\nlibrary MessageHashUtils {\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x45` (`personal_sign` messages).\\n *\\n * The digest is calculated by prefixing a bytes32 `messageHash` with\\n * `\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\"` and hashing the result. It corresponds with the\\n * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.\\n *\\n * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with\\n * keccak256, although any bytes32 value can be safely used because the final digest will\\n * be re-hashed.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore(0x00, \\\"\\\\x19Ethereum Signed Message:\\\\n32\\\") // 32 is the bytes-length of messageHash\\n mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix\\n digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)\\n }\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x45` (`personal_sign` messages).\\n *\\n * The digest is calculated by prefixing an arbitrary `message` with\\n * `\\\"\\\\x19Ethereum Signed Message:\\\\n\\\" + len(message)` and hashing the result. It corresponds with the\\n * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {\\n return\\n keccak256(bytes.concat(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", bytes(Strings.toString(message.length)), message));\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-191 signed data with version\\n * `0x00` (data with intended validator).\\n *\\n * The digest is calculated by prefixing an arbitrary `data` with `\\\"\\\\x19\\\\x00\\\"` and the intended\\n * `validator` address. Then hashing the result.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(hex\\\"19_00\\\", validator, data));\\n }\\n\\n /**\\n * @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`).\\n *\\n * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\\n * `\\\\x19\\\\x01` and hashing the result. It corresponds to the hash signed by the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\\n *\\n * See {ECDSA-recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n let ptr := mload(0x40)\\n mstore(ptr, hex\\\"19_01\\\")\\n mstore(add(ptr, 0x02), domainSeparator)\\n mstore(add(ptr, 0x22), structHash)\\n digest := keccak256(ptr, 0x42)\\n }\\n }\\n}\\n\",\"keccak256\":\"0xba333517a3add42cd35fe877656fc3dfcc9de53baa4f3aabbd6d12a92e4ea435\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n /**\\n * @dev Muldiv operation overflow.\\n */\\n error MathOverflowedMulDiv();\\n\\n enum Rounding {\\n Floor, // Toward negative infinity\\n Ceil, // Toward positive infinity\\n Trunc, // Toward zero\\n Expand // Away from zero\\n }\\n\\n /**\\n * @dev Returns the addition of two unsigned integers, with an overflow flag.\\n */\\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n uint256 c = a + b;\\n if (c < a) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, with an overflow flag.\\n */\\n function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b > a) return (false, 0);\\n return (true, a - b);\\n }\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\\n */\\n function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\\n if (a == 0) return (true, 0);\\n uint256 c = a * b;\\n if (c / a != b) return (false, 0);\\n return (true, c);\\n }\\n }\\n\\n /**\\n * @dev Returns the division of two unsigned integers, with a division by zero flag.\\n */\\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a / b);\\n }\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\\n */\\n function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a % b);\\n }\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds towards infinity instead\\n * of rounding towards zero.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n if (b == 0) {\\n // Guarantee the same behavior as in a regular Solidity division.\\n return a / b;\\n }\\n\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or\\n * denominator == 0.\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by\\n * Uniswap Labs also under MIT license.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0 = x * y; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\\n // The surrounding unchecked block does not change this fact.\\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n if (denominator <= prod1) {\\n revert MathOverflowedMulDiv();\\n }\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator.\\n // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.\\n\\n uint256 twos = denominator & (0 - denominator);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also\\n // works in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded\\n * towards zero.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10 ** 64) {\\n value /= 10 ** 64;\\n result += 64;\\n }\\n if (value >= 10 ** 32) {\\n value /= 10 ** 32;\\n result += 32;\\n }\\n if (value >= 10 ** 16) {\\n value /= 10 ** 16;\\n result += 16;\\n }\\n if (value >= 10 ** 8) {\\n value /= 10 ** 8;\\n result += 8;\\n }\\n if (value >= 10 ** 4) {\\n value /= 10 ** 4;\\n result += 4;\\n }\\n if (value >= 10 ** 2) {\\n value /= 10 ** 2;\\n result += 2;\\n }\\n if (value >= 10 ** 1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256 of a positive value rounded towards zero.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.\\n */\\n function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {\\n return uint8(rounding) % 2 == 1;\\n }\\n}\\n\",\"keccak256\":\"0x005ec64c6313f0555d59e278f9a7a5ab2db5bdc72a027f255a37c327af1ec02d\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/SafeCast.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SafeCast.sol)\\n// This file was procedurally generated from scripts/generate/templates/SafeCast.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow\\n * checks.\\n *\\n * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can\\n * easily result in undesired exploitation or bugs, since developers usually\\n * assume that overflows raise errors. `SafeCast` restores this intuition by\\n * reverting the transaction when such an operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n */\\nlibrary SafeCast {\\n /**\\n * @dev Value doesn't fit in an uint of `bits` size.\\n */\\n error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);\\n\\n /**\\n * @dev An int value doesn't fit in an uint of `bits` size.\\n */\\n error SafeCastOverflowedIntToUint(int256 value);\\n\\n /**\\n * @dev Value doesn't fit in an int of `bits` size.\\n */\\n error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);\\n\\n /**\\n * @dev An uint value doesn't fit in an int of `bits` size.\\n */\\n error SafeCastOverflowedUintToInt(uint256 value);\\n\\n /**\\n * @dev Returns the downcasted uint248 from uint256, reverting on\\n * overflow (when the input is greater than largest uint248).\\n *\\n * Counterpart to Solidity's `uint248` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 248 bits\\n */\\n function toUint248(uint256 value) internal pure returns (uint248) {\\n if (value > type(uint248).max) {\\n revert SafeCastOverflowedUintDowncast(248, value);\\n }\\n return uint248(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint240 from uint256, reverting on\\n * overflow (when the input is greater than largest uint240).\\n *\\n * Counterpart to Solidity's `uint240` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 240 bits\\n */\\n function toUint240(uint256 value) internal pure returns (uint240) {\\n if (value > type(uint240).max) {\\n revert SafeCastOverflowedUintDowncast(240, value);\\n }\\n return uint240(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint232 from uint256, reverting on\\n * overflow (when the input is greater than largest uint232).\\n *\\n * Counterpart to Solidity's `uint232` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 232 bits\\n */\\n function toUint232(uint256 value) internal pure returns (uint232) {\\n if (value > type(uint232).max) {\\n revert SafeCastOverflowedUintDowncast(232, value);\\n }\\n return uint232(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint224 from uint256, reverting on\\n * overflow (when the input is greater than largest uint224).\\n *\\n * Counterpart to Solidity's `uint224` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 224 bits\\n */\\n function toUint224(uint256 value) internal pure returns (uint224) {\\n if (value > type(uint224).max) {\\n revert SafeCastOverflowedUintDowncast(224, value);\\n }\\n return uint224(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint216 from uint256, reverting on\\n * overflow (when the input is greater than largest uint216).\\n *\\n * Counterpart to Solidity's `uint216` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 216 bits\\n */\\n function toUint216(uint256 value) internal pure returns (uint216) {\\n if (value > type(uint216).max) {\\n revert SafeCastOverflowedUintDowncast(216, value);\\n }\\n return uint216(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint208 from uint256, reverting on\\n * overflow (when the input is greater than largest uint208).\\n *\\n * Counterpart to Solidity's `uint208` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 208 bits\\n */\\n function toUint208(uint256 value) internal pure returns (uint208) {\\n if (value > type(uint208).max) {\\n revert SafeCastOverflowedUintDowncast(208, value);\\n }\\n return uint208(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint200 from uint256, reverting on\\n * overflow (when the input is greater than largest uint200).\\n *\\n * Counterpart to Solidity's `uint200` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 200 bits\\n */\\n function toUint200(uint256 value) internal pure returns (uint200) {\\n if (value > type(uint200).max) {\\n revert SafeCastOverflowedUintDowncast(200, value);\\n }\\n return uint200(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint192 from uint256, reverting on\\n * overflow (when the input is greater than largest uint192).\\n *\\n * Counterpart to Solidity's `uint192` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 192 bits\\n */\\n function toUint192(uint256 value) internal pure returns (uint192) {\\n if (value > type(uint192).max) {\\n revert SafeCastOverflowedUintDowncast(192, value);\\n }\\n return uint192(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint184 from uint256, reverting on\\n * overflow (when the input is greater than largest uint184).\\n *\\n * Counterpart to Solidity's `uint184` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 184 bits\\n */\\n function toUint184(uint256 value) internal pure returns (uint184) {\\n if (value > type(uint184).max) {\\n revert SafeCastOverflowedUintDowncast(184, value);\\n }\\n return uint184(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint176 from uint256, reverting on\\n * overflow (when the input is greater than largest uint176).\\n *\\n * Counterpart to Solidity's `uint176` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 176 bits\\n */\\n function toUint176(uint256 value) internal pure returns (uint176) {\\n if (value > type(uint176).max) {\\n revert SafeCastOverflowedUintDowncast(176, value);\\n }\\n return uint176(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint168 from uint256, reverting on\\n * overflow (when the input is greater than largest uint168).\\n *\\n * Counterpart to Solidity's `uint168` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 168 bits\\n */\\n function toUint168(uint256 value) internal pure returns (uint168) {\\n if (value > type(uint168).max) {\\n revert SafeCastOverflowedUintDowncast(168, value);\\n }\\n return uint168(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint160 from uint256, reverting on\\n * overflow (when the input is greater than largest uint160).\\n *\\n * Counterpart to Solidity's `uint160` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 160 bits\\n */\\n function toUint160(uint256 value) internal pure returns (uint160) {\\n if (value > type(uint160).max) {\\n revert SafeCastOverflowedUintDowncast(160, value);\\n }\\n return uint160(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint152 from uint256, reverting on\\n * overflow (when the input is greater than largest uint152).\\n *\\n * Counterpart to Solidity's `uint152` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 152 bits\\n */\\n function toUint152(uint256 value) internal pure returns (uint152) {\\n if (value > type(uint152).max) {\\n revert SafeCastOverflowedUintDowncast(152, value);\\n }\\n return uint152(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint144 from uint256, reverting on\\n * overflow (when the input is greater than largest uint144).\\n *\\n * Counterpart to Solidity's `uint144` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 144 bits\\n */\\n function toUint144(uint256 value) internal pure returns (uint144) {\\n if (value > type(uint144).max) {\\n revert SafeCastOverflowedUintDowncast(144, value);\\n }\\n return uint144(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint136 from uint256, reverting on\\n * overflow (when the input is greater than largest uint136).\\n *\\n * Counterpart to Solidity's `uint136` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 136 bits\\n */\\n function toUint136(uint256 value) internal pure returns (uint136) {\\n if (value > type(uint136).max) {\\n revert SafeCastOverflowedUintDowncast(136, value);\\n }\\n return uint136(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint128 from uint256, reverting on\\n * overflow (when the input is greater than largest uint128).\\n *\\n * Counterpart to Solidity's `uint128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toUint128(uint256 value) internal pure returns (uint128) {\\n if (value > type(uint128).max) {\\n revert SafeCastOverflowedUintDowncast(128, value);\\n }\\n return uint128(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint120 from uint256, reverting on\\n * overflow (when the input is greater than largest uint120).\\n *\\n * Counterpart to Solidity's `uint120` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 120 bits\\n */\\n function toUint120(uint256 value) internal pure returns (uint120) {\\n if (value > type(uint120).max) {\\n revert SafeCastOverflowedUintDowncast(120, value);\\n }\\n return uint120(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint112 from uint256, reverting on\\n * overflow (when the input is greater than largest uint112).\\n *\\n * Counterpart to Solidity's `uint112` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 112 bits\\n */\\n function toUint112(uint256 value) internal pure returns (uint112) {\\n if (value > type(uint112).max) {\\n revert SafeCastOverflowedUintDowncast(112, value);\\n }\\n return uint112(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint104 from uint256, reverting on\\n * overflow (when the input is greater than largest uint104).\\n *\\n * Counterpart to Solidity's `uint104` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 104 bits\\n */\\n function toUint104(uint256 value) internal pure returns (uint104) {\\n if (value > type(uint104).max) {\\n revert SafeCastOverflowedUintDowncast(104, value);\\n }\\n return uint104(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint96 from uint256, reverting on\\n * overflow (when the input is greater than largest uint96).\\n *\\n * Counterpart to Solidity's `uint96` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 96 bits\\n */\\n function toUint96(uint256 value) internal pure returns (uint96) {\\n if (value > type(uint96).max) {\\n revert SafeCastOverflowedUintDowncast(96, value);\\n }\\n return uint96(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint88 from uint256, reverting on\\n * overflow (when the input is greater than largest uint88).\\n *\\n * Counterpart to Solidity's `uint88` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 88 bits\\n */\\n function toUint88(uint256 value) internal pure returns (uint88) {\\n if (value > type(uint88).max) {\\n revert SafeCastOverflowedUintDowncast(88, value);\\n }\\n return uint88(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint80 from uint256, reverting on\\n * overflow (when the input is greater than largest uint80).\\n *\\n * Counterpart to Solidity's `uint80` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 80 bits\\n */\\n function toUint80(uint256 value) internal pure returns (uint80) {\\n if (value > type(uint80).max) {\\n revert SafeCastOverflowedUintDowncast(80, value);\\n }\\n return uint80(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint72 from uint256, reverting on\\n * overflow (when the input is greater than largest uint72).\\n *\\n * Counterpart to Solidity's `uint72` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 72 bits\\n */\\n function toUint72(uint256 value) internal pure returns (uint72) {\\n if (value > type(uint72).max) {\\n revert SafeCastOverflowedUintDowncast(72, value);\\n }\\n return uint72(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint64 from uint256, reverting on\\n * overflow (when the input is greater than largest uint64).\\n *\\n * Counterpart to Solidity's `uint64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toUint64(uint256 value) internal pure returns (uint64) {\\n if (value > type(uint64).max) {\\n revert SafeCastOverflowedUintDowncast(64, value);\\n }\\n return uint64(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint56 from uint256, reverting on\\n * overflow (when the input is greater than largest uint56).\\n *\\n * Counterpart to Solidity's `uint56` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 56 bits\\n */\\n function toUint56(uint256 value) internal pure returns (uint56) {\\n if (value > type(uint56).max) {\\n revert SafeCastOverflowedUintDowncast(56, value);\\n }\\n return uint56(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint48 from uint256, reverting on\\n * overflow (when the input is greater than largest uint48).\\n *\\n * Counterpart to Solidity's `uint48` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 48 bits\\n */\\n function toUint48(uint256 value) internal pure returns (uint48) {\\n if (value > type(uint48).max) {\\n revert SafeCastOverflowedUintDowncast(48, value);\\n }\\n return uint48(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint40 from uint256, reverting on\\n * overflow (when the input is greater than largest uint40).\\n *\\n * Counterpart to Solidity's `uint40` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 40 bits\\n */\\n function toUint40(uint256 value) internal pure returns (uint40) {\\n if (value > type(uint40).max) {\\n revert SafeCastOverflowedUintDowncast(40, value);\\n }\\n return uint40(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint32 from uint256, reverting on\\n * overflow (when the input is greater than largest uint32).\\n *\\n * Counterpart to Solidity's `uint32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toUint32(uint256 value) internal pure returns (uint32) {\\n if (value > type(uint32).max) {\\n revert SafeCastOverflowedUintDowncast(32, value);\\n }\\n return uint32(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint24 from uint256, reverting on\\n * overflow (when the input is greater than largest uint24).\\n *\\n * Counterpart to Solidity's `uint24` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 24 bits\\n */\\n function toUint24(uint256 value) internal pure returns (uint24) {\\n if (value > type(uint24).max) {\\n revert SafeCastOverflowedUintDowncast(24, value);\\n }\\n return uint24(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint16 from uint256, reverting on\\n * overflow (when the input is greater than largest uint16).\\n *\\n * Counterpart to Solidity's `uint16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toUint16(uint256 value) internal pure returns (uint16) {\\n if (value > type(uint16).max) {\\n revert SafeCastOverflowedUintDowncast(16, value);\\n }\\n return uint16(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted uint8 from uint256, reverting on\\n * overflow (when the input is greater than largest uint8).\\n *\\n * Counterpart to Solidity's `uint8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits\\n */\\n function toUint8(uint256 value) internal pure returns (uint8) {\\n if (value > type(uint8).max) {\\n revert SafeCastOverflowedUintDowncast(8, value);\\n }\\n return uint8(value);\\n }\\n\\n /**\\n * @dev Converts a signed int256 into an unsigned uint256.\\n *\\n * Requirements:\\n *\\n * - input must be greater than or equal to 0.\\n */\\n function toUint256(int256 value) internal pure returns (uint256) {\\n if (value < 0) {\\n revert SafeCastOverflowedIntToUint(value);\\n }\\n return uint256(value);\\n }\\n\\n /**\\n * @dev Returns the downcasted int248 from int256, reverting on\\n * overflow (when the input is less than smallest int248 or\\n * greater than largest int248).\\n *\\n * Counterpart to Solidity's `int248` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 248 bits\\n */\\n function toInt248(int256 value) internal pure returns (int248 downcasted) {\\n downcasted = int248(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(248, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int240 from int256, reverting on\\n * overflow (when the input is less than smallest int240 or\\n * greater than largest int240).\\n *\\n * Counterpart to Solidity's `int240` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 240 bits\\n */\\n function toInt240(int256 value) internal pure returns (int240 downcasted) {\\n downcasted = int240(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(240, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int232 from int256, reverting on\\n * overflow (when the input is less than smallest int232 or\\n * greater than largest int232).\\n *\\n * Counterpart to Solidity's `int232` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 232 bits\\n */\\n function toInt232(int256 value) internal pure returns (int232 downcasted) {\\n downcasted = int232(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(232, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int224 from int256, reverting on\\n * overflow (when the input is less than smallest int224 or\\n * greater than largest int224).\\n *\\n * Counterpart to Solidity's `int224` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 224 bits\\n */\\n function toInt224(int256 value) internal pure returns (int224 downcasted) {\\n downcasted = int224(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(224, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int216 from int256, reverting on\\n * overflow (when the input is less than smallest int216 or\\n * greater than largest int216).\\n *\\n * Counterpart to Solidity's `int216` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 216 bits\\n */\\n function toInt216(int256 value) internal pure returns (int216 downcasted) {\\n downcasted = int216(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(216, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int208 from int256, reverting on\\n * overflow (when the input is less than smallest int208 or\\n * greater than largest int208).\\n *\\n * Counterpart to Solidity's `int208` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 208 bits\\n */\\n function toInt208(int256 value) internal pure returns (int208 downcasted) {\\n downcasted = int208(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(208, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int200 from int256, reverting on\\n * overflow (when the input is less than smallest int200 or\\n * greater than largest int200).\\n *\\n * Counterpart to Solidity's `int200` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 200 bits\\n */\\n function toInt200(int256 value) internal pure returns (int200 downcasted) {\\n downcasted = int200(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(200, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int192 from int256, reverting on\\n * overflow (when the input is less than smallest int192 or\\n * greater than largest int192).\\n *\\n * Counterpart to Solidity's `int192` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 192 bits\\n */\\n function toInt192(int256 value) internal pure returns (int192 downcasted) {\\n downcasted = int192(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(192, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int184 from int256, reverting on\\n * overflow (when the input is less than smallest int184 or\\n * greater than largest int184).\\n *\\n * Counterpart to Solidity's `int184` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 184 bits\\n */\\n function toInt184(int256 value) internal pure returns (int184 downcasted) {\\n downcasted = int184(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(184, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int176 from int256, reverting on\\n * overflow (when the input is less than smallest int176 or\\n * greater than largest int176).\\n *\\n * Counterpart to Solidity's `int176` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 176 bits\\n */\\n function toInt176(int256 value) internal pure returns (int176 downcasted) {\\n downcasted = int176(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(176, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int168 from int256, reverting on\\n * overflow (when the input is less than smallest int168 or\\n * greater than largest int168).\\n *\\n * Counterpart to Solidity's `int168` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 168 bits\\n */\\n function toInt168(int256 value) internal pure returns (int168 downcasted) {\\n downcasted = int168(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(168, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int160 from int256, reverting on\\n * overflow (when the input is less than smallest int160 or\\n * greater than largest int160).\\n *\\n * Counterpart to Solidity's `int160` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 160 bits\\n */\\n function toInt160(int256 value) internal pure returns (int160 downcasted) {\\n downcasted = int160(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(160, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int152 from int256, reverting on\\n * overflow (when the input is less than smallest int152 or\\n * greater than largest int152).\\n *\\n * Counterpart to Solidity's `int152` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 152 bits\\n */\\n function toInt152(int256 value) internal pure returns (int152 downcasted) {\\n downcasted = int152(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(152, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int144 from int256, reverting on\\n * overflow (when the input is less than smallest int144 or\\n * greater than largest int144).\\n *\\n * Counterpart to Solidity's `int144` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 144 bits\\n */\\n function toInt144(int256 value) internal pure returns (int144 downcasted) {\\n downcasted = int144(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(144, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int136 from int256, reverting on\\n * overflow (when the input is less than smallest int136 or\\n * greater than largest int136).\\n *\\n * Counterpart to Solidity's `int136` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 136 bits\\n */\\n function toInt136(int256 value) internal pure returns (int136 downcasted) {\\n downcasted = int136(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(136, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int128 from int256, reverting on\\n * overflow (when the input is less than smallest int128 or\\n * greater than largest int128).\\n *\\n * Counterpart to Solidity's `int128` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 128 bits\\n */\\n function toInt128(int256 value) internal pure returns (int128 downcasted) {\\n downcasted = int128(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(128, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int120 from int256, reverting on\\n * overflow (when the input is less than smallest int120 or\\n * greater than largest int120).\\n *\\n * Counterpart to Solidity's `int120` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 120 bits\\n */\\n function toInt120(int256 value) internal pure returns (int120 downcasted) {\\n downcasted = int120(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(120, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int112 from int256, reverting on\\n * overflow (when the input is less than smallest int112 or\\n * greater than largest int112).\\n *\\n * Counterpart to Solidity's `int112` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 112 bits\\n */\\n function toInt112(int256 value) internal pure returns (int112 downcasted) {\\n downcasted = int112(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(112, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int104 from int256, reverting on\\n * overflow (when the input is less than smallest int104 or\\n * greater than largest int104).\\n *\\n * Counterpart to Solidity's `int104` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 104 bits\\n */\\n function toInt104(int256 value) internal pure returns (int104 downcasted) {\\n downcasted = int104(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(104, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int96 from int256, reverting on\\n * overflow (when the input is less than smallest int96 or\\n * greater than largest int96).\\n *\\n * Counterpart to Solidity's `int96` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 96 bits\\n */\\n function toInt96(int256 value) internal pure returns (int96 downcasted) {\\n downcasted = int96(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(96, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int88 from int256, reverting on\\n * overflow (when the input is less than smallest int88 or\\n * greater than largest int88).\\n *\\n * Counterpart to Solidity's `int88` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 88 bits\\n */\\n function toInt88(int256 value) internal pure returns (int88 downcasted) {\\n downcasted = int88(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(88, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int80 from int256, reverting on\\n * overflow (when the input is less than smallest int80 or\\n * greater than largest int80).\\n *\\n * Counterpart to Solidity's `int80` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 80 bits\\n */\\n function toInt80(int256 value) internal pure returns (int80 downcasted) {\\n downcasted = int80(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(80, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int72 from int256, reverting on\\n * overflow (when the input is less than smallest int72 or\\n * greater than largest int72).\\n *\\n * Counterpart to Solidity's `int72` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 72 bits\\n */\\n function toInt72(int256 value) internal pure returns (int72 downcasted) {\\n downcasted = int72(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(72, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int64 from int256, reverting on\\n * overflow (when the input is less than smallest int64 or\\n * greater than largest int64).\\n *\\n * Counterpart to Solidity's `int64` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 64 bits\\n */\\n function toInt64(int256 value) internal pure returns (int64 downcasted) {\\n downcasted = int64(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(64, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int56 from int256, reverting on\\n * overflow (when the input is less than smallest int56 or\\n * greater than largest int56).\\n *\\n * Counterpart to Solidity's `int56` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 56 bits\\n */\\n function toInt56(int256 value) internal pure returns (int56 downcasted) {\\n downcasted = int56(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(56, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int48 from int256, reverting on\\n * overflow (when the input is less than smallest int48 or\\n * greater than largest int48).\\n *\\n * Counterpart to Solidity's `int48` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 48 bits\\n */\\n function toInt48(int256 value) internal pure returns (int48 downcasted) {\\n downcasted = int48(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(48, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int40 from int256, reverting on\\n * overflow (when the input is less than smallest int40 or\\n * greater than largest int40).\\n *\\n * Counterpart to Solidity's `int40` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 40 bits\\n */\\n function toInt40(int256 value) internal pure returns (int40 downcasted) {\\n downcasted = int40(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(40, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int32 from int256, reverting on\\n * overflow (when the input is less than smallest int32 or\\n * greater than largest int32).\\n *\\n * Counterpart to Solidity's `int32` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 32 bits\\n */\\n function toInt32(int256 value) internal pure returns (int32 downcasted) {\\n downcasted = int32(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(32, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int24 from int256, reverting on\\n * overflow (when the input is less than smallest int24 or\\n * greater than largest int24).\\n *\\n * Counterpart to Solidity's `int24` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 24 bits\\n */\\n function toInt24(int256 value) internal pure returns (int24 downcasted) {\\n downcasted = int24(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(24, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int16 from int256, reverting on\\n * overflow (when the input is less than smallest int16 or\\n * greater than largest int16).\\n *\\n * Counterpart to Solidity's `int16` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 16 bits\\n */\\n function toInt16(int256 value) internal pure returns (int16 downcasted) {\\n downcasted = int16(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(16, value);\\n }\\n }\\n\\n /**\\n * @dev Returns the downcasted int8 from int256, reverting on\\n * overflow (when the input is less than smallest int8 or\\n * greater than largest int8).\\n *\\n * Counterpart to Solidity's `int8` operator.\\n *\\n * Requirements:\\n *\\n * - input must fit into 8 bits\\n */\\n function toInt8(int256 value) internal pure returns (int8 downcasted) {\\n downcasted = int8(value);\\n if (downcasted != value) {\\n revert SafeCastOverflowedIntDowncast(8, value);\\n }\\n }\\n\\n /**\\n * @dev Converts an unsigned uint256 into a signed int256.\\n *\\n * Requirements:\\n *\\n * - input must be less than or equal to maxInt256.\\n */\\n function toInt256(uint256 value) internal pure returns (int256) {\\n // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive\\n if (value > uint256(type(int256).max)) {\\n revert SafeCastOverflowedUintToInt(value);\\n }\\n return int256(value);\\n }\\n}\\n\",\"keccak256\":\"0xe19a4d5f31d2861e7344e8e535e2feafb913d806d3e2b5fe7782741a2a7094fe\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/math/SignedMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Standard signed math utilities missing in the Solidity language.\\n */\\nlibrary SignedMath {\\n /**\\n * @dev Returns the largest of two signed numbers.\\n */\\n function max(int256 a, int256 b) internal pure returns (int256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two signed numbers.\\n */\\n function min(int256 a, int256 b) internal pure returns (int256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two signed numbers without overflow.\\n * The result is rounded towards zero.\\n */\\n function average(int256 a, int256 b) internal pure returns (int256) {\\n // Formula from the book \\\"Hacker's Delight\\\"\\n int256 x = (a & b) + ((a ^ b) >> 1);\\n return x + (int256(uint256(x) >> 255) & (a ^ b));\\n }\\n\\n /**\\n * @dev Returns the absolute unsigned value of a signed value.\\n */\\n function abs(int256 n) internal pure returns (uint256) {\\n unchecked {\\n // must be unchecked in order to support `n = type(int256).min`\\n return uint256(n >= 0 ? n : -n);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x5f7e4076e175393767754387c962926577f1660dd9b810187b9002407656be72\",\"license\":\"MIT\"}},\"version\":1}", + "bytecode": "0x60e060405234801561001057600080fd5b50604051615da4380380615da483398101604081905261002f9161020f565b82806001600160a01b03811661006057604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610069816101a3565b5050806000036100bb5760405162461bcd60e51b815260206004820152601960248201527f4d6178696d756d207175657565206c656e677468207a65726f000000000000006044820152606401610057565b6001600160a01b03821660a08190526040805163ce7ebd6d60e01b8152905163ce7ebd6d9160048082019260209290919082900301816000875af1158015610107573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061012b919061024b565b6001600160a01b0316632d6a744e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610168573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061018c919061024b565b6001600160a01b031660805260c0525061026d9050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461020a57600080fd5b919050565b60008060006060848603121561022457600080fd5b61022d846101f3565b925061023b602085016101f3565b9150604084015190509250925092565b60006020828403121561025d57600080fd5b610266826101f3565b9392505050565b60805160a05160c051615aad6102f7600039600081816107340152613c030152600081816104b40152612360015260008181610440015281816109d901528181610fb2015281816123f8015281816128b10152818161298f01528181612b7901528181612df401528181612f26015281816138c50152818161399c0152613dc50152615aad6000f3fe6080604052600436106102f15760003560e01c8063715018a61161018f578063b7afd507116100e1578063d7fa10071161008a578063f2fde38b11610064578063f2fde38b1461093f578063f8b2cb4f1461095f578063fa0130671461098757600080fd5b8063d7fa1007146108d7578063d8d2f90f146108f7578063e637cf001461092857600080fd5b8063c6c04e16116100bb578063c6c04e1614610845578063d5659f3114610879578063d658d2e91461088e57600080fd5b8063b7afd507146107f2578063c1516e5414610805578063c30027601461082557600080fd5b806394259c6c11610143578063a89307b41161011d578063a89307b414610776578063aa2b44e414610798578063ac9650d8146107c557600080fd5b806394259c6c1461069957806397f679d314610722578063a5f36cb11461075657600080fd5b8063845ebe4311610174578063845ebe43146106215780638c9f4c791461064e5780638da5cb5b1461067b57600080fd5b8063715018a6146105f9578063796b89b91461060e57600080fd5b80633adb35fe116102485780634dcc19fe116101fc5780635989eaeb116101d65780635989eaeb1461057f5780635d868194146105b957806364c2359d146105d957600080fd5b80634dcc19fe1461053757806353130e261461054a5780635885c7711461056a57600080fd5b806342cbb15c1161022d57806342cbb15c146104d6578063437b9116146104e95780634dc610d41461051757600080fd5b80633adb35fe1461048d5780633db35663146104a257600080fd5b80631a0a0b3e116102aa578063288ddb6111610284578063288ddb61146104195780632d6a744e1461042e5780633408e4701461047a57600080fd5b80631a0a0b3e146103b85780631b1f24d8146103d85780631d911b6d146103f957600080fd5b8063044c9bd7116102db578063044c9bd71461034b5780630b62ebf21461037857806318d6e2d41461039857600080fd5b8062aae33f146102f65780630141ff4814610329575b600080fd5b34801561030257600080fd5b50610316610311366004614456565b6109a7565b6040519081526020015b60405180910390f35b34801561033557600080fd5b50610349610344366004614498565b610a5b565b005b34801561035757600080fd5b50610316610366366004614498565b60009081526001602052604090205490565b34801561038457600080fd5b506103496103933660046144c9565b610b33565b3480156103a457600080fd5b506103496103b33660046144e6565b610d18565b3480156103c457600080fd5b506103166103d3366004614574565b610f7f565b6103eb6103e636600461461f565b611042565b6040516103209291906147ac565b34801561040557600080fd5b506103496104143660046147ce565b6110e0565b34801561042557600080fd5b5061031661129a565b34801561043a57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610320565b34801561048657600080fd5b5046610316565b34801561049957600080fd5b506103166112e0565b3480156104ae57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b3480156104e257600080fd5b5043610316565b3480156104f557600080fd5b50610509610504366004614456565b611356565b604051610320929190614894565b34801561052357600080fd5b50610349610532366004614498565b6114bc565b34801561054357600080fd5b5048610316565b34801561055657600080fd5b50600354610462906001600160a01b031681565b34801561057657600080fd5b506103166115bd565b34801561058b57600080fd5b506105a961059a3660046144c9565b6001600160a01b03163b151590565b6040519015158152602001610320565b3480156105c557600080fd5b506103166105d43660046148b9565b6115ee565b3480156105e557600080fd5b506103166105f4366004614498565b61163a565b34801561060557600080fd5b506103496116f0565b34801561061a57600080fd5b5042610316565b34801561062d57600080fd5b5061031661063c366004614498565b60026020526000908152604090205481565b34801561065a57600080fd5b5061066e610669366004614498565b611738565b60405161032091906148ef565b34801561068757600080fd5b506000546001600160a01b0316610462565b3480156106a557600080fd5b506106ef6106b4366004614498565b600460205260009081526040902080546001820154600290920154909163ffffffff8116916401000000009091046001600160e01b03169084565b6040805194855263ffffffff90931660208501526001600160e01b03909116918301919091526060820152608001610320565b34801561072e57600080fd5b506103167f000000000000000000000000000000000000000000000000000000000000000081565b34801561076257600080fd5b50610349610771366004614902565b6117e7565b61078961078436600461461f565b611d2f565b60405161032093929190614952565b3480156107a457600080fd5b506103166107b3366004614498565b60056020526000908152604090205481565b3480156107d157600080fd5b506107e56107e0366004614456565b611dd2565b6040516103209190614988565b61031661080036600461499b565b611f53565b34801561081157600080fd5b50610316610820366004614a4b565b612181565b34801561083157600080fd5b50610462610840366004614aa9565b61232d565b34801561085157600080fd5b50610865610860366004614498565b6123e7565b604051610320989796959493929190614b69565b34801561088557600080fd5b50610316612762565b34801561089a57600080fd5b506108c26108a9366004614498565b6001602081905260009182526040909120805491015482565b60408051928352602083019190915201610320565b3480156108e357600080fd5b506103496108f2366004614c35565b612793565b34801561090357600080fd5b50610917610912366004614498565b612804565b604051610320959493929190614c57565b34801561093457600080fd5b506103166201518081565b34801561094b57600080fd5b5061034961095a3660046144c9565b612ce3565b34801561096b57600080fd5b5061031661097a3660046144c9565b6001600160a01b03163190565b34801561099357600080fd5b506103496109a2366004614ca5565b612d2b565b6040517eaae33f0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169062aae33f90610a0f9086908690600401614cf2565b6020604051808303816000875af1158015610a2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a529190614d44565b90505b92915050565b60008181526005602052604090205480610abc5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d707479000000000000000060448201526064015b60405180910390fd5b6000818152600460205260409020600101544263ffffffff9091161115610b255760405162461bcd60e51b815260206004820152601e60248201527f43757272656e7420737562736372697074696f6e206e6f7420656e64656400006044820152606401610ab3565b610b2f8282612f92565b5050565b610b3b6130af565b6001600160a01b038116610b915760405162461bcd60e51b815260206004820152601e60248201527f4169727365656b657252656769737472792061646472657373207a65726f00006044820152606401610ab3565b6003546001600160a01b031615610bea5760405162461bcd60e51b815260206004820152601d60248201527f4169727365656b6572526567697374727920616c7265616479207365740000006044820152606401610ab3565b306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190614d5d565b6001600160a01b031614610cac5760405162461bcd60e51b815260206004820152601b60248201527f4e6f74204169727365656b65725265676973747279206f776e657200000000006044820152606401610ab3565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f90f2d5c680e476ebdec8de98d28cd387630163236f0975752747b4075c8300f89060200160405180910390a150565b610d206130af565b82610d6d5760405162461bcd60e51b815260206004820152600e60248201527f486173682074797065207a65726f0000000000000000000000000000000000006044820152606401610ab3565b806000819003610dbf5760405162461bcd60e51b815260206004820152600d60248201527f5369676e65727320656d707479000000000000000000000000000000000000006044820152606401610ab3565b600083838281610dd157610dd1614d7a565b9050602002016020810190610de691906144c9565b6001600160a01b031603610e3c5760405162461bcd60e51b815260206004820152601960248201527f4669727374207369676e65722061646472657373207a65726f000000000000006044820152606401610ab3565b60015b81811015610f06578383610e54600184614da6565b818110610e6357610e63614d7a565b9050602002016020810190610e7891906144c9565b6001600160a01b0316848483818110610e9357610e93614d7a565b9050602002016020810190610ea891906144c9565b6001600160a01b031611610efe5760405162461bcd60e51b815260206004820152601e60248201527f5369676e657273206e6f7420696e20617363656e64696e67206f7264657200006044820152606401610ab3565b600101610e3f565b508282604051602001610f1a929190614db9565b60408051601f198184030181528282528051602091820120600088815260029092529190205584907f5a1f5ee4ceedd78b1982374b4790e8aa9f31e8af1c32aaef46b2afd8a789193a90610f719086908690614dfb565b60405180910390a250505050565b6040517f1a0a0b3e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631a0a0b3e90610ff3908b908b908b908b908b908b908b90600401614e71565b6020604051808303816000875af1158015611012573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110369190614d44565b98975050505050505050565b60606000306001600160a01b031663ac9650d88e8e6040518363ffffffff1660e01b8152600401611074929190614ec1565b6000604051808303816000875af1158015611093573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110bb91908101906150cf565b91506110ce8b8b8b8b8b8b8b8b8b611f53565b90509b509b9950505050505050505050565b6110ed8585858585613106565b6003546040517f085df6ab0000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301529091169063085df6ab90602401600060405180830381865afa158015611150573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111789190810190615104565b604051602001611188919061514d565b6040516020818303038152906040528051906020012084846040516020016111b1929190615169565b60405160208183030381529060405280519060200120036112145760405162461bcd60e51b815260206004820152601e60248201527f446f6573206e6f7420757064617465207369676e6564204150492055524c00006044820152606401610ab3565b6003546040517ffba8f22f0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063fba8f22f9061126190889088908890600401615179565b600060405180830381600087803b15801561127b57600080fd5b505af115801561128f573d6000803e3d6000fd5b505050505050505050565b6040517f644150492070726963696e67204d65726b6c6520726f6f74000000000000000060208201526038015b6040516020818303038152906040528051906020012081565b600060405160200161133b907f417069334d61726b65745632207369676e61747572652064656c65676174696f81527f6e00000000000000000000000000000000000000000000000000000000000000602082015260210190565b60405160208183030381529060405280519060200120905090565b606080828067ffffffffffffffff81111561137357611373614f64565b60405190808252806020026020018201604052801561139c578160200160208202803683370190505b5092508067ffffffffffffffff8111156113b8576113b8614f64565b6040519080825280602002602001820160405280156113eb57816020015b60608152602001906001900390816113d65790505b50915060005b818110156114b3573086868381811061140c5761140c614d7a565b905060200281019061141e919061519c565b60405161142c929190615169565b600060405180830381855af49150503d8060008114611467576040519150601f19603f3d011682016040523d82523d6000602084013e61146c565b606091505b5085838151811061147f5761147f614d7a565b6020026020010185848151811061149857611498614d7a565b602090810291909101019190915290151590526001016113f1565b50509250929050565b6114c46130af565b60008181526005602052604090205461151f5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d70747900000000000000006044820152606401610ab3565b600081815260056020526040808220919091556003549051632412a9cb60e01b8152600481018390526001600160a01b0390911690632412a9cb90602401600060405180830381600087803b15801561157757600080fd5b505af115801561158b573d6000803e3d6000fd5b50506040518392507f07731f198aeecb61ff6de517fa82a003ba1bb3846140b23b62d7563dc2ddfb6a9150600090a250565b6040517f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000006020820152603b016112c7565b6003546040517f5d8681940000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690635d86819490610a0f90869086906004016151e3565b6000806116464261324c565b600084815260056020526040812054919250905b80156116e8576000818152600460205260409020600181015490925063ffffffff16428111156116dc576001830154620151809064010000000090046001600160e01b03166116a986846151f7565b63ffffffff166116b99190615213565b6116c39190615261565b6116d6906001600160e01b03168661528f565b94508093505b5050600281015461165a565b505050919050565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610ab3565b600081815260046020908152604080832054835260069091529020805460609190611762906152a2565b80601f016020809104026020016040519081016040528092919081815260200182805461178e906152a2565b80156117db5780601f106117b0576101008083540402835291602001916117db565b820191906000526020600020905b8154815290600101906020018083116117be57829003601f168201915b50505050509050919050565b836118345760405162461bcd60e51b815260206004820152600f60248201527f486173682076616c7565207a65726f00000000000000000000000000000000006044820152606401610ab3565b428311156118845760405162461bcd60e51b815260206004820152601a60248201527f486173682074696d657374616d702066726f6d206675747572650000000000006044820152606401610ab3565b6000858152600160208190526040909120015483116118e55760405162461bcd60e51b815260206004820152601e60248201527f486173682074696d657374616d70206e6f74206d6f726520726563656e7400006044820152606401610ab3565b600085815260026020526040902054806119415760405162461bcd60e51b815260206004820152600f60248201527f5369676e657273206e6f742073657400000000000000000000000000000000006044820152606401610ab3565b8160008167ffffffffffffffff81111561195d5761195d614f64565b604051908082528060200260200182016040528015611986578160200160208202803683370190505b5060408051602081018b9052908101899052606081018890529091506000906119f6906080015b604051602081830303815290604052805190602001207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902090565b905060005b83811015611c41576000878783818110611a1757611a17614d7a565b9050602002810190611a29919061519c565b9150506040198101611ace57611a9783898985818110611a4b57611a4b614d7a565b9050602002810190611a5d919061519c565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061328192505050565b848381518110611aa957611aa9614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050611c38565b6101608103611bf05760008060008a8a86818110611aee57611aee614d7a565b9050602002810190611b00919061519c565b810190611b0d919061532d565b925092509250824210611b625760405162461bcd60e51b815260206004820152601060248201527f44656c65676174696f6e20656e646564000000000000000000000000000000006044820152606401610ab3565b611bb6611bb0611b706112e0565b611b7a8985613281565b866040516020016119ad9392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b83613281565b878681518110611bc857611bc8614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050505050611c38565b60405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610ab3565b506001016119fb565b5081604051602001611c53919061539f565b604051602081830303815290604052805190602001208414611cb75760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610ab3565b60408051808201825289815260208082018a815260008d815260019283905284902092518355519101555189907fa33e8931ee2a869317bbe04201dab2907fd39d2d7f014c15b8459986e62c279190611d1c908b908b90918252602082015260400190565b60405180910390a2505050505050505050565b6060806000306001600160a01b031663437b91168f8f6040518363ffffffff1660e01b8152600401611d62929190614ec1565b6000604051808303816000875af1158015611d81573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611da991908101906153ee565b9093509150611dbf8c8c8c8c8c8c8c8c8c611f53565b90509b509b509b98505050505050505050565b6060818067ffffffffffffffff811115611dee57611dee614f64565b604051908082528060200260200182016040528015611e2157816020015b6060815260200190600190039081611e0c5790505b50915060005b81811015611f4b57600030868684818110611e4457611e44614d7a565b9050602002810190611e56919061519c565b604051611e64929190615169565b600060405180830381855af49150503d8060008114611e9f576040519150601f19603f3d011682016040523d82523d6000602084013e611ea4565b606091505b50858481518110611eb757611eb7614d7a565b6020908102919091010152905080611f42576000848381518110611edd57611edd614d7a565b60200260200101519050600081511115611efa5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610ab3565b50600101611e27565b505092915050565b600088611fa25760405162461bcd60e51b815260206004820152601160248201527f446174612066656564204944207a65726f0000000000000000000000000000006044820152606401610ab3565b6001600160a01b038816611ff85760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b6120098a8a8a8a8a8a8a8a8a6132ab565b6120178a8a89898989613610565b90506120228a61163a565b612036346001600160a01b038b163161528f565b10156120845760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e74207061796d656e740000000000000000000000006044820152606401610ab3565b808a7fd44e8abecc305a9434d27a049c731a8331cee8bca6496154f47835b396ce55068b8b8b8b8b8b346040516120c197969594939291906154b9565b60405180910390a33415612174576000886001600160a01b03163460405160006040518083038185875af1925050503d806000811461211c576040519150601f19603f3d011682016040523d82523d6000602084013e612121565b606091505b50509050806121725760405162461bcd60e51b815260206004820152601560248201527f5472616e7366657220756e7375636365737366756c00000000000000000000006044820152606401610ab3565b505b9998505050505050505050565b6000606084146121d35760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b6000806000806121e58a8a8a8a613a0f565b935093509350935060008787620151806121ff9190615501565b6122099190615518565b905060006122164261324c565b9050600084156122345760008d815260056020526040902054612236565b865b90505b801561231d5786810361228657620151808361225584896151f7565b63ffffffff166122659190615501565b61226f9190615518565b612279908961528f565b9750859150839050612239565b6000818152600460205260409020600181015463ffffffff16428111156122ff576001820154620151809064010000000090046001600160e01b03166122cc86846151f7565b63ffffffff166122dc9190615213565b6122e69190615261565b6122f9906001600160e01b03168b61528f565b99508093505b82870361230e57889250612316565b816002015492505b5050612239565b5050505050505095945050505050565b6040517fc30027600000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c30027609061239b90889088908890889060040161552c565b6020604051808303816000875af11580156123ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123de9190614d5d565b95945050505050565b6060600080606080606080606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18b60405160200161243891815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161246c91815260200190565b602060405180830381865afa158015612489573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ad9190614d44565b90506124b881612804565b60008f815260056020526040812054959e50939c50919a5098509650905b801561250357816124e681615556565b600092835260046020526040909220600201549192506124d69050565b508067ffffffffffffffff81111561251d5761251d614f64565b60405190808252806020026020018201604052801561255057816020015b606081526020019060019003908161253b5790505b5094508067ffffffffffffffff81111561256c5761256c614f64565b604051908082528060200260200182016040528015612595578160200160208202803683370190505b5093508067ffffffffffffffff8111156125b1576125b1614f64565b6040519080825280602002602001820160405280156125da578160200160208202803683370190505b5060008c8152600560209081526040808320548352600490915281209194505b828110156127535781546000908152600660205260409020805461261d906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054612649906152a2565b80156126965780601f1061266b57610100808354040283529160200191612696565b820191906000526020600020905b81548152906001019060200180831161267957829003601f168201915b50505050508782815181106126ad576126ad614d7a565b60209081029190910101526001820154865163ffffffff909116908790839081106126da576126da614d7a565b602002602001019063ffffffff16908163ffffffff16815250508160010160049054906101000a90046001600160e01b031685828151811061271e5761271e614d7a565b6001600160e01b03909216602092830291909101820152600290920154600090815260049092526040909120906001016125fa565b50505050919395975091939597565b6040517f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000006020820152603a016112c7565b61279b6130af565b604080518082018252828152426020808301828152600087815260018084529086902094518555905193019290925582518481529182015283917f19cb5bc6996c2541fb44252778e9c8c952662cce4670a75a4174b50c765bd7d1910160405180910390a25050565b6003546040517f6e85b69a000000000000000000000000000000000000000000000000000000008152600481018390526060916000918291849182916001600160a01b031690636e85b69a90602401600060405180830381865afa158015612870573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612898919081019061556f565b6040516367a7cfb760e01b8152600481018890529095507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa1580156128ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061292391906155b3565b86519195509350603f1901612abd57604080516001808252818301909252906020808301908036833750506040805160018082528183019092529294509050602080830190803683370190505090506000808680602001905181019061298991906155f6565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612a0884846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612a2691815260200190565b6040805180830381865afa158015612a42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a6691906155b3565b85600081518110612a7957612a79614d7a565b6020026020010185600081518110612a9357612a93614d7a565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b81525050505050612cda565b845115612cda5760008086806020019051810190612adb9190615682565b815191935091508067ffffffffffffffff811115612afb57612afb614f64565b604051908082528060200260200182016040528015612b24578160200160208202803683370190505b5094508067ffffffffffffffff811115612b4057612b40614f64565b604051908082528060200260200182016040528015612b69578160200160208202803683370190505b50935060005b81811015612cd5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612c24868481518110612bbb57612bbb614d7a565b6020026020010151868581518110612bd557612bd5614d7a565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612c4291815260200190565b6040805180830381865afa158015612c5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8291906155b3565b878381518110612c9457612c94614d7a565b60200260200101878481518110612cad57612cad614d7a565b63ffffffff90931660209384029190910190920191909152601b9190910b9052600101612b6f565b505050505b91939590929450565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610ab3565b8315612d8c576001600160a01b038316612d875760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b612de3565b6001600160a01b03831615612de35760405162461bcd60e51b815260206004820152601f60248201527f53706f6e736f722077616c6c65742061646472657373206e6f74207a65726f006044820152606401610ab3565b612df08585858585613c80565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f187604051602001612e3491815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401612e6891815260200190565b602060405180830381865afa158015612e85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea99190614d44565b9050848103612efa5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652064415049206e616d65000000000000006044820152606401610ab3565b8415612f0957612f0985613dac565b6040516391eed08560e01b815260048101879052602481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b158015612f7257600080fd5b505af1158015612f86573d6000803e3d6000fd5b50505050505050505050565b5b6000908152600460205260409020600201548015801590612fcd57506000818152600460205260409020600101544263ffffffff90911611155b612f9357604051819083907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008281526005602052604090208190558061307757600354604051632412a9cb60e01b8152600481018490526001600160a01b0390911690632412a9cb906024015b600060405180830381600087803b15801561305b57600080fd5b505af115801561306f573d6000803e3d6000fd5b505050505050565b6003546001600160a01b031663d23bab148361309284611738565b6040518363ffffffff1660e01b8152600401613041929190615745565b336130c26000546001600160a01b031690565b6001600160a01b031614613104576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610ab3565b565b600080613115838501856157bc565b915091508160016000604051602001613151907f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000008152601a0190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146131b55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b61320781838989896040516020016131cf93929190615179565b60408051601f198184030181528282528051602091820120908301520160405160208183030381529060405280519060200120613f6f565b6132435760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050565b600063ffffffff82111561327d576040516306dfcc6560e41b81526020600482015260248101839052604401610ab3565b5090565b6000806000806132918686613f87565b9250925092506132a18282613fd4565b5090949350505050565b886132f85760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b606085146133485760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b836000036133985760405162461bcd60e51b815260206004820152600d60248201527f4475726174696f6e207a65726f000000000000000000000000000000000000006044820152606401610ab3565b826000036133e85760405162461bcd60e51b815260206004820152600a60248201527f5072696365207a65726f000000000000000000000000000000000000000000006044820152606401610ab3565b60008080806133f9858701876157f9565b93509350935093508360016000604051602001613439907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b604051602081830303815290604052805190602001208152602001908152602001600020600001541461349d5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018f90529081018d90526001600160a01b038c1660608201526134cd90849086906080016131cf565b6135095760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b8160016000604051602001613541907f644150492070726963696e67204d65726b6c6520726f6f740000000000000000815260180190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146135a55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b6135c581838f468e8e8e8e6040516020016131cf96959493929190615875565b6136015760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050505050505050565b6000806000806136228a898989613a0f565b6040519397509195509350915060009061363f908a908a90615169565b60405180910390209050600660008281526020019081526020016000208054613667906152a2565b905060000361368b576000818152600660205260409020613689898b836158f9565b505b6040805160808101825282815263ffffffff861660208201529081016136c7896136b88a62015180615501565b6136c29190615518565b6140d8565b6001600160e01b03908116825260209182018590526000888152600483526040908190208451815592840151908401519091166401000000000263ffffffff9091161760018201556060909101516002909101558261386f5760008b81526005602052604090205485146137745760405185908c907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008b81526005602052604090208590555b6003546040517fd23bab140000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063d23bab14906137c1908e908d908d906004016159b9565b600060405180830381600087803b1580156137db57600080fd5b505af11580156137ef573d6000803e3d6000fd5b50506003546040517fbe3cc74d000000000000000000000000000000000000000000000000000000008152600481018f90526001600160a01b03909116925063be3cc74d9150602401600060405180830381600087803b15801561385257600080fd5b505af1158015613866573d6000803e3d6000fd5b505050506138b9565b60008381526004602081815260408084206002018990558e8452600582528084205480855292909152909120600101544263ffffffff909116116138b7576138b78c82612f92565b505b6138c28a613dac565b897f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18d60405160200161390591815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161393991815260200190565b602060405180830381865afa158015613956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397a9190614d44565b14613a01576040516391eed08560e01b8152600481018c9052602481018b90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b1580156139e857600080fd5b505af11580156139fc573d6000803e3d6000fd5b505050505b505050509695505050505050565b600080600080878787604051613a26929190615169565b604051908190038120613a459291602001918252602082015260400190565b604051602081830303815290604052805190602001209350613a718542613a6c919061528f565b61324c565b925060008080613a83898b018b6159d3565b60008e81526005602052604081205493965091945092509081905b8015613c005760008181526004602052604081208054909350613ac69088908890889061410c565b60018085015491925063ffffffff90911690826002811115613aea57613aea615a0b565b1480613b0157508063ffffffff168b63ffffffff16115b613b4d5760405162461bcd60e51b815260206004820152601d60248201527f537562736372697074696f6e20646f6573206e6f7420757067726164650000006044820152606401610ab3565b6002826002811115613b6157613b61615a0b565b148015613b735750428163ffffffff16115b15613b8a578299508480613b8690615556565b9550505b6001826002811115613b9e57613b9e615a0b565b148015613bb657508063ffffffff168b63ffffffff16105b15613bf3578298505b8215613bec5784613bcf81615556565b60009485526004602052604090942060020154939550613bbf9050565b5050613c00565b5050506002810154613a9e565b507f00000000000000000000000000000000000000000000000000000000000000008210613c705760405162461bcd60e51b815260206004820152601760248201527f537562736372697074696f6e2071756575652066756c6c0000000000000000006044820152606401610ab3565b5050505050945094509450949050565b84613ccd5760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b600080613cdc838501856157bc565b915091508160016000604051602001613d18907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b6040516020818303038152906040528051906020012081526020019081526020016000206000015414613d7c5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018990529081018790526001600160a01b038616606082015261320790829084906080016131cf565b6040516367a7cfb760e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa158015613e13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3791906155b3565b9150613e4e90506201518063ffffffff831661528f565b421115613e9d5760405162461bcd60e51b815260206004820152601560248201527f4461746120666565642076616c7565207374616c6500000000000000000000006044820152606401610ab3565b6003546040517f7a821819000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690637a82181990602401602060405180830381865afa158015613eff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f239190615a21565b610b2f5760405162461bcd60e51b815260206004820152601860248201527f446174612066656564206e6f74207265676973746572656400000000000000006044820152606401610ab3565b600082613f7c85846142c9565b1490505b9392505050565b60008060008351604103613fc15760208401516040850151606086015160001a613fb38882858561430c565b955095509550505050613fcd565b50508151600091506002905b9250925092565b6000826003811115613fe857613fe8615a0b565b03613ff1575050565b600182600381111561400557614005615a0b565b0361403c576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600282600381111561405057614050615a0b565b0361408a576040517ffce698f700000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b600382600381111561409e5761409e615a0b565b03610b2f576040517fd78bce0c00000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b60006001600160e01b0382111561327d576040516306dfcc6560e41b815260e0600482015260248101839052604401610ab3565b600081815260066020526040812080548291829182919061412c906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054614158906152a2565b80156141a55780601f1061417a576101008083540402835291602001916141a5565b820191906000526020600020905b81548152906001019060200180831161418857829003601f168201915b50505050508060200190518101906141bd9190615a3c565b92509250925081601b0b87601b0b146142185760405162461bcd60e51b815260206004820152601e60248201527f446576696174696f6e207265666572656e636573206e6f7420657175616c00006044820152606401610ab3565b828814801561422657508086145b1561423757600093505050506142c1565b8288111580156142475750808611155b1561425857600193505050506142c1565b8288101580156142685750808610155b1561427957600293505050506142c1565b60405162461bcd60e51b815260206004820152601e60248201527f55706461746520706172616d657465727320696e636f6d70617261626c6500006044820152606401610ab3565b949350505050565b600081815b8451811015614304576142fa828683815181106142ed576142ed614d7a565b60200260200101516143db565b91506001016142ce565b509392505050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561434757506000915060039050826143d1565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801561439b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166143c7575060009250600191508290506143d1565b9250600091508190505b9450945094915050565b60008183106143f7576000828152602084905260409020610a52565b6000838152602083905260409020610a52565b60008083601f84011261441c57600080fd5b50813567ffffffffffffffff81111561443457600080fd5b6020830191508360208260051b850101111561444f57600080fd5b9250929050565b6000806020838503121561446957600080fd5b823567ffffffffffffffff81111561448057600080fd5b61448c8582860161440a565b90969095509350505050565b6000602082840312156144aa57600080fd5b5035919050565b6001600160a01b03811681146144c657600080fd5b50565b6000602082840312156144db57600080fd5b8135613f80816144b1565b6000806000604084860312156144fb57600080fd5b83359250602084013567ffffffffffffffff81111561451957600080fd5b6145258682870161440a565b9497909650939450505050565b60008083601f84011261454457600080fd5b50813567ffffffffffffffff81111561455c57600080fd5b60208301915083602082850101111561444f57600080fd5b600080600080600080600060a0888a03121561458f57600080fd5b873561459a816144b1565b96506020880135955060408801359450606088013567ffffffffffffffff8111156145c457600080fd5b6145d08a828b01614532565b909550935050608088013567ffffffffffffffff8111156145f057600080fd5b6145fc8a828b01614532565b989b979a50959850939692959293505050565b803561461a816144b1565b919050565b60008060008060008060008060008060006101008c8e03121561464157600080fd5b8b3567ffffffffffffffff81111561465857600080fd5b6146648e828f0161440a565b909c509a505060208c0135985060408c0135975061468460608d0161460f565b965060808c013567ffffffffffffffff8111156146a057600080fd5b6146ac8e828f01614532565b90975095505060a08c0135935060c08c0135925060e08c013567ffffffffffffffff8111156146da57600080fd5b6146e68e828f01614532565b915080935050809150509295989b509295989b9093969950565b60005b8381101561471b578181015183820152602001614703565b50506000910152565b6000815180845261473c816020860160208601614700565b601f01601f19169290920160200192915050565b600082825180855260208501945060208160051b8301016020850160005b838110156147a057601f1985840301885261478a838351614724565b602098890198909350919091019060010161476e565b50909695505050505050565b6040815260006147bf6040830185614750565b90508260208301529392505050565b6000806000806000606086880312156147e657600080fd5b85356147f1816144b1565b9450602086013567ffffffffffffffff81111561480d57600080fd5b61481988828901614532565b909550935050604086013567ffffffffffffffff81111561483957600080fd5b61484588828901614532565b969995985093965092949392505050565b600081518084526020840193506020830160005b8281101561488a578151151586526020958601959091019060010161486a565b5093949350505050565b6040815260006148a76040830185614856565b82810360208401526123de8185614750565b600080602083850312156148cc57600080fd5b823567ffffffffffffffff8111156148e357600080fd5b61448c85828601614532565b602081526000610a526020830184614724565b60008060008060006080868803121561491a57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561494657600080fd5b6148458882890161440a565b6060815260006149656060830186614856565b82810360208401526149778186614750565b915050826040830152949350505050565b602081526000610a526020830184614750565b600080600080600080600080600060e08a8c0312156149b957600080fd5b8935985060208a0135975060408a01356149d2816144b1565b965060608a013567ffffffffffffffff8111156149ee57600080fd5b6149fa8c828d01614532565b90975095505060808a0135935060a08a0135925060c08a013567ffffffffffffffff811115614a2857600080fd5b614a348c828d01614532565b915080935050809150509295985092959850929598565b600080600080600060808688031215614a6357600080fd5b85359450602086013567ffffffffffffffff811115614a8157600080fd5b614a8d88828901614532565b9699909850959660408101359660609091013595509350505050565b60008060008060608587031215614abf57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115614ae457600080fd5b614af087828801614532565b95989497509550505050565b600081518084526020840193506020830160005b8281101561488a578151601b0b865260209586019590910190600101614b10565b600081518084526020840193506020830160005b8281101561488a57815163ffffffff16865260209586019590910190600101614b45565b61010081526000614b7e61010083018b614724565b89601b0b602084015263ffffffff891660408401528281036060840152614ba58189614afc565b90508281036080840152614bb98188614b31565b905082810360a0840152614bcd8187614750565b905082810360c0840152614be18186614b31565b83810360e08501528451808252602080870193509091019060005b81811015614c235783516001600160e01b0316835260209384019390920191600101614bfc565b50909c9b505050505050505050505050565b60008060408385031215614c4857600080fd5b50508035926020909101359150565b60a081526000614c6a60a0830188614724565b86601b0b602084015263ffffffff861660408401528281036060840152614c918186614afc565b905082810360808401526110368185614b31565b600080600080600060808688031215614cbd57600080fd5b85359450602086013593506040860135614cd6816144b1565b9250606086013567ffffffffffffffff81111561483957600080fd5b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614d2b57600080fd5b8260051b80856040850137919091016040019392505050565b600060208284031215614d5657600080fd5b5051919050565b600060208284031215614d6f57600080fd5b8151613f80816144b1565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610a5557610a55614d90565b60008184825b85811015614df0578135614dd2816144b1565b6001600160a01b031683526020928301929190910190600101614dbf565b509095945050505050565b6020808252810182905260008360408301825b85811015614e3e578235614e21816144b1565b6001600160a01b0316825260209283019290910190600101614e0e565b5095945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038816815286602082015285604082015260a060608201526000614ea060a083018688614e48565b8281036080840152614eb3818587614e48565b9a9950505050505050505050565b6020808252810182905260006040600584901b830181019083018583601e1936839003015b87821015614f5757868503603f190184528235818112614f0557600080fd5b890160208101903567ffffffffffffffff811115614f2257600080fd5b803603821315614f3157600080fd5b614f3c878284614e48565b96505050602083019250602084019350600182019150614ee6565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614fa357614fa3614f64565b604052919050565b600067ffffffffffffffff821115614fc557614fc5614f64565b5060051b60200190565b600067ffffffffffffffff821115614fe957614fe9614f64565b50601f01601f191660200190565b600061500a61500584614fcf565b614f7a565b905082815283838301111561501e57600080fd5b613f80836020830184614700565b600082601f83011261503d57600080fd5b610a5283835160208501614ff7565b600082601f83011261505d57600080fd5b815161506b61500582614fab565b8082825260208201915060208360051b86010192508583111561508d57600080fd5b602085015b83811015614e3e57805167ffffffffffffffff8111156150b157600080fd5b6150c0886020838a010161502c565b84525060209283019201615092565b6000602082840312156150e157600080fd5b815167ffffffffffffffff8111156150f857600080fd5b6142c18482850161504c565b60006020828403121561511657600080fd5b815167ffffffffffffffff81111561512d57600080fd5b8201601f8101841361513e57600080fd5b6142c184825160208401614ff7565b6000825161515f818460208701614700565b9190910192915050565b8183823760009101908152919050565b6001600160a01b03841681526040602082015260006123de604083018486614e48565b6000808335601e198436030181126151b357600080fd5b83018035915067ffffffffffffffff8211156151ce57600080fd5b60200191503681900382131561444f57600080fd5b6020815260006142c1602083018486614e48565b63ffffffff8281168282160390811115610a5557610a55614d90565b60006001600160e01b0382166001600160e01b0384166001600160e01b038183021692508183048114821517611f4b57611f4b614d90565b634e487b7160e01b600052601260045260246000fd5b60006001600160e01b0383168061527a5761527a61524b565b806001600160e01b0384160491505092915050565b80820180821115610a5557610a55614d90565b600181811c908216806152b657607f821691505b6020821081036152d657634e487b7160e01b600052602260045260246000fd5b50919050565b600082601f8301126152ed57600080fd5b81356152fb61500582614fcf565b81815284602083860101111561531057600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561534257600080fd5b83359250602084013567ffffffffffffffff81111561536057600080fd5b61536c868287016152dc565b925050604084013567ffffffffffffffff81111561538957600080fd5b615395868287016152dc565b9150509250925092565b8151600090829060208501835b828110156153d35781516001600160a01b03168452602093840193909101906001016153ac565b509195945050505050565b8051801515811461461a57600080fd5b6000806040838503121561540157600080fd5b825167ffffffffffffffff81111561541857600080fd5b8301601f8101851361542957600080fd5b805161543761500582614fab565b8082825260208201915060208360051b85010192508783111561545957600080fd5b6020840193505b8284101561548257615471846153de565b825260209384019390910190615460565b80955050505050602083015167ffffffffffffffff8111156154a357600080fd5b6154af8582860161504c565b9150509250929050565b8781526001600160a01b038716602082015260c0604082015260006154e260c083018789614e48565b606083019590955250608081019290925260a090910152949350505050565b8082028115828204841417610a5557610a55614d90565b6000826155275761552761524b565b500490565b84815283602082015260606040820152600061554c606083018486614e48565b9695505050505050565b60006001820161556857615568614d90565b5060010190565b60006020828403121561558157600080fd5b815167ffffffffffffffff81111561559857600080fd5b6142c18482850161502c565b80601b0b81146144c657600080fd5b600080604083850312156155c657600080fd5b82516155d1816155a4565b602084015190925063ffffffff811681146155eb57600080fd5b809150509250929050565b6000806040838503121561560957600080fd5b8251615614816144b1565b6020939093015192949293505050565b600082601f83011261563557600080fd5b815161564361500582614fab565b8082825260208201915060208360051b86010192508583111561566557600080fd5b602085015b83811015614e3e57805183526020928301920161566a565b6000806040838503121561569557600080fd5b825167ffffffffffffffff8111156156ac57600080fd5b8301601f810185136156bd57600080fd5b80516156cb61500582614fab565b8082825260208201915060208360051b8501019250878311156156ed57600080fd5b6020840193505b82841015615718578351615707816144b1565b8252602093840193909101906156f4565b80955050505050602083015167ffffffffffffffff81111561573957600080fd5b6154af85828601615624565b8281526040602082015260006142c16040830184614724565b600082601f83011261576f57600080fd5b813561577d61500582614fab565b8082825260208201915060208360051b86010192508583111561579f57600080fd5b602085015b83811015614e3e5780358352602092830192016157a4565b600080604083850312156157cf57600080fd5b82359150602083013567ffffffffffffffff8111156157ed57600080fd5b6154af8582860161575e565b6000806000806080858703121561580f57600080fd5b84359350602085013567ffffffffffffffff81111561582d57600080fd5b6158398782880161575e565b93505060408501359150606085013567ffffffffffffffff81111561585d57600080fd5b6158698782880161575e565b91505092959194509250565b86815285602082015260a06040820152600061589560a083018688614e48565b60608301949094525060800152949350505050565b601f8211156158f457806000526020600020601f840160051c810160208510156158d15750805b601f840160051c820191505b818110156158f157600081556001016158dd565b50505b505050565b67ffffffffffffffff83111561591157615911614f64565b6159258361591f83546152a2565b836158aa565b6000601f84116001811461595957600085156159415750838201355b600019600387901b1c1916600186901b1783556158f1565b600083815260209020601f19861690835b8281101561598a578685013582556020948501946001909201910161596a565b50868210156159a75760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8381526040602082015260006123de604083018486614e48565b6000806000606084860312156159e857600080fd5b8335925060208401356159fa816155a4565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b600060208284031215615a3357600080fd5b610a52826153de565b600080600060608486031215615a5157600080fd5b83516020850151909350615a64816155a4565b604094909401519295939450919291505056fea26469706673582212201b8cf3e3f921ba8d94c9d11a75500ff4b930f86d1e5ad035d17793956ee9e95064736f6c634300081b0033", + "deployedBytecode": "0x6080604052600436106102f15760003560e01c8063715018a61161018f578063b7afd507116100e1578063d7fa10071161008a578063f2fde38b11610064578063f2fde38b1461093f578063f8b2cb4f1461095f578063fa0130671461098757600080fd5b8063d7fa1007146108d7578063d8d2f90f146108f7578063e637cf001461092857600080fd5b8063c6c04e16116100bb578063c6c04e1614610845578063d5659f3114610879578063d658d2e91461088e57600080fd5b8063b7afd507146107f2578063c1516e5414610805578063c30027601461082557600080fd5b806394259c6c11610143578063a89307b41161011d578063a89307b414610776578063aa2b44e414610798578063ac9650d8146107c557600080fd5b806394259c6c1461069957806397f679d314610722578063a5f36cb11461075657600080fd5b8063845ebe4311610174578063845ebe43146106215780638c9f4c791461064e5780638da5cb5b1461067b57600080fd5b8063715018a6146105f9578063796b89b91461060e57600080fd5b80633adb35fe116102485780634dcc19fe116101fc5780635989eaeb116101d65780635989eaeb1461057f5780635d868194146105b957806364c2359d146105d957600080fd5b80634dcc19fe1461053757806353130e261461054a5780635885c7711461056a57600080fd5b806342cbb15c1161022d57806342cbb15c146104d6578063437b9116146104e95780634dc610d41461051757600080fd5b80633adb35fe1461048d5780633db35663146104a257600080fd5b80631a0a0b3e116102aa578063288ddb6111610284578063288ddb61146104195780632d6a744e1461042e5780633408e4701461047a57600080fd5b80631a0a0b3e146103b85780631b1f24d8146103d85780631d911b6d146103f957600080fd5b8063044c9bd7116102db578063044c9bd71461034b5780630b62ebf21461037857806318d6e2d41461039857600080fd5b8062aae33f146102f65780630141ff4814610329575b600080fd5b34801561030257600080fd5b50610316610311366004614456565b6109a7565b6040519081526020015b60405180910390f35b34801561033557600080fd5b50610349610344366004614498565b610a5b565b005b34801561035757600080fd5b50610316610366366004614498565b60009081526001602052604090205490565b34801561038457600080fd5b506103496103933660046144c9565b610b33565b3480156103a457600080fd5b506103496103b33660046144e6565b610d18565b3480156103c457600080fd5b506103166103d3366004614574565b610f7f565b6103eb6103e636600461461f565b611042565b6040516103209291906147ac565b34801561040557600080fd5b506103496104143660046147ce565b6110e0565b34801561042557600080fd5b5061031661129a565b34801561043a57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610320565b34801561048657600080fd5b5046610316565b34801561049957600080fd5b506103166112e0565b3480156104ae57600080fd5b506104627f000000000000000000000000000000000000000000000000000000000000000081565b3480156104e257600080fd5b5043610316565b3480156104f557600080fd5b50610509610504366004614456565b611356565b604051610320929190614894565b34801561052357600080fd5b50610349610532366004614498565b6114bc565b34801561054357600080fd5b5048610316565b34801561055657600080fd5b50600354610462906001600160a01b031681565b34801561057657600080fd5b506103166115bd565b34801561058b57600080fd5b506105a961059a3660046144c9565b6001600160a01b03163b151590565b6040519015158152602001610320565b3480156105c557600080fd5b506103166105d43660046148b9565b6115ee565b3480156105e557600080fd5b506103166105f4366004614498565b61163a565b34801561060557600080fd5b506103496116f0565b34801561061a57600080fd5b5042610316565b34801561062d57600080fd5b5061031661063c366004614498565b60026020526000908152604090205481565b34801561065a57600080fd5b5061066e610669366004614498565b611738565b60405161032091906148ef565b34801561068757600080fd5b506000546001600160a01b0316610462565b3480156106a557600080fd5b506106ef6106b4366004614498565b600460205260009081526040902080546001820154600290920154909163ffffffff8116916401000000009091046001600160e01b03169084565b6040805194855263ffffffff90931660208501526001600160e01b03909116918301919091526060820152608001610320565b34801561072e57600080fd5b506103167f000000000000000000000000000000000000000000000000000000000000000081565b34801561076257600080fd5b50610349610771366004614902565b6117e7565b61078961078436600461461f565b611d2f565b60405161032093929190614952565b3480156107a457600080fd5b506103166107b3366004614498565b60056020526000908152604090205481565b3480156107d157600080fd5b506107e56107e0366004614456565b611dd2565b6040516103209190614988565b61031661080036600461499b565b611f53565b34801561081157600080fd5b50610316610820366004614a4b565b612181565b34801561083157600080fd5b50610462610840366004614aa9565b61232d565b34801561085157600080fd5b50610865610860366004614498565b6123e7565b604051610320989796959493929190614b69565b34801561088557600080fd5b50610316612762565b34801561089a57600080fd5b506108c26108a9366004614498565b6001602081905260009182526040909120805491015482565b60408051928352602083019190915201610320565b3480156108e357600080fd5b506103496108f2366004614c35565b612793565b34801561090357600080fd5b50610917610912366004614498565b612804565b604051610320959493929190614c57565b34801561093457600080fd5b506103166201518081565b34801561094b57600080fd5b5061034961095a3660046144c9565b612ce3565b34801561096b57600080fd5b5061031661097a3660046144c9565b6001600160a01b03163190565b34801561099357600080fd5b506103496109a2366004614ca5565b612d2b565b6040517eaae33f0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169062aae33f90610a0f9086908690600401614cf2565b6020604051808303816000875af1158015610a2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a529190614d44565b90505b92915050565b60008181526005602052604090205480610abc5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d707479000000000000000060448201526064015b60405180910390fd5b6000818152600460205260409020600101544263ffffffff9091161115610b255760405162461bcd60e51b815260206004820152601e60248201527f43757272656e7420737562736372697074696f6e206e6f7420656e64656400006044820152606401610ab3565b610b2f8282612f92565b5050565b610b3b6130af565b6001600160a01b038116610b915760405162461bcd60e51b815260206004820152601e60248201527f4169727365656b657252656769737472792061646472657373207a65726f00006044820152606401610ab3565b6003546001600160a01b031615610bea5760405162461bcd60e51b815260206004820152601d60248201527f4169727365656b6572526567697374727920616c7265616479207365740000006044820152606401610ab3565b306001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c569190614d5d565b6001600160a01b031614610cac5760405162461bcd60e51b815260206004820152601b60248201527f4e6f74204169727365656b65725265676973747279206f776e657200000000006044820152606401610ab3565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f90f2d5c680e476ebdec8de98d28cd387630163236f0975752747b4075c8300f89060200160405180910390a150565b610d206130af565b82610d6d5760405162461bcd60e51b815260206004820152600e60248201527f486173682074797065207a65726f0000000000000000000000000000000000006044820152606401610ab3565b806000819003610dbf5760405162461bcd60e51b815260206004820152600d60248201527f5369676e65727320656d707479000000000000000000000000000000000000006044820152606401610ab3565b600083838281610dd157610dd1614d7a565b9050602002016020810190610de691906144c9565b6001600160a01b031603610e3c5760405162461bcd60e51b815260206004820152601960248201527f4669727374207369676e65722061646472657373207a65726f000000000000006044820152606401610ab3565b60015b81811015610f06578383610e54600184614da6565b818110610e6357610e63614d7a565b9050602002016020810190610e7891906144c9565b6001600160a01b0316848483818110610e9357610e93614d7a565b9050602002016020810190610ea891906144c9565b6001600160a01b031611610efe5760405162461bcd60e51b815260206004820152601e60248201527f5369676e657273206e6f7420696e20617363656e64696e67206f7264657200006044820152606401610ab3565b600101610e3f565b508282604051602001610f1a929190614db9565b60408051601f198184030181528282528051602091820120600088815260029092529190205584907f5a1f5ee4ceedd78b1982374b4790e8aa9f31e8af1c32aaef46b2afd8a789193a90610f719086908690614dfb565b60405180910390a250505050565b6040517f1a0a0b3e0000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631a0a0b3e90610ff3908b908b908b908b908b908b908b90600401614e71565b6020604051808303816000875af1158015611012573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110369190614d44565b98975050505050505050565b60606000306001600160a01b031663ac9650d88e8e6040518363ffffffff1660e01b8152600401611074929190614ec1565b6000604051808303816000875af1158015611093573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526110bb91908101906150cf565b91506110ce8b8b8b8b8b8b8b8b8b611f53565b90509b509b9950505050505050505050565b6110ed8585858585613106565b6003546040517f085df6ab0000000000000000000000000000000000000000000000000000000081526001600160a01b0387811660048301529091169063085df6ab90602401600060405180830381865afa158015611150573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111789190810190615104565b604051602001611188919061514d565b6040516020818303038152906040528051906020012084846040516020016111b1929190615169565b60405160208183030381529060405280519060200120036112145760405162461bcd60e51b815260206004820152601e60248201527f446f6573206e6f7420757064617465207369676e6564204150492055524c00006044820152606401610ab3565b6003546040517ffba8f22f0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063fba8f22f9061126190889088908890600401615179565b600060405180830381600087803b15801561127b57600080fd5b505af115801561128f573d6000803e3d6000fd5b505050505050505050565b6040517f644150492070726963696e67204d65726b6c6520726f6f74000000000000000060208201526038015b6040516020818303038152906040528051906020012081565b600060405160200161133b907f417069334d61726b65745632207369676e61747572652064656c65676174696f81527f6e00000000000000000000000000000000000000000000000000000000000000602082015260210190565b60405160208183030381529060405280519060200120905090565b606080828067ffffffffffffffff81111561137357611373614f64565b60405190808252806020026020018201604052801561139c578160200160208202803683370190505b5092508067ffffffffffffffff8111156113b8576113b8614f64565b6040519080825280602002602001820160405280156113eb57816020015b60608152602001906001900390816113d65790505b50915060005b818110156114b3573086868381811061140c5761140c614d7a565b905060200281019061141e919061519c565b60405161142c929190615169565b600060405180830381855af49150503d8060008114611467576040519150601f19603f3d011682016040523d82523d6000602084013e61146c565b606091505b5085838151811061147f5761147f614d7a565b6020026020010185848151811061149857611498614d7a565b602090810291909101019190915290151590526001016113f1565b50509250929050565b6114c46130af565b60008181526005602052604090205461151f5760405162461bcd60e51b815260206004820152601860248201527f537562736372697074696f6e20717565756520656d70747900000000000000006044820152606401610ab3565b600081815260056020526040808220919091556003549051632412a9cb60e01b8152600481018390526001600160a01b0390911690632412a9cb90602401600060405180830381600087803b15801561157757600080fd5b505af115801561158b573d6000803e3d6000fd5b50506040518392507f07731f198aeecb61ff6de517fa82a003ba1bb3846140b23b62d7563dc2ddfb6a9150600090a250565b6040517f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000006020820152603b016112c7565b6003546040517f5d8681940000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690635d86819490610a0f90869086906004016151e3565b6000806116464261324c565b600084815260056020526040812054919250905b80156116e8576000818152600460205260409020600181015490925063ffffffff16428111156116dc576001830154620151809064010000000090046001600160e01b03166116a986846151f7565b63ffffffff166116b99190615213565b6116c39190615261565b6116d6906001600160e01b03168661528f565b94508093505b5050600281015461165a565b505050919050565b60405162461bcd60e51b815260206004820152601d60248201527f4f776e6572736869702063616e6e6f742062652072656e6f756e6365640000006044820152606401610ab3565b600081815260046020908152604080832054835260069091529020805460609190611762906152a2565b80601f016020809104026020016040519081016040528092919081815260200182805461178e906152a2565b80156117db5780601f106117b0576101008083540402835291602001916117db565b820191906000526020600020905b8154815290600101906020018083116117be57829003601f168201915b50505050509050919050565b836118345760405162461bcd60e51b815260206004820152600f60248201527f486173682076616c7565207a65726f00000000000000000000000000000000006044820152606401610ab3565b428311156118845760405162461bcd60e51b815260206004820152601a60248201527f486173682074696d657374616d702066726f6d206675747572650000000000006044820152606401610ab3565b6000858152600160208190526040909120015483116118e55760405162461bcd60e51b815260206004820152601e60248201527f486173682074696d657374616d70206e6f74206d6f726520726563656e7400006044820152606401610ab3565b600085815260026020526040902054806119415760405162461bcd60e51b815260206004820152600f60248201527f5369676e657273206e6f742073657400000000000000000000000000000000006044820152606401610ab3565b8160008167ffffffffffffffff81111561195d5761195d614f64565b604051908082528060200260200182016040528015611986578160200160208202803683370190505b5060408051602081018b9052908101899052606081018890529091506000906119f6906080015b604051602081830303815290604052805190602001207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006000908152601c91909152603c902090565b905060005b83811015611c41576000878783818110611a1757611a17614d7a565b9050602002810190611a29919061519c565b9150506040198101611ace57611a9783898985818110611a4b57611a4b614d7a565b9050602002810190611a5d919061519c565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061328192505050565b848381518110611aa957611aa9614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050611c38565b6101608103611bf05760008060008a8a86818110611aee57611aee614d7a565b9050602002810190611b00919061519c565b810190611b0d919061532d565b925092509250824210611b625760405162461bcd60e51b815260206004820152601060248201527f44656c65676174696f6e20656e646564000000000000000000000000000000006044820152606401610ab3565b611bb6611bb0611b706112e0565b611b7a8985613281565b866040516020016119ad9392919092835260609190911b6bffffffffffffffffffffffff19166020830152603482015260540190565b83613281565b878681518110611bc857611bc8614d7a565b60200260200101906001600160a01b031690816001600160a01b031681525050505050611c38565b60405162461bcd60e51b815260206004820152601860248201527f496e76616c6964207369676e6174757265206c656e67746800000000000000006044820152606401610ab3565b506001016119fb565b5081604051602001611c53919061539f565b604051602081830303815290604052805190602001208414611cb75760405162461bcd60e51b815260206004820152601260248201527f5369676e6174757265206d69736d6174636800000000000000000000000000006044820152606401610ab3565b60408051808201825289815260208082018a815260008d815260019283905284902092518355519101555189907fa33e8931ee2a869317bbe04201dab2907fd39d2d7f014c15b8459986e62c279190611d1c908b908b90918252602082015260400190565b60405180910390a2505050505050505050565b6060806000306001600160a01b031663437b91168f8f6040518363ffffffff1660e01b8152600401611d62929190614ec1565b6000604051808303816000875af1158015611d81573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611da991908101906153ee565b9093509150611dbf8c8c8c8c8c8c8c8c8c611f53565b90509b509b509b98505050505050505050565b6060818067ffffffffffffffff811115611dee57611dee614f64565b604051908082528060200260200182016040528015611e2157816020015b6060815260200190600190039081611e0c5790505b50915060005b81811015611f4b57600030868684818110611e4457611e44614d7a565b9050602002810190611e56919061519c565b604051611e64929190615169565b600060405180830381855af49150503d8060008114611e9f576040519150601f19603f3d011682016040523d82523d6000602084013e611ea4565b606091505b50858481518110611eb757611eb7614d7a565b6020908102919091010152905080611f42576000848381518110611edd57611edd614d7a565b60200260200101519050600081511115611efa5780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e6700000000006044820152606401610ab3565b50600101611e27565b505092915050565b600088611fa25760405162461bcd60e51b815260206004820152601160248201527f446174612066656564204944207a65726f0000000000000000000000000000006044820152606401610ab3565b6001600160a01b038816611ff85760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b6120098a8a8a8a8a8a8a8a8a6132ab565b6120178a8a89898989613610565b90506120228a61163a565b612036346001600160a01b038b163161528f565b10156120845760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e74207061796d656e740000000000000000000000006044820152606401610ab3565b808a7fd44e8abecc305a9434d27a049c731a8331cee8bca6496154f47835b396ce55068b8b8b8b8b8b346040516120c197969594939291906154b9565b60405180910390a33415612174576000886001600160a01b03163460405160006040518083038185875af1925050503d806000811461211c576040519150601f19603f3d011682016040523d82523d6000602084013e612121565b606091505b50509050806121725760405162461bcd60e51b815260206004820152601560248201527f5472616e7366657220756e7375636365737366756c00000000000000000000006044820152606401610ab3565b505b9998505050505050505050565b6000606084146121d35760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b6000806000806121e58a8a8a8a613a0f565b935093509350935060008787620151806121ff9190615501565b6122099190615518565b905060006122164261324c565b9050600084156122345760008d815260056020526040902054612236565b865b90505b801561231d5786810361228657620151808361225584896151f7565b63ffffffff166122659190615501565b61226f9190615518565b612279908961528f565b9750859150839050612239565b6000818152600460205260409020600181015463ffffffff16428111156122ff576001820154620151809064010000000090046001600160e01b03166122cc86846151f7565b63ffffffff166122dc9190615213565b6122e69190615261565b6122f9906001600160e01b03168b61528f565b99508093505b82870361230e57889250612316565b816002015492505b5050612239565b5050505050505095945050505050565b6040517fc30027600000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c30027609061239b90889088908890889060040161552c565b6020604051808303816000875af11580156123ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123de9190614d5d565b95945050505050565b6060600080606080606080606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18b60405160200161243891815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161246c91815260200190565b602060405180830381865afa158015612489573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ad9190614d44565b90506124b881612804565b60008f815260056020526040812054959e50939c50919a5098509650905b801561250357816124e681615556565b600092835260046020526040909220600201549192506124d69050565b508067ffffffffffffffff81111561251d5761251d614f64565b60405190808252806020026020018201604052801561255057816020015b606081526020019060019003908161253b5790505b5094508067ffffffffffffffff81111561256c5761256c614f64565b604051908082528060200260200182016040528015612595578160200160208202803683370190505b5093508067ffffffffffffffff8111156125b1576125b1614f64565b6040519080825280602002602001820160405280156125da578160200160208202803683370190505b5060008c8152600560209081526040808320548352600490915281209194505b828110156127535781546000908152600660205260409020805461261d906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054612649906152a2565b80156126965780601f1061266b57610100808354040283529160200191612696565b820191906000526020600020905b81548152906001019060200180831161267957829003601f168201915b50505050508782815181106126ad576126ad614d7a565b60209081029190910101526001820154865163ffffffff909116908790839081106126da576126da614d7a565b602002602001019063ffffffff16908163ffffffff16815250508160010160049054906101000a90046001600160e01b031685828151811061271e5761271e614d7a565b6001600160e01b03909216602092830291909101820152600290920154600090815260049092526040909120906001016125fa565b50505050919395975091939597565b6040517f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000006020820152603a016112c7565b61279b6130af565b604080518082018252828152426020808301828152600087815260018084529086902094518555905193019290925582518481529182015283917f19cb5bc6996c2541fb44252778e9c8c952662cce4670a75a4174b50c765bd7d1910160405180910390a25050565b6003546040517f6e85b69a000000000000000000000000000000000000000000000000000000008152600481018390526060916000918291849182916001600160a01b031690636e85b69a90602401600060405180830381865afa158015612870573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052612898919081019061556f565b6040516367a7cfb760e01b8152600481018890529095507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa1580156128ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061292391906155b3565b86519195509350603f1901612abd57604080516001808252818301909252906020808301908036833750506040805160018082528183019092529294509050602080830190803683370190505090506000808680602001905181019061298991906155f6565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612a0884846040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612a2691815260200190565b6040805180830381865afa158015612a42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a6691906155b3565b85600081518110612a7957612a79614d7a565b6020026020010185600081518110612a9357612a93614d7a565b602002602001018263ffffffff1663ffffffff1681525082601b0b601b0b81525050505050612cda565b845115612cda5760008086806020019051810190612adb9190615682565b815191935091508067ffffffffffffffff811115612afb57612afb614f64565b604051908082528060200260200182016040528015612b24578160200160208202803683370190505b5094508067ffffffffffffffff811115612b4057612b40614f64565b604051908082528060200260200182016040528015612b69578160200160208202803683370190505b50935060005b81811015612cd5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb7612c24868481518110612bbb57612bbb614d7a565b6020026020010151868581518110612bd557612bd5614d7a565b60200260200101516040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b6040518263ffffffff1660e01b8152600401612c4291815260200190565b6040805180830381865afa158015612c5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c8291906155b3565b878381518110612c9457612c94614d7a565b60200260200101878481518110612cad57612cad614d7a565b63ffffffff90931660209384029190910190920191909152601b9190910b9052600101612b6f565b505050505b91939590929450565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e6572736869702063616e6e6f74206265207472616e73666572726564006044820152606401610ab3565b8315612d8c576001600160a01b038316612d875760405162461bcd60e51b815260206004820152601b60248201527f53706f6e736f722077616c6c65742061646472657373207a65726f00000000006044820152606401610ab3565b612de3565b6001600160a01b03831615612de35760405162461bcd60e51b815260206004820152601f60248201527f53706f6e736f722077616c6c65742061646472657373206e6f74207a65726f006044820152606401610ab3565b612df08585858585613c80565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f187604051602001612e3491815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401612e6891815260200190565b602060405180830381865afa158015612e85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea99190614d44565b9050848103612efa5760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652064415049206e616d65000000000000006044820152606401610ab3565b8415612f0957612f0985613dac565b6040516391eed08560e01b815260048101879052602481018690527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b158015612f7257600080fd5b505af1158015612f86573d6000803e3d6000fd5b50505050505050505050565b5b6000908152600460205260409020600201548015801590612fcd57506000818152600460205260409020600101544263ffffffff90911611155b612f9357604051819083907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008281526005602052604090208190558061307757600354604051632412a9cb60e01b8152600481018490526001600160a01b0390911690632412a9cb906024015b600060405180830381600087803b15801561305b57600080fd5b505af115801561306f573d6000803e3d6000fd5b505050505050565b6003546001600160a01b031663d23bab148361309284611738565b6040518363ffffffff1660e01b8152600401613041929190615745565b336130c26000546001600160a01b031690565b6001600160a01b031614613104576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610ab3565b565b600080613115838501856157bc565b915091508160016000604051602001613151907f5369676e6564204150492055524c204d65726b6c6520726f6f740000000000008152601a0190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146131b55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b61320781838989896040516020016131cf93929190615179565b60408051601f198184030181528282528051602091820120908301520160405160208183030381529060405280519060200120613f6f565b6132435760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050565b600063ffffffff82111561327d576040516306dfcc6560e41b81526020600482015260248101839052604401610ab3565b5090565b6000806000806132918686613f87565b9250925092506132a18282613fd4565b5090949350505050565b886132f85760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b606085146133485760405162461bcd60e51b815260206004820181905260248201527f55706461746520706172616d6574657273206c656e67746820696e76616c69646044820152606401610ab3565b836000036133985760405162461bcd60e51b815260206004820152600d60248201527f4475726174696f6e207a65726f000000000000000000000000000000000000006044820152606401610ab3565b826000036133e85760405162461bcd60e51b815260206004820152600a60248201527f5072696365207a65726f000000000000000000000000000000000000000000006044820152606401610ab3565b60008080806133f9858701876157f9565b93509350935093508360016000604051602001613439907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b604051602081830303815290604052805190602001208152602001908152602001600020600001541461349d5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018f90529081018d90526001600160a01b038c1660608201526134cd90849086906080016131cf565b6135095760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b8160016000604051602001613541907f644150492070726963696e67204d65726b6c6520726f6f740000000000000000815260180190565b60405160208183030381529060405280519060200120815260200190815260200160002060000154146135a55760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b6135c581838f468e8e8e8e6040516020016131cf96959493929190615875565b6136015760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b210383937b7b360991b6044820152606401610ab3565b50505050505050505050505050565b6000806000806136228a898989613a0f565b6040519397509195509350915060009061363f908a908a90615169565b60405180910390209050600660008281526020019081526020016000208054613667906152a2565b905060000361368b576000818152600660205260409020613689898b836158f9565b505b6040805160808101825282815263ffffffff861660208201529081016136c7896136b88a62015180615501565b6136c29190615518565b6140d8565b6001600160e01b03908116825260209182018590526000888152600483526040908190208451815592840151908401519091166401000000000263ffffffff9091161760018201556060909101516002909101558261386f5760008b81526005602052604090205485146137745760405185908c907fe08aff0930a0c84c077d2ce7e690a3f910c0f8705376b2405816efb89b9869b790600090a360008b81526005602052604090208590555b6003546040517fd23bab140000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063d23bab14906137c1908e908d908d906004016159b9565b600060405180830381600087803b1580156137db57600080fd5b505af11580156137ef573d6000803e3d6000fd5b50506003546040517fbe3cc74d000000000000000000000000000000000000000000000000000000008152600481018f90526001600160a01b03909116925063be3cc74d9150602401600060405180830381600087803b15801561385257600080fd5b505af1158015613866573d6000803e3d6000fd5b505050506138b9565b60008381526004602081815260408084206002018990558e8452600582528084205480855292909152909120600101544263ffffffff909116116138b7576138b78c82612f92565b505b6138c28a613dac565b897f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663472c22f18d60405160200161390591815260200190565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b815260040161393991815260200190565b602060405180830381865afa158015613956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397a9190614d44565b14613a01576040516391eed08560e01b8152600481018c9052602481018b90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391eed08590604401600060405180830381600087803b1580156139e857600080fd5b505af11580156139fc573d6000803e3d6000fd5b505050505b505050509695505050505050565b600080600080878787604051613a26929190615169565b604051908190038120613a459291602001918252602082015260400190565b604051602081830303815290604052805190602001209350613a718542613a6c919061528f565b61324c565b925060008080613a83898b018b6159d3565b60008e81526005602052604081205493965091945092509081905b8015613c005760008181526004602052604081208054909350613ac69088908890889061410c565b60018085015491925063ffffffff90911690826002811115613aea57613aea615a0b565b1480613b0157508063ffffffff168b63ffffffff16115b613b4d5760405162461bcd60e51b815260206004820152601d60248201527f537562736372697074696f6e20646f6573206e6f7420757067726164650000006044820152606401610ab3565b6002826002811115613b6157613b61615a0b565b148015613b735750428163ffffffff16115b15613b8a578299508480613b8690615556565b9550505b6001826002811115613b9e57613b9e615a0b565b148015613bb657508063ffffffff168b63ffffffff16105b15613bf3578298505b8215613bec5784613bcf81615556565b60009485526004602052604090942060020154939550613bbf9050565b5050613c00565b5050506002810154613a9e565b507f00000000000000000000000000000000000000000000000000000000000000008210613c705760405162461bcd60e51b815260206004820152601760248201527f537562736372697074696f6e2071756575652066756c6c0000000000000000006044820152606401610ab3565b5050505050945094509450949050565b84613ccd5760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610ab3565b600080613cdc838501856157bc565b915091508160016000604051602001613d18907f64415049206d616e6167656d656e74204d65726b6c6520726f6f7400000000008152601b0190565b6040516020818303038152906040528051906020012081526020019081526020016000206000015414613d7c5760405162461bcd60e51b815260206004820152600c60248201526b125b9d985b1a59081c9bdbdd60a21b6044820152606401610ab3565b60408051602081018990529081018790526001600160a01b038616606082015261320790829084906080016131cf565b6040516367a7cfb760e01b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906367a7cfb7906024016040805180830381865afa158015613e13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3791906155b3565b9150613e4e90506201518063ffffffff831661528f565b421115613e9d5760405162461bcd60e51b815260206004820152601560248201527f4461746120666565642076616c7565207374616c6500000000000000000000006044820152606401610ab3565b6003546040517f7a821819000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690637a82181990602401602060405180830381865afa158015613eff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f239190615a21565b610b2f5760405162461bcd60e51b815260206004820152601860248201527f446174612066656564206e6f74207265676973746572656400000000000000006044820152606401610ab3565b600082613f7c85846142c9565b1490505b9392505050565b60008060008351604103613fc15760208401516040850151606086015160001a613fb38882858561430c565b955095509550505050613fcd565b50508151600091506002905b9250925092565b6000826003811115613fe857613fe8615a0b565b03613ff1575050565b600182600381111561400557614005615a0b565b0361403c576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600282600381111561405057614050615a0b565b0361408a576040517ffce698f700000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b600382600381111561409e5761409e615a0b565b03610b2f576040517fd78bce0c00000000000000000000000000000000000000000000000000000000815260048101829052602401610ab3565b60006001600160e01b0382111561327d576040516306dfcc6560e41b815260e0600482015260248101839052604401610ab3565b600081815260066020526040812080548291829182919061412c906152a2565b80601f0160208091040260200160405190810160405280929190818152602001828054614158906152a2565b80156141a55780601f1061417a576101008083540402835291602001916141a5565b820191906000526020600020905b81548152906001019060200180831161418857829003601f168201915b50505050508060200190518101906141bd9190615a3c565b92509250925081601b0b87601b0b146142185760405162461bcd60e51b815260206004820152601e60248201527f446576696174696f6e207265666572656e636573206e6f7420657175616c00006044820152606401610ab3565b828814801561422657508086145b1561423757600093505050506142c1565b8288111580156142475750808611155b1561425857600193505050506142c1565b8288101580156142685750808610155b1561427957600293505050506142c1565b60405162461bcd60e51b815260206004820152601e60248201527f55706461746520706172616d657465727320696e636f6d70617261626c6500006044820152606401610ab3565b949350505050565b600081815b8451811015614304576142fa828683815181106142ed576142ed614d7a565b60200260200101516143db565b91506001016142ce565b509392505050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561434757506000915060039050826143d1565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801561439b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166143c7575060009250600191508290506143d1565b9250600091508190505b9450945094915050565b60008183106143f7576000828152602084905260409020610a52565b6000838152602083905260409020610a52565b60008083601f84011261441c57600080fd5b50813567ffffffffffffffff81111561443457600080fd5b6020830191508360208260051b850101111561444f57600080fd5b9250929050565b6000806020838503121561446957600080fd5b823567ffffffffffffffff81111561448057600080fd5b61448c8582860161440a565b90969095509350505050565b6000602082840312156144aa57600080fd5b5035919050565b6001600160a01b03811681146144c657600080fd5b50565b6000602082840312156144db57600080fd5b8135613f80816144b1565b6000806000604084860312156144fb57600080fd5b83359250602084013567ffffffffffffffff81111561451957600080fd5b6145258682870161440a565b9497909650939450505050565b60008083601f84011261454457600080fd5b50813567ffffffffffffffff81111561455c57600080fd5b60208301915083602082850101111561444f57600080fd5b600080600080600080600060a0888a03121561458f57600080fd5b873561459a816144b1565b96506020880135955060408801359450606088013567ffffffffffffffff8111156145c457600080fd5b6145d08a828b01614532565b909550935050608088013567ffffffffffffffff8111156145f057600080fd5b6145fc8a828b01614532565b989b979a50959850939692959293505050565b803561461a816144b1565b919050565b60008060008060008060008060008060006101008c8e03121561464157600080fd5b8b3567ffffffffffffffff81111561465857600080fd5b6146648e828f0161440a565b909c509a505060208c0135985060408c0135975061468460608d0161460f565b965060808c013567ffffffffffffffff8111156146a057600080fd5b6146ac8e828f01614532565b90975095505060a08c0135935060c08c0135925060e08c013567ffffffffffffffff8111156146da57600080fd5b6146e68e828f01614532565b915080935050809150509295989b509295989b9093969950565b60005b8381101561471b578181015183820152602001614703565b50506000910152565b6000815180845261473c816020860160208601614700565b601f01601f19169290920160200192915050565b600082825180855260208501945060208160051b8301016020850160005b838110156147a057601f1985840301885261478a838351614724565b602098890198909350919091019060010161476e565b50909695505050505050565b6040815260006147bf6040830185614750565b90508260208301529392505050565b6000806000806000606086880312156147e657600080fd5b85356147f1816144b1565b9450602086013567ffffffffffffffff81111561480d57600080fd5b61481988828901614532565b909550935050604086013567ffffffffffffffff81111561483957600080fd5b61484588828901614532565b969995985093965092949392505050565b600081518084526020840193506020830160005b8281101561488a578151151586526020958601959091019060010161486a565b5093949350505050565b6040815260006148a76040830185614856565b82810360208401526123de8185614750565b600080602083850312156148cc57600080fd5b823567ffffffffffffffff8111156148e357600080fd5b61448c85828601614532565b602081526000610a526020830184614724565b60008060008060006080868803121561491a57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff81111561494657600080fd5b6148458882890161440a565b6060815260006149656060830186614856565b82810360208401526149778186614750565b915050826040830152949350505050565b602081526000610a526020830184614750565b600080600080600080600080600060e08a8c0312156149b957600080fd5b8935985060208a0135975060408a01356149d2816144b1565b965060608a013567ffffffffffffffff8111156149ee57600080fd5b6149fa8c828d01614532565b90975095505060808a0135935060a08a0135925060c08a013567ffffffffffffffff811115614a2857600080fd5b614a348c828d01614532565b915080935050809150509295985092959850929598565b600080600080600060808688031215614a6357600080fd5b85359450602086013567ffffffffffffffff811115614a8157600080fd5b614a8d88828901614532565b9699909850959660408101359660609091013595509350505050565b60008060008060608587031215614abf57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115614ae457600080fd5b614af087828801614532565b95989497509550505050565b600081518084526020840193506020830160005b8281101561488a578151601b0b865260209586019590910190600101614b10565b600081518084526020840193506020830160005b8281101561488a57815163ffffffff16865260209586019590910190600101614b45565b61010081526000614b7e61010083018b614724565b89601b0b602084015263ffffffff891660408401528281036060840152614ba58189614afc565b90508281036080840152614bb98188614b31565b905082810360a0840152614bcd8187614750565b905082810360c0840152614be18186614b31565b83810360e08501528451808252602080870193509091019060005b81811015614c235783516001600160e01b0316835260209384019390920191600101614bfc565b50909c9b505050505050505050505050565b60008060408385031215614c4857600080fd5b50508035926020909101359150565b60a081526000614c6a60a0830188614724565b86601b0b602084015263ffffffff861660408401528281036060840152614c918186614afc565b905082810360808401526110368185614b31565b600080600080600060808688031215614cbd57600080fd5b85359450602086013593506040860135614cd6816144b1565b9250606086013567ffffffffffffffff81111561483957600080fd5b6020815281602082015260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115614d2b57600080fd5b8260051b80856040850137919091016040019392505050565b600060208284031215614d5657600080fd5b5051919050565b600060208284031215614d6f57600080fd5b8151613f80816144b1565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610a5557610a55614d90565b60008184825b85811015614df0578135614dd2816144b1565b6001600160a01b031683526020928301929190910190600101614dbf565b509095945050505050565b6020808252810182905260008360408301825b85811015614e3e578235614e21816144b1565b6001600160a01b0316825260209283019290910190600101614e0e565b5095945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038816815286602082015285604082015260a060608201526000614ea060a083018688614e48565b8281036080840152614eb3818587614e48565b9a9950505050505050505050565b6020808252810182905260006040600584901b830181019083018583601e1936839003015b87821015614f5757868503603f190184528235818112614f0557600080fd5b890160208101903567ffffffffffffffff811115614f2257600080fd5b803603821315614f3157600080fd5b614f3c878284614e48565b96505050602083019250602084019350600182019150614ee6565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614fa357614fa3614f64565b604052919050565b600067ffffffffffffffff821115614fc557614fc5614f64565b5060051b60200190565b600067ffffffffffffffff821115614fe957614fe9614f64565b50601f01601f191660200190565b600061500a61500584614fcf565b614f7a565b905082815283838301111561501e57600080fd5b613f80836020830184614700565b600082601f83011261503d57600080fd5b610a5283835160208501614ff7565b600082601f83011261505d57600080fd5b815161506b61500582614fab565b8082825260208201915060208360051b86010192508583111561508d57600080fd5b602085015b83811015614e3e57805167ffffffffffffffff8111156150b157600080fd5b6150c0886020838a010161502c565b84525060209283019201615092565b6000602082840312156150e157600080fd5b815167ffffffffffffffff8111156150f857600080fd5b6142c18482850161504c565b60006020828403121561511657600080fd5b815167ffffffffffffffff81111561512d57600080fd5b8201601f8101841361513e57600080fd5b6142c184825160208401614ff7565b6000825161515f818460208701614700565b9190910192915050565b8183823760009101908152919050565b6001600160a01b03841681526040602082015260006123de604083018486614e48565b6000808335601e198436030181126151b357600080fd5b83018035915067ffffffffffffffff8211156151ce57600080fd5b60200191503681900382131561444f57600080fd5b6020815260006142c1602083018486614e48565b63ffffffff8281168282160390811115610a5557610a55614d90565b60006001600160e01b0382166001600160e01b0384166001600160e01b038183021692508183048114821517611f4b57611f4b614d90565b634e487b7160e01b600052601260045260246000fd5b60006001600160e01b0383168061527a5761527a61524b565b806001600160e01b0384160491505092915050565b80820180821115610a5557610a55614d90565b600181811c908216806152b657607f821691505b6020821081036152d657634e487b7160e01b600052602260045260246000fd5b50919050565b600082601f8301126152ed57600080fd5b81356152fb61500582614fcf565b81815284602083860101111561531057600080fd5b816020850160208301376000918101602001919091529392505050565b60008060006060848603121561534257600080fd5b83359250602084013567ffffffffffffffff81111561536057600080fd5b61536c868287016152dc565b925050604084013567ffffffffffffffff81111561538957600080fd5b615395868287016152dc565b9150509250925092565b8151600090829060208501835b828110156153d35781516001600160a01b03168452602093840193909101906001016153ac565b509195945050505050565b8051801515811461461a57600080fd5b6000806040838503121561540157600080fd5b825167ffffffffffffffff81111561541857600080fd5b8301601f8101851361542957600080fd5b805161543761500582614fab565b8082825260208201915060208360051b85010192508783111561545957600080fd5b6020840193505b8284101561548257615471846153de565b825260209384019390910190615460565b80955050505050602083015167ffffffffffffffff8111156154a357600080fd5b6154af8582860161504c565b9150509250929050565b8781526001600160a01b038716602082015260c0604082015260006154e260c083018789614e48565b606083019590955250608081019290925260a090910152949350505050565b8082028115828204841417610a5557610a55614d90565b6000826155275761552761524b565b500490565b84815283602082015260606040820152600061554c606083018486614e48565b9695505050505050565b60006001820161556857615568614d90565b5060010190565b60006020828403121561558157600080fd5b815167ffffffffffffffff81111561559857600080fd5b6142c18482850161502c565b80601b0b81146144c657600080fd5b600080604083850312156155c657600080fd5b82516155d1816155a4565b602084015190925063ffffffff811681146155eb57600080fd5b809150509250929050565b6000806040838503121561560957600080fd5b8251615614816144b1565b6020939093015192949293505050565b600082601f83011261563557600080fd5b815161564361500582614fab565b8082825260208201915060208360051b86010192508583111561566557600080fd5b602085015b83811015614e3e57805183526020928301920161566a565b6000806040838503121561569557600080fd5b825167ffffffffffffffff8111156156ac57600080fd5b8301601f810185136156bd57600080fd5b80516156cb61500582614fab565b8082825260208201915060208360051b8501019250878311156156ed57600080fd5b6020840193505b82841015615718578351615707816144b1565b8252602093840193909101906156f4565b80955050505050602083015167ffffffffffffffff81111561573957600080fd5b6154af85828601615624565b8281526040602082015260006142c16040830184614724565b600082601f83011261576f57600080fd5b813561577d61500582614fab565b8082825260208201915060208360051b86010192508583111561579f57600080fd5b602085015b83811015614e3e5780358352602092830192016157a4565b600080604083850312156157cf57600080fd5b82359150602083013567ffffffffffffffff8111156157ed57600080fd5b6154af8582860161575e565b6000806000806080858703121561580f57600080fd5b84359350602085013567ffffffffffffffff81111561582d57600080fd5b6158398782880161575e565b93505060408501359150606085013567ffffffffffffffff81111561585d57600080fd5b6158698782880161575e565b91505092959194509250565b86815285602082015260a06040820152600061589560a083018688614e48565b60608301949094525060800152949350505050565b601f8211156158f457806000526020600020601f840160051c810160208510156158d15750805b601f840160051c820191505b818110156158f157600081556001016158dd565b50505b505050565b67ffffffffffffffff83111561591157615911614f64565b6159258361591f83546152a2565b836158aa565b6000601f84116001811461595957600085156159415750838201355b600019600387901b1c1916600186901b1783556158f1565b600083815260209020601f19861690835b8281101561598a578685013582556020948501946001909201910161596a565b50868210156159a75760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8381526040602082015260006123de604083018486614e48565b6000806000606084860312156159e857600080fd5b8335925060208401356159fa816155a4565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b600060208284031215615a3357600080fd5b610a52826153de565b600080600060608486031215615a5157600080fd5b83516020850151909350615a64816155a4565b604094909401519295939450919291505056fea26469706673582212201b8cf3e3f921ba8d94c9d11a75500ff4b930f86d1e5ad035d17793956ee9e95064736f6c634300081b0033", + "devdoc": { + "details": "The user is strongly recommended to use the API3 Market frontend while interacting with this contract, mostly because doing so successfully requires some amount of knowledge of other API3 contracts. Specifically, Api3MarketV2 requires the data feed for which the subscription is being purchased to be \"readied\", the correct Merkle proofs to be provided, and enough payment to be made. The API3 Market frontend will fetch the appropriate Merkle proofs, create a multicall transaction that will ready the data feed before making the call to buy the subscription, and compute the amount to be sent that will barely allow the subscription to be purchased. For most users, building such a transaction themselves would be impractical.", + "errors": { + "ECDSAInvalidSignature()": [ + { + "details": "The signature derives the `address(0)`." + } + ], + "ECDSAInvalidSignatureLength(uint256)": [ + { + "details": "The signature has an invalid length." + } + ], + "ECDSAInvalidSignatureS(bytes32)": [ + { + "details": "The signature has an S value that is in the upper half order." + } + ], + "OwnableInvalidOwner(address)": [ + { + "details": "The owner is not a valid owner account. (eg. `address(0)`)" + } + ], + "OwnableUnauthorizedAccount(address)": [ + { + "details": "The caller account is not authorized to perform an operation." + } + ], + "SafeCastOverflowedUintDowncast(uint8,uint256)": [ + { + "details": "Value doesn't fit in an uint of `bits` size." + } + ] + }, + "kind": "dev", + "methods": { + "buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { + "details": "The data feed that the dAPI name will be set to after this function is called must be readied (see `validateDataFeedReadiness()`) before calling this function. Enough funds must be sent to put the sponsor wallet balance over its expected amount after the subscription is bought. Since sponsor wallets send data feed update transactions, it is not possible to determine what their balance will be at the time sent transactions are confirmed. To avoid transactions being reverted as a result of this, consider sending some extra.", + "params": { + "dapiManagementAndDapiPricingMerkleData": "ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs", + "dapiName": "dAPI name", + "dataFeedId": "Data feed ID", + "duration": "Subscription duration", + "price": "Subscription price", + "sponsorWallet": "Sponsor wallet address", + "updateParameters": "Update parameters" + }, + "returns": { + "subscriptionId": "Subscription ID" + } + }, + "cancelSubscriptions(bytes32)": { + "details": "The root of a new dAPI pricing Merkle tree that excludes the dAPI should be registered before canceling the subscriptions. Otherwise, anyone can immediately buy the subscriptions again.", + "params": { + "dapiName": "dAPI name" + } + }, + "computeExpectedSponsorWalletBalance(bytes32)": { + "details": "API3 estimates the transaction fee cost of subscriptions, and prices them accordingly. The subscription fees paid for a dAPI are sent to the respective sponsor wallet, which will send the update transactions. In the case that a subscription is overpriced, the extra funds are automatically rolled over as a discount to the next subscription bought for the same dAPI. In the case that a subscription is underpriced, there is a risk of the sponsor wallet running out of funds, resulting in the subscription specs to not be met. To avoid this, API3 should poll this function for all active dAPI names, check the respective sponsor wallet balances, and top up the sponsor wallets as necessary. The conditions that result in the underpricing will most likely require an updated dAPI pricing Merkle root to be published.", + "params": { + "dapiName": "dAPI name" + }, + "returns": { + "expectedSponsorWalletBalance": "Expected sponsor wallet balance" + } + }, + "computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)": { + "details": "This function is intended to be used by the API3 Market frontend to calculate how much the user should pay to purchase a specific subscription. As mentioned in the `buySubscription()` docstring, the user should aim for the sponsor wallet balance to be slightly more than the required amount in case it sends a transaction in the meantime, whose gas cost may decrease the sponsor wallet balance unexpectedly. Unit prices of the queued subscriptions are recorded on a daily basis and the expected balance is computed from these, which introduces a rounding error in the order of Weis. This also applies in practice (in that one can buy a subscription whose price is 1 ETH at 0.999... ETH). This behavior is accepted due to its effect being negligible.", + "params": { + "dapiName": "dAPI name", + "duration": "Subscription duration", + "price": "Subscription price", + "updateParameters": "Update parameters" + }, + "returns": { + "expectedSponsorWalletBalance": "Expected sponsor wallet balance" + } + }, + "constructor": { + "details": "The maximum subscription queue length should be large enough to not obstruct subscription purchases under usual conditions, and small enough to keep the queue at an iterable size. For example, if the number of unique update parameters in the dAPI pricing Merkle trees that are being used is around 5, a maximum subscription queue length of 10 would be acceptable for a chain with typical gas costs.", + "params": { + "api3ReaderProxyV1Factory_": "Api3ReaderProxyV1Factory contract address", + "maximumSubscriptionQueueLength_": "Maximum subscription queue length", + "owner_": "Owner address" + } + }, + "containsBytecode(address)": { + "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", + "returns": { + "_0": "If the account contains bytecode" + } + }, + "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { + "details": "It is recommended for the users to read data feeds through proxies deployed by Api3ReaderProxyV1Factory, rather than calling the underlying contracts directly. Even though proxy deployment is not a condition for purchasing subscriptions, the interface is implemented here to allow the user to purchase a dAPI subscription and deploy the respective proxy in the same transaction with a multicall.", + "params": { + "dapiName": "dAPI name", + "dappId": "dApp ID", + "metadata": "Metadata associated with the proxy" + }, + "returns": { + "api3ReaderProxyV1": "Api3ReaderProxyV1 address" + } + }, + "getBalance(address)": { + "params": { + "account": "Account address" + }, + "returns": { + "_0": "Account balance" + } + }, + "getBlockBasefee()": { + "returns": { + "_0": "Current block basefee" + } + }, + "getBlockNumber()": { + "returns": { + "_0": "Current block number" + } + }, + "getBlockTimestamp()": { + "returns": { + "_0": "Current block timestamp" + } + }, + "getChainId()": { + "returns": { + "_0": "Chain ID" + } + }, + "getDapiData(bytes32)": { + "details": "This function is intended to be used by the API3 Market frontend to get all data related to a specific dAPI. It returns the entire subscription queue, including the items whose end timestamps are in the past.", + "params": { + "dapiName": "dAPI name" + }, + "returns": { + "beaconTimestamps": "Beacon timestamps read from Api3ServerV1", + "beaconValues": "Beacon values read from Api3ServerV1", + "dailyPrices": "Daily prices of the subscriptions in the queue", + "dapiTimestamp": "dAPI timestamp read from Api3ServerV1", + "dapiValue": "dAPI value read from Api3ServerV1", + "dataFeedDetails": "Data feed details", + "endTimestamps": "End timestamps of the subscriptions in the queue", + "updateParameters": "Update parameters of the subscriptions in the queue" + } + }, + "getDataFeedData(bytes32)": { + "details": "This function is intended to be used by the API3 Market frontend to determine what needs to be done to ready the data feed to purchase the respective subscription. In the case that the client wants to use this to fetch the respective Beacon readings for an unregistered data feed, they can do a static multicall where the `getDataFeedData()` call is preceded by a `registerDataFeed()` call.", + "params": { + "dataFeedId": "Data feed ID" + }, + "returns": { + "beaconTimestamps": "Beacon timestamps read from Api3ServerV1", + "beaconValues": "Beacon values read from Api3ServerV1", + "dataFeedDetails": "Data feed details", + "dataFeedTimestamp": "Data feed timestamp read from Api3ServerV1", + "dataFeedValue": "Data feed value read from Api3ServerV1" + } + }, + "getHashValue(bytes32)": { + "params": { + "hashType": "Hash type" + }, + "returns": { + "hashValue": "Hash value" + } + }, + "multicall(bytes[])": { + "params": { + "data": "Array of calldata of batched calls" + }, + "returns": { + "returndata": "Array of returndata of batched calls" + } + }, + "multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { + "details": "This function is for the API3 Market frontend to call `eth_estimateGas` on a single transaction that readies a data feed and buys the respective subscription", + "params": { + "dapiManagementAndDapiPricingMerkleData": "ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs", + "dapiName": "dAPI name", + "dataFeedId": "Data feed ID", + "duration": "Subscription duration", + "multicallData": "Array of calldata of batched calls", + "price": "Subscription price", + "sponsorWallet": "Sponsor wallet address", + "updateParameters": "Update parameters" + }, + "returns": { + "returndata": "Array of returndata of batched calls", + "subscriptionId": "Subscription ID" + } + }, + "owner()": { + "returns": { + "_0": "Owner address" + } + }, + "registerDataFeed(bytes)": { + "params": { + "dataFeedDetails": "Data feed details" + }, + "returns": { + "dataFeedId": "Data feed ID" + } + }, + "registerHash(bytes32,bytes32,uint256,bytes[])": { + "params": { + "hashTimestamp": "Hash timestamp", + "hashType": "Hash type", + "hashValue": "Hash value", + "signatures": "Signatures" + } + }, + "setAirseekerRegistry(address)": { + "details": "There is a circular dependency between an Api3MarketV2 and its respective AirseekerRegistry. In a previous implementation, Api3Market deployed its AirseekerRegistry in its constructor, yet the resulting deployment transaction required too much gas, which ended up being an issue on some chains. Instead, the current deployment flow is for Api3MarketV2 to be deployed with a transaction, AirseekerRegistry to be deployed with another transaction with the Api3MarketV2 address as an argument, and finally, for the Api3MarketV2 owner to set the AirseekerRegister address with a third transaction. Once the AirseekerRegister address is set, it cannot be updated.", + "params": { + "airseekerRegistry_": "AirseekerRegistry address" + } + }, + "setHash(bytes32,bytes32)": { + "params": { + "hashType": "Hash type", + "hashValue": "Hash value" + } + }, + "setSigners(bytes32,address[])": { + "params": { + "hashType": "Hash type", + "signers": "Signer addresses" + } + }, + "signatureDelegationHashType()": { + "returns": { + "_0": "Signature delegation hash type" + } + }, + "subscriptionIdToUpdateParameters(bytes32)": { + "params": { + "subscriptionId": "Subscription ID" + }, + "returns": { + "updateParameters": "Update parameters" + } + }, + "tryMulticall(bytes[])": { + "params": { + "data": "Array of calldata of batched calls" + }, + "returns": { + "returndata": "Array of returndata of batched calls", + "successes": "Array of success conditions of batched calls" + } + }, + "tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { + "details": "This function is for the API3 Market frontend to send a single transaction that readies a data feed and buys the respective subscription. `tryMulticall()` is preferred in the purchase transaction because the readying calls may revert due to race conditions.", + "params": { + "dapiManagementAndDapiPricingMerkleData": "ABI-encoded dAPI management and dAPI pricing Merkle roots and proofs", + "dapiName": "dAPI name", + "dataFeedId": "Data feed ID", + "duration": "Subscription duration", + "price": "Subscription price", + "sponsorWallet": "Sponsor wallet address", + "tryMulticallData": "Array of calldata of batched calls", + "updateParameters": "Update parameters" + }, + "returns": { + "returndata": "Array of returndata of batched calls", + "subscriptionId": "Subscription ID", + "successes": "Array of success conditions of batched calls" + } + }, + "updateBeaconSetWithBeacons(bytes32[])": { + "params": { + "beaconIds": "Beacon IDs" + }, + "returns": { + "beaconSetId": "Updated Beacon set ID" + } + }, + "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { + "details": "The user is intended to make a multicall transaction through the API3 Market frontend to satisfy the required conditions to be able to buy a subscription and buy the subscription in a single transaction. The functions to which external calls must be made to to satisfy said conditions (such as this one) are added to this contract so that they can be multi-called by the user.", + "params": { + "airnode": "Airnode address", + "data": "Update data (an `int256` encoded in contract ABI)", + "signature": "Template ID, timestamp and the update data signed by the Airnode", + "templateId": "Template ID", + "timestamp": "Signature timestamp" + }, + "returns": { + "beaconId": "Updated Beacon ID" + } + }, + "updateCurrentSubscriptionId(bytes32)": { + "details": "The fact that there is a current subscription that has ended would mean that API3 is providing a service that was not paid for. Therefore, API3 should poll this function for all active dAPI names and call it whenever it is not going to revert to downgrade the specs.", + "params": { + "dapiName": "dAPI name" + } + }, + "updateDapiName(bytes32,bytes32,address,bytes)": { + "details": "Buying a dAPI subscription always updates the dAPI name if necessary. However, API3 may also publish new Merkle roots between subscription purchases, in which case API3 should call this function to bring the chain state up to date. Therefore, API3 should poll this function for all active dAPI names and call it whenever it will not revert. Similar to `buySubscription()`, this function requires the data feed that the dAPI will be pointed to to be readied. This function is allowed to be called even when the respective dAPI is not active, which means that a dAPI name being set does not imply that the respective data feed is in service. Users should only use dAPIs for which there is an active subscription with update parameters that satisfy their needs.", + "params": { + "dapiManagementMerkleData": "ABI-encoded dAPI management Merkle root and proof", + "dapiName": "dAPI name", + "dataFeedId": "Data feed ID", + "sponsorWallet": "Sponsor wallet address" + } + }, + "updateSignedApiUrl(address,string,bytes)": { + "details": "Unlike the dAPI management and pricing Merkle leaves, the signed API URL Merkle leaves are not registered by the users as a part of subscription purchase transactions. API3 should poll this function for all Airnodes that are used in active dAPIs and call it whenever it will not revert.", + "params": { + "airnode": "Airnode address", + "signedApiUrl": "Signed API URL", + "signedApiUrlMerkleData": "ABI-encoded signed API URL Merkle root and proof" + } + } + }, + "stateVariables": { + "DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE": { + "details": "\"Hash type\" is what HashRegistry uses to address hashes used for different purposes" + }, + "maximumSubscriptionQueueLength": { + "details": "Some functionality in this contract requires to iterate through the entire subscription queue for a dAPI, and the queue length is limited to prevent this process from being bloated. Considering that each item in the subscription queue has unique update parameters, the length of the subscription queue is also limited by the number of unique update parameters offered in the dAPI pricing Merkle tree. For reference, at the time this contract is implemented, the API3 Market offers 4 update parameter options." + } + }, + "title": "The contract that API3 users interact with using the API3 Market frontend to purchase data feed subscriptions", + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": { + "DAPI_MANAGEMENT_MERKLE_ROOT_HASH_TYPE()": { + "notice": "dAPI management Merkle root hash type" + }, + "DAPI_PRICING_MERKLE_ROOT_HASH_TYPE()": { + "notice": "dAPI pricing Merkle root hash type" + }, + "MAXIMUM_DAPI_UPDATE_AGE()": { + "notice": "Maximum dAPI update age. This contract cannot be used to set a dAPI name to a data feed that has not been updated in the last `MAXIMUM_DAPI_UPDATE_AGE`." + }, + "SIGNED_API_URL_MERKLE_ROOT_HASH_TYPE()": { + "notice": "Signed API URL Merkle root hash type" + }, + "airseekerRegistry()": { + "notice": "AirseekerRegistry contract address" + }, + "api3ReaderProxyV1Factory()": { + "notice": "Api3ReaderProxyV1Factory contract address" + }, + "api3ServerV1()": { + "notice": "Api3ServerV1 contract address" + }, + "buySubscription(bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { + "notice": "Buys subscription and updates the current subscription ID if necessary. The user is recommended to interact with this contract over the API3 Market frontend due to its complexity." + }, + "cancelSubscriptions(bytes32)": { + "notice": "Called by the owner to cancel all subscriptions for a dAPI that needs to be decommissioned urgently" + }, + "computeExpectedSponsorWalletBalance(bytes32)": { + "notice": "Computes the expected sponsor wallet balance based on the current subscription queue" + }, + "computeExpectedSponsorWalletBalanceAfterSubscriptionIsAdded(bytes32,bytes,uint256,uint256)": { + "notice": "Computes the expected sponsor wallet balance after the respective subscription is added to the queue" + }, + "containsBytecode(address)": { + "notice": "Returns if the account contains bytecode" + }, + "dapiNameToCurrentSubscriptionId(bytes32)": { + "notice": "dAPI name to current subscription ID, which denotes the start of the subscription queue for the dAPI" + }, + "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { + "notice": "Calls Api3ReaderProxyV1Factory to deterministically deploy an Api3ReaderProxyV1" + }, + "getBalance(address)": { + "notice": "Returns the account balance" + }, + "getBlockBasefee()": { + "notice": "Returns the current block basefee" + }, + "getBlockNumber()": { + "notice": "Returns the current block number" + }, + "getBlockTimestamp()": { + "notice": "Returns the current block timestamp" + }, + "getChainId()": { + "notice": "Returns the chain ID" + }, + "getDapiData(bytes32)": { + "notice": "Gets all data about the dAPI that is available" + }, + "getDataFeedData(bytes32)": { + "notice": "Gets all data about the data feed that is available" + }, + "getHashValue(bytes32)": { + "notice": "Returns get the hash value for the type" + }, + "hashTypeToSignersHash(bytes32)": { + "notice": "Hash type to the hash of the array of signer addresses" + }, + "hashes(bytes32)": { + "notice": "Hash type to the last registered value and timestamp" + }, + "maximumSubscriptionQueueLength()": { + "notice": "Maximum subscription queue length for a dAPI" + }, + "multicall(bytes[])": { + "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" + }, + "multicallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { + "notice": "Multi-calls this contract, followed by a call with value to buy the subscription" + }, + "owner()": { + "notice": "Returns the owner address" + }, + "registerDataFeed(bytes)": { + "notice": "Calls AirseekerRegistry to register the data feed" + }, + "registerHash(bytes32,bytes32,uint256,bytes[])": { + "notice": "Registers the hash value and timestamp for the respective type. The hash value cannot be zero. The timestamp must not exceed the block timestamp, yet be larger than the timestamp of the previous registration. The signers must have been set for the hash type, and the signatures must be sorted for the respective signer addresses to be in ascending order. Each signature can either be a standalone signature by the respective signer, or a signature by the signer's delegate, encoded along with the delegation end timestamp and delegation signature." + }, + "renounceOwnership()": { + "notice": "Overriden to be disabled" + }, + "setAirseekerRegistry(address)": { + "notice": "Called once by the owner to set the AirseekerRegistry address" + }, + "setHash(bytes32,bytes32)": { + "notice": "Called by the owner to set a hash. Overrides previous registrations and is allowed to set the value to `bytes32(0)`." + }, + "setSigners(bytes32,address[])": { + "notice": "Called by the contract owner to set signers for a hash type. The signer addresses must be in ascending order." + }, + "signatureDelegationHashType()": { + "notice": "Returns the signature delegation hash type used in delegation signatures" + }, + "subscriptionIdToUpdateParameters(bytes32)": { + "notice": "Subscription ID to update parameters" + }, + "subscriptions(bytes32)": { + "notice": "Subscriptions indexed by their IDs" + }, + "transferOwnership(address)": { + "notice": "Overriden to be disabled" + }, + "tryMulticall(bytes[])": { + "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" + }, + "tryMulticallAndBuySubscription(bytes[],bytes32,bytes32,address,bytes,uint256,uint256,bytes)": { + "notice": "Multi-calls this contract in a way that the transaction does not revert if any of the batched calls reverts, followed by a call with value to buy the subscription" + }, + "updateBeaconSetWithBeacons(bytes32[])": { + "notice": "Calls Api3ServerV1 to update the Beacon set using the current values of its Beacons" + }, + "updateBeaconWithSignedData(address,bytes32,uint256,bytes,bytes)": { + "notice": "Calls Api3ServerV1 to update the Beacon using data signed by the Airnode" + }, + "updateCurrentSubscriptionId(bytes32)": { + "notice": "If the current subscription has ended, updates it with the one that will end next" + }, + "updateDapiName(bytes32,bytes32,address,bytes)": { + "notice": "Updates the dAPI name to match the respective Merkle leaf" + }, + "updateSignedApiUrl(address,string,bytes)": { + "notice": "Updates the signed API URL of the Airnode to match the respective Merkle leaf" + } + }, + "notice": "API3 streamlines and protocolizes its integration processes through the API3 Market (https://market.api3.org), which is a data feed subscription marketplace. The Api3MarketV2 contract is the on-chain portion of this system. Api3MarketV2 enables API3 to predetermine the decisions related to its data feed services (such as the curation of data feed sources or subscription prices) and publish them on-chain. This streamlines the intergation flow, as it allows the users to initiate subscriptions immediately, without requiring any two-way communication with API3. Furthermore, this removes the need for API3 to have agents operating in the meatspace gathering order details, quoting prices and reviewing payments, and allows all such operations to be cryptographically secured with a multi-party scheme in an end-to-end manner.", + "version": 1 + }, + "storageLayout": { + "storage": [ + { + "astId": 4090, + "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", + "label": "_owner", + "offset": 0, + "slot": "0", + "type": "t_address" + }, + { + "astId": 22, + "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", + "label": "hashes", + "offset": 0, + "slot": "1", + "type": "t_mapping(t_bytes32,t_struct(Hash)15_storage)" + }, + { + "astId": 28, + "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", + "label": "hashTypeToSignersHash", + "offset": 0, + "slot": "2", + "type": "t_mapping(t_bytes32,t_bytes32)" + }, + { + "astId": 677, + "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", + "label": "airseekerRegistry", + "offset": 0, + "slot": "3", + "type": "t_address" + }, + { + "astId": 688, + "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", + "label": "subscriptions", + "offset": 0, + "slot": "4", + "type": "t_mapping(t_bytes32,t_struct(Subscription)630_storage)" + }, + { + "astId": 694, + "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", + "label": "dapiNameToCurrentSubscriptionId", + "offset": 0, + "slot": "5", + "type": "t_mapping(t_bytes32,t_bytes32)" + }, + { + "astId": 698, + "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", + "label": "updateParametersHashToValue", + "offset": 0, + "slot": "6", + "type": "t_mapping(t_bytes32,t_bytes_storage)" + } + ], + "types": { + "t_address": { + "encoding": "inplace", + "label": "address", + "numberOfBytes": "20" + }, + "t_bytes32": { + "encoding": "inplace", + "label": "bytes32", + "numberOfBytes": "32" + }, + "t_bytes_storage": { + "encoding": "bytes", + "label": "bytes", + "numberOfBytes": "32" + }, + "t_mapping(t_bytes32,t_bytes32)": { + "encoding": "mapping", + "key": "t_bytes32", + "label": "mapping(bytes32 => bytes32)", + "numberOfBytes": "32", + "value": "t_bytes32" + }, + "t_mapping(t_bytes32,t_bytes_storage)": { + "encoding": "mapping", + "key": "t_bytes32", + "label": "mapping(bytes32 => bytes)", + "numberOfBytes": "32", + "value": "t_bytes_storage" + }, + "t_mapping(t_bytes32,t_struct(Hash)15_storage)": { + "encoding": "mapping", + "key": "t_bytes32", + "label": "mapping(bytes32 => struct HashRegistry.Hash)", + "numberOfBytes": "32", + "value": "t_struct(Hash)15_storage" + }, + "t_mapping(t_bytes32,t_struct(Subscription)630_storage)": { + "encoding": "mapping", + "key": "t_bytes32", + "label": "mapping(bytes32 => struct Api3MarketV2.Subscription)", + "numberOfBytes": "32", + "value": "t_struct(Subscription)630_storage" + }, + "t_struct(Hash)15_storage": { + "encoding": "inplace", + "label": "struct HashRegistry.Hash", + "members": [ + { + "astId": 12, + "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", + "label": "value", + "offset": 0, + "slot": "0", + "type": "t_bytes32" + }, + { + "astId": 14, + "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", + "label": "timestamp", + "offset": 0, + "slot": "1", + "type": "t_uint256" + } + ], + "numberOfBytes": "64" + }, + "t_struct(Subscription)630_storage": { + "encoding": "inplace", + "label": "struct Api3MarketV2.Subscription", + "members": [ + { + "astId": 623, + "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", + "label": "updateParametersHash", + "offset": 0, + "slot": "0", + "type": "t_bytes32" + }, + { + "astId": 625, + "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", + "label": "endTimestamp", + "offset": 0, + "slot": "1", + "type": "t_uint32" + }, + { + "astId": 627, + "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", + "label": "dailyPrice", + "offset": 4, + "slot": "1", + "type": "t_uint224" + }, + { + "astId": 629, + "contract": "contracts/api3-server-v1/Api3MarketV2.sol:Api3MarketV2", + "label": "nextSubscriptionId", + "offset": 0, + "slot": "2", + "type": "t_bytes32" + } + ], + "numberOfBytes": "96" + }, + "t_uint224": { + "encoding": "inplace", + "label": "uint224", + "numberOfBytes": "28" + }, + "t_uint256": { + "encoding": "inplace", + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint32": { + "encoding": "inplace", + "label": "uint32", + "numberOfBytes": "4" + } + } + } +} diff --git a/deployments/arbitrum/Api3ReaderProxyV1Factory.json b/deployments/arbitrum/Api3ReaderProxyV1Factory.json new file mode 100644 index 0000000..3decaa3 --- /dev/null +++ b/deployments/arbitrum/Api3ReaderProxyV1Factory.json @@ -0,0 +1,324 @@ +{ + "address": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "initialOwner", + "type": "address" + }, + { + "internalType": "address", + "name": "api3ServerV1OevExtension_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "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": "address", + "name": "proxy", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "dapiName", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "dappId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "metadata", + "type": "bytes" + } + ], + "name": "DeployedApi3ReaderProxyV1", + "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": [], + "name": "api3ServerV1OevExtension", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dapiName", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "dappId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "metadata", + "type": "bytes" + } + ], + "name": "computeApi3ReaderProxyV1Address", + "outputs": [ + { + "internalType": "address", + "name": "proxy", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "dapiName", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "dappId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "metadata", + "type": "bytes" + } + ], + "name": "deployApi3ReaderProxyV1", + "outputs": [ + { + "internalType": "address", + "name": "proxy", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "transactionHash": "0x074c5c8e90d22c0570ed212b06563f52599609c53c699ecd78330902f101719f", + "receipt": { + "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", + "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", + "contractAddress": null, + "transactionIndex": 1, + "gasUsed": "3139221", + "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000001000000000000000004000000000000000000000001000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000040000000000000000000400000000000000020000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0xe3830b7e5063f34a3b7d93ed657b2213a0ba05ada7a18f54c3ccc446a305ed57", + "transactionHash": "0x074c5c8e90d22c0570ed212b06563f52599609c53c699ecd78330902f101719f", + "logs": [ + { + "transactionIndex": 1, + "blockNumber": 267516842, + "transactionHash": "0x074c5c8e90d22c0570ed212b06563f52599609c53c699ecd78330902f101719f", + "address": "0x1Fe170311Cb13e3bfB96DeC8FAadcf97BF843381", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x00000000000000000000000081bc85f329cdb28936fbb239f734ae495121f9a6" + ], + "data": "0x", + "logIndex": 0, + "blockHash": "0xe3830b7e5063f34a3b7d93ed657b2213a0ba05ada7a18f54c3ccc446a305ed57" + } + ], + "blockNumber": 267516842, + "cumulativeGasUsed": "3139221", + "status": 1, + "byzantium": true + }, + "args": ["0x81bc85f329cDB28936FbB239f734AE495121F9A6", "0x2E787629c3B7545271240A87197108823ce8303b"], + "numDeployments": 1, + "solcInputHash": "177b63d92e411ff33ad899d659df8ac2", + "metadata": "{\"compiler\":{\"version\":\"0.8.27+commit.40a35a09\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"initialOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1OevExtension_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"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\":\"address\",\"name\":\"proxy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"DeployedApi3ReaderProxyV1\",\"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\":[],\"name\":\"api3ServerV1OevExtension\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"computeApi3ReaderProxyV1Address\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"dapiName\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"deployApi3ReaderProxyV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"proxy\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}]},\"kind\":\"dev\",\"methods\":{\"computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)\":{\"params\":{\"dapiName\":\"dAPI name as a bytes32 string\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata\"},\"returns\":{\"proxy\":\"Proxy address\"}},\"constructor\":{\"params\":{\"api3ServerV1OevExtension_\":\"Api3ServerV1OevExtension contract address\",\"initialOwner\":\"Initial owner\"}},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"details\":\"As noted in Api3ReaderProxyV1, an implementation is deployed for each proxy to be able to use immutable variables\",\"params\":{\"dapiName\":\"dAPI name as a bytes32 string\",\"dappId\":\"dApp ID\",\"metadata\":\"Metadata\"},\"returns\":{\"proxy\":\"Proxy address\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"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.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"Factory contract that deploys Api3ReaderProxyV1 implementations and their upgradeable proxies\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"api3ServerV1OevExtension()\":{\"notice\":\"Api3ServerV1OevExtension contract address\"},\"computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)\":{\"notice\":\"Computes the address of the Api3ReaderProxyV1\"},\"deployApi3ReaderProxyV1(bytes32,uint256,bytes)\":{\"notice\":\"Deterministically deploys the Api3ReaderProxyV1\"}},\"notice\":\"The owner of this contract at the time that it deploys a proxy is set as the owner of the proxy, which is allowed to upgrade it\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol\":\"Api3ReaderProxyV1Factory\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"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\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts-upgradeable@5.0.2/access/OwnableUpgradeable.sol\\\";\\nimport \\\"../../vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV2V3Interface.sol\\\";\\nimport \\\"./interfaces/IApi3ReaderProxyV1.sol\\\";\\nimport \\\"../interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"../interfaces/IApi3ServerV1OevExtension.sol\\\";\\n\\n/// @title UUPS-upgradeable IApi3ReaderProxy and AggregatorV2V3Interface\\n/// implementation that is designed to be deployed by Api3ReaderProxyV1Factory\\n/// @notice The owner of this contract is allowed to upgrade it. In the case\\n/// that it is deployed by Api3ReaderProxyV1Factory, the owner will be the\\n/// owner of Api3ReaderProxyV1Factory at the time of deployment.\\n/// @dev For a gas-cheap `read()` implementation, this upgradeable contract\\n/// uses immutable variables (rather than initializable ones). To enable this,\\n/// an Api3ReaderProxyV1 needs to be deployed for each unique combination of\\n/// variables. The end user does not need to concern themselves with this, as\\n/// Api3ReaderProxyV1Factory abstracts this detail away.\\n/// Refer to https://github.com/api3dao/migrate-from-chainlink-to-api3 for more\\n/// information about the Chainlink interface implementation.\\ncontract Api3ReaderProxyV1 is\\n UUPSUpgradeable,\\n OwnableUpgradeable,\\n AggregatorV2V3Interface,\\n IApi3ReaderProxyV1\\n{\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Api3ServerV1OevExtension contract address\\n address public immutable override api3ServerV1OevExtension;\\n\\n /// @notice dAPI name as a bytes32 string\\n bytes32 public immutable override dapiName;\\n\\n /// @notice dApp ID\\n uint256 public immutable override dappId;\\n\\n // Api3ServerV1 interface expects the dAPI name hash. keccak256 is\\n // typically expensive on ZK roll-ups, so we compute it once and store it\\n // to use during reads.\\n bytes32 private immutable dapiNameHash;\\n\\n /// @dev Parameters are validated by Api3ReaderProxyV1Factory\\n /// @param api3ServerV1OevExtension_ Api3ServerV1OevExtension contract\\n /// address\\n /// @param dapiName_ dAPI name as a bytes32 string\\n /// @param dappId_ dApp ID\\n constructor(\\n address api3ServerV1OevExtension_,\\n bytes32 dapiName_,\\n uint256 dappId_\\n ) {\\n api3ServerV1OevExtension = api3ServerV1OevExtension_;\\n api3ServerV1 = IApi3ServerV1OevExtension(api3ServerV1OevExtension_)\\n .api3ServerV1();\\n dapiName = dapiName_;\\n dappId = dappId_;\\n dapiNameHash = keccak256(abi.encodePacked(dapiName));\\n _disableInitializers();\\n }\\n\\n /// @notice Initializes the contract with the initial owner\\n /// @param initialOwner Initial owner\\n function initialize(address initialOwner) external override initializer {\\n __Ownable_init(initialOwner);\\n }\\n\\n /// @notice Returns the current value and timestamp of the API3 data feed\\n /// associated with the proxy contract\\n /// @dev Reads the base feed that is associated to the dAPI and the OEV\\n /// feed that is associated to the dApp\\u2013dAPI pair, and returns the value\\n /// that is updated more recently\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function read()\\n public\\n view\\n override\\n returns (int224 value, uint32 timestamp)\\n {\\n bytes32 dataFeedId = IApi3ServerV1(api3ServerV1)\\n .dapiNameHashToDataFeedId(dapiNameHash);\\n if (dataFeedId == bytes32(0)) {\\n revert DapiNameIsNotSet();\\n }\\n (int224 baseDapiValue, uint32 baseDapiTimestamp) = IApi3ServerV1(\\n api3ServerV1\\n ).dataFeeds(dataFeedId);\\n (\\n int224 oevDapiValue,\\n uint32 oevDapiTimestamp\\n ) = IApi3ServerV1OevExtension(api3ServerV1OevExtension).oevDataFeed(\\n dappId,\\n dataFeedId\\n );\\n if (oevDapiTimestamp > baseDapiTimestamp) {\\n (value, timestamp) = (oevDapiValue, oevDapiTimestamp);\\n } else {\\n (value, timestamp) = (baseDapiValue, baseDapiTimestamp);\\n }\\n if (timestamp == 0) {\\n revert DataFeedIsNotInitialized();\\n }\\n }\\n\\n /// @dev AggregatorV2V3Interface users are already responsible with\\n /// validating the values that they receive (e.g., revert if the spot price\\n /// of an asset is negative). Therefore, this contract omits validation.\\n function latestAnswer() external view override returns (int256 value) {\\n (value, ) = read();\\n }\\n\\n /// @dev A Chainlink feed contract returns the block timestamp at which the\\n /// feed was last updated. On the other hand, an API3 feed timestamp\\n /// denotes the point in time at which the first-party oracles signed the\\n /// data used to do the last update. We find this to be a reasonable\\n /// approximation, considering that usually the timestamp is only used to\\n /// check if the last update is stale.\\n function latestTimestamp()\\n external\\n view\\n override\\n returns (uint256 timestamp)\\n {\\n (, timestamp) = read();\\n }\\n\\n /// @dev API3 feeds are updated asynchronously and not in rounds\\n function latestRound() external pure override returns (uint256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getAnswer(uint256) external pure override returns (int256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getTimestamp(uint256) external pure override returns (uint256) {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev API3 feeds always use 18 decimals\\n function decimals() external pure override returns (uint8) {\\n return 18;\\n }\\n\\n /// @dev The dApp ID and dAPI name act as the description, and this is left\\n /// empty to save gas on contract deployment\\n function description() external pure override returns (string memory) {\\n return \\\"\\\";\\n }\\n\\n /// @dev A unique version is chosen to easily check if an unverified\\n /// contract that acts as a Chainlink feed is an Api3ReaderProxyV1\\n function version() external pure override returns (uint256) {\\n return 4913;\\n }\\n\\n /// @dev Functions that use the round ID as an argument are not supported\\n function getRoundData(\\n uint80\\n )\\n external\\n pure\\n override\\n returns (uint80, int256, uint256, uint256, uint80)\\n {\\n revert FunctionIsNotSupported();\\n }\\n\\n /// @dev Rounds IDs are returned as `0` as invalid values.\\n /// Similar to `latestAnswer()`, we leave the validation of the returned\\n /// value to the caller.\\n function latestRoundData()\\n external\\n view\\n override\\n returns (\\n uint80 roundId,\\n int256 answer,\\n uint256 startedAt,\\n uint256 updatedAt,\\n uint80 answeredInRound\\n )\\n {\\n roundId = answeredInRound = 0;\\n (answer, startedAt) = read();\\n updatedAt = startedAt;\\n }\\n\\n /// @param newImplementation New implementation contract address\\n /// @dev Only the owner can upgrade this contract\\n function _authorizeUpgrade(\\n address newImplementation\\n ) internal virtual override onlyOwner {}\\n}\\n\",\"keccak256\":\"0xaea9835537e218237c6e6b98875e2501337e1cb1913ca74de8cad47c6c9c2b58\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.27;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\\\";\\nimport \\\"./interfaces/IApi3ReaderProxyV1Factory.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Proxy.sol\\\";\\nimport \\\"../../vendor/@openzeppelin/contracts@5.0.2/utils/Create2.sol\\\";\\nimport \\\"./Api3ReaderProxyV1.sol\\\";\\n\\n/// @title Factory contract that deploys Api3ReaderProxyV1 implementations and\\n/// their upgradeable proxies\\n/// @notice The owner of this contract at the time that it deploys a proxy is\\n/// set as the owner of the proxy, which is allowed to upgrade it\\ncontract Api3ReaderProxyV1Factory is Ownable, IApi3ReaderProxyV1Factory {\\n /// @notice Api3ServerV1OevExtension contract address\\n address public immutable override api3ServerV1OevExtension;\\n\\n /// @param initialOwner Initial owner\\n /// @param api3ServerV1OevExtension_ Api3ServerV1OevExtension contract\\n /// address\\n constructor(\\n address initialOwner,\\n address api3ServerV1OevExtension_\\n ) Ownable(initialOwner) {\\n require(\\n api3ServerV1OevExtension_ != address(0),\\n \\\"Api3ServerV1OevExtension address zero\\\"\\n );\\n api3ServerV1OevExtension = api3ServerV1OevExtension_;\\n }\\n\\n /// @notice Deterministically deploys the Api3ReaderProxyV1\\n /// @dev As noted in Api3ReaderProxyV1, an implementation is deployed for\\n /// each proxy to be able to use immutable variables\\n /// @param dapiName dAPI name as a bytes32 string\\n /// @param dappId dApp ID\\n /// @param metadata Metadata\\n /// @return proxy Proxy address\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external override returns (address proxy) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n // The implementation is guaranteed to not have been deployed earlier\\n // if the proxy is not yet deployed. If the proxy is already deployed,\\n // we want to revert anyway. Therefore, there is no need to check the\\n // case where the implementation is already deployed.\\n address implementation = address(\\n new Api3ReaderProxyV1{salt: keccak256(metadata)}(\\n api3ServerV1OevExtension,\\n dapiName,\\n dappId\\n )\\n );\\n proxy = address(\\n new ERC1967Proxy{salt: keccak256(metadata)}(implementation, \\\"\\\")\\n );\\n Api3ReaderProxyV1(proxy).initialize(owner());\\n emit DeployedApi3ReaderProxyV1(proxy, dapiName, dappId, metadata);\\n }\\n\\n /// @notice Computes the address of the Api3ReaderProxyV1\\n /// @param dapiName dAPI name as a bytes32 string\\n /// @param dappId dApp ID\\n /// @param metadata Metadata\\n /// @return proxy Proxy address\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view override returns (address proxy) {\\n require(dapiName != bytes32(0), \\\"dAPI name zero\\\");\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n address implementation = Create2.computeAddress(\\n keccak256(metadata),\\n keccak256(\\n abi.encodePacked(\\n type(Api3ReaderProxyV1).creationCode,\\n abi.encode(api3ServerV1OevExtension, dapiName, dappId)\\n )\\n )\\n );\\n proxy = Create2.computeAddress(\\n keccak256(metadata),\\n keccak256(\\n abi.encodePacked(\\n type(ERC1967Proxy).creationCode,\\n abi.encode(implementation, bytes(\\\"\\\"))\\n )\\n )\\n );\\n }\\n}\\n\",\"keccak256\":\"0x6acff22a800e0d31ad51972b8d028c70218d4a627681dfc56ca989d0eb883269\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.4;\\n\\nimport \\\"../../../interfaces/IApi3ReaderProxy.sol\\\";\\n\\ninterface IApi3ReaderProxyV1 is IApi3ReaderProxy {\\n error DapiNameIsNotSet();\\n\\n error DataFeedIsNotInitialized();\\n\\n error FunctionIsNotSupported();\\n\\n function initialize(address initialOwner) external;\\n\\n function api3ServerV1() external returns (address);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n\\n function dapiName() external returns (bytes32);\\n\\n function dappId() external returns (uint256);\\n}\\n\",\"keccak256\":\"0x2dbe485305e8ea4f6b44c8059cbd17caa81bd6149eb97c69972eabc0db9c2f42\",\"license\":\"MIT\"},\"contracts/api3-server-v1/proxies/interfaces/IApi3ReaderProxyV1Factory.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IApi3ReaderProxyV1Factory {\\n event DeployedApi3ReaderProxyV1(\\n address indexed proxy,\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes metadata\\n );\\n\\n function deployApi3ReaderProxyV1(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external returns (address proxy);\\n\\n function computeApi3ReaderProxyV1Address(\\n bytes32 dapiName,\\n uint256 dappId,\\n bytes calldata metadata\\n ) external view returns (address proxy);\\n\\n function api3ServerV1OevExtension() external returns (address);\\n}\\n\",\"keccak256\":\"0x5b467c0e92810c99febcf06be1e0e50b2ef04d17aa8490f85b12ff5eea1d745e\",\"license\":\"MIT\"},\"contracts/interfaces/IApi3ReaderProxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Interface of the proxy contract that is used to read a specific API3\\n/// data feed\\n/// @notice While reading API3 data feeds, users are strongly recommended to\\n/// use this interface to interact with data feed-specific proxy contracts,\\n/// rather than accessing the underlying contracts directly\\ninterface IApi3ReaderProxy {\\n /// @notice Returns the current value and timestamp of the API3 data feed\\n /// associated with the proxy contract\\n /// @dev The user is responsible for validating the returned data. For\\n /// example, if `value` is the spot price of an asset, it would be\\n /// reasonable to reject values that are not positive.\\n /// `timestamp` does not necessarily refer to a timestamp of the chain that\\n /// the read proxy is deployed on. Considering that it may refer to an\\n /// off-chain time (such as the system time of the data sources, or the\\n /// timestamp of another chain), the user should not expect it to be\\n /// strictly bounded by `block.timestamp`.\\n /// Considering that the read proxy contract may be upgradeable, the user\\n /// should not assume any hard guarantees about the behavior in general.\\n /// For example, even though it may sound reasonable to expect `timestamp`\\n /// to never decrease over time and the current implementation of the proxy\\n /// contract guarantees it, technically, an upgrade can cause `timestamp`\\n /// to decrease. Therefore, the user should be able to handle any change in\\n /// behavior, which may include reverting gracefully.\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function read() external view returns (int224 value, uint32 timestamp);\\n}\\n\",\"keccak256\":\"0xecea274b41d1c164517f1eb11a2979d6c5ff5cab78afc9a3f073214799d0ddf0\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorInterface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorInterface {\\n function latestAnswer() external view returns (int256);\\n\\n function latestTimestamp() external view returns (uint256);\\n\\n function latestRound() external view returns (uint256);\\n\\n function getAnswer(uint256 roundId) external view returns (int256);\\n\\n function getTimestamp(uint256 roundId) external view returns (uint256);\\n\\n event AnswerUpdated(int256 indexed current, uint256 indexed roundId, uint256 updatedAt);\\n\\n event NewRound(uint256 indexed roundId, address indexed startedBy, uint256 startedAt);\\n}\\n\",\"keccak256\":\"0x2450923d9bc223f53bcbbd50a17405929ce5322200e8ce053c7918030cbb7844\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV2V3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {AggregatorInterface} from \\\"./AggregatorInterface.sol\\\";\\nimport {AggregatorV3Interface} from \\\"./AggregatorV3Interface.sol\\\";\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorV2V3Interface is AggregatorInterface, AggregatorV3Interface {}\\n\",\"keccak256\":\"0xd5e222c5dd223490b766da8e45266101dd3635b1ba31d9b7a3a80d49f7640f85\",\"license\":\"MIT\"},\"contracts/vendor/@chainlink/contracts@1.2.0/src/v0.8/shared/interfaces/AggregatorV3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// solhint-disable-next-line interface-starts-with-i\\ninterface AggregatorV3Interface {\\n function decimals() external view returns (uint8);\\n\\n function description() external view returns (string memory);\\n\\n function version() external view returns (uint256);\\n\\n function getRoundData(\\n uint80 _roundId\\n ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n\\n function latestRoundData()\\n external\\n view\\n returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n}\\n\",\"keccak256\":\"0x257a8d28fa83d3d942547c8e129ef465e4b5f3f31171e7be4739a4c98da6b4f0\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {ContextUpgradeable} from \\\"../utils/ContextUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.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 * The initial owner is set to the address provided by the deployer. This can\\n * 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 OwnableUpgradeable is Initializable, ContextUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\\n struct OwnableStorage {\\n address _owner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\\n\\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\\n assembly {\\n $.slot := OwnableStorageLocation\\n }\\n }\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n function __Ownable_init(address initialOwner) internal onlyInitializing {\\n __Ownable_init_unchained(initialOwner);\\n }\\n\\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\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 OwnableStorage storage $ = _getOwnableStorage();\\n return $._owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\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 if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\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 OwnableStorage storage $ = _getOwnableStorage();\\n address oldOwner = $._owner;\\n $._owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xc163fcf9bb10138631a9ba5564df1fa25db9adff73bd9ee868a8ae1858fe093a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Storage of the initializable contract.\\n *\\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\\n * when using with upgradeable contracts.\\n *\\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\\n */\\n struct InitializableStorage {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n uint64 _initialized;\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool _initializing;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Initializable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\\n\\n /**\\n * @dev The contract is already initialized.\\n */\\n error InvalidInitialization();\\n\\n /**\\n * @dev The contract is not initializing.\\n */\\n error NotInitializing();\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint64 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\\n * production.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n // Cache values to avoid duplicated sloads\\n bool isTopLevelCall = !$._initializing;\\n uint64 initialized = $._initialized;\\n\\n // Allowed calls:\\n // - initialSetup: the contract is not in the initializing state and no previous version was\\n // initialized\\n // - construction: the contract is initialized at version 1 (no reininitialization) and the\\n // current contract is just being deployed\\n bool initialSetup = initialized == 0 && isTopLevelCall;\\n bool construction = initialized == 1 && address(this).code.length == 0;\\n\\n if (!initialSetup && !construction) {\\n revert InvalidInitialization();\\n }\\n $._initialized = 1;\\n if (isTopLevelCall) {\\n $._initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n $._initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint64 version) {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing || $._initialized >= version) {\\n revert InvalidInitialization();\\n }\\n $._initialized = version;\\n $._initializing = true;\\n _;\\n $._initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n _checkInitializing();\\n _;\\n }\\n\\n /**\\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\\n */\\n function _checkInitializing() internal view virtual {\\n if (!_isInitializing()) {\\n revert NotInitializing();\\n }\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing) {\\n revert InvalidInitialization();\\n }\\n if ($._initialized != type(uint64).max) {\\n $._initialized = type(uint64).max;\\n emit Initialized(type(uint64).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint64) {\\n return _getInitializableStorage()._initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _getInitializableStorage()._initializing;\\n }\\n\\n /**\\n * @dev Returns a pointer to the storage namespace.\\n */\\n // solhint-disable-next-line var-name-mixedcase\\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\\n assembly {\\n $.slot := INITIALIZABLE_STORAGE\\n }\\n }\\n}\\n\",\"keccak256\":\"0x631188737069917d2f909d29ce62c4d48611d326686ba6683e26b72a23bfac0b\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts-upgradeable@5.0.2/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\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 ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\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\",\"keccak256\":\"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Context} from \\\"../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 * The initial owner is set to the address provided by the deployer. This can\\n * 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 /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n constructor(address initialOwner) {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\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 if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\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 if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\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\",\"keccak256\":\"0xff6d0bb2e285473e5311d9d3caacb525ae3538a80758c10649a4d61029b017bb\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/interfaces/draft-IERC1822.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x2a1f9944df2015c081d89cd41ba22ffaf10aa6285969f0dc612b235cc448999c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Proxy.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {Proxy} from \\\"../Proxy.sol\\\";\\nimport {ERC1967Utils} from \\\"./ERC1967Utils.sol\\\";\\n\\n/**\\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\\n * implementation address that can be changed. This address is stored in storage in the location specified by\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the\\n * implementation behind the proxy.\\n */\\ncontract ERC1967Proxy is Proxy {\\n /**\\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `implementation`.\\n *\\n * If `_data` is nonempty, it's used as data in a delegate call to `implementation`. This will typically be an\\n * encoded function call, and allows initializing the storage of the proxy like a Solidity constructor.\\n *\\n * Requirements:\\n *\\n * - If `data` is empty, `msg.value` must be zero.\\n */\\n constructor(address implementation, bytes memory _data) payable {\\n ERC1967Utils.upgradeToAndCall(implementation, _data);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\\n */\\n function _implementation() internal view virtual override returns (address) {\\n return ERC1967Utils.getImplementation();\\n }\\n}\\n\",\"keccak256\":\"0xbfb6695731de677140fbf76c772ab08c4233a122fb51ac28ac120fc49bbbc4ec\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/ERC1967/ERC1967Utils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IBeacon} from \\\"../beacon/IBeacon.sol\\\";\\nimport {Address} from \\\"../../utils/Address.sol\\\";\\nimport {StorageSlot} from \\\"../../utils/StorageSlot.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n */\\nlibrary ERC1967Utils {\\n // We re-declare ERC-1967 events here because they can't be used directly from IERC1967.\\n // This will be fixed in Solidity 0.8.21. At that point we should remove these events.\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev The `implementation` of the proxy is invalid.\\n */\\n error ERC1967InvalidImplementation(address implementation);\\n\\n /**\\n * @dev The `admin` of the proxy is invalid.\\n */\\n error ERC1967InvalidAdmin(address admin);\\n\\n /**\\n * @dev The `beacon` of the proxy is invalid.\\n */\\n error ERC1967InvalidBeacon(address beacon);\\n\\n /**\\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\\n */\\n error ERC1967NonPayable();\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n if (newImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(newImplementation);\\n }\\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(newImplementation, data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function getAdmin() internal view returns (address) {\\n return StorageSlot.getAddressSlot(ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n if (newAdmin == address(0)) {\\n revert ERC1967InvalidAdmin(address(0));\\n }\\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {IERC1967-AdminChanged} event.\\n */\\n function changeAdmin(address newAdmin) internal {\\n emit AdminChanged(getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.beacon\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n if (newBeacon.code.length == 0) {\\n revert ERC1967InvalidBeacon(newBeacon);\\n }\\n\\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\\n\\n address beaconImplementation = IBeacon(newBeacon).implementation();\\n if (beaconImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(beaconImplementation);\\n }\\n }\\n\\n /**\\n * @dev Change the beacon and trigger a setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-BeaconUpgraded} event.\\n *\\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\\n * efficiency.\\n */\\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\\n * if an upgrade doesn't perform an initialization call.\\n */\\n function _checkNonPayable() private {\\n if (msg.value > 0) {\\n revert ERC1967NonPayable();\\n }\\n }\\n}\\n\",\"keccak256\":\"0x06a78f9b3ee3e6d0eb4e4cd635ba49960bea34cac1db8c0a27c75f2319f1fd65\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/Proxy.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\\n * be specified by overriding the virtual {_implementation} function.\\n *\\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\\n * different contract through the {_delegate} function.\\n *\\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Delegates the current call to `implementation`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _delegate(address implementation) internal virtual {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don't know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev This is a virtual function that should be overridden so it returns the address to which the fallback\\n * function and {_fallback} should delegate.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates the current call to the address returned by `_implementation()`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _fallback() internal virtual {\\n _delegate(_implementation());\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\\n * function in the contract matches the call data.\\n */\\n fallback() external payable virtual {\\n _fallback();\\n }\\n}\\n\",\"keccak256\":\"0xc3f2ec76a3de8ed7a7007c46166f5550c72c7709e3fc7e8bb3111a7191cdedbd\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/beacon/IBeacon.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {UpgradeableBeacon} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0xc59a78b07b44b2cf2e8ab4175fca91e8eca1eee2df7357b8d2a8833e5ea1f64c\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IERC1822Proxiable} from \\\"../../interfaces/draft-IERC1822.sol\\\";\\nimport {ERC1967Utils} from \\\"../ERC1967/ERC1967Utils.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n */\\nabstract contract UUPSUpgradeable is IERC1822Proxiable {\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\\n * If the getter returns `\\\"5.0.0\\\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\\n * during an upgrade.\\n */\\n string public constant UPGRADE_INTERFACE_VERSION = \\\"5.0.0\\\";\\n\\n /**\\n * @dev The call is from an unauthorized context.\\n */\\n error UUPSUnauthorizedCallContext();\\n\\n /**\\n * @dev The storage `slot` is unsupported as a UUID.\\n */\\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n _checkProxy();\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n _checkNotDelegated();\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\\n return ERC1967Utils.IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data);\\n }\\n\\n /**\\n * @dev Reverts if the execution is not performed via delegatecall or the execution\\n * context is not of a proxy with an ERC1967-compliant implementation pointing to self.\\n * See {_onlyProxy}.\\n */\\n function _checkProxy() internal view virtual {\\n if (\\n address(this) == __self || // Must be called through delegatecall\\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\\n ) {\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Reverts if the execution is performed via delegatecall.\\n * See {notDelegated}.\\n */\\n function _checkNotDelegated() internal view virtual {\\n if (address(this) != __self) {\\n // Must not be called through delegatecall\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\\n *\\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\\n * is expected to be the implementation slot in ERC1967.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\\n revert UUPSUnsupportedProxiableUUID(slot);\\n }\\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\\n } catch {\\n // The implementation is not UUPS\\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3ffb56bcb175984a10b1167e2eba560876bfe96a435f5d62ffed8b1bb4ebc4c7\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev The ETH balance of the account is not enough to perform the operation.\\n */\\n error AddressInsufficientBalance(address account);\\n\\n /**\\n * @dev There's no code at `target` (it is not a contract).\\n */\\n error AddressEmptyCode(address target);\\n\\n /**\\n * @dev A call to an address target failed. The target may have reverted.\\n */\\n error FailedInnerCall();\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n if (address(this).balance < amount) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n if (!success) {\\n revert FailedInnerCall();\\n }\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason or custom error, it is bubbled\\n * up by this function (like regular Solidity function calls). However, if\\n * the call reverted with no returned reason, this function reverts with a\\n * {FailedInnerCall} error.\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n if (address(this).balance < value) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\\n * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an\\n * unsuccessful call.\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata\\n ) internal view returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n // only check if target is a contract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n if (returndata.length == 0 && target.code.length == 0) {\\n revert AddressEmptyCode(target);\\n }\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\\n * revert reason or with a default {FailedInnerCall} error.\\n */\\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.\\n */\\n function _revert(bytes memory returndata) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert FailedInnerCall();\\n }\\n }\\n}\\n\",\"keccak256\":\"0xaf28a975a78550e45f65e559a3ad6a5ad43b9b8a37366999abd1b7084eb70721\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\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\",\"keccak256\":\"0x493033a8d1b176a037b2cc6a04dad01a5c157722049bbecf632ca876224dd4b2\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/Create2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Create2.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer.\\n * `CREATE2` can be used to compute in advance the address where a smart\\n * contract will be deployed, which allows for interesting new mechanisms known\\n * as 'counterfactual interactions'.\\n *\\n * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more\\n * information.\\n */\\nlibrary Create2 {\\n /**\\n * @dev Not enough balance for performing a CREATE2 deploy.\\n */\\n error Create2InsufficientBalance(uint256 balance, uint256 needed);\\n\\n /**\\n * @dev There's no code to deploy.\\n */\\n error Create2EmptyBytecode();\\n\\n /**\\n * @dev The deployment failed.\\n */\\n error Create2FailedDeployment();\\n\\n /**\\n * @dev Deploys a contract using `CREATE2`. The address where the contract\\n * will be deployed can be known in advance via {computeAddress}.\\n *\\n * The bytecode for a contract can be obtained from Solidity with\\n * `type(contractName).creationCode`.\\n *\\n * Requirements:\\n *\\n * - `bytecode` must not be empty.\\n * - `salt` must have not been used for `bytecode` already.\\n * - the factory must have a balance of at least `amount`.\\n * - if `amount` is non-zero, `bytecode` must have a `payable` constructor.\\n */\\n function deploy(uint256 amount, bytes32 salt, bytes memory bytecode) internal returns (address addr) {\\n if (address(this).balance < amount) {\\n revert Create2InsufficientBalance(address(this).balance, amount);\\n }\\n if (bytecode.length == 0) {\\n revert Create2EmptyBytecode();\\n }\\n /// @solidity memory-safe-assembly\\n assembly {\\n addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt)\\n }\\n if (addr == address(0)) {\\n revert Create2FailedDeployment();\\n }\\n }\\n\\n /**\\n * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the\\n * `bytecodeHash` or `salt` will result in a new destination address.\\n */\\n function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) {\\n return computeAddress(salt, bytecodeHash, address(this));\\n }\\n\\n /**\\n * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at\\n * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}.\\n */\\n function computeAddress(bytes32 salt, bytes32 bytecodeHash, address deployer) internal pure returns (address addr) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n let ptr := mload(0x40) // Get free memory pointer\\n\\n // | | \\u2193 ptr ... \\u2193 ptr + 0x0B (start) ... \\u2193 ptr + 0x20 ... \\u2193 ptr + 0x40 ... |\\n // |-------------------|---------------------------------------------------------------------------|\\n // | bytecodeHash | CCCCCCCCCCCCC...CC |\\n // | salt | BBBBBBBBBBBBB...BB |\\n // | deployer | 000000...0000AAAAAAAAAAAAAAAAAAA...AA |\\n // | 0xFF | FF |\\n // |-------------------|---------------------------------------------------------------------------|\\n // | memory | 000000...00FFAAAAAAAAAAAAAAAAAAA...AABBBBBBBBBBBBB...BBCCCCCCCCCCCCC...CC |\\n // | keccak(start, 85) | \\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191\\u2191 |\\n\\n mstore(add(ptr, 0x40), bytecodeHash)\\n mstore(add(ptr, 0x20), salt)\\n mstore(ptr, deployer) // Right-aligned with 12 preceding garbage bytes\\n let start := add(ptr, 0x0b) // The hashed data starts at the final garbage byte which we will set to 0xff\\n mstore8(start, 0xff)\\n addr := keccak256(start, 85)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2b9807d194b92f1068d868e9587d27037264a9a067c778486f86ae21c61cbd5e\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@5.0.2/utils/StorageSlot.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```solidity\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(newImplementation.code.length > 0);\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n struct StringSlot {\\n string value;\\n }\\n\\n struct BytesSlot {\\n bytes value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\\n */\\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` representation of the string storage pointer `store`.\\n */\\n function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\\n */\\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.\\n */\\n function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x32ba59b4b7299237c8ba56319110989d7978a039faf754793064e967e5894418\",\"license\":\"MIT\"}},\"version\":1}", + "bytecode": "0x60a060405234801561001057600080fd5b5060405161231338038061231383398101604081905261002f9161014b565b816001600160a01b03811661005f57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b610068816100df565b506001600160a01b0381166100cd5760405162461bcd60e51b815260206004820152602560248201527f4170693353657276657256314f6576457874656e73696f6e2061646472657373604482015264207a65726f60d81b6064820152608401610056565b6001600160a01b03166080525061017e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b038116811461014657600080fd5b919050565b6000806040838503121561015e57600080fd5b6101678361012f565b91506101756020840161012f565b90509250929050565b60805161216d6101a66000396000818160c2015281816101cd0152610453015261216d6000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c8063ce7ebd6d11610050578063ce7ebd6d146100bd578063d893c1b3146100e4578063f2fde38b146100f757600080fd5b8063715018a6146100775780638da5cb5b14610081578063c3002760146100aa575b600080fd5b61007f61010a565b005b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61008e6100b8366004610688565b61011e565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b61008e6100f2366004610688565b610383565b61007f61010536600461070b565b61052b565b610112610582565b61011c60006105c8565b565b6000846101725760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f00000000000000000000000000000000000060448201526064015b60405180910390fd5b836000036101b15760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b600083836040516101c3929190610734565b60405180910390207f000000000000000000000000000000000000000000000000000000000000000087876040516101fa9061066e565b6001600160a01b039093168352602083019190915260408201526060018190604051809103906000f5905080158015610237573d6000803e3d6000fd5b509050838360405161024a929190610734565b60405180910390208160405161025f9061067b565b6001600160a01b0390911681526040602082018190526000908201526060018190604051809103906000f590508015801561029e573d6000803e3d6000fd5b509150816001600160a01b031663c4d66de86102c26000546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561031b57600080fd5b505af115801561032f573d6000803e3d6000fd5b50505050816001600160a01b03167fb40b92c78b80aed539d9115cb84458be5e6cf0450738ae6c8645efd8e25975c2878787876040516103729493929190610744565b60405180910390a250949350505050565b6000846103d25760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610169565b836000036104115760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b60006104c98484604051610426929190610734565b6040519081900381209061043c6020820161066e565b601f1982820381018352601f9091011660408181527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316602083015281018a9052606081018990526080015b60408051601f19818403018152908290526104ae92916020016107a5565b60405160208183030381529060405280519060200120610630565b905061052184846040516104de929190610734565b604051908190038120906104f46020820161067b565b601f1982820381018352601f909101166020818101604090815260008352516104909287929091016107d4565b9695505050505050565b610533610582565b6001600160a01b038116610576576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610169565b61057f816105c8565b50565b6000546001600160a01b0316331461011c576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610169565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061063d838330610644565b9392505050565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b6115038061081883390190565b61041d80611d1b83390190565b6000806000806060858703121561069e57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156106c357600080fd5b8501601f810187136106d457600080fd5b803567ffffffffffffffff8111156106eb57600080fd5b8760208284010111156106fd57600080fd5b949793965060200194505050565b60006020828403121561071d57600080fd5b81356001600160a01b038116811461063d57600080fd5b8183823760009101908152919050565b84815283602082015260606040820152816060820152818360808301376000818301608090810191909152601f909201601f191601019392505050565b60005b8381101561079c578181015183820152602001610784565b50506000910152565b600083516107b7818460208801610781565b8351908301906107cb818360208801610781565b01949350505050565b6001600160a01b03831681526040602082015260008251806040840152610802816060850160208701610781565b601f01601f191691909101606001939250505056fe6101406040523060805234801561001557600080fd5b50604051611503380380611503833981016040819052610034916101bf565b6001600160a01b03831660c0819052604080516316b53a2760e11b81529051632d6a744e916004808201926020929091908290030181865afa15801561007e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a291906101f4565b6001600160a01b031660a05260e082905261010081905260408051602081018490520160408051601f198184030181529190528051602090910120610120526100e96100f1565b505050610216565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156101415760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146101a05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b80516001600160a01b03811681146101ba57600080fd5b919050565b6000806000606084860312156101d457600080fd5b6101dd846101a3565b925060208401519150604084015190509250925092565b60006020828403121561020657600080fd5b61020f826101a3565b9392505050565b60805160a05160c05160e051610100516101205161127461028f600039600061055d0152600081816103c00152610704015260006102f801526000818161047d015261074301526000818161018c015281816105920152610672015260008181610a5601528181610a7f0152610c0201526112746000f3fe6080604052600436106101755760003560e01c8063868fa88c116100cb578063b5ab58dc1161007f578063ce7ebd6d11610059578063ce7ebd6d1461046b578063f2fde38b1461049f578063feaf968c146104bf57600080fd5b8063b5ab58dc1461042b578063b633620c1461042b578063c4d66de81461044b57600080fd5b80639a6fc8f5116100b05780639a6fc8f5146103575780639de0eb04146103ae578063ad3cb1cc146103e257600080fd5b8063868fa88c146102e65780638da5cb5b1461031a57600080fd5b806354fd4d501161012d578063715018a611610107578063715018a6146102925780637284e416146102a75780638205bf6a146102d157600080fd5b806354fd4d501461023457806357de26a414610249578063668a0f021461027d57600080fd5b80634f1ef2861161015e5780634f1ef286146101e757806350d25bcd146101fc57806352d1902d1461021f57600080fd5b80632d6a744e1461017a578063313ce567146101cb575b600080fd5b34801561018657600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d757600080fd5b50604051601281526020016101c2565b6101fa6101f536600461103f565b6104d4565b005b34801561020857600080fd5b506102116104f3565b6040519081526020016101c2565b34801561022b57600080fd5b50610211610506565b34801561024057600080fd5b50611331610211565b34801561025557600080fd5b5061025e610535565b60408051601b9390930b835263ffffffff9091166020830152016101c2565b34801561028957600080fd5b50610211610825565b34801561029e57600080fd5b506101fa610840565b3480156102b357600080fd5b506040805160208101909152600081525b6040516101c2919061112d565b3480156102dd57600080fd5b50610211610854565b3480156102f257600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b34801561032657600080fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101ae565b34801561036357600080fd5b50610377610372366004611160565b61086a565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016101c2565b3480156103ba57600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b3480156103ee57600080fd5b506102c46040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b34801561043757600080fd5b5061021161044636600461118c565b610825565b34801561045757600080fd5b506101fa6104663660046111a5565b61088b565b34801561047757600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ab57600080fd5b506101fa6104ba3660046111a5565b6109c8565b3480156104cb57600080fd5b50610377610a24565b6104dc610a4b565b6104e582610b02565b6104ef8282610b0a565b5050565b60006104fd610535565b50601b0b919050565b6000610510610bf7565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6040517f472c22f10000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006004820152600090819081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063472c22f190602401602060405180830381865afa1580156105d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fd91906111c0565b905080610636576040517f8086c76400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f67a7cfb70000000000000000000000000000000000000000000000000000000081526004810182905260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906367a7cfb7906024016040805180830381865afa1580156106b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106dc91906111d9565b6040517f91526c360000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015260248101869052919350915060009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906391526c36906044016040805180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906111d9565b915091508263ffffffff168163ffffffff1611156107d157909550935084846107dc565b838380975081985050505b8563ffffffff1660000361081c576040517f2bb59f0900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050509091565b6000604051631fc30cb960e01b815260040160405180910390fd5b610848610c40565b6108526000610cb4565b565b600061085e610535565b63ffffffff1692915050565b6000806000806000604051631fc30cb960e01b815260040160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156108d65750825b905060008267ffffffffffffffff1660011480156108f35750303b155b905081158015610901575080155b15610938576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561096c57845468ff00000000000000001916680100000000000000001785555b61097586610d32565b83156109c057845468ff000000000000000019168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6109d0610c40565b6001600160a01b038116610a18576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b610a2181610cb4565b50565b600080808080610a32610535565b9596601b9190910b9563ffffffff169450849350909150565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ae457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ad87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614155b156108525760405163703e46dd60e11b815260040160405180910390fd5b610a21610c40565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b64575060408051601f3d908101601f19168201909252610b61918101906111c0565b60015b610b8c57604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114610be8576040517faa1d49a400000000000000000000000000000000000000000000000000000000815260048101829052602401610a0f565b610bf28383610d43565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108525760405163703e46dd60e11b815260040160405180910390fd5b33610c727f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614610852576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610a0f565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300805473ffffffffffffffffffffffffffffffffffffffff1981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b610d3a610d99565b610a2181610e00565b610d4c82610e08565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115610d9157610bf28282610e8c565b6104ef610f02565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610852576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109d0610d99565b806001600160a01b03163b600003610e3e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051610ea99190611222565b600060405180830381855af49150503d8060008114610ee4576040519150601f19603f3d011682016040523d82523d6000602084013e610ee9565b606091505b5091509150610ef9858383610f3a565b95945050505050565b3415610852576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606082610f4f57610f4a82610fb2565b610fab565b8151158015610f6657506001600160a01b0384163b155b15610fa8576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610a0f565b50805b9392505050565b805115610fc25780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80356001600160a01b038116811461100b57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561105257600080fd5b61105b83610ff4565b9150602083013567ffffffffffffffff81111561107757600080fd5b8301601f8101851361108857600080fd5b803567ffffffffffffffff8111156110a2576110a2611010565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156110d1576110d1611010565b6040528181528282016020018710156110e957600080fd5b816020840160208301376000602083830101528093505050509250929050565b60005b8381101561112457818101518382015260200161110c565b50506000910152565b602081526000825180602084015261114c816040850160208701611109565b601f01601f19169190910160400192915050565b60006020828403121561117257600080fd5b813569ffffffffffffffffffff81168114610fab57600080fd5b60006020828403121561119e57600080fd5b5035919050565b6000602082840312156111b757600080fd5b610fab82610ff4565b6000602082840312156111d257600080fd5b5051919050565b600080604083850312156111ec57600080fd5b825180601b0b81146111fd57600080fd5b602084015190925063ffffffff8116811461121757600080fd5b809150509250929050565b60008251611234818460208701611109565b919091019291505056fea26469706673582212200ce1fb76af7a7f07e054a40f569323f46509052cccbd884ed6811664ec0b0ec164736f6c634300081b0033608060405260405161041d38038061041d83398101604081905261002291610268565b61002c8282610033565b5050610358565b61003c82610092565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561008657610081828261010e565b505050565b61008e610185565b5050565b806001600160a01b03163b6000036100cd57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161012b919061033c565b600060405180830381855af49150503d8060008114610166576040519150601f19603f3d011682016040523d82523d6000602084013e61016b565b606091505b50909250905061017c8583836101a6565b95945050505050565b34156101a45760405163b398979f60e01b815260040160405180910390fd5b565b6060826101bb576101b682610205565b6101fe565b81511580156101d257506001600160a01b0384163b155b156101fb57604051639996b31560e01b81526001600160a01b03851660048201526024016100c4565b50805b9392505050565b8051156102155780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b60005b8381101561025f578181015183820152602001610247565b50506000910152565b6000806040838503121561027b57600080fd5b82516001600160a01b038116811461029257600080fd5b60208401519092506001600160401b038111156102ae57600080fd5b8301601f810185136102bf57600080fd5b80516001600160401b038111156102d8576102d861022e565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103065761030661022e565b60405281815282820160200187101561031e57600080fd5b61032f826020830160208601610244565b8093505050509250929050565b6000825161034e818460208701610244565b9190910192915050565b60b7806103666000396000f3fe6080604052600a600c565b005b60186014601a565b605e565b565b600060597f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e808015607c573d6000f35b3d6000fdfea2646970667358221220105a39e5344dce7a120ffb84aa65102e325f7cbbc088cef866e9f0a2b2bc33c964736f6c634300081b0033a2646970667358221220527f9301ed8ca010207313bfc1761e64088affd67a1cbfdff9f781c351ee7b7564736f6c634300081b0033", + "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100725760003560e01c8063ce7ebd6d11610050578063ce7ebd6d146100bd578063d893c1b3146100e4578063f2fde38b146100f757600080fd5b8063715018a6146100775780638da5cb5b14610081578063c3002760146100aa575b600080fd5b61007f61010a565b005b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61008e6100b8366004610688565b61011e565b61008e7f000000000000000000000000000000000000000000000000000000000000000081565b61008e6100f2366004610688565b610383565b61007f61010536600461070b565b61052b565b610112610582565b61011c60006105c8565b565b6000846101725760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f00000000000000000000000000000000000060448201526064015b60405180910390fd5b836000036101b15760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b600083836040516101c3929190610734565b60405180910390207f000000000000000000000000000000000000000000000000000000000000000087876040516101fa9061066e565b6001600160a01b039093168352602083019190915260408201526060018190604051809103906000f5905080158015610237573d6000803e3d6000fd5b509050838360405161024a929190610734565b60405180910390208160405161025f9061067b565b6001600160a01b0390911681526040602082018190526000908201526060018190604051809103906000f590508015801561029e573d6000803e3d6000fd5b509150816001600160a01b031663c4d66de86102c26000546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b15801561031b57600080fd5b505af115801561032f573d6000803e3d6000fd5b50505050816001600160a01b03167fb40b92c78b80aed539d9115cb84458be5e6cf0450738ae6c8645efd8e25975c2878787876040516103729493929190610744565b60405180910390a250949350505050565b6000846103d25760405162461bcd60e51b815260206004820152600e60248201527f64415049206e616d65207a65726f0000000000000000000000000000000000006044820152606401610169565b836000036104115760405162461bcd60e51b815260206004820152600c60248201526b64417070204944207a65726f60a01b6044820152606401610169565b60006104c98484604051610426929190610734565b6040519081900381209061043c6020820161066e565b601f1982820381018352601f9091011660408181527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316602083015281018a9052606081018990526080015b60408051601f19818403018152908290526104ae92916020016107a5565b60405160208183030381529060405280519060200120610630565b905061052184846040516104de929190610734565b604051908190038120906104f46020820161067b565b601f1982820381018352601f909101166020818101604090815260008352516104909287929091016107d4565b9695505050505050565b610533610582565b6001600160a01b038116610576576040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152602401610169565b61057f816105c8565b50565b6000546001600160a01b0316331461011c576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610169565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061063d838330610644565b9392505050565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b6115038061081883390190565b61041d80611d1b83390190565b6000806000806060858703121561069e57600080fd5b8435935060208501359250604085013567ffffffffffffffff8111156106c357600080fd5b8501601f810187136106d457600080fd5b803567ffffffffffffffff8111156106eb57600080fd5b8760208284010111156106fd57600080fd5b949793965060200194505050565b60006020828403121561071d57600080fd5b81356001600160a01b038116811461063d57600080fd5b8183823760009101908152919050565b84815283602082015260606040820152816060820152818360808301376000818301608090810191909152601f909201601f191601019392505050565b60005b8381101561079c578181015183820152602001610784565b50506000910152565b600083516107b7818460208801610781565b8351908301906107cb818360208801610781565b01949350505050565b6001600160a01b03831681526040602082015260008251806040840152610802816060850160208701610781565b601f01601f191691909101606001939250505056fe6101406040523060805234801561001557600080fd5b50604051611503380380611503833981016040819052610034916101bf565b6001600160a01b03831660c0819052604080516316b53a2760e11b81529051632d6a744e916004808201926020929091908290030181865afa15801561007e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a291906101f4565b6001600160a01b031660a05260e082905261010081905260408051602081018490520160408051601f198184030181529190528051602090910120610120526100e96100f1565b505050610216565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff16156101415760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b03908116146101a05780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b80516001600160a01b03811681146101ba57600080fd5b919050565b6000806000606084860312156101d457600080fd5b6101dd846101a3565b925060208401519150604084015190509250925092565b60006020828403121561020657600080fd5b61020f826101a3565b9392505050565b60805160a05160c05160e051610100516101205161127461028f600039600061055d0152600081816103c00152610704015260006102f801526000818161047d015261074301526000818161018c015281816105920152610672015260008181610a5601528181610a7f0152610c0201526112746000f3fe6080604052600436106101755760003560e01c8063868fa88c116100cb578063b5ab58dc1161007f578063ce7ebd6d11610059578063ce7ebd6d1461046b578063f2fde38b1461049f578063feaf968c146104bf57600080fd5b8063b5ab58dc1461042b578063b633620c1461042b578063c4d66de81461044b57600080fd5b80639a6fc8f5116100b05780639a6fc8f5146103575780639de0eb04146103ae578063ad3cb1cc146103e257600080fd5b8063868fa88c146102e65780638da5cb5b1461031a57600080fd5b806354fd4d501161012d578063715018a611610107578063715018a6146102925780637284e416146102a75780638205bf6a146102d157600080fd5b806354fd4d501461023457806357de26a414610249578063668a0f021461027d57600080fd5b80634f1ef2861161015e5780634f1ef286146101e757806350d25bcd146101fc57806352d1902d1461021f57600080fd5b80632d6a744e1461017a578063313ce567146101cb575b600080fd5b34801561018657600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101d757600080fd5b50604051601281526020016101c2565b6101fa6101f536600461103f565b6104d4565b005b34801561020857600080fd5b506102116104f3565b6040519081526020016101c2565b34801561022b57600080fd5b50610211610506565b34801561024057600080fd5b50611331610211565b34801561025557600080fd5b5061025e610535565b60408051601b9390930b835263ffffffff9091166020830152016101c2565b34801561028957600080fd5b50610211610825565b34801561029e57600080fd5b506101fa610840565b3480156102b357600080fd5b506040805160208101909152600081525b6040516101c2919061112d565b3480156102dd57600080fd5b50610211610854565b3480156102f257600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b34801561032657600080fd5b507f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166101ae565b34801561036357600080fd5b50610377610372366004611160565b61086a565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016101c2565b3480156103ba57600080fd5b506102117f000000000000000000000000000000000000000000000000000000000000000081565b3480156103ee57600080fd5b506102c46040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b34801561043757600080fd5b5061021161044636600461118c565b610825565b34801561045757600080fd5b506101fa6104663660046111a5565b61088b565b34801561047757600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b3480156104ab57600080fd5b506101fa6104ba3660046111a5565b6109c8565b3480156104cb57600080fd5b50610377610a24565b6104dc610a4b565b6104e582610b02565b6104ef8282610b0a565b5050565b60006104fd610535565b50601b0b919050565b6000610510610bf7565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b6040517f472c22f10000000000000000000000000000000000000000000000000000000081527f00000000000000000000000000000000000000000000000000000000000000006004820152600090819081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063472c22f190602401602060405180830381865afa1580156105d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fd91906111c0565b905080610636576040517f8086c76400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f67a7cfb70000000000000000000000000000000000000000000000000000000081526004810182905260009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906367a7cfb7906024016040805180830381865afa1580156106b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106dc91906111d9565b6040517f91526c360000000000000000000000000000000000000000000000000000000081527f0000000000000000000000000000000000000000000000000000000000000000600482015260248101869052919350915060009081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906391526c36906044016040805180830381865afa158015610789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ad91906111d9565b915091508263ffffffff168163ffffffff1611156107d157909550935084846107dc565b838380975081985050505b8563ffffffff1660000361081c576040517f2bb59f0900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050509091565b6000604051631fc30cb960e01b815260040160405180910390fd5b610848610c40565b6108526000610cb4565b565b600061085e610535565b63ffffffff1692915050565b6000806000806000604051631fc30cb960e01b815260040160405180910390fd5b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156108d65750825b905060008267ffffffffffffffff1660011480156108f35750303b155b905081158015610901575080155b15610938576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff19166001178555831561096c57845468ff00000000000000001916680100000000000000001785555b61097586610d32565b83156109c057845468ff000000000000000019168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050565b6109d0610c40565b6001600160a01b038116610a18576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b610a2181610cb4565b50565b600080808080610a32610535565b9596601b9190910b9563ffffffff169450849350909150565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161480610ae457507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610ad87f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614155b156108525760405163703e46dd60e11b815260040160405180910390fd5b610a21610c40565b816001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b64575060408051601f3d908101601f19168201909252610b61918101906111c0565b60015b610b8c57604051634c9c8ce360e01b81526001600160a01b0383166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114610be8576040517faa1d49a400000000000000000000000000000000000000000000000000000000815260048101829052602401610a0f565b610bf28383610d43565b505050565b306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146108525760405163703e46dd60e11b815260040160405180910390fd5b33610c727f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614610852576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610a0f565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300805473ffffffffffffffffffffffffffffffffffffffff1981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b610d3a610d99565b610a2181610e00565b610d4c82610e08565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a2805115610d9157610bf28282610e8c565b6104ef610f02565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff16610852576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109d0610d99565b806001600160a01b03163b600003610e3e57604051634c9c8ce360e01b81526001600160a01b0382166004820152602401610a0f565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6060600080846001600160a01b031684604051610ea99190611222565b600060405180830381855af49150503d8060008114610ee4576040519150601f19603f3d011682016040523d82523d6000602084013e610ee9565b606091505b5091509150610ef9858383610f3a565b95945050505050565b3415610852576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606082610f4f57610f4a82610fb2565b610fab565b8151158015610f6657506001600160a01b0384163b155b15610fa8576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401610a0f565b50805b9392505050565b805115610fc25780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80356001600160a01b038116811461100b57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806040838503121561105257600080fd5b61105b83610ff4565b9150602083013567ffffffffffffffff81111561107757600080fd5b8301601f8101851361108857600080fd5b803567ffffffffffffffff8111156110a2576110a2611010565b604051601f8201601f19908116603f0116810167ffffffffffffffff811182821017156110d1576110d1611010565b6040528181528282016020018710156110e957600080fd5b816020840160208301376000602083830101528093505050509250929050565b60005b8381101561112457818101518382015260200161110c565b50506000910152565b602081526000825180602084015261114c816040850160208701611109565b601f01601f19169190910160400192915050565b60006020828403121561117257600080fd5b813569ffffffffffffffffffff81168114610fab57600080fd5b60006020828403121561119e57600080fd5b5035919050565b6000602082840312156111b757600080fd5b610fab82610ff4565b6000602082840312156111d257600080fd5b5051919050565b600080604083850312156111ec57600080fd5b825180601b0b81146111fd57600080fd5b602084015190925063ffffffff8116811461121757600080fd5b809150509250929050565b60008251611234818460208701611109565b919091019291505056fea26469706673582212200ce1fb76af7a7f07e054a40f569323f46509052cccbd884ed6811664ec0b0ec164736f6c634300081b0033608060405260405161041d38038061041d83398101604081905261002291610268565b61002c8282610033565b5050610358565b61003c82610092565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a280511561008657610081828261010e565b505050565b61008e610185565b5050565b806001600160a01b03163b6000036100cd57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080846001600160a01b03168460405161012b919061033c565b600060405180830381855af49150503d8060008114610166576040519150601f19603f3d011682016040523d82523d6000602084013e61016b565b606091505b50909250905061017c8583836101a6565b95945050505050565b34156101a45760405163b398979f60e01b815260040160405180910390fd5b565b6060826101bb576101b682610205565b6101fe565b81511580156101d257506001600160a01b0384163b155b156101fb57604051639996b31560e01b81526001600160a01b03851660048201526024016100c4565b50805b9392505050565b8051156102155780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b60005b8381101561025f578181015183820152602001610247565b50506000910152565b6000806040838503121561027b57600080fd5b82516001600160a01b038116811461029257600080fd5b60208401519092506001600160401b038111156102ae57600080fd5b8301601f810185136102bf57600080fd5b80516001600160401b038111156102d8576102d861022e565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103065761030661022e565b60405281815282820160200187101561031e57600080fd5b61032f826020830160208601610244565b8093505050509250929050565b6000825161034e818460208701610244565b9190910192915050565b60b7806103666000396000f3fe6080604052600a600c565b005b60186014601a565b605e565b565b600060597f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b3660008037600080366000845af43d6000803e808015607c573d6000f35b3d6000fdfea2646970667358221220105a39e5344dce7a120ffb84aa65102e325f7cbbc088cef866e9f0a2b2bc33c964736f6c634300081b0033a2646970667358221220527f9301ed8ca010207313bfc1761e64088affd67a1cbfdff9f781c351ee7b7564736f6c634300081b0033", + "devdoc": { + "errors": { + "OwnableInvalidOwner(address)": [ + { + "details": "The owner is not a valid owner account. (eg. `address(0)`)" + } + ], + "OwnableUnauthorizedAccount(address)": [ + { + "details": "The caller account is not authorized to perform an operation." + } + ] + }, + "kind": "dev", + "methods": { + "computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)": { + "params": { + "dapiName": "dAPI name as a bytes32 string", + "dappId": "dApp ID", + "metadata": "Metadata" + }, + "returns": { + "proxy": "Proxy address" + } + }, + "constructor": { + "params": { + "api3ServerV1OevExtension_": "Api3ServerV1OevExtension contract address", + "initialOwner": "Initial owner" + } + }, + "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { + "details": "As noted in Api3ReaderProxyV1, an implementation is deployed for each proxy to be able to use immutable variables", + "params": { + "dapiName": "dAPI name as a bytes32 string", + "dappId": "dApp ID", + "metadata": "Metadata" + }, + "returns": { + "proxy": "Proxy address" + } + }, + "owner()": { + "details": "Returns the address of the current owner." + }, + "renounceOwnership()": { + "details": "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." + }, + "transferOwnership(address)": { + "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner." + } + }, + "title": "Factory contract that deploys Api3ReaderProxyV1 implementations and their upgradeable proxies", + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": { + "api3ServerV1OevExtension()": { + "notice": "Api3ServerV1OevExtension contract address" + }, + "computeApi3ReaderProxyV1Address(bytes32,uint256,bytes)": { + "notice": "Computes the address of the Api3ReaderProxyV1" + }, + "deployApi3ReaderProxyV1(bytes32,uint256,bytes)": { + "notice": "Deterministically deploys the Api3ReaderProxyV1" + } + }, + "notice": "The owner of this contract at the time that it deploys a proxy is set as the owner of the proxy, which is allowed to upgrade it", + "version": 1 + }, + "storageLayout": { + "storage": [ + { + "astId": 13488, + "contract": "contracts/api3-server-v1/proxies/Api3ReaderProxyV1Factory.sol:Api3ReaderProxyV1Factory", + "label": "_owner", + "offset": 0, + "slot": "0", + "type": "t_address" + } + ], + "types": { + "t_address": { + "encoding": "inplace", + "label": "address", + "numberOfBytes": "20" + } + } + } +} diff --git a/deployments/arbitrum/Api3ServerV1OevExtension.json b/deployments/arbitrum/Api3ServerV1OevExtension.json new file mode 100644 index 0000000..92e57a7 --- /dev/null +++ b/deployments/arbitrum/Api3ServerV1OevExtension.json @@ -0,0 +1,1020 @@ +{ + "address": "0x2E787629c3B7545271240A87197108823ce8303b", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "accessControlRegistry_", + "type": "address" + }, + { + "internalType": "string", + "name": "adminRoleDescription_", + "type": "string" + }, + { + "internalType": "address", + "name": "manager_", + "type": "address" + }, + { + "internalType": "address", + "name": "api3ServerV1_", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "dappId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "updater", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "bidAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "signedDataTimestampCutoff", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "auctioneer", + "type": "address" + } + ], + "name": "PaidOevBid", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "beaconSetId", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "int224", + "name": "value", + "type": "int224" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "timestamp", + "type": "uint32" + } + ], + "name": "UpdatedBeaconSetWithBeacons", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "beaconId", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "int224", + "name": "value", + "type": "int224" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "timestamp", + "type": "uint32" + } + ], + "name": "UpdatedBeaconWithSignedData", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "dappId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "updater", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "dataFeedId", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "int224", + "name": "updatedValue", + "type": "int224" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "updatedTimestamp", + "type": "uint32" + } + ], + "name": "UpdatedDappOevDataFeed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "sender", + "type": "address" + } + ], + "name": "Withdrew", + "type": "event" + }, + { + "inputs": [], + "name": "AUCTIONEER_ROLE_DESCRIPTION", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "WITHDRAWER_ROLE_DESCRIPTION", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "accessControlRegistry", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "adminRole", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "adminRoleDescription", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "api3ServerV1", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "auctioneerRole", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "containsBytecode", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "dappIdToLastPaidBid", + "outputs": [ + { + "internalType": "address", + "name": "updater", + "type": "address" + }, + { + "internalType": "uint32", + "name": "signedDataTimestampCutoff", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "getBalance", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getBlockBasefee", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getBlockNumber", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getBlockTimestamp", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getChainId", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "manager", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes[]", + "name": "data", + "type": "bytes[]" + } + ], + "name": "multicall", + "outputs": [ + { + "internalType": "bytes[]", + "name": "returndata", + "type": "bytes[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "dappId", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "dataFeedId", + "type": "bytes32" + } + ], + "name": "oevDataFeed", + "outputs": [ + { + "internalType": "int224", + "name": "value", + "type": "int224" + }, + { + "internalType": "uint32", + "name": "timestamp", + "type": "uint32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "dappId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "bidAmount", + "type": "uint256" + }, + { + "internalType": "uint32", + "name": "signedDataTimestampCutoff", + "type": "uint32" + }, + { + "internalType": "bytes", + "name": "signature", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "payOevBid", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "dappId", + "type": "uint256" + }, + { + "internalType": "bytes[]", + "name": "signedData", + "type": "bytes[]" + } + ], + "name": "simulateDappOevDataFeedUpdate", + "outputs": [ + { + "internalType": "bytes32", + "name": "baseDataFeedId", + "type": "bytes32" + }, + { + "internalType": "int224", + "name": "updatedValue", + "type": "int224" + }, + { + "internalType": "uint32", + "name": "updatedTimestamp", + "type": "uint32" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "target", + "type": "address" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "simulateExternalCall", + "outputs": [ + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes[]", + "name": "data", + "type": "bytes[]" + } + ], + "name": "tryMulticall", + "outputs": [ + { + "internalType": "bool[]", + "name": "successes", + "type": "bool[]" + }, + { + "internalType": "bytes[]", + "name": "returndata", + "type": "bytes[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32[]", + "name": "beaconIds", + "type": "bytes32[]" + } + ], + "name": "updateBeaconSetWithBeacons", + "outputs": [ + { + "internalType": "bytes32", + "name": "beaconSetId", + "type": "bytes32" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "dappId", + "type": "uint256" + }, + { + "internalType": "bytes[]", + "name": "signedData", + "type": "bytes[]" + } + ], + "name": "updateDappOevDataFeed", + "outputs": [ + { + "internalType": "bytes32", + "name": "baseDataFeedId", + "type": "bytes32" + }, + { + "internalType": "int224", + "name": "updatedValue", + "type": "int224" + }, + { + "internalType": "uint32", + "name": "updatedTimestamp", + "type": "uint32" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "withdraw", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "withdrawerRole", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "stateMutability": "payable", + "type": "receive" + } + ], + "transactionHash": "0x08a4a6532c6650127107e3c44d915fa9e39e21f87e40ee75d757848e2e316627", + "receipt": { + "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", + "from": "0x07b589f06bD0A5324c4E2376d66d2F4F25921DE1", + "contractAddress": null, + "transactionIndex": 1, + "gasUsed": "5503187", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x5552e882261adeb69879401d7e7fc6243fce0f533174eea1bd6b3eb0a1d8db74", + "transactionHash": "0x08a4a6532c6650127107e3c44d915fa9e39e21f87e40ee75d757848e2e316627", + "logs": [], + "blockNumber": 267516804, + "cumulativeGasUsed": "5503187", + "status": 1, + "byzantium": true + }, + "args": [ + "0xcD7Df573B0F0bb4F2f8dFFF6650cDe8C77431730", + "Api3ServerV1OevExtension admin", + "0x81bc85f329cDB28936FbB239f734AE495121F9A6", + "0x709944a48cAf83535e43471680fDA4905FB3920a" + ], + "numDeployments": 1, + "solcInputHash": "22fea4cb5ac37f715d9a9ba94c27f7cd", + "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"accessControlRegistry_\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"adminRoleDescription_\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"manager_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"api3ServerV1_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"updater\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"bidAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"signedDataTimestampCutoff\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"auctioneer\",\"type\":\"address\"}],\"name\":\"PaidOevBid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconSetWithBeacons\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"beaconId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedBeaconWithSignedData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"updater\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"int224\",\"name\":\"updatedValue\",\"type\":\"int224\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"updatedTimestamp\",\"type\":\"uint32\"}],\"name\":\"UpdatedDappOevDataFeed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"Withdrew\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"AUCTIONEER_ROLE_DESCRIPTION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WITHDRAWER_ROLE_DESCRIPTION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"accessControlRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"adminRoleDescription\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"api3ServerV1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"auctioneerRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"containsBytecode\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"dappIdToLastPaidBid\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"updater\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"signedDataTimestampCutoff\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockBasefee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"manager\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"dataFeedId\",\"type\":\"bytes32\"}],\"name\":\"oevDataFeed\",\"outputs\":[{\"internalType\":\"int224\",\"name\":\"value\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"timestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"bidAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"signedDataTimestampCutoff\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"payOevBid\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signedData\",\"type\":\"bytes[]\"}],\"name\":\"simulateDappOevDataFeedUpdate\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"baseDataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"int224\",\"name\":\"updatedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"updatedTimestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"simulateExternalCall\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"tryMulticall\",\"outputs\":[{\"internalType\":\"bool[]\",\"name\":\"successes\",\"type\":\"bool[]\"},{\"internalType\":\"bytes[]\",\"name\":\"returndata\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"beaconIds\",\"type\":\"bytes32[]\"}],\"name\":\"updateBeaconSetWithBeacons\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"beaconSetId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"dappId\",\"type\":\"uint256\"},{\"internalType\":\"bytes[]\",\"name\":\"signedData\",\"type\":\"bytes[]\"}],\"name\":\"updateDappOevDataFeed\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"baseDataFeedId\",\"type\":\"bytes32\"},{\"internalType\":\"int224\",\"name\":\"updatedValue\",\"type\":\"int224\"},{\"internalType\":\"uint32\",\"name\":\"updatedTimestamp\",\"type\":\"uint32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawerRole\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"accessControlRegistry_\":\"AccessControlRegistry contract address\",\"adminRoleDescription_\":\"Admin role description\",\"api3ServerV1_\":\"Api3ServerV1 address\",\"manager_\":\"Manager address\"}},\"containsBytecode(address)\":{\"details\":\"An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.\",\"returns\":{\"_0\":\"If the account contains bytecode\"}},\"getBalance(address)\":{\"params\":{\"account\":\"Account address\"},\"returns\":{\"_0\":\"Account balance\"}},\"getBlockBasefee()\":{\"returns\":{\"_0\":\"Current block basefee\"}},\"getBlockNumber()\":{\"returns\":{\"_0\":\"Current block number\"}},\"getBlockTimestamp()\":{\"returns\":{\"_0\":\"Current block timestamp\"}},\"getChainId()\":{\"returns\":{\"_0\":\"Chain ID\"}},\"multicall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\"}},\"oevDataFeed(uint256,bytes32)\":{\"params\":{\"dappId\":\"dApp ID\",\"dataFeedId\":\"Data feed ID\"},\"returns\":{\"timestamp\":\"Data feed timestamp\",\"value\":\"Data feed value\"}},\"payOevBid(uint256,uint256,uint32,bytes,bytes)\":{\"params\":{\"bidAmount\":\"Bid amount\",\"dappId\":\"dApp ID\",\"data\":\"Data that will be passed through the callback\",\"signature\":\"Signature provided by an auctioneer\",\"signedDataTimestampCutoff\":\"Signed data timestamp cut-off\"}},\"simulateDappOevDataFeedUpdate(uint256,bytes[])\":{\"details\":\"The intended flow is for a searcher to do a static multicall to this function and `simulateExternalCall()` to check if the current signed data lets them extract OEV. If so, the searcher stores this data and places a bid on OevAuctionHouse. If they win the auction, they pay the bid and use the stored signed data with `updateDappOevDataFeed()` to extract OEV.\",\"params\":{\"dappId\":\"dApp ID\",\"signedData\":\"Signed data (see `_updateDappOevDataFeed()` for details)\"},\"returns\":{\"baseDataFeedId\":\"Base data feed ID\",\"updatedTimestamp\":\"Updated timestamp\",\"updatedValue\":\"Updated value\"}},\"simulateExternalCall(address,bytes)\":{\"details\":\"The most basic usage of this is in a static multicall that calls `simulateDappOevDataFeedUpdate()` multiple times to update the relevant feeds, followed by an external call to the liquidator contract of the searcher, which is built to return the revenue from the liquidation. The returned value would then be used to determine the bid amount.\",\"params\":{\"data\":\"Calldata of the external call\",\"target\":\"Target address of the external call\"},\"returns\":{\"_0\":\"Returndata of the external call\"}},\"tryMulticall(bytes[])\":{\"params\":{\"data\":\"Array of calldata of batched calls\"},\"returns\":{\"returndata\":\"Array of returndata of batched calls\",\"successes\":\"Array of success conditions of batched calls\"}},\"updateBeaconSetWithBeacons(bytes32[])\":{\"details\":\"As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.\",\"params\":{\"beaconIds\":\"Beacon IDs\"},\"returns\":{\"beaconSetId\":\"Beacon set ID\"}},\"updateDappOevDataFeed(uint256,bytes[])\":{\"params\":{\"dappId\":\"dApp ID\",\"signedData\":\"Signed data (see `_updateDappOevDataFeed()` for details)\"},\"returns\":{\"baseDataFeedId\":\"Base data feed ID\",\"updatedTimestamp\":\"Updated timestamp\",\"updatedValue\":\"Updated value\"}},\"withdraw(address,uint256)\":{\"details\":\"This function has a reentrancy guard to prevent it from being called in an OEV bid payment callback\",\"params\":{\"amount\":\"Amount\",\"recipient\":\"Recipient address\"}}},\"title\":\"Api3ServerV1 extension for OEV support\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"AUCTIONEER_ROLE_DESCRIPTION()\":{\"notice\":\"Auctioneer role description\"},\"WITHDRAWER_ROLE_DESCRIPTION()\":{\"notice\":\"Withdrawer role description\"},\"accessControlRegistry()\":{\"notice\":\"AccessControlRegistry contract address\"},\"adminRole()\":{\"notice\":\"Admin role\"},\"adminRoleDescription()\":{\"notice\":\"Admin role description\"},\"api3ServerV1()\":{\"notice\":\"Api3ServerV1 contract address\"},\"auctioneerRole()\":{\"notice\":\"Auctioneer role\"},\"containsBytecode(address)\":{\"notice\":\"Returns if the account contains bytecode\"},\"dappIdToLastPaidBid(uint256)\":{\"notice\":\"Returns the parameters of the last paid bid for the dApp with ID\"},\"getBalance(address)\":{\"notice\":\"Returns the account balance\"},\"getBlockBasefee()\":{\"notice\":\"Returns the current block basefee\"},\"getBlockNumber()\":{\"notice\":\"Returns the current block number\"},\"getBlockTimestamp()\":{\"notice\":\"Returns the current block timestamp\"},\"getChainId()\":{\"notice\":\"Returns the chain ID\"},\"manager()\":{\"notice\":\"Address of the manager that manages the related AccessControlRegistry roles\"},\"multicall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts\"},\"oevDataFeed(uint256,bytes32)\":{\"notice\":\"Value of the OEV data feed specific to the dApp, intended for informational purposes. The dApps are strongly recommended to use the standardized proxies to read data feeds.\"},\"payOevBid(uint256,uint256,uint32,bytes,bytes)\":{\"notice\":\"An OEV auction bid specifies a dApp ID, a signed data timestamp cut-off, a bid amount and an updater account. To award the winning bid, an auctioneer signs a message that includes the hash of these parameters and publishes it. Then, the updater account calls this function to pay the bid amount and claim the privilege to execute updates for the dApp with ID using the signed data whose timestamps are limited by the cut-off. At least the bid amount must be sent to this contract with empty calldata in the `onOevBidPayment` callback, which will be checked upon succesful return. As a result of the reentrancy guard, nesting OEV bid payments is not allowed.\"},\"simulateDappOevDataFeedUpdate(uint256,bytes[])\":{\"notice\":\"Called by the zero address to simulate an OEV data feed update\"},\"simulateExternalCall(address,bytes)\":{\"notice\":\"Called by the zero address to simulate an external call\"},\"tryMulticall(bytes[])\":{\"notice\":\"Batches calls to the inheriting contract but does not revert if any of the batched calls reverts\"},\"updateBeaconSetWithBeacons(bytes32[])\":{\"notice\":\"Updates the Beacon set using the current values of its Beacons\"},\"updateDappOevDataFeed(uint256,bytes[])\":{\"notice\":\"Called by the current updater of the dApp with ID to update the OEV data feed specific to the dApp\"},\"withdraw(address,uint256)\":{\"notice\":\"Called by the contract manager or a withdrawer to withdraw the accumulated OEV auction proceeds\"},\"withdrawerRole()\":{\"notice\":\"Withdrawer role\"}},\"notice\":\"Api3ServerV1 contract supports base data feeds and OEV functionality. This contract implements the updated OEV design, and thus supersedes the OEV-related portion of Api3ServerV1. As before, the users are intended to read API3 data feeds through a standardized proxy, which abstracts this change away.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/api3-server-v1/Api3ServerV1OevExtension.sol\":\"Api3ServerV1OevExtension\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"contracts/access/AccessControlRegistryAdminned.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/SelfMulticall.sol\\\";\\nimport \\\"./RoleDeriver.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistry.sol\\\";\\n\\n/// @title Contract to be inherited by contracts whose adminship functionality\\n/// will be implemented using AccessControlRegistry\\ncontract AccessControlRegistryAdminned is\\n SelfMulticall,\\n RoleDeriver,\\n IAccessControlRegistryAdminned\\n{\\n /// @notice AccessControlRegistry contract address\\n address public immutable override accessControlRegistry;\\n\\n /// @notice Admin role description\\n string public override adminRoleDescription;\\n\\n bytes32 internal immutable adminRoleDescriptionHash;\\n\\n /// @dev Contracts deployed with the same admin role descriptions will have\\n /// the same roles, meaning that granting an account a role will authorize\\n /// it in multiple contracts. Unless you want your deployed contract to\\n /// share the role configuration of another contract, use a unique admin\\n /// role description.\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription\\n ) {\\n require(_accessControlRegistry != address(0), \\\"ACR address zero\\\");\\n require(\\n bytes(_adminRoleDescription).length > 0,\\n \\\"Admin role description empty\\\"\\n );\\n accessControlRegistry = _accessControlRegistry;\\n adminRoleDescription = _adminRoleDescription;\\n adminRoleDescriptionHash = keccak256(\\n abi.encodePacked(_adminRoleDescription)\\n );\\n }\\n\\n /// @notice Derives the admin role for the specific manager address\\n /// @param manager Manager address\\n /// @return adminRole Admin role\\n function _deriveAdminRole(\\n address manager\\n ) internal view returns (bytes32 adminRole) {\\n adminRole = _deriveRole(\\n _deriveRootRole(manager),\\n adminRoleDescriptionHash\\n );\\n }\\n}\\n\",\"keccak256\":\"0x813755d99a9d8dd6298720da68fb5a6dd69329ea2dec91da1d09f715d4543c15\",\"license\":\"MIT\"},\"contracts/access/AccessControlRegistryAdminnedWithManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./AccessControlRegistryAdminned.sol\\\";\\nimport \\\"./interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\n\\n/// @title Contract to be inherited by contracts with manager whose adminship\\n/// functionality will be implemented using AccessControlRegistry\\n/// @notice The manager address here is expected to belong to an\\n/// AccessControlRegistry user that is a multisig/DAO\\ncontract AccessControlRegistryAdminnedWithManager is\\n AccessControlRegistryAdminned,\\n IAccessControlRegistryAdminnedWithManager\\n{\\n /// @notice Address of the manager that manages the related\\n /// AccessControlRegistry roles\\n /// @dev The mutability of the manager role can be implemented by\\n /// designating an OwnableCallForwarder contract as the manager. The\\n /// ownership of this contract can then be transferred, effectively\\n /// transferring managership.\\n address public immutable override manager;\\n\\n /// @notice Admin role\\n /// @dev Since `manager` is immutable, so is `adminRole`\\n bytes32 public immutable override adminRole;\\n\\n /// @param _accessControlRegistry AccessControlRegistry contract address\\n /// @param _adminRoleDescription Admin role description\\n /// @param _manager Manager address\\n constructor(\\n address _accessControlRegistry,\\n string memory _adminRoleDescription,\\n address _manager\\n )\\n AccessControlRegistryAdminned(\\n _accessControlRegistry,\\n _adminRoleDescription\\n )\\n {\\n require(_manager != address(0), \\\"Manager address zero\\\");\\n manager = _manager;\\n adminRole = _deriveAdminRole(_manager);\\n }\\n}\\n\",\"keccak256\":\"0xbe5df884327dd7d4e236c105b6ef52cc6db20b452f4cdbe6c50fa506ed66cace\",\"license\":\"MIT\"},\"contracts/access/RoleDeriver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will derive\\n/// AccessControlRegistry roles\\n/// @notice If a contract interfaces with AccessControlRegistry and needs to\\n/// derive roles, it should inherit this contract instead of re-implementing\\n/// the logic\\ncontract RoleDeriver {\\n /// @notice Derives the root role of the manager\\n /// @param manager Manager address\\n /// @return rootRole Root role\\n function _deriveRootRole(\\n address manager\\n ) internal pure returns (bytes32 rootRole) {\\n rootRole = keccak256(abi.encodePacked(manager));\\n }\\n\\n /// @notice Derives the role using its admin role and description\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param description Human-readable description of the role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n string memory description\\n ) internal pure returns (bytes32 role) {\\n role = _deriveRole(adminRole, keccak256(abi.encodePacked(description)));\\n }\\n\\n /// @notice Derives the role using its admin role and description hash\\n /// @dev This implies that roles adminned by the same role cannot have the\\n /// same description\\n /// @param adminRole Admin role\\n /// @param descriptionHash Hash of the human-readable description of the\\n /// role\\n /// @return role Role\\n function _deriveRole(\\n bytes32 adminRole,\\n bytes32 descriptionHash\\n ) internal pure returns (bytes32 role) {\\n role = keccak256(abi.encodePacked(adminRole, descriptionHash));\\n }\\n}\\n\",\"keccak256\":\"0x488adb3cb7031415d4a195230753a0ac8f9f610e6db7a571529a350e29c97ed6\",\"license\":\"MIT\"},\"contracts/access/interfaces/IAccessControlRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\\\";\\nimport \\\"../../utils/interfaces/ISelfMulticall.sol\\\";\\n\\ninterface IAccessControlRegistry is IAccessControl, ISelfMulticall {\\n event InitializedManager(\\n bytes32 indexed rootRole,\\n address indexed manager,\\n address sender\\n );\\n\\n event InitializedRole(\\n bytes32 indexed role,\\n bytes32 indexed adminRole,\\n string description,\\n address sender\\n );\\n\\n function initializeManager(address manager) external;\\n\\n function initializeRoleAndGrantToSender(\\n bytes32 adminRole,\\n string calldata description\\n ) external returns (bytes32 role);\\n}\\n\",\"keccak256\":\"0x87066db894a24118df39a557d00c0a6529c39196011c03f809ca8cce1644e027\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0xd71aae2566c019a9b2da5e1ec51421a62898495fa6fd08e2cc39451511dda334\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0x8a8e1756fca81175305755b7a311536132e88173f60b2ac0fdeef92a6236afc5\",\"license\":\"MIT\"},\"contracts/api3-server-v1/Api3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/security/ReentrancyGuard.sol\\\";\\nimport \\\"../access/AccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"./DataFeedServer.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtension.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1.sol\\\";\\nimport \\\"./interfaces/IApi3ServerV1OevExtensionOevBidPayer.sol\\\";\\n\\n/// @title Api3ServerV1 extension for OEV support\\n/// @notice Api3ServerV1 contract supports base data feeds and OEV\\n/// functionality. This contract implements the updated OEV design, and thus\\n/// supersedes the OEV-related portion of Api3ServerV1. As before, the users\\n/// are intended to read API3 data feeds through a standardized proxy, which\\n/// abstracts this change away.\\ncontract Api3ServerV1OevExtension is\\n ReentrancyGuard,\\n AccessControlRegistryAdminnedWithManager,\\n DataFeedServer,\\n IApi3ServerV1OevExtension\\n{\\n using ECDSA for bytes32;\\n\\n struct LastPaidBid {\\n address updater;\\n uint32 signedDataTimestampCutoff;\\n }\\n\\n /// @notice Withdrawer role description\\n string public constant override WITHDRAWER_ROLE_DESCRIPTION = \\\"Withdrawer\\\";\\n\\n /// @notice Auctioneer role description\\n string public constant override AUCTIONEER_ROLE_DESCRIPTION = \\\"Auctioneer\\\";\\n\\n /// @notice Withdrawer role\\n bytes32 public immutable override withdrawerRole;\\n\\n /// @notice Auctioneer role\\n bytes32 public immutable override auctioneerRole;\\n\\n /// @notice Api3ServerV1 contract address\\n address public immutable override api3ServerV1;\\n\\n /// @notice Returns the parameters of the last paid bid for the dApp with\\n /// ID\\n mapping(uint256 => LastPaidBid) public override dappIdToLastPaidBid;\\n\\n bytes32 private constant OEV_BID_PAYMENT_CALLBACK_SUCCESS =\\n keccak256(\\\"Api3ServerV1OevExtensionOevBidPayer.onOevBidPayment\\\");\\n\\n /// @param accessControlRegistry_ AccessControlRegistry contract address\\n /// @param adminRoleDescription_ Admin role description\\n /// @param manager_ Manager address\\n /// @param api3ServerV1_ Api3ServerV1 address\\n constructor(\\n address accessControlRegistry_,\\n string memory adminRoleDescription_,\\n address manager_,\\n address api3ServerV1_\\n )\\n AccessControlRegistryAdminnedWithManager(\\n accessControlRegistry_,\\n adminRoleDescription_,\\n manager_\\n )\\n {\\n require(api3ServerV1_ != address(0), \\\"Api3ServerV1 address zero\\\");\\n api3ServerV1 = api3ServerV1_;\\n withdrawerRole = _deriveRole(\\n _deriveAdminRole(manager_),\\n WITHDRAWER_ROLE_DESCRIPTION\\n );\\n auctioneerRole = _deriveRole(\\n _deriveAdminRole(manager_),\\n AUCTIONEER_ROLE_DESCRIPTION\\n );\\n }\\n\\n /// @dev Used to receive the bid amount in the OEV bid payment callback\\n receive() external payable {}\\n\\n /// @notice Called by the contract manager or a withdrawer to withdraw the\\n /// accumulated OEV auction proceeds\\n /// @dev This function has a reentrancy guard to prevent it from being\\n /// called in an OEV bid payment callback\\n /// @param recipient Recipient address\\n /// @param amount Amount\\n function withdraw(\\n address recipient,\\n uint256 amount\\n ) external override nonReentrant {\\n require(recipient != address(0), \\\"Recipient address zero\\\");\\n require(amount != 0, \\\"Amount zero\\\");\\n require(\\n msg.sender == manager ||\\n IAccessControlRegistry(accessControlRegistry).hasRole(\\n withdrawerRole,\\n msg.sender\\n ),\\n \\\"Sender cannot withdraw\\\"\\n );\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Withdrawal reverted\\\");\\n emit Withdrew(recipient, amount, msg.sender);\\n }\\n\\n /// @notice An OEV auction bid specifies a dApp ID, a signed data timestamp\\n /// cut-off, a bid amount and an updater account. To award the winning bid,\\n /// an auctioneer signs a message that includes the hash of these\\n /// parameters and publishes it. Then, the updater account calls this\\n /// function to pay the bid amount and claim the privilege to execute\\n /// updates for the dApp with ID using the signed data whose timestamps are\\n /// limited by the cut-off. At least the bid amount must be sent to this\\n /// contract with empty calldata in the `onOevBidPayment` callback, which\\n /// will be checked upon succesful return.\\n /// As a result of the reentrancy guard, nesting OEV bid payments is not\\n /// allowed.\\n /// @param dappId dApp ID\\n /// @param bidAmount Bid amount\\n /// @param signedDataTimestampCutoff Signed data timestamp cut-off\\n /// @param signature Signature provided by an auctioneer\\n /// @param data Data that will be passed through the callback\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external override nonReentrant {\\n require(dappId != 0, \\\"dApp ID zero\\\");\\n require(signedDataTimestampCutoff != 0, \\\"Cut-off zero\\\");\\n // It is intended for the auction periods to be in the order of a\\n // minute. To prevent erroneously large cut-off timestamps from causing\\n // an irreversible state change to the contract, we do not allow\\n // cut-off values that are too far in the future.\\n require(\\n signedDataTimestampCutoff < block.timestamp + 1 hours,\\n \\\"Cut-off too far in the future\\\"\\n );\\n address auctioneer = (\\n keccak256(\\n abi.encodePacked(\\n block.chainid,\\n dappId,\\n msg.sender,\\n bidAmount,\\n signedDataTimestampCutoff\\n )\\n ).toEthSignedMessageHash()\\n ).recover(signature);\\n require(\\n IAccessControlRegistry(accessControlRegistry).hasRole(\\n auctioneerRole,\\n auctioneer\\n ),\\n \\\"Signature mismatch\\\"\\n );\\n require(\\n dappIdToLastPaidBid[dappId].signedDataTimestampCutoff <\\n signedDataTimestampCutoff,\\n \\\"Cut-off not more recent\\\"\\n );\\n dappIdToLastPaidBid[dappId] = LastPaidBid({\\n updater: msg.sender,\\n signedDataTimestampCutoff: signedDataTimestampCutoff\\n });\\n uint256 balanceBefore = address(this).balance;\\n require(\\n IApi3ServerV1OevExtensionOevBidPayer(msg.sender).onOevBidPayment(\\n bidAmount,\\n data\\n ) == OEV_BID_PAYMENT_CALLBACK_SUCCESS,\\n \\\"OEV bid payment callback failed\\\"\\n );\\n require(\\n address(this).balance - balanceBefore >= bidAmount,\\n \\\"OEV bid payment amount short\\\"\\n );\\n emit PaidOevBid(\\n dappId,\\n msg.sender,\\n bidAmount,\\n signedDataTimestampCutoff,\\n auctioneer\\n );\\n }\\n\\n /// @notice Called by the current updater of the dApp with ID to update the\\n /// OEV data feed specific to the dApp\\n /// @param dappId dApp ID\\n /// @param signedData Signed data (see `_updateDappOevDataFeed()` for\\n /// details)\\n /// @return baseDataFeedId Base data feed ID\\n /// @return updatedValue Updated value\\n /// @return updatedTimestamp Updated timestamp\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n override\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n )\\n {\\n LastPaidBid storage lastPaidBid = dappIdToLastPaidBid[dappId];\\n require(\\n msg.sender == lastPaidBid.updater,\\n \\\"Sender not last bid updater\\\"\\n );\\n (\\n baseDataFeedId,\\n updatedValue,\\n updatedTimestamp\\n ) = _updateDappOevDataFeed(\\n dappId,\\n lastPaidBid.signedDataTimestampCutoff,\\n signedData\\n );\\n emit UpdatedDappOevDataFeed(\\n dappId,\\n msg.sender,\\n baseDataFeedId,\\n updatedValue,\\n updatedTimestamp\\n );\\n }\\n\\n /// @notice Called by the zero address to simulate an OEV data feed update\\n /// @dev The intended flow is for a searcher to do a static multicall to\\n /// this function and `simulateExternalCall()` to check if the current\\n /// signed data lets them extract OEV. If so, the searcher stores this data\\n /// and places a bid on OevAuctionHouse. If they win the auction, they pay\\n /// the bid and use the stored signed data with `updateDappOevDataFeed()`\\n /// to extract OEV.\\n /// @param dappId dApp ID\\n /// @param signedData Signed data (see `_updateDappOevDataFeed()` for\\n /// details)\\n /// @return baseDataFeedId Base data feed ID\\n /// @return updatedValue Updated value\\n /// @return updatedTimestamp Updated timestamp\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n override\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n )\\n {\\n require(msg.sender == address(0), \\\"Sender address not zero\\\");\\n (\\n baseDataFeedId,\\n updatedValue,\\n updatedTimestamp\\n ) = _updateDappOevDataFeed(dappId, type(uint256).max, signedData);\\n }\\n\\n /// @notice Called by the zero address to simulate an external call\\n /// @dev The most basic usage of this is in a static multicall that calls\\n /// `simulateDappOevDataFeedUpdate()` multiple times to update the relevant\\n /// feeds, followed by an external call to the liquidator contract of the\\n /// searcher, which is built to return the revenue from the liquidation.\\n /// The returned value would then be used to determine the bid amount.\\n /// @param target Target address of the external call\\n /// @param data Calldata of the external call\\n /// @return Returndata of the external call\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external override returns (bytes memory) {\\n require(msg.sender == address(0), \\\"Sender address not zero\\\");\\n return Address.functionCall(target, data);\\n }\\n\\n /// @notice Value of the OEV data feed specific to the dApp, intended for\\n /// informational purposes. The dApps are strongly recommended to use the\\n /// standardized proxies to read data feeds.\\n /// @param dappId dApp ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view override returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[\\n keccak256(abi.encodePacked(dappId, dataFeedId))\\n ];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n }\\n\\n /// @notice Updates OEV data feed specific to the dApp with the signed data\\n /// @dev This function replicates the guarantees of base feed updates,\\n /// which makes OEV updates exactly as secure as base feed updates. The\\n /// main difference between base feed updates and OEV feed updates is that\\n /// the signature for OEV updates use the hash of the respective template\\n /// ID (while the base feed updates use the template ID as is).\\n /// @param dappId dApp ID\\n /// @param signedDataTimestampCutoff Signed data timestamp cut-off\\n /// @param signedData Signed data that is a bytes array. Each item in the\\n /// array is the Airnode address, template ID, data feed timestamp, data\\n /// feed value and signature belonging to each Beacon. Similar to base feed\\n /// updates, OEV feed updates allow individual Beacon updates to be omitted\\n /// (in this case by leaving the signature empty) in case signed data for\\n /// some of the Beacons is not available.\\n /// @return baseDataFeedId Base data feed ID\\n /// @return updatedValue Updated value\\n /// @return updatedTimestamp Updated timestamp\\n function _updateDappOevDataFeed(\\n uint256 dappId,\\n uint256 signedDataTimestampCutoff,\\n bytes[] calldata signedData\\n )\\n private\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n )\\n {\\n uint256 beaconCount = signedData.length;\\n require(beaconCount > 0, \\\"Signed data empty\\\");\\n if (beaconCount == 1) {\\n (\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes memory data,\\n bytes memory signature\\n ) = abi.decode(\\n signedData[0],\\n (address, bytes32, uint256, bytes, bytes)\\n );\\n baseDataFeedId = deriveBeaconId(airnode, templateId);\\n // Each base feed has an OEV equivalent specific to each dApp. The\\n // ID of these OEV feeds are simply the dApp ID and the base data\\n // feed ID hashed together, independent from if the base feed is a\\n // Beacon or Beacon set.\\n bytes32 oevBeaconId = keccak256(\\n abi.encodePacked(dappId, baseDataFeedId)\\n );\\n // The signature cannot be omitted for a single Beacon\\n require(\\n (\\n keccak256(\\n abi.encodePacked(\\n keccak256(abi.encodePacked(templateId)),\\n timestamp,\\n data\\n )\\n ).toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n require(\\n timestamp <= signedDataTimestampCutoff,\\n \\\"Timestamp exceeds cut-off\\\"\\n );\\n require(\\n timestamp > _dataFeeds[oevBeaconId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n updatedValue = decodeFulfillmentData(data);\\n updatedTimestamp = uint32(timestamp);\\n // We do not need to check if the base feed has a larger timestamp,\\n // as the proxy will prefer the base feed if it has a larger\\n // timestamp anyway\\n _dataFeeds[oevBeaconId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n } else {\\n bytes32[] memory baseBeaconIds = new bytes32[](beaconCount);\\n bytes32[] memory oevBeaconIds = new bytes32[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ind++) {\\n (\\n address airnode,\\n bytes32 templateId,\\n uint256 timestamp,\\n bytes memory data,\\n bytes memory signature\\n ) = abi.decode(\\n signedData[ind],\\n (address, bytes32, uint256, bytes, bytes)\\n );\\n baseBeaconIds[ind] = deriveBeaconId(airnode, templateId);\\n // We also store individual Beacons of an OEV feed to make sure\\n // that their timestamps are not reduced by OEV updates\\n oevBeaconIds[ind] = keccak256(\\n abi.encodePacked(dappId, baseBeaconIds[ind])\\n );\\n if (signature.length != 0) {\\n require(\\n (\\n keccak256(\\n abi.encodePacked(\\n keccak256(abi.encodePacked(templateId)),\\n timestamp,\\n data\\n )\\n ).toEthSignedMessageHash()\\n ).recover(signature) == airnode,\\n \\\"Signature mismatch\\\"\\n );\\n require(\\n timestamp <= signedDataTimestampCutoff,\\n \\\"Timestamp exceeds cut-off\\\"\\n );\\n require(\\n timestamp > _dataFeeds[oevBeaconIds[ind]].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n _dataFeeds[oevBeaconIds[ind]] = DataFeed({\\n value: decodeFulfillmentData(data),\\n timestamp: uint32(timestamp)\\n });\\n }\\n // Without the following bit, an OEV update would effectively\\n // be able to reduce the timestamps of individual Beacons of a\\n // Beacon set.\\n (\\n int224 baseBeaconValue,\\n uint32 baseBeaconTimestamp\\n ) = IApi3ServerV1(api3ServerV1).dataFeeds(baseBeaconIds[ind]);\\n if (\\n baseBeaconTimestamp >\\n _dataFeeds[oevBeaconIds[ind]].timestamp\\n ) {\\n // Carrying over base feed values to OEV feeds is fine\\n // because they are secured by identical guarantees\\n _dataFeeds[oevBeaconIds[ind]] = DataFeed({\\n value: baseBeaconValue,\\n timestamp: baseBeaconTimestamp\\n });\\n }\\n }\\n baseDataFeedId = deriveBeaconSetId(baseBeaconIds);\\n (updatedValue, updatedTimestamp) = aggregateBeacons(oevBeaconIds);\\n bytes32 oevBeaconSetId = keccak256(\\n abi.encodePacked(dappId, baseDataFeedId)\\n );\\n DataFeed storage oevBeaconSet = _dataFeeds[oevBeaconSetId];\\n if (oevBeaconSet.timestamp == updatedTimestamp) {\\n require(\\n oevBeaconSet.value != updatedValue,\\n \\\"Does not update Beacon set\\\"\\n );\\n }\\n _dataFeeds[oevBeaconSetId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n }\\n }\\n}\\n\",\"keccak256\":\"0x16ee98b2cd72844234c7721510dc4c2c526b3eb7a6aff7bd0c6fe8143b975e01\",\"license\":\"MIT\"},\"contracts/api3-server-v1/DataFeedServer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity 0.8.17;\\n\\nimport \\\"../utils/ExtendedSelfMulticall.sol\\\";\\nimport \\\"./aggregation/Median.sol\\\";\\nimport \\\"./interfaces/IDataFeedServer.sol\\\";\\nimport \\\"../vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\\\";\\n\\n/// @title Contract that serves Beacons and Beacon sets\\n/// @notice A Beacon is a live data feed addressed by an ID, which is derived\\n/// from an Airnode address and a template ID. This is suitable where the more\\n/// recent data point is always more favorable, e.g., in the context of an\\n/// asset price data feed. Beacons can also be seen as one-Airnode data feeds\\n/// that can be used individually or combined to build Beacon sets.\\ncontract DataFeedServer is ExtendedSelfMulticall, Median, IDataFeedServer {\\n using ECDSA for bytes32;\\n\\n // Airnodes serve their fulfillment data along with timestamps. This\\n // contract casts the reported data to `int224` and the timestamp to\\n // `uint32`, which works until year 2106.\\n struct DataFeed {\\n int224 value;\\n uint32 timestamp;\\n }\\n\\n /// @notice Data feed with ID\\n mapping(bytes32 => DataFeed) internal _dataFeeds;\\n\\n /// @dev Reverts if the timestamp is from more than 1 hour in the future\\n modifier onlyValidTimestamp(uint256 timestamp) virtual {\\n unchecked {\\n require(\\n timestamp < block.timestamp + 1 hours,\\n \\\"Timestamp not valid\\\"\\n );\\n }\\n _;\\n }\\n\\n /// @notice Updates the Beacon set using the current values of its Beacons\\n /// @dev As an oddity, this function still works if some of the IDs in\\n /// `beaconIds` belong to Beacon sets rather than Beacons. This can be used\\n /// to implement hierarchical Beacon sets.\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function updateBeaconSetWithBeacons(\\n bytes32[] memory beaconIds\\n ) public override returns (bytes32 beaconSetId) {\\n (int224 updatedValue, uint32 updatedTimestamp) = aggregateBeacons(\\n beaconIds\\n );\\n beaconSetId = deriveBeaconSetId(beaconIds);\\n DataFeed storage beaconSet = _dataFeeds[beaconSetId];\\n if (beaconSet.timestamp == updatedTimestamp) {\\n require(\\n beaconSet.value != updatedValue,\\n \\\"Does not update Beacon set\\\"\\n );\\n }\\n _dataFeeds[beaconSetId] = DataFeed({\\n value: updatedValue,\\n timestamp: updatedTimestamp\\n });\\n emit UpdatedBeaconSetWithBeacons(\\n beaconSetId,\\n updatedValue,\\n updatedTimestamp\\n );\\n }\\n\\n /// @notice Reads the data feed with ID\\n /// @param dataFeedId Data feed ID\\n /// @return value Data feed value\\n /// @return timestamp Data feed timestamp\\n function _readDataFeedWithId(\\n bytes32 dataFeedId\\n ) internal view returns (int224 value, uint32 timestamp) {\\n DataFeed storage dataFeed = _dataFeeds[dataFeedId];\\n (value, timestamp) = (dataFeed.value, dataFeed.timestamp);\\n require(timestamp > 0, \\\"Data feed not initialized\\\");\\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 ) internal 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 /// @dev Notice that `abi.encode()` is used over `abi.encodePacked()`\\n /// @param beaconIds Beacon IDs\\n /// @return beaconSetId Beacon set ID\\n function deriveBeaconSetId(\\n bytes32[] memory beaconIds\\n ) internal pure returns (bytes32 beaconSetId) {\\n beaconSetId = keccak256(abi.encode(beaconIds));\\n }\\n\\n /// @notice Called privately to process the Beacon update\\n /// @param beaconId Beacon ID\\n /// @param timestamp Timestamp used in the signature\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return updatedBeaconValue Updated Beacon value\\n function processBeaconUpdate(\\n bytes32 beaconId,\\n uint256 timestamp,\\n bytes calldata data\\n )\\n internal\\n onlyValidTimestamp(timestamp)\\n returns (int224 updatedBeaconValue)\\n {\\n updatedBeaconValue = decodeFulfillmentData(data);\\n require(\\n timestamp > _dataFeeds[beaconId].timestamp,\\n \\\"Does not update timestamp\\\"\\n );\\n _dataFeeds[beaconId] = DataFeed({\\n value: updatedBeaconValue,\\n timestamp: uint32(timestamp)\\n });\\n }\\n\\n /// @notice Called privately to decode the fulfillment data\\n /// @param data Fulfillment data (an `int256` encoded in contract ABI)\\n /// @return decodedData Decoded fulfillment data\\n function decodeFulfillmentData(\\n bytes memory data\\n ) internal pure returns (int224) {\\n require(data.length == 32, \\\"Data length not correct\\\");\\n int256 decodedData = abi.decode(data, (int256));\\n require(\\n decodedData >= type(int224).min && decodedData <= type(int224).max,\\n \\\"Value typecasting error\\\"\\n );\\n return int224(decodedData);\\n }\\n\\n /// @notice Called privately to aggregate the Beacons and return the result\\n /// @param beaconIds Beacon IDs\\n /// @return value Aggregation value\\n /// @return timestamp Aggregation timestamp\\n function aggregateBeacons(\\n bytes32[] memory beaconIds\\n ) internal view returns (int224 value, uint32 timestamp) {\\n uint256 beaconCount = beaconIds.length;\\n require(beaconCount > 1, \\\"Specified less than two Beacons\\\");\\n int256[] memory values = new int256[](beaconCount);\\n int256[] memory timestamps = new int256[](beaconCount);\\n for (uint256 ind = 0; ind < beaconCount; ) {\\n DataFeed storage dataFeed = _dataFeeds[beaconIds[ind]];\\n values[ind] = dataFeed.value;\\n timestamps[ind] = int256(uint256(dataFeed.timestamp));\\n unchecked {\\n ind++;\\n }\\n }\\n value = int224(median(values));\\n timestamp = uint32(uint256(median(timestamps)));\\n }\\n}\\n\",\"keccak256\":\"0xff3172da608fcaa59f17557ff06f8355a90d8cf87c3b3a91b8405ec122a064e3\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Median.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./Sort.sol\\\";\\nimport \\\"./QuickSelect.sol\\\";\\n\\n/// @title Contract to be inherited by contracts that will calculate the median\\n/// of an array\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Median is Sort, Quickselect {\\n /// @notice Returns the median of the array\\n /// @dev Uses an unrolled sorting implementation for shorter arrays and\\n /// quickselect for longer arrays for gas cost efficiency\\n /// @param array Array whose median is to be calculated\\n /// @return Median of the array\\n function median(int256[] memory array) internal pure returns (int256) {\\n uint256 arrayLength = array.length;\\n if (arrayLength <= MAX_SORT_LENGTH) {\\n sort(array);\\n if (arrayLength % 2 == 1) {\\n return array[arrayLength / 2];\\n } else {\\n assert(arrayLength != 0);\\n unchecked {\\n return\\n average(\\n array[arrayLength / 2 - 1],\\n array[arrayLength / 2]\\n );\\n }\\n }\\n } else {\\n if (arrayLength % 2 == 1) {\\n return array[quickselectK(array, arrayLength / 2)];\\n } else {\\n uint256 mid1;\\n uint256 mid2;\\n unchecked {\\n (mid1, mid2) = quickselectKPlusOne(\\n array,\\n arrayLength / 2 - 1\\n );\\n }\\n return average(array[mid1], array[mid2]);\\n }\\n }\\n }\\n\\n /// @notice Averages two signed integers without overflowing\\n /// @param x Integer x\\n /// @param y Integer y\\n /// @return Average of integers x and y\\n function average(int256 x, int256 y) private pure returns (int256) {\\n unchecked {\\n int256 averageRoundedDownToNegativeInfinity = (x >> 1) +\\n (y >> 1) +\\n (x & y & 1);\\n // If the average rounded down to negative infinity is negative\\n // (i.e., its 256th sign bit is set), and one of (x, y) is even and\\n // the other one is odd (i.e., the 1st bit of their xor is set),\\n // add 1 to round the average down to zero instead.\\n // We will typecast the signed integer to unsigned to logical-shift\\n // int256(uint256(signedInt)) >> 255 ~= signedInt >>> 255\\n return\\n averageRoundedDownToNegativeInfinity +\\n (int256(\\n (uint256(averageRoundedDownToNegativeInfinity) >> 255)\\n ) & (x ^ y));\\n }\\n }\\n}\\n\",\"keccak256\":\"0x84912d10ad5fa4848f2dfbbac40431ccdeb5250c263718b5fbdfeceeb0946524\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/QuickSelect.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will calculate the index\\n/// of the k-th and optionally (k+1)-th largest elements in the array\\n/// @notice Uses quickselect, which operates in-place, i.e., the array provided\\n/// as the argument will be modified.\\ncontract Quickselect {\\n /// @notice Returns the index of the k-th largest element in the array\\n /// @param array Array in which k-th largest element will be searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n function quickselectK(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 0);\\n unchecked {\\n (indK, ) = quickselect(array, 0, arrayLength - 1, k, false);\\n }\\n }\\n\\n /// @notice Returns the index of the k-th and (k+1)-th largest elements in\\n /// the array\\n /// @param array Array in which k-th and (k+1)-th largest elements will be\\n /// searched\\n /// @param k K\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element\\n function quickselectKPlusOne(\\n int256[] memory array,\\n uint256 k\\n ) internal pure returns (uint256 indK, uint256 indKPlusOne) {\\n uint256 arrayLength = array.length;\\n assert(arrayLength > 1);\\n unchecked {\\n (indK, indKPlusOne) = quickselect(\\n array,\\n 0,\\n arrayLength - 1,\\n k,\\n true\\n );\\n }\\n }\\n\\n /// @notice Returns the index of the k-th largest element in the specified\\n /// section of the (potentially unsorted) array\\n /// @param array Array in which K will be searched for\\n /// @param lo Starting index of the section of the array that K will be\\n /// searched in\\n /// @param hi Last index of the section of the array that K will be\\n /// searched in\\n /// @param k K\\n /// @param selectKPlusOne If the index of the (k+1)-th largest element is\\n /// to be returned\\n /// @return indK Index of the k-th largest element\\n /// @return indKPlusOne Index of the (k+1)-th largest element (only set if\\n /// `selectKPlusOne` is `true`)\\n function quickselect(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi,\\n uint256 k,\\n bool selectKPlusOne\\n ) private pure returns (uint256 indK, uint256 indKPlusOne) {\\n if (lo == hi) {\\n return (k, 0);\\n }\\n uint256 indPivot = partition(array, lo, hi);\\n if (k < indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, lo, indPivot - 1, k, false);\\n }\\n } else if (k > indPivot) {\\n unchecked {\\n (indK, ) = quickselect(array, indPivot + 1, hi, k, false);\\n }\\n } else {\\n indK = indPivot;\\n }\\n // Since Quickselect ends in the array being partitioned around the\\n // k-th largest element, we can continue searching towards right for\\n // the (k+1)-th largest element, which is useful in calculating the\\n // median of an array with even length\\n if (selectKPlusOne) {\\n unchecked {\\n indKPlusOne = indK + 1;\\n }\\n uint256 i;\\n unchecked {\\n i = indKPlusOne + 1;\\n }\\n uint256 arrayLength = array.length;\\n for (; i < arrayLength; ) {\\n if (array[i] < array[indKPlusOne]) {\\n indKPlusOne = i;\\n }\\n unchecked {\\n i++;\\n }\\n }\\n }\\n }\\n\\n /// @notice Partitions the array into two around a pivot\\n /// @param array Array that will be partitioned\\n /// @param lo Starting index of the section of the array that will be\\n /// partitioned\\n /// @param hi Last index of the section of the array that will be\\n /// partitioned\\n /// @return pivotInd Pivot index\\n function partition(\\n int256[] memory array,\\n uint256 lo,\\n uint256 hi\\n ) private pure returns (uint256 pivotInd) {\\n if (lo == hi) {\\n return lo;\\n }\\n int256 pivot = array[lo];\\n uint256 i = lo;\\n unchecked {\\n pivotInd = hi + 1;\\n }\\n while (true) {\\n do {\\n unchecked {\\n i++;\\n }\\n } while (i < array.length && array[i] < pivot);\\n do {\\n unchecked {\\n pivotInd--;\\n }\\n } while (array[pivotInd] > pivot);\\n if (i >= pivotInd) {\\n (array[lo], array[pivotInd]) = (array[pivotInd], array[lo]);\\n return pivotInd;\\n }\\n (array[i], array[pivotInd]) = (array[pivotInd], array[i]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x7f458dd165fed89866c5fe626e3df3c9bf6884498ec1233f4083615084521d6e\",\"license\":\"MIT\"},\"contracts/api3-server-v1/aggregation/Sort.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Contract to be inherited by contracts that will sort an array using\\n/// an unrolled implementation\\n/// @notice The operation will be in-place, i.e., the array provided as the\\n/// argument will be modified.\\ncontract Sort {\\n uint256 internal constant MAX_SORT_LENGTH = 9;\\n\\n /// @notice Sorts the array\\n /// @param array Array to be sorted\\n function sort(int256[] memory array) internal pure {\\n uint256 arrayLength = array.length;\\n require(arrayLength <= MAX_SORT_LENGTH, \\\"Array too long to sort\\\");\\n // Do a binary search\\n if (arrayLength < 6) {\\n // Possible lengths: 1, 2, 3, 4, 5\\n if (arrayLength < 4) {\\n // Possible lengths: 1, 2, 3\\n if (arrayLength == 3) {\\n // Length: 3\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 0, 1);\\n } else if (arrayLength == 2) {\\n // Length: 2\\n swapIfFirstIsLarger(array, 0, 1);\\n }\\n // Do nothing for Length: 1\\n } else {\\n // Possible lengths: 4, 5\\n if (arrayLength == 5) {\\n // Length: 5\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 2);\\n } else {\\n // Length: 4\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 1, 2);\\n }\\n }\\n } else {\\n // Possible lengths: 6, 7, 8, 9\\n if (arrayLength < 8) {\\n // Possible lengths: 6, 7\\n if (arrayLength == 7) {\\n // Length: 7\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 1, 5);\\n swapIfFirstIsLarger(array, 0, 4);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 6\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 2, 3);\\n }\\n } else {\\n // Possible lengths: 8, 9\\n if (arrayLength == 9) {\\n // Length: 9\\n swapIfFirstIsLarger(array, 1, 8);\\n swapIfFirstIsLarger(array, 2, 7);\\n swapIfFirstIsLarger(array, 3, 6);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 1, 4);\\n swapIfFirstIsLarger(array, 5, 8);\\n swapIfFirstIsLarger(array, 0, 2);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 3);\\n swapIfFirstIsLarger(array, 5, 7);\\n swapIfFirstIsLarger(array, 4, 6);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 7, 8);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n } else {\\n // Length: 8\\n swapIfFirstIsLarger(array, 0, 7);\\n swapIfFirstIsLarger(array, 1, 6);\\n swapIfFirstIsLarger(array, 2, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 0, 3);\\n swapIfFirstIsLarger(array, 4, 7);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 0, 1);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 6, 7);\\n swapIfFirstIsLarger(array, 3, 5);\\n swapIfFirstIsLarger(array, 2, 4);\\n swapIfFirstIsLarger(array, 1, 2);\\n swapIfFirstIsLarger(array, 3, 4);\\n swapIfFirstIsLarger(array, 5, 6);\\n swapIfFirstIsLarger(array, 2, 3);\\n swapIfFirstIsLarger(array, 4, 5);\\n swapIfFirstIsLarger(array, 3, 4);\\n }\\n }\\n }\\n }\\n\\n /// @notice Swaps two elements of an array if the first element is greater\\n /// than the second\\n /// @param array Array whose elements are to be swapped\\n /// @param ind1 Index of the first element\\n /// @param ind2 Index of the second element\\n function swapIfFirstIsLarger(\\n int256[] memory array,\\n uint256 ind1,\\n uint256 ind2\\n ) private pure {\\n if (array[ind1] > array[ind2]) {\\n (array[ind1], array[ind2]) = (array[ind2], array[ind1]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x81e3790f7964b0169e60022f00f988a136e37a043053d8b07c794cc1c9b6c510\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0xea2c05eaf2a19c93a9c9b08243fcabd8d7fcf0e4d422f7c687aef693126c1809\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtension.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../access/interfaces/IAccessControlRegistryAdminnedWithManager.sol\\\";\\nimport \\\"../interfaces/IDataFeedServer.sol\\\";\\n\\ninterface IApi3ServerV1OevExtension is\\n IAccessControlRegistryAdminnedWithManager,\\n IDataFeedServer\\n{\\n event Withdrew(address recipient, uint256 amount, address sender);\\n\\n event PaidOevBid(\\n uint256 indexed dappId,\\n address indexed updater,\\n uint256 bidAmount,\\n uint256 signedDataTimestampCutoff,\\n address auctioneer\\n );\\n\\n event UpdatedDappOevDataFeed(\\n uint256 indexed dappId,\\n address indexed updater,\\n bytes32 dataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function withdraw(address recipient, uint256 amount) external;\\n\\n function payOevBid(\\n uint256 dappId,\\n uint256 bidAmount,\\n uint32 signedDataTimestampCutoff,\\n bytes calldata signature,\\n bytes calldata data\\n ) external;\\n\\n function updateDappOevDataFeed(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateDappOevDataFeedUpdate(\\n uint256 dappId,\\n bytes[] calldata signedData\\n )\\n external\\n returns (\\n bytes32 baseDataFeedId,\\n int224 updatedValue,\\n uint32 updatedTimestamp\\n );\\n\\n function simulateExternalCall(\\n address target,\\n bytes calldata data\\n ) external returns (bytes memory);\\n\\n function oevDataFeed(\\n uint256 dappId,\\n bytes32 dataFeedId\\n ) external view returns (int224 value, uint32 timestamp);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function WITHDRAWER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n // solhint-disable-next-line func-name-mixedcase\\n function AUCTIONEER_ROLE_DESCRIPTION()\\n external\\n view\\n returns (string memory);\\n\\n function withdrawerRole() external view returns (bytes32);\\n\\n function auctioneerRole() external view returns (bytes32);\\n\\n function api3ServerV1() external view returns (address);\\n\\n function dappIdToLastPaidBid(\\n uint256 dappId\\n ) external view returns (address updater, uint32 endTimestamp);\\n}\\n\",\"keccak256\":\"0x57b8f2e759130c7f87520b44903c727b42b3fbc89663b8954c6b3f12213f5de1\",\"license\":\"MIT\"},\"contracts/api3-server-v1/interfaces/IApi3ServerV1OevExtensionOevBidPayer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n/// @title Interface that OEV bid payers (i.e., contracts that call\\n/// `payOevBid()` of Api3ServerV1OevExtension) must implement\\ninterface IApi3ServerV1OevExtensionOevBidPayer {\\n /// @notice Called back by Api3ServerV1OevExtension after an OEV bid payer\\n /// has called `payOevBid()` of Api3ServerV1OevExtension. During the\\n /// callback, the OEV bid payer will be allowed to update the OEV feeds\\n /// of the respective dApp. Before returning, the OEV bid payer must ensure\\n /// that at least the bid amount has been sent to Api3ServerV1OevExtension.\\n /// The returndata must start with the keccak256 hash of\\n /// \\\"Api3ServerV1OevExtensionOevBidPayer.onOevBidPayment\\\".\\n /// @param bidAmount Bid amount\\n /// @param data Data that is passed through the callback\\n /// @return oevBidPaymentCallbackSuccess OEV bid payment callback success\\n /// code\\n function onOevBidPayment(\\n uint256 bidAmount,\\n bytes calldata data\\n ) external returns (bytes32 oevBidPaymentCallbackSuccess);\\n}\\n\",\"keccak256\":\"0x2045cc86613d699da8e3b3831a3c019d304b7b6a8894eecea497d8af1b555997\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0xe2b2530081508baf1323d4c145a688ffd548cf318a8cb67c9ccb4abe1ac81c6e\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0x1cf1d7637e2ee1b4f5b99345730183447db78ceb8ce2117cf145d4d375194e71\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0x208f751f71b16d454cafd9188095178fdc776ee0376a85362f6022e7a4f010a3\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0xf4082c33979785131358a217a8c5cf498a53c04318868eb1cb68e934c33226e3\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0x2d162c576bfe5554767bb48758314c3e6f2c509f73203f0e166d1ac5168a1218\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0xada4020386f51e076953a110accf21efc53b82858bb88fc6725591556d86574b\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0xb466760f7b5d05a91fb168224952f29db9aa3308f0b83535fd697f3c30281740\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0xaefe61a623c920d3e39c4779535e280378b44202d11c29a2c96f46f2fe5f420d\",\"license\":\"MIT\"},\"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\",\"keccak256\":\"0x50b27284f0d5acd8b340836c09d252138ebf059f426e5d90d3f7221e1b7d0817\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/security/ReentrancyGuard.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuard {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n constructor() {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and making it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n _nonReentrantBefore();\\n _;\\n _nonReentrantAfter();\\n }\\n\\n function _nonReentrantBefore() private {\\n // On the first call to nonReentrant, _status will be _NOT_ENTERED\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n }\\n\\n function _nonReentrantAfter() private {\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n}\\n\",\"keccak256\":\"0x190dd6f8d592b7e4e930feb7f4313aeb8e1c4ad3154c27ce1cf6a512fc30d8cc\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf96f969e24029d43d0df89e59d365f277021dac62b48e1c1e3ebe0acdd7f1ca1\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xa4d1d62251f8574deb032a35fc948386a9b4de74b812d4f545a1ac120486b48a\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS,\\n InvalidSignatureV // Deprecated in v4.8\\n }\\n\\n function _throwError(RecoverError error) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert(\\\"ECDSA: invalid signature\\\");\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert(\\\"ECDSA: invalid signature length\\\");\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert(\\\"ECDSA: invalid signature 's' value\\\");\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature` or error string. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength);\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, signature);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address, RecoverError) {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n *\\n * _Available since v4.2._\\n */\\n function recover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature);\\n }\\n\\n return (signer, RecoverError.NoError);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\\n // 32 is the length in bytes of hash,\\n // enforced by the type signature above\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", hash));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from `s`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", Strings.toString(s.length), s));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Typed Data, created from a\\n * `domainSeparator` and a `structHash`. This produces hash corresponding\\n * to the one signed with the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\\n * JSON-RPC method as part of EIP-712.\\n *\\n * See {recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19\\\\x01\\\", domainSeparator, structHash));\\n }\\n}\\n\",\"keccak256\":\"0xda898fa084aa1ddfdb346e6a40459e00a59d87071cce7c315a46d648dd71d0ba\",\"license\":\"MIT\"},\"contracts/vendor/@openzeppelin/contracts@4.8.2/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa1e8e83cd0087785df04ac79fb395d9f3684caeaf973d9e2c71caef723a3a5d6\",\"license\":\"MIT\"}},\"version\":1}", + "bytecode": "0x6101606040523480156200001257600080fd5b5060405162003f6a38038062003f6a8339810160408190526200003591620003ca565b600160005583838382826001600160a01b0382166200008e5760405162461bcd60e51b815260206004820152601060248201526f4143522061646472657373207a65726f60801b60448201526064015b60405180910390fd5b6000815111620000e15760405162461bcd60e51b815260206004820152601c60248201527f41646d696e20726f6c65206465736372697074696f6e20656d70747900000000604482015260640162000085565b6001600160a01b0382166080526001620000fc82826200054c565b508060405160200162000110919062000618565b60408051601f19818403018152919052805160209091012060a05250506001600160a01b038116620001855760405162461bcd60e51b815260206004820152601460248201527f4d616e616765722061646472657373207a65726f000000000000000000000000604482015260640162000085565b6001600160a01b03811660c0526200019d8162000288565b60e0525050506001600160a01b038116620001fb5760405162461bcd60e51b815260206004820152601960248201527f4170693353657276657256312061646472657373207a65726f00000000000000604482015260640162000085565b6001600160a01b038116610140526200023f620002188362000288565b60408051808201909152600a8152692bb4ba34323930bbb2b960b11b602082015262000302565b6101005262000279620002528362000288565b60408051808201909152600a81526920bab1ba34b7b732b2b960b11b602082015262000302565b61012052506200063692505050565b6000620002fc620002cd836040516001600160601b0319606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b60a051604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b92915050565b60006200033e83836040516020016200031c919062000618565b604051602081830303815290604052805190602001206200034560201b60201c565b9392505050565b604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b80516001600160a01b03811681146200038957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620003c1578181015183820152602001620003a7565b50506000910152565b60008060008060808587031215620003e157600080fd5b620003ec8562000371565b60208601519094506001600160401b03808211156200040a57600080fd5b818701915087601f8301126200041f57600080fd5b8151818111156200043457620004346200038e565b604051601f8201601f19908116603f011681019083821181831017156200045f576200045f6200038e565b816040528281528a60208487010111156200047957600080fd5b6200048c836020830160208801620003a4565b8097505050505050620004a26040860162000371565b9150620004b26060860162000371565b905092959194509250565b600181811c90821680620004d257607f821691505b602082108103620004f357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200054757600081815260208120601f850160051c81016020861015620005225750805b601f850160051c820191505b8181101562000543578281556001016200052e565b5050505b505050565b81516001600160401b038111156200056857620005686200038e565b6200058081620005798454620004bd565b84620004f9565b602080601f831160018114620005b857600084156200059f5750858301515b600019600386901b1c1916600185901b17855562000543565b600085815260208120601f198616915b82811015620005e957888601518255948401946001909101908401620005c8565b5085821015620006085787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600082516200062c818460208701620003a4565b9190910192915050565b60805160a05160c05160e0516101005161012051610140516138b2620006b8600039600081816102bf0152611ec301526000818161023f015261095d01526000818161057f015261131e015260006101b601526000818161034701526112e80152600050506000818161027301528181610996015261134a01526138b26000f3fe6080604052600436106101985760003560e01c80635989eaeb116100e15780639f4165221161008a578063f1939bd011610064578063f1939bd0146105a1578063f3fef3a3146105ea578063f77294091461060a578063f8b2cb4f1461062a57600080fd5b80639f416522146104fc578063ac9650d814610540578063e8597c371461056d57600080fd5b8063796b89b9116100bb578063796b89b91461044157806391526c361461045457806396bb5dbd1461049357600080fd5b80635989eaeb1461039e57806359e5c6b9146103d85780635ae64712146103f857600080fd5b80633408e47011610143578063481c6a751161011d578063481c6a75146103355780634c8f1d8d146103695780634dcc19fe1461038b57600080fd5b80633408e470146102e157806342cbb15c146102f4578063437b91161461030757600080fd5b80631be8d01f116101745780631be8d01f1461022d5780631ce9ae07146102615780632d6a744e146102ad57600080fd5b80629f2f3c146101a4578062aae33f146101eb57806306c84a9f1461020b57600080fd5b3661019f57005b600080fd5b3480156101b057600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b3480156101f757600080fd5b506101d861020636600461308b565b610652565b34801561021757600080fd5b5061022b610226366004613185565b61077f565b005b34801561023957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b34801561026d57600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101e2565b3480156102b957600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b3480156102ed57600080fd5b50466101d8565b34801561030057600080fd5b50436101d8565b34801561031357600080fd5b50610327610322366004613260565b610cd2565b6040516101e2929190613338565b34801561034157600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b34801561037557600080fd5b5061037e610e38565b6040516101e29190613391565b34801561039757600080fd5b50486101d8565b3480156103aa57600080fd5b506103c86103b93660046133b9565b6001600160a01b03163b151590565b60405190151581526020016101e2565b3480156103e457600080fd5b5061037e6103f33660046133d6565b610ec6565b34801561040457600080fd5b5061037e6040518060400160405280600a81526020017f41756374696f6e6565720000000000000000000000000000000000000000000081525081565b34801561044d57600080fd5b50426101d8565b34801561046057600080fd5b5061047461046f36600461342b565b610f60565b60408051601b9390930b835263ffffffff9091166020830152016101e2565b34801561049f57600080fd5b506104d86104ae36600461344d565b6003602052600090815260409020546001600160a01b03811690600160a01b900463ffffffff1682565b604080516001600160a01b03909316835263ffffffff9091166020830152016101e2565b34801561050857600080fd5b5061051c610517366004613466565b610fc8565b60408051938452601b9290920b602084015263ffffffff16908201526060016101e2565b34801561054c57600080fd5b5061056061055b366004613260565b6110ae565b6040516101e291906134a5565b34801561057957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b3480156105ad57600080fd5b5061037e6040518060400160405280600a81526020017f576974686472617765720000000000000000000000000000000000000000000081525081565b3480156105f657600080fd5b5061022b6106053660046134b8565b61122f565b34801561061657600080fd5b5061051c610625366004613466565b611503565b34801561063657600080fd5b506101d86106453660046133b9565b6001600160a01b03163190565b600080600061066084611572565b9150915061066d84611714565b600081815260026020526040902080549194509063ffffffff808416600160e01b90920416036106f3578054601b84810b91900b036106f35760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526002835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b610787611744565b866000036107d75760405162461bcd60e51b815260206004820152600c60248201527f64417070204944207a65726f000000000000000000000000000000000000000060448201526064016106ea565b8463ffffffff1660000361082d5760405162461bcd60e51b815260206004820152600c60248201527f4375742d6f6666207a65726f000000000000000000000000000000000000000060448201526064016106ea565b61083942610e106134fa565b8563ffffffff161061088d5760405162461bcd60e51b815260206004820152601d60248201527f4375742d6f666620746f6f2066617220696e207468652066757475726500000060448201526064016106ea565b600061094e85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080514660208201529081018d905233606090811b6bffffffffffffffffffffffff191690820152607481018c905260e08b901b7fffffffff00000000000000000000000000000000000000000000000000000000166094820152610948925060980190505b6040516020818303038152906040528051906020012061179d565b906117d8565b604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201526001600160a01b0380831660248301529192507f0000000000000000000000000000000000000000000000000000000000000000909116906391d1485490604401602060405180830381865afa1580156109df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a03919061350d565b610a445760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b60008881526003602052604090205463ffffffff808816600160a01b9092041610610ab15760405162461bcd60e51b815260206004820152601760248201527f4375742d6f6666206e6f74206d6f726520726563656e7400000000000000000060448201526064016106ea565b6040805180820182523380825263ffffffff808a16602080850191825260008e81526003909152859020935184549151909216600160a01b027fffffffffffffffff0000000000000000000000000000000000000000000000009091166001600160a01b0392909216919091171790915590517fd146024d00000000000000000000000000000000000000000000000000000000815247917fc93bcf85bbd7fbf9ac5747cb223742d6648693af4b713698044bb8a37851e9f79163d146024d90610b83908c908990899060040161352f565b6020604051808303816000875af1158015610ba2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc69190613565565b14610c135760405162461bcd60e51b815260206004820152601f60248201527f4f455620626964207061796d656e742063616c6c6261636b206661696c65640060448201526064016106ea565b87610c1e824761357e565b1015610c6c5760405162461bcd60e51b815260206004820152601c60248201527f4f455620626964207061796d656e7420616d6f756e742073686f72740000000060448201526064016106ea565b6040805189815263ffffffff891660208201526001600160a01b03841681830152905133918b917f39b24cbe33ddb28dc22abcbaf14bf7f5544cc9c886c49dbb2f0d30e9dd1448949181900360600190a35050610cc96001600055565b50505050505050565b606080828067ffffffffffffffff811115610cef57610cef613044565b604051908082528060200260200182016040528015610d18578160200160208202803683370190505b5092508067ffffffffffffffff811115610d3457610d34613044565b604051908082528060200260200182016040528015610d6757816020015b6060815260200190600190039081610d525790505b50915060005b81811015610e2f5730868683818110610d8857610d88613591565b9050602002810190610d9a91906135a7565b604051610da89291906135ee565b600060405180830381855af49150503d8060008114610de3576040519150601f19603f3d011682016040523d82523d6000602084013e610de8565b606091505b50858381518110610dfb57610dfb613591565b60200260200101858481518110610e1457610e14613591565b60209081029190910101919091529015159052600101610d6d565b50509250929050565b60018054610e45906135fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610e71906135fe565b8015610ebe5780601f10610e9357610100808354040283529160200191610ebe565b820191906000526020600020905b815481529060010190602001808311610ea157829003601f168201915b505050505081565b60603315610f165760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b610f568484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506117fe92505050565b90505b9392505050565b6000806000600260008686604051602001610f85929190918252602082015260400190565b60408051808303601f1901815291815281516020928301208352908201929092520160002054601b81900b96600160e01b90910463ffffffff1695509350505050565b60008381526003602052604081208054829182916001600160a01b031633146110335760405162461bcd60e51b815260206004820152601b60248201527f53656e646572206e6f74206c617374206269642075706461746572000000000060448201526064016106ea565b805461104f908890600160a01b900463ffffffff168888611842565b60408051848152601b84900b602082015263ffffffff83168183015290519397509195509350339189917ff775a9e1e1719e1dfecea2021e4b9861ac4d02846df440c4cba17e3ce855f913919081900360600190a35093509350939050565b6060818067ffffffffffffffff8111156110ca576110ca613044565b6040519080825280602002602001820160405280156110fd57816020015b60608152602001906001900390816110e85790505b50915060005b818110156112275760003086868481811061112057611120613591565b905060200281019061113291906135a7565b6040516111409291906135ee565b600060405180830381855af49150503d806000811461117b576040519150601f19603f3d011682016040523d82523d6000602084013e611180565b606091505b5085848151811061119357611193613591565b602090810291909101015290508061121e5760008483815181106111b9576111b9613591565b602002602001015190506000815111156111d65780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e67000000000060448201526064016106ea565b50600101611103565b505092915050565b611237611744565b6001600160a01b03821661128d5760405162461bcd60e51b815260206004820152601660248201527f526563697069656e742061646472657373207a65726f0000000000000000000060448201526064016106ea565b806000036112dd5760405162461bcd60e51b815260206004820152600b60248201527f416d6f756e74207a65726f00000000000000000000000000000000000000000060448201526064016106ea565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806113bd5750604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015611399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bd919061350d565b6114095760405162461bcd60e51b815260206004820152601660248201527f53656e6465722063616e6e6f742077697468647261770000000000000000000060448201526064016106ea565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611456576040519150601f19603f3d011682016040523d82523d6000602084013e61145b565b606091505b50509050806114ac5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c2072657665727465640000000000000000000000000060448201526064016106ea565b604080516001600160a01b038516815260208101849052338183015290517fff79f55e9fae054ff094d9e06f631119716d818f9f8ea9b5b2adf5679f6c12e09181900360600190a1506114ff6001600055565b5050565b6000808033156115555760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b611563866000198787611842565b91989097509095509350505050565b80516000908190600181116115c95760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e730060448201526064016106ea565b60008167ffffffffffffffff8111156115e4576115e4613044565b60405190808252806020026020018201604052801561160d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561162b5761162b613044565b604051908082528060200260200182016040528015611654578160200160208202803683370190505b50905060005b838110156116f55760006002600089848151811061167a5761167a613591565b602090810291909101810151825281019190915260400160002080548551919250601b0b908590849081106116b1576116b1613591565b602090810291909101015280548351600160e01b90910463ffffffff16908490849081106116e1576116e1613591565b60209081029190910101525060010161165a565b506116ff8261216c565b945061170a8161216c565b9350505050915091565b6000816040516020016117279190613632565b604051602081830303815290604052805190602001209050919050565b6002600054036117965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106ea565b6002600055565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611727565b60008060006117e785856122be565b915091506117f481612303565b5090505b92915050565b6060610f59838360006040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c6564000081525061246b565b6000808083806118945760405162461bcd60e51b815260206004820152601160248201527f5369676e6564206461746120656d70747900000000000000000000000000000060448201526064016106ea565b80600103611b185760008060008060008a8a60008181106118b7576118b7613591565b90506020028101906118c991906135a7565b8101906118d691906136e6565b9450945094509450945061192c85856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b985060008d8a60405160200161194c929190918252602082015260400190565b604051602081830303815290604052805190602001209050856001600160a01b03166119b2836109488860405160200161198891815260200190565b60405160208183030381529060405280519060200120888860405160200161092d93929190613770565b6001600160a01b0316146119fd5760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8c841115611a4d5760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b600081815260026020526040902054600160e01b900463ffffffff168411611ab75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b611ac08361255f565b604080518082018252601b83900b815263ffffffff80881660208084019182526000968752600290529290942090519151909316600160e01b026001600160e01b039091161790915597509195506121619350505050565b60008167ffffffffffffffff811115611b3357611b33613044565b604051908082528060200260200182016040528015611b5c578160200160208202803683370190505b50905060008267ffffffffffffffff811115611b7a57611b7a613044565b604051908082528060200260200182016040528015611ba3578160200160208202803683370190505b50905060005b8381101561204d5760008060008060008d8d87818110611bcb57611bcb613591565b9050602002810190611bdd91906135a7565b810190611bea91906136e6565b94509450945094509450611c4085856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b888781518110611c5257611c52613591565b6020026020010181815250508f888781518110611c7157611c71613591565b6020026020010151604051602001611c93929190918252602082015260400190565b60405160208183030381529060405280519060200120878781518110611cbb57611cbb613591565b6020908102919091010152805115611ebe57846001600160a01b0316611d1b8261094887604051602001611cf191815260200190565b60405160208183030381529060405280519060200120878760405160200161092d93929190613770565b6001600160a01b031614611d665760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8e831115611db65760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b60026000888881518110611dcc57611dcc613591565b602090810291909101810151825281019190915260400160002054600160e01b900463ffffffff168311611e425760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b6040518060400160405280611e568461255f565b601b0b81526020018463ffffffff1681525060026000898981518110611e7e57611e7e613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb78b8a81518110611f0257611f02613591565b60200260200101516040518263ffffffff1660e01b8152600401611f2891815260200190565b6040805180830381865afa158015611f44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f68919061379d565b91509150600260008a8a81518110611f8257611f82613591565b60200260200101518152602001908152602001600020600001601c9054906101000a900463ffffffff1663ffffffff168163ffffffff16111561203357604051806040016040528083601b0b81526020018263ffffffff16815250600260008b8b81518110611ff357611ff3613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b505050505050508080612045906137dd565b915050611ba9565b5061205782611714565b955061206281611572565b60408051602081018e9052908101899052919650945060009060600160408051601f19818403018152918152815160209283012060008181526002909352912080549192509063ffffffff808816600160e01b9092041603612115578054601b88810b91900b036121155760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064016106ea565b50604080518082018252601b88900b815263ffffffff80881660208084019182526000958652600290529290932090519151909216600160e01b026001600160e01b0390911617905550505b509450945094915050565b80516000906009811161223e5761218283612662565b61218d60028261380c565b6001036121c057826121a0600283613820565b815181106121b0576121b0613591565b6020026020010151915050919050565b806000036121d0576121d0613834565b610f598360016002840403815181106121eb576121eb613591565b60200260200101518460028481612204576122046137f6565b048151811061221557612215613591565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b61224960028261380c565b60010361226557826121a081612260600285613820565b612b70565b6000806122788560016002860403612b9d565b80925081935050506122af85838151811061229557612295613591565b602002602001015186838151811061221557612215613591565b95945050505050565b50919050565b60008082516041036122f45760208301516040840151606085015160001a6122e887828585612bd2565b945094505050506122fc565b506000905060025b9250929050565b60008160048111156123175761231761384a565b0361231f5750565b60018160048111156123335761233361384a565b036123805760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106ea565b60028160048111156123945761239461384a565b036123e15760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106ea565b60038160048111156123f5576123f561384a565b036124685760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016106ea565b50565b6060824710156124e35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016106ea565b600080866001600160a01b031685876040516124ff9190613860565b60006040518083038185875af1925050503d806000811461253c576040519150601f19603f3d011682016040523d82523d6000602084013e612541565b606091505b509150915061255287838387612c96565b925050505b949350505050565b600081516020146125b25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f727265637400000000000000000060448201526064016106ea565b6000828060200190518101906125c89190613565565b90507fffffffff80000000000000000000000000000000000000000000000000000000811280159061261657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6117f85760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f7200000000000000000060448201526064016106ea565b805160098111156126b55760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f72740000000000000000000060448201526064016106ea565b60068110156127bc57600481101561270b57806003036126f6576126dc8260006001612d0f565b6126e98260016002612d0f565b6114ff8260006001612d0f565b806002036114ff576114ff8260006001612d0f565b80600503612788576127208260016002612d0f565b61272d8260036004612d0f565b61273a8260016003612d0f565b6127478260006002612d0f565b6127548260026004612d0f565b6127618260006003612d0f565b61276e8260006001612d0f565b61277b8260026003612d0f565b6114ff8260016002612d0f565b6127958260006001612d0f565b6127a28260026003612d0f565b6127af8260016003612d0f565b61277b8260006002612d0f565b6008811015612939578060070361289d576127da8260016002612d0f565b6127e78260036004612d0f565b6127f48260056006612d0f565b6128018260006002612d0f565b61280e8260046006612d0f565b61281b8260036005612d0f565b6128288260026006612d0f565b6128358260016005612d0f565b6128428260006004612d0f565b61284f8260026005612d0f565b61285c8260006003612d0f565b6128698260026004612d0f565b6128768260016003612d0f565b6128838260006001612d0f565b6128908260026003612d0f565b6114ff8260046005612d0f565b6128aa8260006001612d0f565b6128b78260026003612d0f565b6128c48260046005612d0f565b6128d18260016003612d0f565b6128de8260036005612d0f565b6128eb8260016003612d0f565b6128f88260026004612d0f565b6129058260006002612d0f565b6129128260026004612d0f565b61291f8260036004612d0f565b61292c8260016002612d0f565b6114ff8260026003612d0f565b80600903612a6c5761294e8260016008612d0f565b61295b8260026007612d0f565b6129688260036006612d0f565b6129758260046005612d0f565b6129828260016004612d0f565b61298f8260056008612d0f565b61299c8260006002612d0f565b6129a98260066007612d0f565b6129b68260026006612d0f565b6129c38260076008612d0f565b6129d08260006003612d0f565b6129dd8260046005612d0f565b6129ea8260006001612d0f565b6129f78260036005612d0f565b612a048260066007612d0f565b612a118260026004612d0f565b612a1e8260016003612d0f565b612a2b8260056007612d0f565b612a388260046006612d0f565b612a458260016002612d0f565b612a528260036004612d0f565b612a5f8260056006612d0f565b6128838260076008612d0f565b612a798260006007612d0f565b612a868260016006612d0f565b612a938260026005612d0f565b612aa08260036004612d0f565b612aad8260006003612d0f565b612aba8260046007612d0f565b612ac78260016002612d0f565b612ad48260056006612d0f565b612ae18260006001612d0f565b612aee8260026003612d0f565b612afb8260046005612d0f565b612b088260066007612d0f565b612b158260036005612d0f565b612b228260026004612d0f565b612b2f8260016002612d0f565b612b3c8260036004612d0f565b612b498260056006612d0f565b612b568260026003612d0f565b612b638260046005612d0f565b6114ff8260036004612d0f565b815160009080612b8257612b82613834565b612b9484600060018403866000612dbd565b50949350505050565b8151600090819060018111612bb457612bb4613834565b612bc685600060018403876001612dbd565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612c095750600090506003612c8d565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612c5d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612c8657600060019250925050612c8d565b9150600090505b94509492505050565b60608315612d05578251600003612cfe576001600160a01b0385163b612cfe5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106ea565b5081612557565b6125578383612e93565b828181518110612d2157612d21613591565b6020026020010151838381518110612d3b57612d3b613591565b60200260200101511315612db857828181518110612d5b57612d5b613591565b6020026020010151838381518110612d7557612d75613591565b6020026020010151848481518110612d8f57612d8f613591565b60200260200101858481518110612da857612da8613591565b6020908102919091010191909152525b505050565b600080848603612dd257508290506000612e89565b6000612ddf888888612ebd565b905080851015612e0257612dfa888860018403886000612dbd565b509250612e1f565b80851115612e1b57612dfa888260010188886000612dbd565b8092505b8315612e8757875160018401925060028401905b80821015612e8457898481518110612e4d57612e4d613591565b60200260200101518a8381518110612e6757612e67613591565b60200260200101511215612e79578193505b600190910190612e33565b50505b505b9550959350505050565b815115612ea35781518083602001fd5b8060405162461bcd60e51b81526004016106ea9190613391565b6000818303612ecd575081610f59565b6000848481518110612ee157612ee1613591565b6020026020010151905060008490508360010192505b855160019091019081108015612f25575081868281518110612f1b57612f1b613591565b6020026020010151125b612ef7575b82806001900393505081868481518110612f4657612f46613591565b602002602001015113612f2a57828110612fd157858381518110612f6c57612f6c613591565b6020026020010151868681518110612f8657612f86613591565b6020026020010151878781518110612fa057612fa0613591565b60200260200101888681518110612fb957612fb9613591565b60200260200101828152508281525050505050610f59565b858381518110612fe357612fe3613591565b6020026020010151868281518110612ffd57612ffd613591565b602002602001015187838151811061301757613017613591565b6020026020010188868151811061303057613030613591565b602090810291909101019190915252612ef7565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561308357613083613044565b604052919050565b6000602080838503121561309e57600080fd5b823567ffffffffffffffff808211156130b657600080fd5b818501915085601f8301126130ca57600080fd5b8135818111156130dc576130dc613044565b8060051b91506130ed84830161305a565b818152918301840191848101908884111561310757600080fd5b938501935b838510156131255784358252938501939085019061310c565b98975050505050505050565b63ffffffff8116811461246857600080fd5b60008083601f84011261315557600080fd5b50813567ffffffffffffffff81111561316d57600080fd5b6020830191508360208285010111156122fc57600080fd5b600080600080600080600060a0888a0312156131a057600080fd5b873596506020880135955060408801356131b981613131565b9450606088013567ffffffffffffffff808211156131d657600080fd5b6131e28b838c01613143565b909650945060808a01359150808211156131fb57600080fd5b506132088a828b01613143565b989b979a50959850939692959293505050565b60008083601f84011261322d57600080fd5b50813567ffffffffffffffff81111561324557600080fd5b6020830191508360208260051b85010111156122fc57600080fd5b6000806020838503121561327357600080fd5b823567ffffffffffffffff81111561328a57600080fd5b612bc68582860161321b565b60005b838110156132b1578181015183820152602001613299565b50506000910152565b600081518084526132d2816020860160208601613296565b601f01601f19169290920160200192915050565b6000815180845260208085019450848260051b860182860160005b8581101561332b5783830389526133198383516132ba565b98850198925090840190600101613301565b5090979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015613373578151151584529284019290840190600101613355565b5050508381038285015261338781866132e6565b9695505050505050565b602081526000610f5960208301846132ba565b6001600160a01b038116811461246857600080fd5b6000602082840312156133cb57600080fd5b8135610f59816133a4565b6000806000604084860312156133eb57600080fd5b83356133f6816133a4565b9250602084013567ffffffffffffffff81111561341257600080fd5b61341e86828701613143565b9497909650939450505050565b6000806040838503121561343e57600080fd5b50508035926020909101359150565b60006020828403121561345f57600080fd5b5035919050565b60008060006040848603121561347b57600080fd5b83359250602084013567ffffffffffffffff81111561349957600080fd5b61341e8682870161321b565b602081526000610f5960208301846132e6565b600080604083850312156134cb57600080fd5b82356134d6816133a4565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156117f8576117f86134e4565b60006020828403121561351f57600080fd5b81518015158114610f5957600080fd5b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b60006020828403121561357757600080fd5b5051919050565b818103818111156117f8576117f86134e4565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126135be57600080fd5b83018035915067ffffffffffffffff8211156135d957600080fd5b6020019150368190038213156122fc57600080fd5b8183823760009101908152919050565b600181811c9082168061361257607f821691505b6020821081036122b857634e487b7160e01b600052602260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561366a5783518352928401929184019160010161364e565b50909695505050505050565b600082601f83011261368757600080fd5b813567ffffffffffffffff8111156136a1576136a1613044565b6136b4601f8201601f191660200161305a565b8181528460208386010111156136c957600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156136fe57600080fd5b8535613709816133a4565b94506020860135935060408601359250606086013567ffffffffffffffff8082111561373457600080fd5b61374089838a01613676565b9350608088013591508082111561375657600080fd5b5061376388828901613676565b9150509295509295909350565b8381528260208201526000825161378e816040850160208701613296565b91909101604001949350505050565b600080604083850312156137b057600080fd5b825180601b0b81146137c157600080fd5b60208401519092506137d281613131565b809150509250929050565b6000600182016137ef576137ef6134e4565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261381b5761381b6137f6565b500690565b60008261382f5761382f6137f6565b500490565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b60008251613872818460208701613296565b919091019291505056fea26469706673582212204ccab876dd8e5b8c1dbe3ebd5d905d28ef151d9fec708c8a83d36f8e6bd94e4964736f6c63430008110033", + "deployedBytecode": "0x6080604052600436106101985760003560e01c80635989eaeb116100e15780639f4165221161008a578063f1939bd011610064578063f1939bd0146105a1578063f3fef3a3146105ea578063f77294091461060a578063f8b2cb4f1461062a57600080fd5b80639f416522146104fc578063ac9650d814610540578063e8597c371461056d57600080fd5b8063796b89b9116100bb578063796b89b91461044157806391526c361461045457806396bb5dbd1461049357600080fd5b80635989eaeb1461039e57806359e5c6b9146103d85780635ae64712146103f857600080fd5b80633408e47011610143578063481c6a751161011d578063481c6a75146103355780634c8f1d8d146103695780634dcc19fe1461038b57600080fd5b80633408e470146102e157806342cbb15c146102f4578063437b91161461030757600080fd5b80631be8d01f116101745780631be8d01f1461022d5780631ce9ae07146102615780632d6a744e146102ad57600080fd5b80629f2f3c146101a4578062aae33f146101eb57806306c84a9f1461020b57600080fd5b3661019f57005b600080fd5b3480156101b057600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b3480156101f757600080fd5b506101d861020636600461308b565b610652565b34801561021757600080fd5b5061022b610226366004613185565b61077f565b005b34801561023957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b34801561026d57600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101e2565b3480156102b957600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b3480156102ed57600080fd5b50466101d8565b34801561030057600080fd5b50436101d8565b34801561031357600080fd5b50610327610322366004613260565b610cd2565b6040516101e2929190613338565b34801561034157600080fd5b506102957f000000000000000000000000000000000000000000000000000000000000000081565b34801561037557600080fd5b5061037e610e38565b6040516101e29190613391565b34801561039757600080fd5b50486101d8565b3480156103aa57600080fd5b506103c86103b93660046133b9565b6001600160a01b03163b151590565b60405190151581526020016101e2565b3480156103e457600080fd5b5061037e6103f33660046133d6565b610ec6565b34801561040457600080fd5b5061037e6040518060400160405280600a81526020017f41756374696f6e6565720000000000000000000000000000000000000000000081525081565b34801561044d57600080fd5b50426101d8565b34801561046057600080fd5b5061047461046f36600461342b565b610f60565b60408051601b9390930b835263ffffffff9091166020830152016101e2565b34801561049f57600080fd5b506104d86104ae36600461344d565b6003602052600090815260409020546001600160a01b03811690600160a01b900463ffffffff1682565b604080516001600160a01b03909316835263ffffffff9091166020830152016101e2565b34801561050857600080fd5b5061051c610517366004613466565b610fc8565b60408051938452601b9290920b602084015263ffffffff16908201526060016101e2565b34801561054c57600080fd5b5061056061055b366004613260565b6110ae565b6040516101e291906134a5565b34801561057957600080fd5b506101d87f000000000000000000000000000000000000000000000000000000000000000081565b3480156105ad57600080fd5b5061037e6040518060400160405280600a81526020017f576974686472617765720000000000000000000000000000000000000000000081525081565b3480156105f657600080fd5b5061022b6106053660046134b8565b61122f565b34801561061657600080fd5b5061051c610625366004613466565b611503565b34801561063657600080fd5b506101d86106453660046133b9565b6001600160a01b03163190565b600080600061066084611572565b9150915061066d84611714565b600081815260026020526040902080549194509063ffffffff808416600160e01b90920416036106f3578054601b84810b91900b036106f35760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064015b60405180910390fd5b604080518082018252601b85900b80825263ffffffff858116602080850182815260008b81526002835287902095519051909316600160e01b026001600160e01b0390931692909217909355835191825281019190915285917fb7712be6248d021e8c56ac9613c09491354a4d0f4ad0b7db1a664b35be4b2349910160405180910390a2505050919050565b610787611744565b866000036107d75760405162461bcd60e51b815260206004820152600c60248201527f64417070204944207a65726f000000000000000000000000000000000000000060448201526064016106ea565b8463ffffffff1660000361082d5760405162461bcd60e51b815260206004820152600c60248201527f4375742d6f6666207a65726f000000000000000000000000000000000000000060448201526064016106ea565b61083942610e106134fa565b8563ffffffff161061088d5760405162461bcd60e51b815260206004820152601d60248201527f4375742d6f666620746f6f2066617220696e207468652066757475726500000060448201526064016106ea565b600061094e85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080514660208201529081018d905233606090811b6bffffffffffffffffffffffff191690820152607481018c905260e08b901b7fffffffff00000000000000000000000000000000000000000000000000000000166094820152610948925060980190505b6040516020818303038152906040528051906020012061179d565b906117d8565b604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201526001600160a01b0380831660248301529192507f0000000000000000000000000000000000000000000000000000000000000000909116906391d1485490604401602060405180830381865afa1580156109df573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a03919061350d565b610a445760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b60008881526003602052604090205463ffffffff808816600160a01b9092041610610ab15760405162461bcd60e51b815260206004820152601760248201527f4375742d6f6666206e6f74206d6f726520726563656e7400000000000000000060448201526064016106ea565b6040805180820182523380825263ffffffff808a16602080850191825260008e81526003909152859020935184549151909216600160a01b027fffffffffffffffff0000000000000000000000000000000000000000000000009091166001600160a01b0392909216919091171790915590517fd146024d00000000000000000000000000000000000000000000000000000000815247917fc93bcf85bbd7fbf9ac5747cb223742d6648693af4b713698044bb8a37851e9f79163d146024d90610b83908c908990899060040161352f565b6020604051808303816000875af1158015610ba2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc69190613565565b14610c135760405162461bcd60e51b815260206004820152601f60248201527f4f455620626964207061796d656e742063616c6c6261636b206661696c65640060448201526064016106ea565b87610c1e824761357e565b1015610c6c5760405162461bcd60e51b815260206004820152601c60248201527f4f455620626964207061796d656e7420616d6f756e742073686f72740000000060448201526064016106ea565b6040805189815263ffffffff891660208201526001600160a01b03841681830152905133918b917f39b24cbe33ddb28dc22abcbaf14bf7f5544cc9c886c49dbb2f0d30e9dd1448949181900360600190a35050610cc96001600055565b50505050505050565b606080828067ffffffffffffffff811115610cef57610cef613044565b604051908082528060200260200182016040528015610d18578160200160208202803683370190505b5092508067ffffffffffffffff811115610d3457610d34613044565b604051908082528060200260200182016040528015610d6757816020015b6060815260200190600190039081610d525790505b50915060005b81811015610e2f5730868683818110610d8857610d88613591565b9050602002810190610d9a91906135a7565b604051610da89291906135ee565b600060405180830381855af49150503d8060008114610de3576040519150601f19603f3d011682016040523d82523d6000602084013e610de8565b606091505b50858381518110610dfb57610dfb613591565b60200260200101858481518110610e1457610e14613591565b60209081029190910101919091529015159052600101610d6d565b50509250929050565b60018054610e45906135fe565b80601f0160208091040260200160405190810160405280929190818152602001828054610e71906135fe565b8015610ebe5780601f10610e9357610100808354040283529160200191610ebe565b820191906000526020600020905b815481529060010190602001808311610ea157829003601f168201915b505050505081565b60603315610f165760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b610f568484848080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506117fe92505050565b90505b9392505050565b6000806000600260008686604051602001610f85929190918252602082015260400190565b60408051808303601f1901815291815281516020928301208352908201929092520160002054601b81900b96600160e01b90910463ffffffff1695509350505050565b60008381526003602052604081208054829182916001600160a01b031633146110335760405162461bcd60e51b815260206004820152601b60248201527f53656e646572206e6f74206c617374206269642075706461746572000000000060448201526064016106ea565b805461104f908890600160a01b900463ffffffff168888611842565b60408051848152601b84900b602082015263ffffffff83168183015290519397509195509350339189917ff775a9e1e1719e1dfecea2021e4b9861ac4d02846df440c4cba17e3ce855f913919081900360600190a35093509350939050565b6060818067ffffffffffffffff8111156110ca576110ca613044565b6040519080825280602002602001820160405280156110fd57816020015b60608152602001906001900390816110e85790505b50915060005b818110156112275760003086868481811061112057611120613591565b905060200281019061113291906135a7565b6040516111409291906135ee565b600060405180830381855af49150503d806000811461117b576040519150601f19603f3d011682016040523d82523d6000602084013e611180565b606091505b5085848151811061119357611193613591565b602090810291909101015290508061121e5760008483815181106111b9576111b9613591565b602002602001015190506000815111156111d65780518082602001fd5b60405162461bcd60e51b815260206004820152601b60248201527f4d756c746963616c6c3a204e6f2072657665727420737472696e67000000000060448201526064016106ea565b50600101611103565b505092915050565b611237611744565b6001600160a01b03821661128d5760405162461bcd60e51b815260206004820152601660248201527f526563697069656e742061646472657373207a65726f0000000000000000000060448201526064016106ea565b806000036112dd5760405162461bcd60e51b815260206004820152600b60248201527f416d6f756e74207a65726f00000000000000000000000000000000000000000060448201526064016106ea565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614806113bd5750604051632474521560e21b81527f000000000000000000000000000000000000000000000000000000000000000060048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906391d1485490604401602060405180830381865afa158015611399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bd919061350d565b6114095760405162461bcd60e51b815260206004820152601660248201527f53656e6465722063616e6e6f742077697468647261770000000000000000000060448201526064016106ea565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611456576040519150601f19603f3d011682016040523d82523d6000602084013e61145b565b606091505b50509050806114ac5760405162461bcd60e51b815260206004820152601360248201527f5769746864726177616c2072657665727465640000000000000000000000000060448201526064016106ea565b604080516001600160a01b038516815260208101849052338183015290517fff79f55e9fae054ff094d9e06f631119716d818f9f8ea9b5b2adf5679f6c12e09181900360600190a1506114ff6001600055565b5050565b6000808033156115555760405162461bcd60e51b815260206004820152601760248201527f53656e6465722061646472657373206e6f74207a65726f00000000000000000060448201526064016106ea565b611563866000198787611842565b91989097509095509350505050565b80516000908190600181116115c95760405162461bcd60e51b815260206004820152601f60248201527f537065636966696564206c657373207468616e2074776f20426561636f6e730060448201526064016106ea565b60008167ffffffffffffffff8111156115e4576115e4613044565b60405190808252806020026020018201604052801561160d578160200160208202803683370190505b50905060008267ffffffffffffffff81111561162b5761162b613044565b604051908082528060200260200182016040528015611654578160200160208202803683370190505b50905060005b838110156116f55760006002600089848151811061167a5761167a613591565b602090810291909101810151825281019190915260400160002080548551919250601b0b908590849081106116b1576116b1613591565b602090810291909101015280548351600160e01b90910463ffffffff16908490849081106116e1576116e1613591565b60209081029190910101525060010161165a565b506116ff8261216c565b945061170a8161216c565b9350505050915091565b6000816040516020016117279190613632565b604051602081830303815290604052805190602001209050919050565b6002600054036117965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016106ea565b6002600055565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611727565b60008060006117e785856122be565b915091506117f481612303565b5090505b92915050565b6060610f59838360006040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c6564000081525061246b565b6000808083806118945760405162461bcd60e51b815260206004820152601160248201527f5369676e6564206461746120656d70747900000000000000000000000000000060448201526064016106ea565b80600103611b185760008060008060008a8a60008181106118b7576118b7613591565b90506020028101906118c991906135a7565b8101906118d691906136e6565b9450945094509450945061192c85856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b985060008d8a60405160200161194c929190918252602082015260400190565b604051602081830303815290604052805190602001209050856001600160a01b03166119b2836109488860405160200161198891815260200190565b60405160208183030381529060405280519060200120888860405160200161092d93929190613770565b6001600160a01b0316146119fd5760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8c841115611a4d5760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b600081815260026020526040902054600160e01b900463ffffffff168411611ab75760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b611ac08361255f565b604080518082018252601b83900b815263ffffffff80881660208084019182526000968752600290529290942090519151909316600160e01b026001600160e01b039091161790915597509195506121619350505050565b60008167ffffffffffffffff811115611b3357611b33613044565b604051908082528060200260200182016040528015611b5c578160200160208202803683370190505b50905060008267ffffffffffffffff811115611b7a57611b7a613044565b604051908082528060200260200182016040528015611ba3578160200160208202803683370190505b50905060005b8381101561204d5760008060008060008d8d87818110611bcb57611bcb613591565b9050602002810190611bdd91906135a7565b810190611bea91906136e6565b94509450945094509450611c4085856040516bffffffffffffffffffffffff19606084901b1660208201526034810182905260009060540160405160208183030381529060405280519060200120905092915050565b888781518110611c5257611c52613591565b6020026020010181815250508f888781518110611c7157611c71613591565b6020026020010151604051602001611c93929190918252602082015260400190565b60405160208183030381529060405280519060200120878781518110611cbb57611cbb613591565b6020908102919091010152805115611ebe57846001600160a01b0316611d1b8261094887604051602001611cf191815260200190565b60405160208183030381529060405280519060200120878760405160200161092d93929190613770565b6001600160a01b031614611d665760405162461bcd60e51b81526020600482015260126024820152710a6d2cedcc2e8eae4ca40dad2e6dac2e8c6d60731b60448201526064016106ea565b8e831115611db65760405162461bcd60e51b815260206004820152601960248201527f54696d657374616d702065786365656473206375742d6f66660000000000000060448201526064016106ea565b60026000888881518110611dcc57611dcc613591565b602090810291909101810151825281019190915260400160002054600160e01b900463ffffffff168311611e425760405162461bcd60e51b815260206004820152601960248201527f446f6573206e6f74207570646174652074696d657374616d700000000000000060448201526064016106ea565b6040518060400160405280611e568461255f565b601b0b81526020018463ffffffff1681525060026000898981518110611e7e57611e7e613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166367a7cfb78b8a81518110611f0257611f02613591565b60200260200101516040518263ffffffff1660e01b8152600401611f2891815260200190565b6040805180830381865afa158015611f44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f68919061379d565b91509150600260008a8a81518110611f8257611f82613591565b60200260200101518152602001908152602001600020600001601c9054906101000a900463ffffffff1663ffffffff168163ffffffff16111561203357604051806040016040528083601b0b81526020018263ffffffff16815250600260008b8b81518110611ff357611ff3613591565b6020908102919091018101518252818101929092526040016000208251929091015163ffffffff16600160e01b026001600160e01b039092169190911790555b505050505050508080612045906137dd565b915050611ba9565b5061205782611714565b955061206281611572565b60408051602081018e9052908101899052919650945060009060600160408051601f19818403018152918152815160209283012060008181526002909352912080549192509063ffffffff808816600160e01b9092041603612115578054601b88810b91900b036121155760405162461bcd60e51b815260206004820152601a60248201527f446f6573206e6f742075706461746520426561636f6e2073657400000000000060448201526064016106ea565b50604080518082018252601b88900b815263ffffffff80881660208084019182526000958652600290529290932090519151909216600160e01b026001600160e01b0390911617905550505b509450945094915050565b80516000906009811161223e5761218283612662565b61218d60028261380c565b6001036121c057826121a0600283613820565b815181106121b0576121b0613591565b6020026020010151915050919050565b806000036121d0576121d0613834565b610f598360016002840403815181106121eb576121eb613591565b60200260200101518460028481612204576122046137f6565b048151811061221557612215613591565b6020026020010151600182811d82821d01838316919091160160ff81901c838318160192915050565b61224960028261380c565b60010361226557826121a081612260600285613820565b612b70565b6000806122788560016002860403612b9d565b80925081935050506122af85838151811061229557612295613591565b602002602001015186838151811061221557612215613591565b95945050505050565b50919050565b60008082516041036122f45760208301516040840151606085015160001a6122e887828585612bd2565b945094505050506122fc565b506000905060025b9250929050565b60008160048111156123175761231761384a565b0361231f5750565b60018160048111156123335761233361384a565b036123805760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106ea565b60028160048111156123945761239461384a565b036123e15760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106ea565b60038160048111156123f5576123f561384a565b036124685760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016106ea565b50565b6060824710156124e35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016106ea565b600080866001600160a01b031685876040516124ff9190613860565b60006040518083038185875af1925050503d806000811461253c576040519150601f19603f3d011682016040523d82523d6000602084013e612541565b606091505b509150915061255287838387612c96565b925050505b949350505050565b600081516020146125b25760405162461bcd60e51b815260206004820152601760248201527f44617461206c656e677468206e6f7420636f727265637400000000000000000060448201526064016106ea565b6000828060200190518101906125c89190613565565b90507fffffffff80000000000000000000000000000000000000000000000000000000811280159061261657507b7fffffffffffffffffffffffffffffffffffffffffffffffffffffff8113155b6117f85760405162461bcd60e51b815260206004820152601760248201527f56616c7565207479706563617374696e67206572726f7200000000000000000060448201526064016106ea565b805160098111156126b55760405162461bcd60e51b815260206004820152601660248201527f417272617920746f6f206c6f6e6720746f20736f72740000000000000000000060448201526064016106ea565b60068110156127bc57600481101561270b57806003036126f6576126dc8260006001612d0f565b6126e98260016002612d0f565b6114ff8260006001612d0f565b806002036114ff576114ff8260006001612d0f565b80600503612788576127208260016002612d0f565b61272d8260036004612d0f565b61273a8260016003612d0f565b6127478260006002612d0f565b6127548260026004612d0f565b6127618260006003612d0f565b61276e8260006001612d0f565b61277b8260026003612d0f565b6114ff8260016002612d0f565b6127958260006001612d0f565b6127a28260026003612d0f565b6127af8260016003612d0f565b61277b8260006002612d0f565b6008811015612939578060070361289d576127da8260016002612d0f565b6127e78260036004612d0f565b6127f48260056006612d0f565b6128018260006002612d0f565b61280e8260046006612d0f565b61281b8260036005612d0f565b6128288260026006612d0f565b6128358260016005612d0f565b6128428260006004612d0f565b61284f8260026005612d0f565b61285c8260006003612d0f565b6128698260026004612d0f565b6128768260016003612d0f565b6128838260006001612d0f565b6128908260026003612d0f565b6114ff8260046005612d0f565b6128aa8260006001612d0f565b6128b78260026003612d0f565b6128c48260046005612d0f565b6128d18260016003612d0f565b6128de8260036005612d0f565b6128eb8260016003612d0f565b6128f88260026004612d0f565b6129058260006002612d0f565b6129128260026004612d0f565b61291f8260036004612d0f565b61292c8260016002612d0f565b6114ff8260026003612d0f565b80600903612a6c5761294e8260016008612d0f565b61295b8260026007612d0f565b6129688260036006612d0f565b6129758260046005612d0f565b6129828260016004612d0f565b61298f8260056008612d0f565b61299c8260006002612d0f565b6129a98260066007612d0f565b6129b68260026006612d0f565b6129c38260076008612d0f565b6129d08260006003612d0f565b6129dd8260046005612d0f565b6129ea8260006001612d0f565b6129f78260036005612d0f565b612a048260066007612d0f565b612a118260026004612d0f565b612a1e8260016003612d0f565b612a2b8260056007612d0f565b612a388260046006612d0f565b612a458260016002612d0f565b612a528260036004612d0f565b612a5f8260056006612d0f565b6128838260076008612d0f565b612a798260006007612d0f565b612a868260016006612d0f565b612a938260026005612d0f565b612aa08260036004612d0f565b612aad8260006003612d0f565b612aba8260046007612d0f565b612ac78260016002612d0f565b612ad48260056006612d0f565b612ae18260006001612d0f565b612aee8260026003612d0f565b612afb8260046005612d0f565b612b088260066007612d0f565b612b158260036005612d0f565b612b228260026004612d0f565b612b2f8260016002612d0f565b612b3c8260036004612d0f565b612b498260056006612d0f565b612b568260026003612d0f565b612b638260046005612d0f565b6114ff8260036004612d0f565b815160009080612b8257612b82613834565b612b9484600060018403866000612dbd565b50949350505050565b8151600090819060018111612bb457612bb4613834565b612bc685600060018403876001612dbd565b90969095509350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612c095750600090506003612c8d565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612c5d573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612c8657600060019250925050612c8d565b9150600090505b94509492505050565b60608315612d05578251600003612cfe576001600160a01b0385163b612cfe5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106ea565b5081612557565b6125578383612e93565b828181518110612d2157612d21613591565b6020026020010151838381518110612d3b57612d3b613591565b60200260200101511315612db857828181518110612d5b57612d5b613591565b6020026020010151838381518110612d7557612d75613591565b6020026020010151848481518110612d8f57612d8f613591565b60200260200101858481518110612da857612da8613591565b6020908102919091010191909152525b505050565b600080848603612dd257508290506000612e89565b6000612ddf888888612ebd565b905080851015612e0257612dfa888860018403886000612dbd565b509250612e1f565b80851115612e1b57612dfa888260010188886000612dbd565b8092505b8315612e8757875160018401925060028401905b80821015612e8457898481518110612e4d57612e4d613591565b60200260200101518a8381518110612e6757612e67613591565b60200260200101511215612e79578193505b600190910190612e33565b50505b505b9550959350505050565b815115612ea35781518083602001fd5b8060405162461bcd60e51b81526004016106ea9190613391565b6000818303612ecd575081610f59565b6000848481518110612ee157612ee1613591565b6020026020010151905060008490508360010192505b855160019091019081108015612f25575081868281518110612f1b57612f1b613591565b6020026020010151125b612ef7575b82806001900393505081868481518110612f4657612f46613591565b602002602001015113612f2a57828110612fd157858381518110612f6c57612f6c613591565b6020026020010151868681518110612f8657612f86613591565b6020026020010151878781518110612fa057612fa0613591565b60200260200101888681518110612fb957612fb9613591565b60200260200101828152508281525050505050610f59565b858381518110612fe357612fe3613591565b6020026020010151868281518110612ffd57612ffd613591565b602002602001015187838151811061301757613017613591565b6020026020010188868151811061303057613030613591565b602090810291909101019190915252612ef7565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561308357613083613044565b604052919050565b6000602080838503121561309e57600080fd5b823567ffffffffffffffff808211156130b657600080fd5b818501915085601f8301126130ca57600080fd5b8135818111156130dc576130dc613044565b8060051b91506130ed84830161305a565b818152918301840191848101908884111561310757600080fd5b938501935b838510156131255784358252938501939085019061310c565b98975050505050505050565b63ffffffff8116811461246857600080fd5b60008083601f84011261315557600080fd5b50813567ffffffffffffffff81111561316d57600080fd5b6020830191508360208285010111156122fc57600080fd5b600080600080600080600060a0888a0312156131a057600080fd5b873596506020880135955060408801356131b981613131565b9450606088013567ffffffffffffffff808211156131d657600080fd5b6131e28b838c01613143565b909650945060808a01359150808211156131fb57600080fd5b506132088a828b01613143565b989b979a50959850939692959293505050565b60008083601f84011261322d57600080fd5b50813567ffffffffffffffff81111561324557600080fd5b6020830191508360208260051b85010111156122fc57600080fd5b6000806020838503121561327357600080fd5b823567ffffffffffffffff81111561328a57600080fd5b612bc68582860161321b565b60005b838110156132b1578181015183820152602001613299565b50506000910152565b600081518084526132d2816020860160208601613296565b601f01601f19169290920160200192915050565b6000815180845260208085019450848260051b860182860160005b8581101561332b5783830389526133198383516132ba565b98850198925090840190600101613301565b5090979650505050505050565b604080825283519082018190526000906020906060840190828701845b82811015613373578151151584529284019290840190600101613355565b5050508381038285015261338781866132e6565b9695505050505050565b602081526000610f5960208301846132ba565b6001600160a01b038116811461246857600080fd5b6000602082840312156133cb57600080fd5b8135610f59816133a4565b6000806000604084860312156133eb57600080fd5b83356133f6816133a4565b9250602084013567ffffffffffffffff81111561341257600080fd5b61341e86828701613143565b9497909650939450505050565b6000806040838503121561343e57600080fd5b50508035926020909101359150565b60006020828403121561345f57600080fd5b5035919050565b60008060006040848603121561347b57600080fd5b83359250602084013567ffffffffffffffff81111561349957600080fd5b61341e8682870161321b565b602081526000610f5960208301846132e6565b600080604083850312156134cb57600080fd5b82356134d6816133a4565b946020939093013593505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156117f8576117f86134e4565b60006020828403121561351f57600080fd5b81518015158114610f5957600080fd5b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b60006020828403121561357757600080fd5b5051919050565b818103818111156117f8576117f86134e4565b634e487b7160e01b600052603260045260246000fd5b6000808335601e198436030181126135be57600080fd5b83018035915067ffffffffffffffff8211156135d957600080fd5b6020019150368190038213156122fc57600080fd5b8183823760009101908152919050565b600181811c9082168061361257607f821691505b6020821081036122b857634e487b7160e01b600052602260045260246000fd5b6020808252825182820181905260009190848201906040850190845b8181101561366a5783518352928401929184019160010161364e565b50909695505050505050565b600082601f83011261368757600080fd5b813567ffffffffffffffff8111156136a1576136a1613044565b6136b4601f8201601f191660200161305a565b8181528460208386010111156136c957600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156136fe57600080fd5b8535613709816133a4565b94506020860135935060408601359250606086013567ffffffffffffffff8082111561373457600080fd5b61374089838a01613676565b9350608088013591508082111561375657600080fd5b5061376388828901613676565b9150509295509295909350565b8381528260208201526000825161378e816040850160208701613296565b91909101604001949350505050565b600080604083850312156137b057600080fd5b825180601b0b81146137c157600080fd5b60208401519092506137d281613131565b809150509250929050565b6000600182016137ef576137ef6134e4565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261381b5761381b6137f6565b500690565b60008261382f5761382f6137f6565b500490565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b60008251613872818460208701613296565b919091019291505056fea26469706673582212204ccab876dd8e5b8c1dbe3ebd5d905d28ef151d9fec708c8a83d36f8e6bd94e4964736f6c63430008110033", + "devdoc": { + "kind": "dev", + "methods": { + "constructor": { + "params": { + "accessControlRegistry_": "AccessControlRegistry contract address", + "adminRoleDescription_": "Admin role description", + "api3ServerV1_": "Api3ServerV1 address", + "manager_": "Manager address" + } + }, + "containsBytecode(address)": { + "details": "An account not containing any bytecode does not indicate that it is an EOA or it will not contain any bytecode in the future. Contract construction and `SELFDESTRUCT` updates the bytecode at the end of the transaction.", + "returns": { + "_0": "If the account contains bytecode" + } + }, + "getBalance(address)": { + "params": { + "account": "Account address" + }, + "returns": { + "_0": "Account balance" + } + }, + "getBlockBasefee()": { + "returns": { + "_0": "Current block basefee" + } + }, + "getBlockNumber()": { + "returns": { + "_0": "Current block number" + } + }, + "getBlockTimestamp()": { + "returns": { + "_0": "Current block timestamp" + } + }, + "getChainId()": { + "returns": { + "_0": "Chain ID" + } + }, + "multicall(bytes[])": { + "params": { + "data": "Array of calldata of batched calls" + }, + "returns": { + "returndata": "Array of returndata of batched calls" + } + }, + "oevDataFeed(uint256,bytes32)": { + "params": { + "dappId": "dApp ID", + "dataFeedId": "Data feed ID" + }, + "returns": { + "timestamp": "Data feed timestamp", + "value": "Data feed value" + } + }, + "payOevBid(uint256,uint256,uint32,bytes,bytes)": { + "params": { + "bidAmount": "Bid amount", + "dappId": "dApp ID", + "data": "Data that will be passed through the callback", + "signature": "Signature provided by an auctioneer", + "signedDataTimestampCutoff": "Signed data timestamp cut-off" + } + }, + "simulateDappOevDataFeedUpdate(uint256,bytes[])": { + "details": "The intended flow is for a searcher to do a static multicall to this function and `simulateExternalCall()` to check if the current signed data lets them extract OEV. If so, the searcher stores this data and places a bid on OevAuctionHouse. If they win the auction, they pay the bid and use the stored signed data with `updateDappOevDataFeed()` to extract OEV.", + "params": { + "dappId": "dApp ID", + "signedData": "Signed data (see `_updateDappOevDataFeed()` for details)" + }, + "returns": { + "baseDataFeedId": "Base data feed ID", + "updatedTimestamp": "Updated timestamp", + "updatedValue": "Updated value" + } + }, + "simulateExternalCall(address,bytes)": { + "details": "The most basic usage of this is in a static multicall that calls `simulateDappOevDataFeedUpdate()` multiple times to update the relevant feeds, followed by an external call to the liquidator contract of the searcher, which is built to return the revenue from the liquidation. The returned value would then be used to determine the bid amount.", + "params": { + "data": "Calldata of the external call", + "target": "Target address of the external call" + }, + "returns": { + "_0": "Returndata of the external call" + } + }, + "tryMulticall(bytes[])": { + "params": { + "data": "Array of calldata of batched calls" + }, + "returns": { + "returndata": "Array of returndata of batched calls", + "successes": "Array of success conditions of batched calls" + } + }, + "updateBeaconSetWithBeacons(bytes32[])": { + "details": "As an oddity, this function still works if some of the IDs in `beaconIds` belong to Beacon sets rather than Beacons. This can be used to implement hierarchical Beacon sets.", + "params": { + "beaconIds": "Beacon IDs" + }, + "returns": { + "beaconSetId": "Beacon set ID" + } + }, + "updateDappOevDataFeed(uint256,bytes[])": { + "params": { + "dappId": "dApp ID", + "signedData": "Signed data (see `_updateDappOevDataFeed()` for details)" + }, + "returns": { + "baseDataFeedId": "Base data feed ID", + "updatedTimestamp": "Updated timestamp", + "updatedValue": "Updated value" + } + }, + "withdraw(address,uint256)": { + "details": "This function has a reentrancy guard to prevent it from being called in an OEV bid payment callback", + "params": { + "amount": "Amount", + "recipient": "Recipient address" + } + } + }, + "title": "Api3ServerV1 extension for OEV support", + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": { + "AUCTIONEER_ROLE_DESCRIPTION()": { + "notice": "Auctioneer role description" + }, + "WITHDRAWER_ROLE_DESCRIPTION()": { + "notice": "Withdrawer role description" + }, + "accessControlRegistry()": { + "notice": "AccessControlRegistry contract address" + }, + "adminRole()": { + "notice": "Admin role" + }, + "adminRoleDescription()": { + "notice": "Admin role description" + }, + "api3ServerV1()": { + "notice": "Api3ServerV1 contract address" + }, + "auctioneerRole()": { + "notice": "Auctioneer role" + }, + "containsBytecode(address)": { + "notice": "Returns if the account contains bytecode" + }, + "dappIdToLastPaidBid(uint256)": { + "notice": "Returns the parameters of the last paid bid for the dApp with ID" + }, + "getBalance(address)": { + "notice": "Returns the account balance" + }, + "getBlockBasefee()": { + "notice": "Returns the current block basefee" + }, + "getBlockNumber()": { + "notice": "Returns the current block number" + }, + "getBlockTimestamp()": { + "notice": "Returns the current block timestamp" + }, + "getChainId()": { + "notice": "Returns the chain ID" + }, + "manager()": { + "notice": "Address of the manager that manages the related AccessControlRegistry roles" + }, + "multicall(bytes[])": { + "notice": "Batches calls to the inheriting contract and reverts as soon as one of the batched calls reverts" + }, + "oevDataFeed(uint256,bytes32)": { + "notice": "Value of the OEV data feed specific to the dApp, intended for informational purposes. The dApps are strongly recommended to use the standardized proxies to read data feeds." + }, + "payOevBid(uint256,uint256,uint32,bytes,bytes)": { + "notice": "An OEV auction bid specifies a dApp ID, a signed data timestamp cut-off, a bid amount and an updater account. To award the winning bid, an auctioneer signs a message that includes the hash of these parameters and publishes it. Then, the updater account calls this function to pay the bid amount and claim the privilege to execute updates for the dApp with ID using the signed data whose timestamps are limited by the cut-off. At least the bid amount must be sent to this contract with empty calldata in the `onOevBidPayment` callback, which will be checked upon succesful return. As a result of the reentrancy guard, nesting OEV bid payments is not allowed." + }, + "simulateDappOevDataFeedUpdate(uint256,bytes[])": { + "notice": "Called by the zero address to simulate an OEV data feed update" + }, + "simulateExternalCall(address,bytes)": { + "notice": "Called by the zero address to simulate an external call" + }, + "tryMulticall(bytes[])": { + "notice": "Batches calls to the inheriting contract but does not revert if any of the batched calls reverts" + }, + "updateBeaconSetWithBeacons(bytes32[])": { + "notice": "Updates the Beacon set using the current values of its Beacons" + }, + "updateDappOevDataFeed(uint256,bytes[])": { + "notice": "Called by the current updater of the dApp with ID to update the OEV data feed specific to the dApp" + }, + "withdraw(address,uint256)": { + "notice": "Called by the contract manager or a withdrawer to withdraw the accumulated OEV auction proceeds" + }, + "withdrawerRole()": { + "notice": "Withdrawer role" + } + }, + "notice": "Api3ServerV1 contract supports base data feeds and OEV functionality. This contract implements the updated OEV design, and thus supersedes the OEV-related portion of Api3ServerV1. As before, the users are intended to read API3 data feeds through a standardized proxy, which abstracts this change away.", + "version": 1 + }, + "storageLayout": { + "storage": [ + { + "astId": 3453, + "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", + "label": "_status", + "offset": 0, + "slot": "0", + "type": "t_uint256" + }, + { + "astId": 20, + "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", + "label": "adminRoleDescription", + "offset": 0, + "slot": "1", + "type": "t_string_storage" + }, + { + "astId": 1176, + "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", + "label": "_dataFeeds", + "offset": 0, + "slot": "2", + "type": "t_mapping(t_bytes32,t_struct(DataFeed)1170_storage)" + }, + { + "astId": 336, + "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", + "label": "dappIdToLastPaidBid", + "offset": 0, + "slot": "3", + "type": "t_mapping(t_uint256,t_struct(LastPaidBid)307_storage)" + } + ], + "types": { + "t_address": { + "encoding": "inplace", + "label": "address", + "numberOfBytes": "20" + }, + "t_bytes32": { + "encoding": "inplace", + "label": "bytes32", + "numberOfBytes": "32" + }, + "t_int224": { + "encoding": "inplace", + "label": "int224", + "numberOfBytes": "28" + }, + "t_mapping(t_bytes32,t_struct(DataFeed)1170_storage)": { + "encoding": "mapping", + "key": "t_bytes32", + "label": "mapping(bytes32 => struct DataFeedServer.DataFeed)", + "numberOfBytes": "32", + "value": "t_struct(DataFeed)1170_storage" + }, + "t_mapping(t_uint256,t_struct(LastPaidBid)307_storage)": { + "encoding": "mapping", + "key": "t_uint256", + "label": "mapping(uint256 => struct Api3ServerV1OevExtension.LastPaidBid)", + "numberOfBytes": "32", + "value": "t_struct(LastPaidBid)307_storage" + }, + "t_string_storage": { + "encoding": "bytes", + "label": "string", + "numberOfBytes": "32" + }, + "t_struct(DataFeed)1170_storage": { + "encoding": "inplace", + "label": "struct DataFeedServer.DataFeed", + "members": [ + { + "astId": 1167, + "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", + "label": "value", + "offset": 0, + "slot": "0", + "type": "t_int224" + }, + { + "astId": 1169, + "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", + "label": "timestamp", + "offset": 28, + "slot": "0", + "type": "t_uint32" + } + ], + "numberOfBytes": "32" + }, + "t_struct(LastPaidBid)307_storage": { + "encoding": "inplace", + "label": "struct Api3ServerV1OevExtension.LastPaidBid", + "members": [ + { + "astId": 304, + "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", + "label": "updater", + "offset": 0, + "slot": "0", + "type": "t_address" + }, + { + "astId": 306, + "contract": "contracts/api3-server-v1/Api3ServerV1OevExtension.sol:Api3ServerV1OevExtension", + "label": "signedDataTimestampCutoff", + "offset": 20, + "slot": "0", + "type": "t_uint32" + } + ], + "numberOfBytes": "32" + }, + "t_uint256": { + "encoding": "inplace", + "label": "uint256", + "numberOfBytes": "32" + }, + "t_uint32": { + "encoding": "inplace", + "label": "uint32", + "numberOfBytes": "4" + } + } + } +}