witnet-solidity-bridge
Version:
Witnet Solidity Bridge contracts for EVM-compatible chains
258 lines • 10.1 kB
JSON
{
"contractName": "IWitPythEvents",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "id",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "uint64",
"name": "publishTime",
"type": "uint64"
},
{
"indexed": false,
"internalType": "int64",
"name": "price",
"type": "int64"
},
{
"indexed": false,
"internalType": "uint64",
"name": "",
"type": "uint64"
}
],
"name": "PriceFeedUpdate",
"type": "event"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.8.30+commit.73712a01\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"publishTime\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"int64\",\"name\":\"price\",\"type\":\"int64\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"name\":\"PriceFeedUpdate\",\"type\":\"event\"}],\"devdoc\":{\"events\":{\"PriceFeedUpdate(bytes32,uint64,int64,uint64)\":{\"details\":\"Emitted when the price feed with `id` has received a fresh update.\",\"params\":{\"id\":\"The Pyth Price Feed ID.\",\"price\":\"Price of the given price update.\",\"publishTime\":\"Publish time of the given price update.\"}}},\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/interfaces/legacy/IWitPythEvents.sol\":\"IWitPythEvents\"},\"evmVersion\":\"prague\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/interfaces/legacy/IWitPythEvents.sol\":{\"keccak256\":\"0xacca21f4bb4d740de63f4f2e469e8313b1d8f9a7d2340efcc17981c3510c2800\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://da8b0493082593838fbc4df2431c1983a82165ae1f17215e988951c0c1ef3882\",\"dweb:/ipfs/QmNUX9K3UqxiR9igT87iLja8h3u7htp83ZhAGZ6UgD3BZP\"]}},\"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\ninterface IWitPythEvents {\r\n /// @dev Emitted when the price feed with `id` has received a fresh update.\r\n /// @param id The Pyth Price Feed ID.\r\n /// @param publishTime Publish time of the given price update.\r\n /// @param price Price of the given price update.\r\n event PriceFeedUpdate(bytes32 indexed id, uint64 publishTime, int64 price, uint64);\r\n}\r\n",
"sourcePath": "C:\\Users\\guill\\github\\guidiaz\\witnet-solidity-bridge\\contracts\\interfaces\\legacy\\IWitPythEvents.sol",
"ast": {
"absolutePath": "project:/contracts/interfaces/legacy/IWitPythEvents.sol",
"exportedSymbols": {
"IWitPythEvents": [
29711
]
},
"id": 29712,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 29699,
"literals": [
"solidity",
">=",
"0.8",
".0",
"<",
"0.9",
".0"
],
"nodeType": "PragmaDirective",
"src": "35:31:106"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IWitPythEvents",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": true,
"id": 29711,
"linearizedBaseContracts": [
29711
],
"name": "IWitPythEvents",
"nameLocation": "80:14:106",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": {
"id": 29700,
"nodeType": "StructuredDocumentation",
"src": "102:241:106",
"text": "@dev Emitted when the price feed with `id` has received a fresh update.\n @param id The Pyth Price Feed ID.\n @param publishTime Publish time of the given price update.\n @param price Price of the given price update."
},
"eventSelector": "d06a6b7f4918494b3719217d1802786c1f5112a6c1d88fe2cfec00b4584f6aec",
"id": 29710,
"name": "PriceFeedUpdate",
"nameLocation": "355:15:106",
"nodeType": "EventDefinition",
"parameters": {
"id": 29709,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 29702,
"indexed": true,
"mutability": "mutable",
"name": "id",
"nameLocation": "387:2:106",
"nodeType": "VariableDeclaration",
"scope": 29710,
"src": "371:18:106",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 29701,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "371:7:106",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 29704,
"indexed": false,
"mutability": "mutable",
"name": "publishTime",
"nameLocation": "398:11:106",
"nodeType": "VariableDeclaration",
"scope": 29710,
"src": "391:18:106",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
},
"typeName": {
"id": 29703,
"name": "uint64",
"nodeType": "ElementaryTypeName",
"src": "391:6:106",
"typeDescriptions": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 29706,
"indexed": false,
"mutability": "mutable",
"name": "price",
"nameLocation": "417:5:106",
"nodeType": "VariableDeclaration",
"scope": 29710,
"src": "411:11:106",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_int64",
"typeString": "int64"
},
"typeName": {
"id": 29705,
"name": "int64",
"nodeType": "ElementaryTypeName",
"src": "411:5:106",
"typeDescriptions": {
"typeIdentifier": "t_int64",
"typeString": "int64"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 29708,
"indexed": false,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 29710,
"src": "424:6:106",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
},
"typeName": {
"id": 29707,
"name": "uint64",
"nodeType": "ElementaryTypeName",
"src": "424:6:106",
"typeDescriptions": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
}
},
"visibility": "internal"
}
],
"src": "370:61:106"
},
"src": "349:83:106"
}
],
"scope": 29712,
"src": "70:365:106",
"usedErrors": [],
"usedEvents": [
29710
]
}
],
"src": "35:402:106"
},
"compiler": {
"name": "solc",
"version": "0.8.30+commit.73712a01.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.16",
"updatedAt": "2025-10-15T14:34:45.937Z",
"devdoc": {
"events": {
"PriceFeedUpdate(bytes32,uint64,int64,uint64)": {
"details": "Emitted when the price feed with `id` has received a fresh update.",
"params": {
"id": "The Pyth Price Feed ID.",
"price": "Price of the given price update.",
"publishTime": "Publish time of the given price update."
}
}
},
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}