witnet-solidity-bridge
Version:
Witnet Solidity Bridge contracts for EVM-compatible chains
383 lines • 14.3 kB
JSON
{
"contractName": "IWitnetRequestFactory",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "template",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "parameterized",
"type": "bool"
}
],
"name": "WitnetRequestTemplateBuilt",
"type": "event"
},
{
"inputs": [
{
"internalType": "bytes32[]",
"name": "sourcesIds",
"type": "bytes32[]"
},
{
"internalType": "bytes32",
"name": "aggregatorId",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "tallyId",
"type": "bytes32"
},
{
"internalType": "uint16",
"name": "resultDataMaxSize",
"type": "uint16"
}
],
"name": "buildRequestTemplate",
"outputs": [
{
"internalType": "address",
"name": "template",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.8.25+commit.b61c2a91\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"template\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"parameterized\",\"type\":\"bool\"}],\"name\":\"WitnetRequestTemplateBuilt\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"sourcesIds\",\"type\":\"bytes32[]\"},{\"internalType\":\"bytes32\",\"name\":\"aggregatorId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"tallyId\",\"type\":\"bytes32\"},{\"internalType\":\"uint16\",\"name\":\"resultDataMaxSize\",\"type\":\"uint16\"}],\"name\":\"buildRequestTemplate\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"template\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/interfaces/IWitnetRequestFactory.sol\":\"IWitnetRequestFactory\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/interfaces/IWitnetRequestFactory.sol\":{\"keccak256\":\"0x3b19ec4a976745ba2646e7e1886d647ef30ad678460a712c93bbfb4405b57f1f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://fa759ae15b7d4da622a81d50933474910959ac490d8b63ea2e7ed8608859a9c9\",\"dweb:/ipfs/QmRckCu7eBBP5fn9ff6djs7VbdhFc7sxYb2yqDr4go66jV\"]}},\"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\n\r\ninterface IWitnetRequestFactory {\r\n \r\n event WitnetRequestTemplateBuilt(address template, bool parameterized);\r\n \r\n function buildRequestTemplate(\r\n bytes32[] memory sourcesIds,\r\n bytes32 aggregatorId,\r\n bytes32 tallyId,\r\n uint16 resultDataMaxSize\r\n ) external returns (address template);\r\n\r\n}",
"sourcePath": "C:\\Users\\guill\\github\\witnet\\witnet-solidity-bridge\\contracts\\interfaces\\IWitnetRequestFactory.sol",
"ast": {
"absolutePath": "project:/contracts/interfaces/IWitnetRequestFactory.sol",
"exportedSymbols": {
"IWitnetRequestFactory": [
14002
]
},
"id": 14003,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 13981,
"literals": [
"solidity",
">=",
"0.7",
".0",
"<",
"0.9",
".0"
],
"nodeType": "PragmaDirective",
"src": "35:31:61"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IWitnetRequestFactory",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 14002,
"linearizedBaseContracts": [
14002
],
"name": "IWitnetRequestFactory",
"nameLocation": "80:21:61",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"eventSelector": "a62c4b81238a0a302883bd74617034f93d86fe817895c2dfef53073876dae767",
"id": 13987,
"name": "WitnetRequestTemplateBuilt",
"nameLocation": "121:26:61",
"nodeType": "EventDefinition",
"parameters": {
"id": 13986,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13983,
"indexed": false,
"mutability": "mutable",
"name": "template",
"nameLocation": "156:8:61",
"nodeType": "VariableDeclaration",
"scope": 13987,
"src": "148:16:61",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 13982,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "148:7:61",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13985,
"indexed": false,
"mutability": "mutable",
"name": "parameterized",
"nameLocation": "171:13:61",
"nodeType": "VariableDeclaration",
"scope": 13987,
"src": "166:18:61",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 13984,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "166:4:61",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "147:38:61"
},
"src": "115:71:61"
},
{
"functionSelector": "db7c58b0",
"id": 14001,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "buildRequestTemplate",
"nameLocation": "207:20:61",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 13997,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13990,
"mutability": "mutable",
"name": "sourcesIds",
"nameLocation": "259:10:61",
"nodeType": "VariableDeclaration",
"scope": 14001,
"src": "242:27:61",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
"typeString": "bytes32[]"
},
"typeName": {
"baseType": {
"id": 13988,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "242:7:61",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"id": 13989,
"nodeType": "ArrayTypeName",
"src": "242:9:61",
"typeDescriptions": {
"typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
"typeString": "bytes32[]"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13992,
"mutability": "mutable",
"name": "aggregatorId",
"nameLocation": "292:12:61",
"nodeType": "VariableDeclaration",
"scope": 14001,
"src": "284:20:61",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 13991,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "284:7:61",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13994,
"mutability": "mutable",
"name": "tallyId",
"nameLocation": "327:7:61",
"nodeType": "VariableDeclaration",
"scope": 14001,
"src": "319:15:61",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 13993,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "319:7:61",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13996,
"mutability": "mutable",
"name": "resultDataMaxSize",
"nameLocation": "357:17:61",
"nodeType": "VariableDeclaration",
"scope": 14001,
"src": "349:25:61",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 13995,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "349:6:61",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
}
],
"src": "227:158:61"
},
"returnParameters": {
"id": 14000,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13999,
"mutability": "mutable",
"name": "template",
"nameLocation": "412:8:61",
"nodeType": "VariableDeclaration",
"scope": 14001,
"src": "404:16:61",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 13998,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "404:7:61",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "403:18:61"
},
"scope": 14002,
"src": "198:224:61",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 14003,
"src": "70:357:61",
"usedErrors": [],
"usedEvents": [
13987
]
}
],
"src": "35:392:61"
},
"compiler": {
"name": "solc",
"version": "0.8.25+commit.b61c2a91.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.16",
"updatedAt": "2024-12-05T09:36:04.517Z",
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}