witnet-solidity-bridge
Version:
Witnet Solidity Bridge contracts for EVM-compatible chains
340 lines • 14 kB
JSON
{
"contractName": "IWitnetRandomnessEvents",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "blockNumber",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "evmTxGasPrice",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "evmRandomizeFee",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "witnetQueryId",
"type": "uint256"
},
{
"components": [
{
"internalType": "uint8",
"name": "committeeSize",
"type": "uint8"
},
{
"internalType": "uint64",
"name": "witnessingFeeNanoWit",
"type": "uint64"
}
],
"indexed": false,
"internalType": "struct WitnetV2.RadonSLA",
"name": "witnetQuerySLA",
"type": "tuple"
}
],
"name": "Randomizing",
"type": "event"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.8.25+commit.b61c2a91\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"evmTxGasPrice\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"evmRandomizeFee\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"witnetQueryId\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint8\",\"name\":\"committeeSize\",\"type\":\"uint8\"},{\"internalType\":\"uint64\",\"name\":\"witnessingFeeNanoWit\",\"type\":\"uint64\"}],\"indexed\":false,\"internalType\":\"struct WitnetV2.RadonSLA\",\"name\":\"witnetQuerySLA\",\"type\":\"tuple\"}],\"name\":\"Randomizing\",\"type\":\"event\"}],\"devdoc\":{\"author\":\"Witnet Foundation.\",\"kind\":\"dev\",\"methods\":{},\"title\":\"The Witnet Randomness generator interface.\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/interfaces/IWitnetRandomnessEvents.sol\":\"IWitnetRandomnessEvents\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/interfaces/IWitnetRandomnessEvents.sol\":{\"keccak256\":\"0x3d5510777da725c0772a04bc40a967c07713139bc50bb732462baccc1acfb0eb\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://481f334e116fa761e2d9fdc668cf9278c8d192f0b0511066637dab6011fac908\",\"dweb:/ipfs/QmS1Vh6Xab5oBmTxLempvGvpAsVfEQthbrg1aWXe2SqRRa\"]},\"project:/contracts/libs/Witnet.sol\":{\"keccak256\":\"0x65a87375dd79d63a83fb454b7199b6c999bd59c50b3b59d521c5c4d45a7d3cc3\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ca865b681d810c2fc5c3672ea6343c3bdf6fd71764ab824d25994744dc85866b\",\"dweb:/ipfs/QmPGcP3xGTNZfsQ9GSKdujNLRVs8dWDdubyUko1rbQqJNv\"]},\"project:/contracts/libs/WitnetBuffer.sol\":{\"keccak256\":\"0xa14570492eb5a313ddbacae0185c850ec99c67211eb33989a5e21d31bf06a150\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e83c11edb49cab6a767c0b685825bc22ece0d3d2897e0d54fe1923df5cc76ba5\",\"dweb:/ipfs/QmdLDgCc3tnKbgRrXwfNzsg6uUDirNmjvBB8V3iMmnD69a\"]},\"project:/contracts/libs/WitnetCBOR.sol\":{\"keccak256\":\"0xb346547ff731163beea2c657c52675cdf7936691d566a76a045577cf9c34ade0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6d4b5b6424a033584b41f1204d635db98fda9ca9bd2a614c9d82539a3e4e6529\",\"dweb:/ipfs/QmW6Qy3wWpzHSECYaCPaf9LWGfPqWDKVoP2kPSNNQu7LMQ\"]},\"project:/contracts/libs/WitnetV2.sol\":{\"keccak256\":\"0xb276a6da373bfbe9cd942dd7e59979cda898215d1e36ab3df95a6d6cc6ff770f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://bc4890876b9bc64f501ccdd48408bb63724865cb2ce8d2057f6b318540adce7c\",\"dweb:/ipfs/QmPMHPdbCsKBavhiLcaDgQ9EjNSvwwzv8TKffotcCv1ctP\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"immutableReferences": {},
"generatedSources": [],
"deployedGeneratedSources": [],
"sourceMap": "",
"deployedSourceMap": "",
"source": "// SPDX-License-Identifier: MIT\r\n\r\npragma solidity >=0.7.0 <0.9.0;\r\npragma experimental ABIEncoderV2;\r\n\r\nimport \"../libs/WitnetV2.sol\";\r\n\r\n/// @title The Witnet Randomness generator interface.\r\n/// @author Witnet Foundation.\r\ninterface IWitnetRandomnessEvents {\r\n event Randomizing(\r\n uint256 blockNumber, \r\n uint256 evmTxGasPrice,\r\n uint256 evmRandomizeFee,\r\n uint256 witnetQueryId, \r\n WitnetV2.RadonSLA witnetQuerySLA\r\n );\r\n}\r\n",
"sourcePath": "C:\\Users\\guill\\github\\witnet\\witnet-solidity-bridge\\contracts\\interfaces\\IWitnetRandomnessEvents.sol",
"ast": {
"absolutePath": "project:/contracts/interfaces/IWitnetRandomnessEvents.sol",
"exportedSymbols": {
"IWitnetRandomnessEvents": [
13696
],
"Witnet": [
17557
],
"WitnetBuffer": [
19191
],
"WitnetCBOR": [
20734
],
"WitnetV2": [
23640
]
},
"id": 13697,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 13679,
"literals": [
"solidity",
">=",
"0.7",
".0",
"<",
"0.9",
".0"
],
"nodeType": "PragmaDirective",
"src": "35:31:57"
},
{
"id": 13680,
"literals": [
"experimental",
"ABIEncoderV2"
],
"nodeType": "PragmaDirective",
"src": "68:33:57"
},
{
"absolutePath": "project:/contracts/libs/WitnetV2.sol",
"file": "../libs/WitnetV2.sol",
"id": 13681,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 13697,
"sourceUnit": 23641,
"src": "105:30:57",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IWitnetRandomnessEvents",
"contractDependencies": [],
"contractKind": "interface",
"documentation": {
"id": 13682,
"nodeType": "StructuredDocumentation",
"src": "139:87:57",
"text": "@title The Witnet Randomness generator interface.\n @author Witnet Foundation."
},
"fullyImplemented": true,
"id": 13696,
"linearizedBaseContracts": [
13696
],
"name": "IWitnetRandomnessEvents",
"nameLocation": "236:23:57",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"eventSelector": "8cb766b09215126141c41df86fd488fe4745f22f3c995c3ad9aaf4c07195b946",
"id": 13695,
"name": "Randomizing",
"nameLocation": "273:11:57",
"nodeType": "EventDefinition",
"parameters": {
"id": 13694,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13684,
"indexed": false,
"mutability": "mutable",
"name": "blockNumber",
"nameLocation": "307:11:57",
"nodeType": "VariableDeclaration",
"scope": 13695,
"src": "299:19:57",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13683,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "299:7:57",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13686,
"indexed": false,
"mutability": "mutable",
"name": "evmTxGasPrice",
"nameLocation": "342:13:57",
"nodeType": "VariableDeclaration",
"scope": 13695,
"src": "334:21:57",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13685,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "334:7:57",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13688,
"indexed": false,
"mutability": "mutable",
"name": "evmRandomizeFee",
"nameLocation": "378:15:57",
"nodeType": "VariableDeclaration",
"scope": 13695,
"src": "370:23:57",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13687,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "370:7:57",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13690,
"indexed": false,
"mutability": "mutable",
"name": "witnetQueryId",
"nameLocation": "416:13:57",
"nodeType": "VariableDeclaration",
"scope": 13695,
"src": "408:21:57",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 13689,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "408:7:57",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13693,
"indexed": false,
"mutability": "mutable",
"name": "witnetQuerySLA",
"nameLocation": "463:14:57",
"nodeType": "VariableDeclaration",
"scope": 13695,
"src": "445:32:57",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_struct$_RadonSLA_$23503_memory_ptr",
"typeString": "struct WitnetV2.RadonSLA"
},
"typeName": {
"id": 13692,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 13691,
"name": "WitnetV2.RadonSLA",
"nameLocations": [
"445:8:57",
"454:8:57"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 23503,
"src": "445:17:57"
},
"referencedDeclaration": 23503,
"src": "445:17:57",
"typeDescriptions": {
"typeIdentifier": "t_struct$_RadonSLA_$23503_storage_ptr",
"typeString": "struct WitnetV2.RadonSLA"
}
},
"visibility": "internal"
}
],
"src": "284:204:57"
},
"src": "267:222:57"
}
],
"scope": 13697,
"src": "226:266:57",
"usedErrors": [],
"usedEvents": [
13695
]
}
],
"src": "35:459:57"
},
"compiler": {
"name": "solc",
"version": "0.8.25+commit.b61c2a91.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.16",
"updatedAt": "2024-12-05T09:36:04.512Z",
"devdoc": {
"author": "Witnet Foundation.",
"kind": "dev",
"methods": {},
"title": "The Witnet Randomness generator interface.",
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}