UNPKG

witnet-solidity-bridge

Version:

Witnet Solidity Bridge contracts for EVM-compatible chains

1,244 lines (1,243 loc) 64.1 kB
{ "contractName": "IWitPriceFeedsAdmin", "abi": [ { "inputs": [], "name": "acceptOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "pendingOwner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "", "type": "string" }, { "internalType": "bool", "name": "", "type": "bool" } ], "name": "removePriceFeed", "outputs": [ { "internalType": "bytes4", "name": "", "type": "bytes4" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "settleConsumer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "uint24", "name": "callbackGas", "type": "uint24" }, { "internalType": "bool", "name": "computeEma", "type": "bool" }, { "internalType": "uint24", "name": "cooldownSecs", "type": "uint24" }, { "internalType": "uint24", "name": "heartbeatSecs", "type": "uint24" }, { "internalType": "uint16", "name": "maxDeviation1000", "type": "uint16" }, { "internalType": "uint16", "name": "minWitnesses", "type": "uint16" } ], "internalType": "struct IWitPriceFeedsTypes.UpdateConditions", "name": "", "type": "tuple" } ], "name": "settleDefaultUpdateConditions", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "caption", "type": "string" }, { "internalType": "int8", "name": "exponent", "type": "int8" }, { "internalType": "enum IWitPriceFeedsTypes.Mappers", "name": "mapper", "type": "uint8" }, { "internalType": "string[]", "name": "deps", "type": "string[]" } ], "name": "settlePriceFeedMapper", "outputs": [ { "internalType": "bytes4", "name": "", "type": "bytes4" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "caption", "type": "string" }, { "internalType": "int8", "name": "exponent", "type": "int8" }, { "internalType": "enum IWitPriceFeedsTypes.Oracles", "name": "oracle", "type": "uint8" }, { "internalType": "address", "name": "target", "type": "address" }, { "internalType": "bytes32", "name": "sources", "type": "bytes32" } ], "name": "settlePriceFeedOracle", "outputs": [ { "internalType": "bytes4", "name": "", "type": "bytes4" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "caption", "type": "string" }, { "internalType": "int8", "name": "exponent", "type": "int8" }, { "internalType": "bytes", "name": "radonBytecode", "type": "bytes" } ], "name": "settlePriceFeedRadonBytecode", "outputs": [ { "internalType": "bytes4", "name": "", "type": "bytes4" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "caption", "type": "string" }, { "internalType": "int8", "name": "exponent", "type": "int8" }, { "internalType": "Witnet.RadonHash", "name": "radonHash", "type": "bytes32" } ], "name": "settlePriceFeedRadonHash", "outputs": [ { "internalType": "bytes4", "name": "", "type": "bytes4" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "caption", "type": "string" }, { "components": [ { "internalType": "uint24", "name": "callbackGas", "type": "uint24" }, { "internalType": "bool", "name": "computeEma", "type": "bool" }, { "internalType": "uint24", "name": "cooldownSecs", "type": "uint24" }, { "internalType": "uint24", "name": "heartbeatSecs", "type": "uint24" }, { "internalType": "uint16", "name": "maxDeviation1000", "type": "uint16" }, { "internalType": "uint16", "name": "minWitnesses", "type": "uint16" } ], "internalType": "struct IWitPriceFeedsTypes.UpdateConditions", "name": "conditions", "type": "tuple" } ], "name": "settlePriceFeedUpdateConditions", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"name\":\"removePriceFeed\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"settleConsumer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint24\",\"name\":\"callbackGas\",\"type\":\"uint24\"},{\"internalType\":\"bool\",\"name\":\"computeEma\",\"type\":\"bool\"},{\"internalType\":\"uint24\",\"name\":\"cooldownSecs\",\"type\":\"uint24\"},{\"internalType\":\"uint24\",\"name\":\"heartbeatSecs\",\"type\":\"uint24\"},{\"internalType\":\"uint16\",\"name\":\"maxDeviation1000\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"minWitnesses\",\"type\":\"uint16\"}],\"internalType\":\"struct IWitPriceFeedsTypes.UpdateConditions\",\"name\":\"\",\"type\":\"tuple\"}],\"name\":\"settleDefaultUpdateConditions\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"caption\",\"type\":\"string\"},{\"internalType\":\"int8\",\"name\":\"exponent\",\"type\":\"int8\"},{\"internalType\":\"enum IWitPriceFeedsTypes.Mappers\",\"name\":\"mapper\",\"type\":\"uint8\"},{\"internalType\":\"string[]\",\"name\":\"deps\",\"type\":\"string[]\"}],\"name\":\"settlePriceFeedMapper\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"caption\",\"type\":\"string\"},{\"internalType\":\"int8\",\"name\":\"exponent\",\"type\":\"int8\"},{\"internalType\":\"enum IWitPriceFeedsTypes.Oracles\",\"name\":\"oracle\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"sources\",\"type\":\"bytes32\"}],\"name\":\"settlePriceFeedOracle\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"caption\",\"type\":\"string\"},{\"internalType\":\"int8\",\"name\":\"exponent\",\"type\":\"int8\"},{\"internalType\":\"bytes\",\"name\":\"radonBytecode\",\"type\":\"bytes\"}],\"name\":\"settlePriceFeedRadonBytecode\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"caption\",\"type\":\"string\"},{\"internalType\":\"int8\",\"name\":\"exponent\",\"type\":\"int8\"},{\"internalType\":\"Witnet.RadonHash\",\"name\":\"radonHash\",\"type\":\"bytes32\"}],\"name\":\"settlePriceFeedRadonHash\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"caption\",\"type\":\"string\"},{\"components\":[{\"internalType\":\"uint24\",\"name\":\"callbackGas\",\"type\":\"uint24\"},{\"internalType\":\"bool\",\"name\":\"computeEma\",\"type\":\"bool\"},{\"internalType\":\"uint24\",\"name\":\"cooldownSecs\",\"type\":\"uint24\"},{\"internalType\":\"uint24\",\"name\":\"heartbeatSecs\",\"type\":\"uint24\"},{\"internalType\":\"uint16\",\"name\":\"maxDeviation1000\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"minWitnesses\",\"type\":\"uint16\"}],\"internalType\":\"struct IWitPriceFeedsTypes.UpdateConditions\",\"name\":\"conditions\",\"type\":\"tuple\"}],\"name\":\"settlePriceFeedUpdateConditions\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/interfaces/IWitPriceFeedsAdmin.sol\":\"IWitPriceFeedsAdmin\"},\"evmVersion\":\"prague\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/interfaces/IWitPriceFeedsAdmin.sol\":{\"keccak256\":\"0xd05b103840eeb8a4770e140dbe91bd40dd33d92959d226c57a2ae45a5e615355\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://29e6104b0b62c676bb797ce8d01512550058f5b6de210b2467ba9bb0dfe8c00f\",\"dweb:/ipfs/QmUAgsVJYHqiRFrrnWCYo5vGJRaN4VsZvcBXJWYJUF5QyV\"]},\"project:/contracts/interfaces/IWitPriceFeedsTypes.sol\":{\"keccak256\":\"0x68e2189e863f50e8d0aad8394a526df00c1e626886c23aa24c915427e5285e46\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f5ff40355d4144e7c08f033b55e9ef1b5994bbd83bbfbd7a41129b141f164194\",\"dweb:/ipfs/QmXMhM7GXaVXnCQ1VFB4kPhbhbfktuNFKqMGXMtWLgUk3d\"]},\"project:/contracts/interfaces/legacy/IWitPyth.sol\":{\"keccak256\":\"0xa06a34a5e553beae7dbe09a5d1049557190511e696a1b855ab5e1196a06048a2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d2c814b7be5539147c0ba1b55f6cddcad382d5e5e9f9de545d2d428c1989c7de\",\"dweb:/ipfs/QmY8KSV3PW2FBQVzXidLQ21KvDJ1v6y8WHaV8uxsqThJCC\"]},\"project:/contracts/interfaces/legacy/IWitPythErrors.sol\":{\"keccak256\":\"0x7d10dfd625a4914e4017cde140397f9f236f726ea82b4feed1d889f852866c1d\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://5bbf8dc2bbac36cf0a141f7062b6ed8143cffaee7969a1afc3cf0d1971e8cf18\",\"dweb:/ipfs/QmbLiZwggZwhiTLJurBkAu492xAZZ9MXWiknsuGnLYNXhP\"]},\"project:/contracts/interfaces/legacy/IWitPythEvents.sol\":{\"keccak256\":\"0xacca21f4bb4d740de63f4f2e469e8313b1d8f9a7d2340efcc17981c3510c2800\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://da8b0493082593838fbc4df2431c1983a82165ae1f17215e988951c0c1ef3882\",\"dweb:/ipfs/QmNUX9K3UqxiR9igT87iLja8h3u7htp83ZhAGZ6UgD3BZP\"]},\"project:/contracts/libs/Bech32.sol\":{\"keccak256\":\"0x14618323a0efe7586c20906a2e9cee7ad63baa976ff231c57f7f2d7d3707fb8b\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a19f05fe84047a7a6d3d6fc39972b432e6e536aa70472386a9d7a6d9aab64a64\",\"dweb:/ipfs/QmcHwUY66yjiotRH4Q3kbRvSzcHyLQ1yHL3KbtQKiMhtZE\"]},\"project:/contracts/libs/Secp256k1.sol\":{\"keccak256\":\"0xbe686002da5004ff39dd70709f3820eba2afe9323ae9cb894009c161e4b1a666\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://18fab91775216de0707cea9ad285b10be09127461a13432fea358bf9cb2a0c2e\",\"dweb:/ipfs/QmeRUGsgstnM4hxM9hpkBf3L6cE5btirEaowcMxmuw3utj\"]},\"project:/contracts/libs/Witnet.sol\":{\"keccak256\":\"0x1d446c3e534e40e676d1763bfb2897fadfac8afed904ab757843d7d6770b0a6c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://338fb1073f17d64e8d31bfe492d9475ce906788ee08e6489ce30413f91dc1328\",\"dweb:/ipfs/QmPe5QX2AGTnQFjse1Xttq4ZYWwYAiXoySb5VUui3PqPhk\"]},\"project:/contracts/libs/WitnetBuffer.sol\":{\"keccak256\":\"0x8e07aebe2954ab3e6f2d8eceedb12db7cf915c1f3e8630f4fa9999cecb1c78ec\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ed6c54cc901183d61546e8fd15bd5ea8ef238ebc915642946071d435dd7481ea\",\"dweb:/ipfs/Qmcaqta7YjUSBbBUGqoh44bsCS6UqqoyHjBuz4qnKBShXM\"]},\"project:/contracts/libs/WitnetCBOR.sol\":{\"keccak256\":\"0xd99308373575cc10fb7f2ceb0f6a8625f3911275c1fa27811fae498d98d03d97\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b4909a999d7b660a2dc54ca957b6eccfa523e2765fc4d6a2574dee7d5cd67b43\",\"dweb:/ipfs/QmWGQT4KDcfSFe1hcHVoWx6E4PhYMaod5iLpJCWBEeShzh\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "immutableReferences": {}, "generatedSources": [], "deployedGeneratedSources": [], "sourceMap": "", "deployedSourceMap": "", "source": "// SPDX-License-Identifier: MIT\r\n\r\npragma solidity >=0.8.0 <0.9.0;\r\n\r\nimport {IWitPriceFeedsTypes} from \"./IWitPriceFeedsTypes.sol\";\r\nimport {Witnet} from \"../libs/Witnet.sol\";\r\n\r\ninterface IWitPriceFeedsAdmin {\r\n\r\n function acceptOwnership() external;\r\n function owner() external view returns (address);\r\n function pendingOwner() external returns (address);\r\n function removePriceFeed(string calldata, bool) external returns (bytes4);\r\n \r\n function settleConsumer(address) external;\r\n function settleDefaultUpdateConditions(IWitPriceFeedsTypes.UpdateConditions calldata) external;\r\n \r\n function settlePriceFeedMapper(\r\n string calldata caption, \r\n int8 exponent, \r\n IWitPriceFeedsTypes.Mappers mapper, \r\n string[] calldata deps\r\n ) external returns (bytes4);\r\n \r\n function settlePriceFeedOracle(\r\n string calldata caption, \r\n int8 exponent, \r\n IWitPriceFeedsTypes.Oracles oracle, \r\n address target, \r\n bytes32 sources\r\n ) external returns (bytes4);\r\n \r\n function settlePriceFeedRadonBytecode(\r\n string calldata caption, \r\n int8 exponent, \r\n bytes calldata radonBytecode\r\n ) external returns (bytes4);\r\n\r\n function settlePriceFeedRadonHash(\r\n string calldata caption, \r\n int8 exponent, \r\n Witnet.RadonHash radonHash\r\n ) external returns (bytes4);\r\n\r\n function settlePriceFeedUpdateConditions(\r\n string calldata caption, \r\n IWitPriceFeedsTypes.UpdateConditions calldata conditions\r\n ) external;\r\n\r\n function transferOwnership(address) external;\r\n}\r\n", "sourcePath": "C:\\Users\\guill\\github\\guidiaz\\witnet-solidity-bridge\\contracts\\interfaces\\IWitPriceFeedsAdmin.sol", "ast": { "absolutePath": "project:/contracts/interfaces/IWitPriceFeedsAdmin.sol", "exportedSymbols": { "IWitPriceFeedsAdmin": [ 27955 ], "IWitPriceFeedsTypes": [ 28156 ], "Witnet": [ 40741 ] }, "id": 27956, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 27850, "literals": [ "solidity", ">=", "0.8", ".0", "<", "0.9", ".0" ], "nodeType": "PragmaDirective", "src": "35:31:81" }, { "absolutePath": "project:/contracts/interfaces/IWitPriceFeedsTypes.sol", "file": "./IWitPriceFeedsTypes.sol", "id": 27852, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 27956, "sourceUnit": 28157, "src": "70:62:81", "symbolAliases": [ { "foreign": { "id": 27851, "name": "IWitPriceFeedsTypes", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 28156, "src": "78:19:81", "typeDescriptions": {} }, "nameLocation": "-1:-1:-1" } ], "unitAlias": "" }, { "absolutePath": "project:/contracts/libs/Witnet.sol", "file": "../libs/Witnet.sol", "id": 27854, "nameLocation": "-1:-1:-1", "nodeType": "ImportDirective", "scope": 27956, "sourceUnit": 40742, "src": "134:42:81", "symbolAliases": [ { "foreign": { "id": 27853, "name": "Witnet", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 40741, "src": "142:6:81", "typeDescriptions": {} }, "nameLocation": "-1:-1:-1" } ], "unitAlias": "" }, { "abstract": false, "baseContracts": [], "canonicalName": "IWitPriceFeedsAdmin", "contractDependencies": [], "contractKind": "interface", "fullyImplemented": false, "id": 27955, "linearizedBaseContracts": [ 27955 ], "name": "IWitPriceFeedsAdmin", "nameLocation": "190:19:81", "nodeType": "ContractDefinition", "nodes": [ { "functionSelector": "79ba5097", "id": 27857, "implemented": false, "kind": "function", "modifiers": [], "name": "acceptOwnership", "nameLocation": "228:15:81", "nodeType": "FunctionDefinition", "parameters": { "id": 27855, "nodeType": "ParameterList", "parameters": [], "src": "243:2:81" }, "returnParameters": { "id": 27856, "nodeType": "ParameterList", "parameters": [], "src": "254:0:81" }, "scope": 27955, "src": "219:36:81", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "8da5cb5b", "id": 27862, "implemented": false, "kind": "function", "modifiers": [], "name": "owner", "nameLocation": "270:5:81", "nodeType": "FunctionDefinition", "parameters": { "id": 27858, "nodeType": "ParameterList", "parameters": [], "src": "275:2:81" }, "returnParameters": { "id": 27861, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 27860, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 27862, "src": "301:7:81", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 27859, "name": "address", "nodeType": "ElementaryTypeName", "src": "301:7:81", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "300:9:81" }, "scope": 27955, "src": "261:49:81", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "functionSelector": "e30c3978", "id": 27867, "implemented": false, "kind": "function", "modifiers": [], "name": "pendingOwner", "nameLocation": "325:12:81", "nodeType": "FunctionDefinition", "parameters": { "id": 27863, "nodeType": "ParameterList", "parameters": [], "src": "337:2:81" }, "returnParameters": { "id": 27866, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 27865, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 27867, "src": "358:7:81", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 27864, "name": "address", "nodeType": "ElementaryTypeName", "src": "358:7:81", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "357:9:81" }, "scope": 27955, "src": "316:51:81", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "4c7510d0", "id": 27876, "implemented": false, "kind": "function", "modifiers": [], "name": "removePriceFeed", "nameLocation": "382:15:81", "nodeType": "FunctionDefinition", "parameters": { "id": 27872, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 27869, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 27876, "src": "398:15:81", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_string_calldata_ptr", "typeString": "string" }, "typeName": { "id": 27868, "name": "string", "nodeType": "ElementaryTypeName", "src": "398:6:81", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 27871, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 27876, "src": "415:4:81", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 27870, "name": "bool", "nodeType": "ElementaryTypeName", "src": "415:4:81", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "397:23:81" }, "returnParameters": { "id": 27875, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 27874, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 27876, "src": "439:6:81", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 27873, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "439:6:81", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "visibility": "internal" } ], "src": "438:8:81" }, "scope": 27955, "src": "373:74:81", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "79393a8b", "id": 27881, "implemented": false, "kind": "function", "modifiers": [], "name": "settleConsumer", "nameLocation": "468:14:81", "nodeType": "FunctionDefinition", "parameters": { "id": 27879, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 27878, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 27881, "src": "483:7:81", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 27877, "name": "address", "nodeType": "ElementaryTypeName", "src": "483:7:81", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "482:9:81" }, "returnParameters": { "id": 27880, "nodeType": "ParameterList", "parameters": [], "src": "500:0:81" }, "scope": 27955, "src": "459:42:81", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "aba146ff", "id": 27887, "implemented": false, "kind": "function", "modifiers": [], "name": "settleDefaultUpdateConditions", "nameLocation": "516:29:81", "nodeType": "FunctionDefinition", "parameters": { "id": 27885, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 27884, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 27887, "src": "546:45:81", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_struct$_UpdateConditions_$28153_calldata_ptr", "typeString": "struct IWitPriceFeedsTypes.UpdateConditions" }, "typeName": { "id": 27883, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 27882, "name": "IWitPriceFeedsTypes.UpdateConditions", "nameLocations": [ "546:19:81", "566:16:81" ], "nodeType": "IdentifierPath", "referencedDeclaration": 28153, "src": "546:36:81" }, "referencedDeclaration": 28153, "src": "546:36:81", "typeDescriptions": { "typeIdentifier": "t_struct$_UpdateConditions_$28153_storage_ptr", "typeString": "struct IWitPriceFeedsTypes.UpdateConditions" } }, "visibility": "internal" } ], "src": "545:47:81" }, "returnParameters": { "id": 27886, "nodeType": "ParameterList", "parameters": [], "src": "601:0:81" }, "scope": 27955, "src": "507:95:81", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "60892193", "id": 27902, "implemented": false, "kind": "function", "modifiers": [], "name": "settlePriceFeedMapper", "nameLocation": "623:21:81", "nodeType": "FunctionDefinition", "parameters": { "id": 27898, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 27889, "mutability": "mutable", "name": "caption", "nameLocation": "675:7:81", "nodeType": "VariableDeclaration", "scope": 27902, "src": "659:23:81", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_string_calldata_ptr", "typeString": "string" }, "typeName": { "id": 27888, "name": "string", "nodeType": "ElementaryTypeName", "src": "659:6:81", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 27891, "mutability": "mutable", "name": "exponent", "nameLocation": "703:8:81", "nodeType": "VariableDeclaration", "scope": 27902, "src": "698:13:81", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int8", "typeString": "int8" }, "typeName": { "id": 27890, "name": "int8", "nodeType": "ElementaryTypeName", "src": "698:4:81", "typeDescriptions": { "typeIdentifier": "t_int8", "typeString": "int8" } }, "visibility": "internal" }, { "constant": false, "id": 27894, "mutability": "mutable", "name": "mapper", "nameLocation": "755:6:81", "nodeType": "VariableDeclaration", "scope": 27902, "src": "727:34:81", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_enum$_Mappers_$28087", "typeString": "enum IWitPriceFeedsTypes.Mappers" }, "typeName": { "id": 27893, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 27892, "name": "IWitPriceFeedsTypes.Mappers", "nameLocations": [ "727:19:81", "747:7:81" ], "nodeType": "IdentifierPath", "referencedDeclaration": 28087, "src": "727:27:81" }, "referencedDeclaration": 28087, "src": "727:27:81", "typeDescriptions": { "typeIdentifier": "t_enum$_Mappers_$28087", "typeString": "enum IWitPriceFeedsTypes.Mappers" } }, "visibility": "internal" }, { "constant": false, "id": 27897, "mutability": "mutable", "name": "deps", "nameLocation": "795:4:81", "nodeType": "VariableDeclaration", "scope": 27902, "src": "777:22:81", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_calldata_ptr_$dyn_calldata_ptr", "typeString": "string[]" }, "typeName": { "baseType": { "id": 27895, "name": "string", "nodeType": "ElementaryTypeName", "src": "777:6:81", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "id": 27896, "nodeType": "ArrayTypeName", "src": "777:8:81", "typeDescriptions": { "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", "typeString": "string[]" } }, "visibility": "internal" } ], "src": "644:166:81" }, "returnParameters": { "id": 27901, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 27900, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 27902, "src": "829:6:81", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 27899, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "829:6:81", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "visibility": "internal" } ], "src": "828:8:81" }, "scope": 27955, "src": "614:223:81", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "e59a7808", "id": 27918, "implemented": false, "kind": "function", "modifiers": [], "name": "settlePriceFeedOracle", "nameLocation": "858:21:81", "nodeType": "FunctionDefinition", "parameters": { "id": 27914, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 27904, "mutability": "mutable", "name": "caption", "nameLocation": "910:7:81", "nodeType": "VariableDeclaration", "scope": 27918, "src": "894:23:81", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_string_calldata_ptr", "typeString": "string" }, "typeName": { "id": 27903, "name": "string", "nodeType": "ElementaryTypeName", "src": "894:6:81", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 27906, "mutability": "mutable", "name": "exponent", "nameLocation": "938:8:81", "nodeType": "VariableDeclaration", "scope": 27918, "src": "933:13:81", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int8", "typeString": "int8" }, "typeName": { "id": 27905, "name": "int8", "nodeType": "ElementaryTypeName", "src": "933:4:81", "typeDescriptions": { "typeIdentifier": "t_int8", "typeString": "int8" } }, "visibility": "internal" }, { "constant": false, "id": 27909, "mutability": "mutable", "name": "oracle", "nameLocation": "990:6:81", "nodeType": "VariableDeclaration", "scope": 27918, "src": "962:34:81", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_enum$_Oracles_$28092", "typeString": "enum IWitPriceFeedsTypes.Oracles" }, "typeName": { "id": 27908, "nodeType": "UserDefinedTypeName", "pathNode": { "id": 27907, "name": "IWitPriceFeedsTypes.Oracles", "nameLocations": [ "962:19:81", "982:7:81" ], "nodeType": "IdentifierPath", "referencedDeclaration": 28092, "src": "962:27:81" }, "referencedDeclaration": 28092, "src": "962:27:81", "typeDescriptions": { "typeIdentifier": "t_enum$_Oracles_$28092", "typeString": "enum IWitPriceFeedsTypes.Oracles" } }, "visibility": "internal" }, { "constant": false, "id": 27911, "mutability": "mutable", "name": "target", "nameLocation": "1020:6:81", "nodeType": "VariableDeclaration", "scope": 27918, "src": "1012:14:81", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 27910, "name": "address", "nodeType": "ElementaryTypeName", "src": "1012:7:81", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 27913, "mutability": "mutable", "name": "sources", "nameLocation": "1050:7:81", "nodeType": "VariableDeclaration", "scope": 27918, "src": "1042:15:81", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 27912, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "1042:7:81", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "visibility": "internal" } ], "src": "879:189:81" }, "returnParameters": { "id": 27917, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 27916, "mutability": "mutable", "name": "", "nameLocation": "-1:-1:-1", "nodeType": "VariableDeclaration", "scope": 27918, "src": "1087:6:81", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" }, "typeName": { "id": 27915, "name": "bytes4", "nodeType": "ElementaryTypeName", "src": "1087:6:81", "typeDescriptions": { "typeIdentifier": "t_bytes4", "typeString": "bytes4" } }, "visibility": "internal" } ], "src": "1086:8:81" }, "scope": 27955, "src": "849:246:81", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "functionSelector": "67e559ac", "id": 27929, "implemented": false, "kind": "function", "modifiers": [], "name": "settlePriceFeedRadonBytecode", "nameLocation": "1116:28:81", "nodeType": "FunctionDefinition", "parameters": { "id": 27925, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 27920, "mutability": "mutable", "name": "caption", "nameLocation": "1175:7:81", "nodeType": "VariableDeclaration", "scope": 27929, "src": "1159:23:81", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_string_calldata_ptr", "typeString": "string" }, "typeName": { "id": 27919, "name": "string", "nodeType": "ElementaryTypeName", "src": "1159:6:81", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "visibility": "internal" }, { "constant": false, "id": 27922, "mutability": "mutable", "name": "exponent", "nameLocation": "1203:8:81", "nodeType": "VariableDeclaration", "scope": 27929, "src": "1198:13:81", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_int8", "typeString": "int8" }, "typeName": { "id": 27921, "name": "int8", "nodeType": "ElementaryTypeName", "src": "1198:4:81", "typeDescriptions": { "typeIdentifier": "t_int8", "typeString": "int8" } }, "visibility": "internal"