{
  "contractName": "IWitnetPriceSolver",
  "abi": [
    {
      "inputs": [],
      "name": "class",
      "outputs": [
        {
          "internalType": "string",
          "name": "",
          "type": "string"
        }
      ],
      "stateMutability": "pure",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "delegator",
      "outputs": [
        {
          "internalType": "address",
          "name": "",
          "type": "address"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes4",
          "name": "feedId",
          "type": "bytes4"
        }
      ],
      "name": "solve",
      "outputs": [
        {
          "components": [
            {
              "internalType": "uint256",
              "name": "value",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "timestamp",
              "type": "uint256"
            },
            {
              "internalType": "bytes32",
              "name": "tallyHash",
              "type": "bytes32"
            },
            {
              "internalType": "enum WitnetV2.ResponseStatus",
              "name": "status",
              "type": "uint8"
            }
          ],
          "internalType": "struct IWitnetPriceSolver.Price",
          "name": "",
          "type": "tuple"
        }
      ],
      "stateMutability": "view",
      "type": "function"
    },
    {
      "inputs": [],
      "name": "specs",
      "outputs": [
        {
          "internalType": "bytes4",
          "name": "",
          "type": "bytes4"
        }
      ],
      "stateMutability": "pure",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "bytes4",
          "name": "feedId",
          "type": "bytes4"
        },
        {
          "internalType": "string[]",
          "name": "initdata",
          "type": "string[]"
        }
      ],
      "name": "validate",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ],
  "metadata": "{\"compiler\":{\"version\":\"0.8.25+commit.b61c2a91\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"class\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"delegator\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"feedId\",\"type\":\"bytes4\"}],\"name\":\"solve\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"tallyHash\",\"type\":\"bytes32\"},{\"internalType\":\"enum WitnetV2.ResponseStatus\",\"name\":\"status\",\"type\":\"uint8\"}],\"internalType\":\"struct IWitnetPriceSolver.Price\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"specs\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"feedId\",\"type\":\"bytes4\"},{\"internalType\":\"string[]\",\"name\":\"initdata\",\"type\":\"string[]\"}],\"name\":\"validate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/interfaces/IWitnetPriceSolver.sol\":\"IWitnetPriceSolver\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/interfaces/IWitnetPriceSolver.sol\":{\"keccak256\":\"0x858441dafaa0617a8d679b3cda493b418284d865899c3f235cb3f41535db7a16\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://43d25f8985aede9c32cee369872a9f21db41c7b9abc87d5d4d02ff7e15879b98\",\"dweb:/ipfs/QmdoZnVpx9FZeg8KHgMjGRLmVKtdn7zzFTadFUjT8xd3dR\"]},\"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.8.0 <0.9.0;\r\n\r\nimport \"../libs/WitnetV2.sol\";\r\n\r\ninterface IWitnetPriceSolver {\r\n    struct Price {\r\n        uint value;\r\n        uint timestamp;\r\n        bytes32 tallyHash;\r\n        WitnetV2.ResponseStatus status;\r\n    }\r\n    function class() external pure returns (string memory);\r\n    function delegator() external view returns (address);\r\n    function solve(bytes4 feedId) external view returns (Price memory);\r\n    function specs() external pure returns (bytes4);\r\n    function validate(bytes4 feedId, string[] calldata initdata) external;\r\n}",
  "sourcePath": "C:\\Users\\guill\\github\\witnet\\witnet-solidity-bridge\\contracts\\interfaces\\IWitnetPriceSolver.sol",
  "ast": {
    "absolutePath": "project:/contracts/interfaces/IWitnetPriceSolver.sol",
    "exportedSymbols": {
      "IWitnetPriceSolver": [
        13485
      ],
      "Witnet": [
        17557
      ],
      "WitnetBuffer": [
        19191
      ],
      "WitnetCBOR": [
        20734
      ],
      "WitnetV2": [
        23640
      ]
    },
    "id": 13486,
    "license": "MIT",
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 13442,
        "literals": [
          "solidity",
          ">=",
          "0.8",
          ".0",
          "<",
          "0.9",
          ".0"
        ],
        "nodeType": "PragmaDirective",
        "src": "35:31:53"
      },
      {
        "absolutePath": "project:/contracts/libs/WitnetV2.sol",
        "file": "../libs/WitnetV2.sol",
        "id": 13443,
        "nameLocation": "-1:-1:-1",
        "nodeType": "ImportDirective",
        "scope": 13486,
        "sourceUnit": 23641,
        "src": "70:30:53",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "abstract": false,
        "baseContracts": [],
        "canonicalName": "IWitnetPriceSolver",
        "contractDependencies": [],
        "contractKind": "interface",
        "fullyImplemented": false,
        "id": 13485,
        "linearizedBaseContracts": [
          13485
        ],
        "name": "IWitnetPriceSolver",
        "nameLocation": "114:18:53",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "canonicalName": "IWitnetPriceSolver.Price",
            "id": 13453,
            "members": [
              {
                "constant": false,
                "id": 13445,
                "mutability": "mutable",
                "name": "value",
                "nameLocation": "169:5:53",
                "nodeType": "VariableDeclaration",
                "scope": 13453,
                "src": "164:10:53",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_uint256",
                  "typeString": "uint256"
                },
                "typeName": {
                  "id": 13444,
                  "name": "uint",
                  "nodeType": "ElementaryTypeName",
                  "src": "164:4:53",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  }
                },
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 13447,
                "mutability": "mutable",
                "name": "timestamp",
                "nameLocation": "190:9:53",
                "nodeType": "VariableDeclaration",
                "scope": 13453,
                "src": "185:14:53",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_uint256",
                  "typeString": "uint256"
                },
                "typeName": {
                  "id": 13446,
                  "name": "uint",
                  "nodeType": "ElementaryTypeName",
                  "src": "185:4:53",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  }
                },
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 13449,
                "mutability": "mutable",
                "name": "tallyHash",
                "nameLocation": "218:9:53",
                "nodeType": "VariableDeclaration",
                "scope": 13453,
                "src": "210:17:53",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_bytes32",
                  "typeString": "bytes32"
                },
                "typeName": {
                  "id": 13448,
                  "name": "bytes32",
                  "nodeType": "ElementaryTypeName",
                  "src": "210:7:53",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  }
                },
                "visibility": "internal"
              },
              {
                "constant": false,
                "id": 13452,
                "mutability": "mutable",
                "name": "status",
                "nameLocation": "262:6:53",
                "nodeType": "VariableDeclaration",
                "scope": 13453,
                "src": "238:30:53",
                "stateVariable": false,
                "storageLocation": "default",
                "typeDescriptions": {
                  "typeIdentifier": "t_enum$_ResponseStatus_$23496",
                  "typeString": "enum WitnetV2.ResponseStatus"
                },
                "typeName": {
                  "id": 13451,
                  "nodeType": "UserDefinedTypeName",
                  "pathNode": {
                    "id": 13450,
                    "name": "WitnetV2.ResponseStatus",
                    "nameLocations": [
                      "238:8:53",
                      "247:14:53"
                    ],
                    "nodeType": "IdentifierPath",
                    "referencedDeclaration": 23496,
                    "src": "238:23:53"
                  },
                  "referencedDeclaration": 23496,
                  "src": "238:23:53",
                  "typeDescriptions": {
                    "typeIdentifier": "t_enum$_ResponseStatus_$23496",
                    "typeString": "enum WitnetV2.ResponseStatus"
                  }
                },
                "visibility": "internal"
              }
            ],
            "name": "Price",
            "nameLocation": "147:5:53",
            "nodeType": "StructDefinition",
            "scope": 13485,
            "src": "140:136:53",
            "visibility": "public"
          },
          {
            "functionSelector": "bff852fa",
            "id": 13458,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "class",
            "nameLocation": "291:5:53",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 13454,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "296:2:53"
            },
            "returnParameters": {
              "id": 13457,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 13456,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 13458,
                  "src": "322:13:53",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_string_memory_ptr",
                    "typeString": "string"
                  },
                  "typeName": {
                    "id": 13455,
                    "name": "string",
                    "nodeType": "ElementaryTypeName",
                    "src": "322:6:53",
                    "typeDescriptions": {
                      "typeIdentifier": "t_string_storage_ptr",
                      "typeString": "string"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "321:15:53"
            },
            "scope": 13485,
            "src": "282:55:53",
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "ce9b7930",
            "id": 13463,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "delegator",
            "nameLocation": "352:9:53",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 13459,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "361:2:53"
            },
            "returnParameters": {
              "id": 13462,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 13461,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 13463,
                  "src": "387:7:53",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 13460,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "387:7:53",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "386:9:53"
            },
            "scope": 13485,
            "src": "343:53:53",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "e0d20f73",
            "id": 13471,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "solve",
            "nameLocation": "411:5:53",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 13466,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 13465,
                  "mutability": "mutable",
                  "name": "feedId",
                  "nameLocation": "424:6:53",
                  "nodeType": "VariableDeclaration",
                  "scope": 13471,
                  "src": "417:13:53",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes4",
                    "typeString": "bytes4"
                  },
                  "typeName": {
                    "id": 13464,
                    "name": "bytes4",
                    "nodeType": "ElementaryTypeName",
                    "src": "417:6:53",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes4",
                      "typeString": "bytes4"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "416:15:53"
            },
            "returnParameters": {
              "id": 13470,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 13469,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 13471,
                  "src": "455:12:53",
                  "stateVariable": false,
                  "storageLocation": "memory",
                  "typeDescriptions": {
                    "typeIdentifier": "t_struct$_Price_$13453_memory_ptr",
                    "typeString": "struct IWitnetPriceSolver.Price"
                  },
                  "typeName": {
                    "id": 13468,
                    "nodeType": "UserDefinedTypeName",
                    "pathNode": {
                      "id": 13467,
                      "name": "Price",
                      "nameLocations": [
                        "455:5:53"
                      ],
                      "nodeType": "IdentifierPath",
                      "referencedDeclaration": 13453,
                      "src": "455:5:53"
                    },
                    "referencedDeclaration": 13453,
                    "src": "455:5:53",
                    "typeDescriptions": {
                      "typeIdentifier": "t_struct$_Price_$13453_storage_ptr",
                      "typeString": "struct IWitnetPriceSolver.Price"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "454:14:53"
            },
            "scope": 13485,
            "src": "402:67:53",
            "stateMutability": "view",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "adb7c3f7",
            "id": 13476,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "specs",
            "nameLocation": "484:5:53",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 13472,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "489:2:53"
            },
            "returnParameters": {
              "id": 13475,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 13474,
                  "mutability": "mutable",
                  "name": "",
                  "nameLocation": "-1:-1:-1",
                  "nodeType": "VariableDeclaration",
                  "scope": 13476,
                  "src": "515:6:53",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes4",
                    "typeString": "bytes4"
                  },
                  "typeName": {
                    "id": 13473,
                    "name": "bytes4",
                    "nodeType": "ElementaryTypeName",
                    "src": "515:6:53",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes4",
                      "typeString": "bytes4"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "514:8:53"
            },
            "scope": 13485,
            "src": "475:48:53",
            "stateMutability": "pure",
            "virtual": false,
            "visibility": "external"
          },
          {
            "functionSelector": "e6f87158",
            "id": 13484,
            "implemented": false,
            "kind": "function",
            "modifiers": [],
            "name": "validate",
            "nameLocation": "538:8:53",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 13482,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 13478,
                  "mutability": "mutable",
                  "name": "feedId",
                  "nameLocation": "554:6:53",
                  "nodeType": "VariableDeclaration",
                  "scope": 13484,
                  "src": "547:13:53",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes4",
                    "typeString": "bytes4"
                  },
                  "typeName": {
                    "id": 13477,
                    "name": "bytes4",
                    "nodeType": "ElementaryTypeName",
                    "src": "547:6:53",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes4",
                      "typeString": "bytes4"
                    }
                  },
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 13481,
                  "mutability": "mutable",
                  "name": "initdata",
                  "nameLocation": "580:8:53",
                  "nodeType": "VariableDeclaration",
                  "scope": 13484,
                  "src": "562:26:53",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_array$_t_string_calldata_ptr_$dyn_calldata_ptr",
                    "typeString": "string[]"
                  },
                  "typeName": {
                    "baseType": {
                      "id": 13479,
                      "name": "string",
                      "nodeType": "ElementaryTypeName",
                      "src": "562:6:53",
                      "typeDescriptions": {
                        "typeIdentifier": "t_string_storage_ptr",
                        "typeString": "string"
                      }
                    },
                    "id": 13480,
                    "nodeType": "ArrayTypeName",
                    "src": "562:8:53",
                    "typeDescriptions": {
                      "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr",
                      "typeString": "string[]"
                    }
                  },
                  "visibility": "internal"
                }
              ],
              "src": "546:43:53"
            },
            "returnParameters": {
              "id": 13483,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "598:0:53"
            },
            "scope": 13485,
            "src": "529:70:53",
            "stateMutability": "nonpayable",
            "virtual": false,
            "visibility": "external"
          }
        ],
        "scope": 13486,
        "src": "104:498:53",
        "usedErrors": [],
        "usedEvents": []
      }
    ],
    "src": "35:567:53"
  },
  "compiler": {
    "name": "solc",
    "version": "0.8.25+commit.b61c2a91.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.4.16",
  "updatedAt": "2024-12-05T09:36:04.507Z",
  "devdoc": {
    "kind": "dev",
    "methods": {},
    "version": 1
  },
  "userdoc": {
    "kind": "user",
    "methods": {},
    "version": 1
  }
}