witnet-solidity-bridge
Version:
Witnet Solidity Bridge contracts for EVM-compatible chains
1,160 lines • 55.9 kB
JSON
{
"contractName": "IWitPriceFeedsEvents",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": false,
"internalType": "IWitPriceFeedsTypes.ID4",
"name": "id4",
"type": "bytes4"
},
{
"indexed": false,
"internalType": "string",
"name": "caption",
"type": "string"
},
{
"indexed": false,
"internalType": "int8",
"name": "exponent",
"type": "int8"
},
{
"indexed": false,
"internalType": "enum IWitPriceFeedsTypes.Mappers",
"name": "mapper",
"type": "uint8"
},
{
"indexed": false,
"internalType": "string[]",
"name": "dependencies",
"type": "string[]"
}
],
"name": "PriceFeedMapper",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": false,
"internalType": "IWitPriceFeedsTypes.ID4",
"name": "id4",
"type": "bytes4"
},
{
"indexed": false,
"internalType": "string",
"name": "caption",
"type": "string"
},
{
"indexed": false,
"internalType": "int8",
"name": "exponent",
"type": "int8"
},
{
"indexed": false,
"internalType": "enum IWitPriceFeedsTypes.Oracles",
"name": "oracle",
"type": "uint8"
},
{
"indexed": false,
"internalType": "address",
"name": "oracleAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "oracleSources",
"type": "bytes32"
}
],
"name": "PriceFeedOracle",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": false,
"internalType": "IWitPriceFeedsTypes.ID4",
"name": "id4",
"type": "bytes4"
},
{
"indexed": false,
"internalType": "string",
"name": "caption",
"type": "string"
}
],
"name": "PriceFeedRemoved",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "IWitPriceFeedsTypes.ID4",
"name": "ID4",
"type": "bytes4"
},
{
"indexed": false,
"internalType": "Witnet.Timestamp",
"name": "timestamp",
"type": "uint64"
},
{
"indexed": false,
"internalType": "Witnet.TransactionHash",
"name": "trail",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint64",
"name": "price",
"type": "uint64"
},
{
"indexed": false,
"internalType": "int56",
"name": "deltaPrice",
"type": "int56"
},
{
"indexed": false,
"internalType": "int8",
"name": "exponent",
"type": "int8"
}
],
"name": "PriceFeedUpdate",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": false,
"internalType": "IWitPriceFeedsTypes.ID4",
"name": "id4",
"type": "bytes4"
},
{
"indexed": false,
"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"
}
],
"indexed": false,
"internalType": "struct IWitPriceFeedsTypes.UpdateConditions",
"name": "conditions",
"type": "tuple"
}
],
"name": "PriceFeedUpdateConditions",
"type": "event"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"IWitPriceFeedsTypes.ID4\",\"name\":\"id4\",\"type\":\"bytes4\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"caption\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"int8\",\"name\":\"exponent\",\"type\":\"int8\"},{\"indexed\":false,\"internalType\":\"enum IWitPriceFeedsTypes.Mappers\",\"name\":\"mapper\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"string[]\",\"name\":\"dependencies\",\"type\":\"string[]\"}],\"name\":\"PriceFeedMapper\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"IWitPriceFeedsTypes.ID4\",\"name\":\"id4\",\"type\":\"bytes4\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"caption\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"int8\",\"name\":\"exponent\",\"type\":\"int8\"},{\"indexed\":false,\"internalType\":\"enum IWitPriceFeedsTypes.Oracles\",\"name\":\"oracle\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oracleAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"oracleSources\",\"type\":\"bytes32\"}],\"name\":\"PriceFeedOracle\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"IWitPriceFeedsTypes.ID4\",\"name\":\"id4\",\"type\":\"bytes4\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"caption\",\"type\":\"string\"}],\"name\":\"PriceFeedRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"IWitPriceFeedsTypes.ID4\",\"name\":\"ID4\",\"type\":\"bytes4\"},{\"indexed\":false,\"internalType\":\"Witnet.Timestamp\",\"name\":\"timestamp\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"Witnet.TransactionHash\",\"name\":\"trail\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"price\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"int56\",\"name\":\"deltaPrice\",\"type\":\"int56\"},{\"indexed\":false,\"internalType\":\"int8\",\"name\":\"exponent\",\"type\":\"int8\"}],\"name\":\"PriceFeedUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"IWitPriceFeedsTypes.ID4\",\"name\":\"id4\",\"type\":\"bytes4\"},{\"indexed\":false,\"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\"}],\"indexed\":false,\"internalType\":\"struct IWitPriceFeedsTypes.UpdateConditions\",\"name\":\"conditions\",\"type\":\"tuple\"}],\"name\":\"PriceFeedUpdateConditions\",\"type\":\"event\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"events\":{\"PriceFeedMapper(address,bytes4,string,int8,uint8,string[])\":{\"notice\":\"Emitted when a new routed price feed gets settled.\"},\"PriceFeedOracle(address,bytes4,string,int8,uint8,address,bytes32)\":{\"notice\":\"Emitted when a new oraclized price feed gets settled.\"},\"PriceFeedRemoved(address,bytes4,string)\":{\"notice\":\"Emitted when a price feeds gets removed from the list of supported price feeds.\"},\"PriceFeedUpdateConditions(address,bytes4,string,(uint24,bool,uint24,uint24,uint16,uint16))\":{\"notice\":\"Emitted when the update conditions of some existing price feed get altered.\"}},\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/interfaces/IWitPriceFeedsEvents.sol\":\"IWitPriceFeedsEvents\"},\"evmVersion\":\"prague\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/interfaces/IWitPriceFeedsEvents.sol\":{\"keccak256\":\"0xf8b1a2ca8dd8dc8a5b8debf18f4c32df404709a4b03353c939e57a92a4e41b4e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://f755b639781013ae0bae92f063b1f5b440c187bbc9a7f938b6982e579114acfe\",\"dweb:/ipfs/QmZafsjeELGnVdbXvsiXeQ82vR7DBFCrwDLGqeopgxBgyC\"]},\"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.17 <0.9.0;\r\n\r\nimport {IWitPriceFeedsTypes, Witnet} from \"./IWitPriceFeedsTypes.sol\";\r\n\r\ninterface IWitPriceFeedsEvents {\r\n /// Emitted when a new routed price feed gets settled.\r\n event PriceFeedMapper(\r\n address indexed from, \r\n IWitPriceFeedsTypes.ID4 id4, \r\n string caption, \r\n int8 exponent, \r\n IWitPriceFeedsTypes.Mappers mapper,\r\n string[] dependencies\r\n );\r\n\r\n /// Emitted when a new oraclized price feed gets settled.\r\n event PriceFeedOracle(\r\n address indexed from, \r\n IWitPriceFeedsTypes.ID4 id4, \r\n string caption, \r\n int8 exponent, \r\n IWitPriceFeedsTypes.Oracles oracle,\r\n address oracleAddress,\r\n bytes32 oracleSources\r\n );\r\n\r\n /// Emitted when a price feeds gets removed from the list of supported price feeds.\r\n event PriceFeedRemoved(\r\n address indexed from, \r\n IWitPriceFeedsTypes.ID4 id4, \r\n string caption\r\n );\r\n\r\n event PriceFeedUpdate(\r\n IWitPriceFeedsTypes.ID4 indexed ID4,\r\n Witnet.Timestamp timestamp, \r\n Witnet.TransactionHash trail,\r\n uint64 price,\r\n int56 deltaPrice,\r\n int8 exponent\r\n );\r\n\r\n /// Emitted when the update conditions of some existing price feed get altered.\r\n event PriceFeedUpdateConditions(\r\n address indexed from, \r\n IWitPriceFeedsTypes.ID4 id4, \r\n string caption,\r\n IWitPriceFeedsTypes.UpdateConditions conditions\r\n );\r\n}",
"sourcePath": "C:\\Users\\guill\\github\\guidiaz\\witnet-solidity-bridge\\contracts\\interfaces\\IWitPriceFeedsEvents.sol",
"ast": {
"absolutePath": "project:/contracts/interfaces/IWitPriceFeedsEvents.sol",
"exportedSymbols": {
"IWitPriceFeedsEvents": [
28075
],
"IWitPriceFeedsTypes": [
28156
],
"Witnet": [
40741
]
},
"id": 28076,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 27994,
"literals": [
"solidity",
">=",
"0.8",
".17",
"<",
"0.9",
".0"
],
"nodeType": "PragmaDirective",
"src": "35:32:83"
},
{
"absolutePath": "project:/contracts/interfaces/IWitPriceFeedsTypes.sol",
"file": "./IWitPriceFeedsTypes.sol",
"id": 27997,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 28076,
"sourceUnit": 28157,
"src": "71:70:83",
"symbolAliases": [
{
"foreign": {
"id": 27995,
"name": "IWitPriceFeedsTypes",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 28156,
"src": "79:19:83",
"typeDescriptions": {}
},
"nameLocation": "-1:-1:-1"
},
{
"foreign": {
"id": 27996,
"name": "Witnet",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 40741,
"src": "100:6:83",
"typeDescriptions": {}
},
"nameLocation": "-1:-1:-1"
}
],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IWitPriceFeedsEvents",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": true,
"id": 28075,
"linearizedBaseContracts": [
28075
],
"name": "IWitPriceFeedsEvents",
"nameLocation": "155:20:83",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": {
"id": 27998,
"nodeType": "StructuredDocumentation",
"src": "183:54:83",
"text": "Emitted when a new routed price feed gets settled."
},
"eventSelector": "c15d7f9f6442190dc6f24107279211aeb0c9e831201b7660eb0dee70e4393804",
"id": 28015,
"name": "PriceFeedMapper",
"nameLocation": "249:15:83",
"nodeType": "EventDefinition",
"parameters": {
"id": 28014,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28000,
"indexed": true,
"mutability": "mutable",
"name": "from",
"nameLocation": "295:4:83",
"nodeType": "VariableDeclaration",
"scope": 28015,
"src": "279:20:83",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 27999,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "279:7:83",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28003,
"indexed": false,
"mutability": "mutable",
"name": "id4",
"nameLocation": "339:3:83",
"nodeType": "VariableDeclaration",
"scope": 28015,
"src": "315:27:83",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_userDefinedValueType$_ID4_$28155",
"typeString": "IWitPriceFeedsTypes.ID4"
},
"typeName": {
"id": 28002,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 28001,
"name": "IWitPriceFeedsTypes.ID4",
"nameLocations": [
"315:19:83",
"335:3:83"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 28155,
"src": "315:23:83"
},
"referencedDeclaration": 28155,
"src": "315:23:83",
"typeDescriptions": {
"typeIdentifier": "t_userDefinedValueType$_ID4_$28155",
"typeString": "IWitPriceFeedsTypes.ID4"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28005,
"indexed": false,
"mutability": "mutable",
"name": "caption",
"nameLocation": "365:7:83",
"nodeType": "VariableDeclaration",
"scope": 28015,
"src": "358:14:83",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 28004,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "358:6:83",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28007,
"indexed": false,
"mutability": "mutable",
"name": "exponent",
"nameLocation": "393:8:83",
"nodeType": "VariableDeclaration",
"scope": 28015,
"src": "388:13:83",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_int8",
"typeString": "int8"
},
"typeName": {
"id": 28006,
"name": "int8",
"nodeType": "ElementaryTypeName",
"src": "388:4:83",
"typeDescriptions": {
"typeIdentifier": "t_int8",
"typeString": "int8"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28010,
"indexed": false,
"mutability": "mutable",
"name": "mapper",
"nameLocation": "445:6:83",
"nodeType": "VariableDeclaration",
"scope": 28015,
"src": "417:34:83",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Mappers_$28087",
"typeString": "enum IWitPriceFeedsTypes.Mappers"
},
"typeName": {
"id": 28009,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 28008,
"name": "IWitPriceFeedsTypes.Mappers",
"nameLocations": [
"417:19:83",
"437:7:83"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 28087,
"src": "417:27:83"
},
"referencedDeclaration": 28087,
"src": "417:27:83",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Mappers_$28087",
"typeString": "enum IWitPriceFeedsTypes.Mappers"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28013,
"indexed": false,
"mutability": "mutable",
"name": "dependencies",
"nameLocation": "475:12:83",
"nodeType": "VariableDeclaration",
"scope": 28015,
"src": "466:21:83",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_string_memory_ptr_$dyn_memory_ptr",
"typeString": "string[]"
},
"typeName": {
"baseType": {
"id": 28011,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "466:6:83",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"id": 28012,
"nodeType": "ArrayTypeName",
"src": "466:8:83",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr",
"typeString": "string[]"
}
},
"visibility": "internal"
}
],
"src": "264:234:83"
},
"src": "243:256:83"
},
{
"anonymous": false,
"documentation": {
"id": 28016,
"nodeType": "StructuredDocumentation",
"src": "507:57:83",
"text": "Emitted when a new oraclized price feed gets settled."
},
"eventSelector": "ae160f4bc68d30bb720cf2faa436df303e1cb02624a87bf4af0a30d51783d87b",
"id": 28034,
"name": "PriceFeedOracle",
"nameLocation": "576:15:83",
"nodeType": "EventDefinition",
"parameters": {
"id": 28033,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28018,
"indexed": true,
"mutability": "mutable",
"name": "from",
"nameLocation": "622:4:83",
"nodeType": "VariableDeclaration",
"scope": 28034,
"src": "606:20:83",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 28017,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "606:7:83",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28021,
"indexed": false,
"mutability": "mutable",
"name": "id4",
"nameLocation": "666:3:83",
"nodeType": "VariableDeclaration",
"scope": 28034,
"src": "642:27:83",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_userDefinedValueType$_ID4_$28155",
"typeString": "IWitPriceFeedsTypes.ID4"
},
"typeName": {
"id": 28020,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 28019,
"name": "IWitPriceFeedsTypes.ID4",
"nameLocations": [
"642:19:83",
"662:3:83"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 28155,
"src": "642:23:83"
},
"referencedDeclaration": 28155,
"src": "642:23:83",
"typeDescriptions": {
"typeIdentifier": "t_userDefinedValueType$_ID4_$28155",
"typeString": "IWitPriceFeedsTypes.ID4"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28023,
"indexed": false,
"mutability": "mutable",
"name": "caption",
"nameLocation": "692:7:83",
"nodeType": "VariableDeclaration",
"scope": 28034,
"src": "685:14:83",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 28022,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "685:6:83",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28025,
"indexed": false,
"mutability": "mutable",
"name": "exponent",
"nameLocation": "720:8:83",
"nodeType": "VariableDeclaration",
"scope": 28034,
"src": "715:13:83",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_int8",
"typeString": "int8"
},
"typeName": {
"id": 28024,
"name": "int8",
"nodeType": "ElementaryTypeName",
"src": "715:4:83",
"typeDescriptions": {
"typeIdentifier": "t_int8",
"typeString": "int8"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28028,
"indexed": false,
"mutability": "mutable",
"name": "oracle",
"nameLocation": "772:6:83",
"nodeType": "VariableDeclaration",
"scope": 28034,
"src": "744:34:83",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Oracles_$28092",
"typeString": "enum IWitPriceFeedsTypes.Oracles"
},
"typeName": {
"id": 28027,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 28026,
"name": "IWitPriceFeedsTypes.Oracles",
"nameLocations": [
"744:19:83",
"764:7:83"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 28092,
"src": "744:27:83"
},
"referencedDeclaration": 28092,
"src": "744:27:83",
"typeDescriptions": {
"typeIdentifier": "t_enum$_Oracles_$28092",
"typeString": "enum IWitPriceFeedsTypes.Oracles"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28030,
"indexed": false,
"mutability": "mutable",
"name": "oracleAddress",
"nameLocation": "801:13:83",
"nodeType": "VariableDeclaration",
"scope": 28034,
"src": "793:21:83",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 28029,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "793:7:83",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28032,
"indexed": false,
"mutability": "mutable",
"name": "oracleSources",
"nameLocation": "837:13:83",
"nodeType": "VariableDeclaration",
"scope": 28034,
"src": "829:21:83",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 28031,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "829:7:83",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "591:270:83"
},
"src": "570:292:83"
},
{
"anonymous": false,
"documentation": {
"id": 28035,
"nodeType": "StructuredDocumentation",
"src": "870:83:83",
"text": "Emitted when a price feeds gets removed from the list of supported price feeds."
},
"eventSelector": "757500535198cca670e5ed07230e87648f077ff0ec74b0cef5df05db58a99618",
"id": 28044,
"name": "PriceFeedRemoved",
"nameLocation": "965:16:83",
"nodeType": "EventDefinition",
"parameters": {
"id": 28043,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28037,
"indexed": true,
"mutability": "mutable",
"name": "from",
"nameLocation": "1008:4:83",
"nodeType": "VariableDeclaration",
"scope": 28044,
"src": "992:20:83",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 28036,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "992:7:83",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28040,
"indexed": false,
"mutability": "mutable",
"name": "id4",
"nameLocation": "1048:3:83",
"nodeType": "VariableDeclaration",
"scope": 28044,
"src": "1024:27:83",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_userDefinedValueType$_ID4_$28155",
"typeString": "IWitPriceFeedsTypes.ID4"
},
"typeName": {
"id": 28039,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 28038,
"name": "IWitPriceFeedsTypes.ID4",
"nameLocations": [
"1024:19:83",
"1044:3:83"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 28155,
"src": "1024:23:83"
},
"referencedDeclaration": 28155,
"src": "1024:23:83",
"typeDescriptions": {
"typeIdentifier": "t_userDefinedValueType$_ID4_$28155",
"typeString": "IWitPriceFeedsTypes.ID4"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28042,
"indexed": false,
"mutability": "mutable",
"name": "caption",
"nameLocation": "1070:7:83",
"nodeType": "VariableDeclaration",
"scope": 28044,
"src": "1063:14:83",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 28041,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "1063:6:83",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "981:103:83"
},
"src": "959:126:83"
},
{
"anonymous": false,
"eventSelector": "0800977f281a92a8fb15f0b059791b2ffcc82fdc78be5227cec46afdb45f947d",
"id": 28061,
"name": "PriceFeedUpdate",
"nameLocation": "1099:15:83",
"nodeType": "EventDefinition",
"parameters": {
"id": 28060,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28047,
"indexed": true,
"mutability": "mutable",
"name": "ID4",
"nameLocation": "1157:3:83",
"nodeType": "VariableDeclaration",
"scope": 28061,
"src": "1125:35:83",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_userDefinedValueType$_ID4_$28155",
"typeString": "IWitPriceFeedsTypes.ID4"
},
"typeName": {
"id": 28046,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 28045,
"name": "IWitPriceFeedsTypes.ID4",
"nameLocations": [
"1125:19:83",
"1145:3:83"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 28155,
"src": "1125:23:83"
},
"referencedDeclaration": 28155,
"src": "1125:23:83",
"typeDescriptions": {
"typeIdentifier": "t_userDefinedValueType$_ID4_$28155",
"typeString": "IWitPriceFeedsTypes.ID4"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28050,
"indexed": false,
"mutability": "mutable",
"name": "timestamp",
"nameLocation": "1188:9:83",
"nodeType": "VariableDeclaration",
"scope": 28061,
"src": "1171:26:83",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_userDefinedValueType$_Timestamp_$37157",
"typeString": "Witnet.Timestamp"
},
"typeName": {
"id": 28049,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 28048,
"name": "Witnet.Timestamp",
"nameLocations": [
"1171:6:83",
"1178:9:83"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 37157,
"src": "1171:16:83"
},
"referencedDeclaration": 37157,
"src": "1171:16:83",
"typeDescriptions": {
"typeIdentifier": "t_userDefinedValueType$_Timestamp_$37157",
"typeString": "Witnet.Timestamp"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28053,
"indexed": false,
"mutability": "mutable",
"name": "trail",
"nameLocation": "1232:5:83",
"nodeType": "VariableDeclaration",
"scope": 28061,
"src": "1209:28:83",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_userDefinedValueType$_TransactionHash_$37159",
"typeString": "Witnet.TransactionHash"
},
"typeName": {
"id": 28052,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 28051,
"name": "Witnet.TransactionHash",
"nameLocations": [
"1209:6:83",
"1216:15:83"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 37159,
"src": "1209:22:83"
},
"referencedDeclaration": 37159,
"src": "1209:22:83",
"typeDescriptions": {
"typeIdentifier": "t_userDefinedValueType$_TransactionHash_$37159",
"typeString": "Witnet.TransactionHash"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28055,
"indexed": false,
"mutability": "mutable",
"name": "price",
"nameLocation": "1255:5:83",
"nodeType": "VariableDeclaration",
"scope": 28061,
"src": "1248:12:83",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
},
"typeName": {
"id": 28054,
"name": "uint64",
"nodeType": "ElementaryTypeName",
"src": "1248:6:83",
"typeDescriptions": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28057,
"indexed": false,
"mutability": "mutable",
"name": "deltaPrice",
"nameLocation": "1277:10:83",
"nodeType": "VariableDeclaration",
"scope": 28061,
"src": "1271:16:83",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_int56",
"typeString": "int56"
},
"typeName": {
"id": 28056,
"name": "int56",
"nodeType": "ElementaryTypeName",
"src": "1271:5:83",
"typeDescriptions": {
"typeIdentifier": "t_int56",
"typeString": "int56"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 28059,
"indexed": false,
"mutability": "mutable",
"name": "exponent",
"nameLocation": "1303:8:83",
"nodeType": "VariableDeclaration",
"scope": 28061,
"src": "1298:13:83",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_int8",
"typeString": "int8"
},
"typeName": {
"id": 28058,
"name": "int8",
"nodeType": "ElementaryTypeName",
"src": "1298:4:83",
"typeDescriptions": {
"typeIdentifier": "t_int8",
"typeString": "int8"
}
},
"visibility": "internal"
}
],
"src": "1114:204:83"
},
"src": "1093:226:83"
},
{
"anonymous": false,
"documentation": {
"id": 28062,
"nodeType": "StructuredDocumentation",
"src": "1327:79:83",
"text": "Emitted when the update conditions of some existing price feed get altered."
},
"eventSelector": "fce4e4e8186972930aa2a85773b7285ff9bd4d0b530ad546e582202e59f63abd",
"id": 28074,
"name": "PriceFeedUpdateConditions",
"nameLocation": "1418:25:83",
"nodeType": "EventDefinition",
"parameters": {
"id": 28073,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 28064,
"indexed": true,
"mutability": "mutable",
"name": "from",
"nameLocation": "1470:4:83",
"nodeType": "VariableDeclaration",
"scope": 28074,
"src": "1454:20:83",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 28063,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1454:7:83",
"stateMutability": "nonpayable",
"typeDescriptions": {
"type