@etherisc/gif-interface
Version:
This repository holds the necessary interfaces and base contracts to interact with an existing GIF instance. The repository is not intended to be used on its own.
184 lines • 5.22 kB
JSON
{
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "requestId",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "respond",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"allSourcePaths": {
"26": "contracts/services/IOracleService.sol"
},
"ast": {
"absolutePath": "contracts/services/IOracleService.sol",
"exportedSymbols": {
"IOracleService": [
4343
]
},
"id": 4344,
"license": "Apache-2.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 4335,
"literals": [
"solidity",
"0.8",
".2"
],
"nodeType": "PragmaDirective",
"src": "39:22:26"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 4343,
"linearizedBaseContracts": [
4343
],
"name": "IOracleService",
"nameLocation": "73:14:26",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "e409534a",
"id": 4342,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "respond",
"nameLocation": "104:7:26",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4340,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4337,
"mutability": "mutable",
"name": "requestId",
"nameLocation": "120:9:26",
"nodeType": "VariableDeclaration",
"scope": 4342,
"src": "112:17:26",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4336,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "112:7:26",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4339,
"mutability": "mutable",
"name": "data",
"nameLocation": "146:4:26",
"nodeType": "VariableDeclaration",
"scope": 4342,
"src": "131:19:26",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 4338,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "131:5:26",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "111:40:26"
},
"returnParameters": {
"id": 4341,
"nodeType": "ParameterList",
"parameters": [],
"src": "160:0:26"
},
"scope": 4343,
"src": "95:66:26",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 4344,
"src": "63:100:26"
}
],
"src": "39:125:26"
},
"bytecode": "",
"bytecodeSha1": "da39a3ee5e6b4b0d3255bfef95601890afd80709",
"compiler": {
"evm_version": "istanbul",
"optimizer": {
"enabled": true,
"runs": 200
},
"version": "0.8.2+commit.661d1103"
},
"contractName": "IOracleService",
"coverageMap": {
"branches": {},
"statements": {}
},
"dependencies": [],
"deployedBytecode": "",
"deployedSourceMap": "",
"language": "Solidity",
"natspec": {
"kind": "dev",
"methods": {},
"version": 1
},
"offset": [
63,
163
],
"opcodes": "",
"pcMap": {},
"sha1": "f3161d1aeb96a2c84bd4a3fcbc5665f693889305",
"source": "// SPDX-License-Identifier: Apache-2.0\npragma solidity 0.8.2;\n\ninterface IOracleService {\n\n function respond(uint256 requestId, bytes calldata data) external;\n}\n",
"sourceMap": "",
"sourcePath": "contracts/services/IOracleService.sol",
"type": "interface"
}