witnet-solidity-bridge
Version:
Witnet Solidity Bridge contracts for EVM-compatible chains
479 lines • 17.8 kB
JSON
{
"contractName": "IWitnetPriceSolverDeployer",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "solver",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes32",
"name": "codehash",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "bytes",
"name": "constructorParams",
"type": "bytes"
}
],
"name": "WitnetPriceSolverDeployed",
"type": "event"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "initcode",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "additionalParams",
"type": "bytes"
}
],
"name": "deployPriceSolver",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "initcode",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "additionalParams",
"type": "bytes"
}
],
"name": "determinePriceSolverAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.8.25+commit.b61c2a91\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"solver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"codehash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"constructorParams\",\"type\":\"bytes\"}],\"name\":\"WitnetPriceSolverDeployed\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"initcode\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"additionalParams\",\"type\":\"bytes\"}],\"name\":\"deployPriceSolver\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"initcode\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"additionalParams\",\"type\":\"bytes\"}],\"name\":\"determinePriceSolverAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/interfaces/IWitnetPriceSolverDeployer.sol\":\"IWitnetPriceSolverDeployer\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/interfaces/IWitnetPriceSolverDeployer.sol\":{\"keccak256\":\"0x52d4e504fb6e699893a592ba5723794688c70ad36af7eb5ffdc08e692b2ddb21\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://4ab7f54312c0c8443e9220d41a72513ef84377d315cad3c49397da94361d5c42\",\"dweb:/ipfs/QmRTJtxnoRhh9AXMixRvSa8BT4vprZttLgqGzmLEjZG6oB\"]}},\"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 IWitnetPriceSolverDeployer {\r\n event WitnetPriceSolverDeployed(address solver, bytes32 codehash, bytes constructorParams);\r\n function deployPriceSolver(bytes calldata initcode, bytes calldata additionalParams) external returns (address);\r\n function determinePriceSolverAddress(bytes calldata initcode, bytes calldata additionalParams) external view returns (address);\r\n}",
"sourcePath": "C:\\Users\\guill\\github\\witnet\\witnet-solidity-bridge\\contracts\\interfaces\\IWitnetPriceSolverDeployer.sol",
"ast": {
"absolutePath": "project:/contracts/interfaces/IWitnetPriceSolverDeployer.sol",
"exportedSymbols": {
"IWitnetPriceSolverDeployer": [
13514
]
},
"id": 13515,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 13487,
"literals": [
"solidity",
">=",
"0.8",
".0",
"<",
"0.9",
".0"
],
"nodeType": "PragmaDirective",
"src": "35:31:54"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IWitnetPriceSolverDeployer",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 13514,
"linearizedBaseContracts": [
13514
],
"name": "IWitnetPriceSolverDeployer",
"nameLocation": "80:26:54",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"eventSelector": "3c07c0cbdabca8310d65b09f79c58655b46c3035d57c452177e3d49972ff5cec",
"id": 13495,
"name": "WitnetPriceSolverDeployed",
"nameLocation": "120:25:54",
"nodeType": "EventDefinition",
"parameters": {
"id": 13494,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13489,
"indexed": false,
"mutability": "mutable",
"name": "solver",
"nameLocation": "154:6:54",
"nodeType": "VariableDeclaration",
"scope": 13495,
"src": "146:14:54",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 13488,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "146:7:54",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13491,
"indexed": false,
"mutability": "mutable",
"name": "codehash",
"nameLocation": "170:8:54",
"nodeType": "VariableDeclaration",
"scope": 13495,
"src": "162:16:54",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 13490,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "162:7:54",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13493,
"indexed": false,
"mutability": "mutable",
"name": "constructorParams",
"nameLocation": "186:17:54",
"nodeType": "VariableDeclaration",
"scope": 13495,
"src": "180:23:54",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 13492,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "180:5:54",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "145:59:54"
},
"src": "114:91:54"
},
{
"functionSelector": "a55b471c",
"id": 13504,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "deployPriceSolver",
"nameLocation": "220:17:54",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 13500,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13497,
"mutability": "mutable",
"name": "initcode",
"nameLocation": "253:8:54",
"nodeType": "VariableDeclaration",
"scope": 13504,
"src": "238:23:54",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 13496,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "238:5:54",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13499,
"mutability": "mutable",
"name": "additionalParams",
"nameLocation": "278:16:54",
"nodeType": "VariableDeclaration",
"scope": 13504,
"src": "263:31:54",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 13498,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "263:5:54",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "237:58:54"
},
"returnParameters": {
"id": 13503,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13502,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 13504,
"src": "314:7:54",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 13501,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "314:7:54",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "313:9:54"
},
"scope": 13514,
"src": "211:112:54",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "ff75890f",
"id": 13513,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "determinePriceSolverAddress",
"nameLocation": "338:27:54",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 13509,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13506,
"mutability": "mutable",
"name": "initcode",
"nameLocation": "381:8:54",
"nodeType": "VariableDeclaration",
"scope": 13513,
"src": "366:23:54",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 13505,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "366:5:54",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13508,
"mutability": "mutable",
"name": "additionalParams",
"nameLocation": "406:16:54",
"nodeType": "VariableDeclaration",
"scope": 13513,
"src": "391:31:54",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 13507,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "391:5:54",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "365:58:54"
},
"returnParameters": {
"id": 13512,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13511,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 13513,
"src": "447:7:54",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 13510,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "447:7:54",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "446:9:54"
},
"scope": 13514,
"src": "329:127:54",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 13515,
"src": "70:389:54",
"usedErrors": [],
"usedEvents": [
13495
]
}
],
"src": "35:424:54"
},
"compiler": {
"name": "solc",
"version": "0.8.25+commit.b61c2a91.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.16",
"updatedAt": "2024-12-05T09:36:04.508Z",
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}