@etherisc/gif-contracts
Version:
This repository holds the GIF core contracts and tools to develop, test and deploy GIF instances.
543 lines • 18.5 kB
JSON
{
"abi": [
{
"inputs": [
{
"internalType": "bytes32",
"name": "requestId",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "payment",
"type": "uint256"
},
{
"internalType": "bytes4",
"name": "callbackFunctionId",
"type": "bytes4"
},
{
"internalType": "uint256",
"name": "expiration",
"type": "uint256"
}
],
"name": "cancelOracleRequest",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"internalType": "uint256",
"name": "requestPrice",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "serviceAgreementID",
"type": "bytes32"
},
{
"internalType": "address",
"name": "callbackAddress",
"type": "address"
},
{
"internalType": "bytes4",
"name": "callbackFunctionId",
"type": "bytes4"
},
{
"internalType": "uint256",
"name": "nonce",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "dataVersion",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "oracleRequest",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"allSourcePaths": {
"56": "/home/vscode/.brownie/packages/smartcontractkit/chainlink@1.6.0/contracts/src/v0.8/interfaces/ChainlinkRequestInterface.sol"
},
"ast": {
"absolutePath": "/home/vscode/.brownie/packages/smartcontractkit/chainlink@1.6.0/contracts/src/v0.8/interfaces/ChainlinkRequestInterface.sol",
"exportedSymbols": {
"ChainlinkRequestInterface": [
25709
]
},
"id": 25710,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 25678,
"literals": [
"solidity",
"^",
"0.8",
".0"
],
"nodeType": "PragmaDirective",
"src": "32:23:56"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 25709,
"linearizedBaseContracts": [
25709
],
"name": "ChainlinkRequestInterface",
"nameLocation": "67:25:56",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "40429946",
"id": 25697,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "oracleRequest",
"nameLocation": "106:13:56",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 25695,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 25680,
"mutability": "mutable",
"name": "sender",
"nameLocation": "133:6:56",
"nodeType": "VariableDeclaration",
"scope": 25697,
"src": "125:14:56",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 25679,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "125:7:56",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 25682,
"mutability": "mutable",
"name": "requestPrice",
"nameLocation": "153:12:56",
"nodeType": "VariableDeclaration",
"scope": 25697,
"src": "145:20:56",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 25681,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "145:7:56",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 25684,
"mutability": "mutable",
"name": "serviceAgreementID",
"nameLocation": "179:18:56",
"nodeType": "VariableDeclaration",
"scope": 25697,
"src": "171:26:56",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 25683,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "171:7:56",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 25686,
"mutability": "mutable",
"name": "callbackAddress",
"nameLocation": "211:15:56",
"nodeType": "VariableDeclaration",
"scope": 25697,
"src": "203:23:56",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 25685,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "203:7:56",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 25688,
"mutability": "mutable",
"name": "callbackFunctionId",
"nameLocation": "239:18:56",
"nodeType": "VariableDeclaration",
"scope": 25697,
"src": "232:25:56",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 25687,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "232:6:56",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 25690,
"mutability": "mutable",
"name": "nonce",
"nameLocation": "271:5:56",
"nodeType": "VariableDeclaration",
"scope": 25697,
"src": "263:13:56",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 25689,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "263:7:56",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 25692,
"mutability": "mutable",
"name": "dataVersion",
"nameLocation": "290:11:56",
"nodeType": "VariableDeclaration",
"scope": 25697,
"src": "282:19:56",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 25691,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "282:7:56",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 25694,
"mutability": "mutable",
"name": "data",
"nameLocation": "322:4:56",
"nodeType": "VariableDeclaration",
"scope": 25697,
"src": "307:19:56",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 25693,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "307:5:56",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "119:211:56"
},
"returnParameters": {
"id": 25696,
"nodeType": "ParameterList",
"parameters": [],
"src": "339:0:56"
},
"scope": 25709,
"src": "97:243:56",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "6ee4d553",
"id": 25708,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "cancelOracleRequest",
"nameLocation": "353:19:56",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 25706,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 25699,
"mutability": "mutable",
"name": "requestId",
"nameLocation": "386:9:56",
"nodeType": "VariableDeclaration",
"scope": 25708,
"src": "378:17:56",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 25698,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "378:7:56",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 25701,
"mutability": "mutable",
"name": "payment",
"nameLocation": "409:7:56",
"nodeType": "VariableDeclaration",
"scope": 25708,
"src": "401:15:56",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 25700,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "401:7:56",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 25703,
"mutability": "mutable",
"name": "callbackFunctionId",
"nameLocation": "429:18:56",
"nodeType": "VariableDeclaration",
"scope": 25708,
"src": "422:25:56",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 25702,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "422:6:56",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 25705,
"mutability": "mutable",
"name": "expiration",
"nameLocation": "461:10:56",
"nodeType": "VariableDeclaration",
"scope": 25708,
"src": "453:18:56",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 25704,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "453:7:56",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "372:103:56"
},
"returnParameters": {
"id": 25707,
"nodeType": "ParameterList",
"parameters": [],
"src": "484:0:56"
},
"scope": 25709,
"src": "344:141:56",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 25710,
"src": "57:430:56"
}
],
"src": "32:456:56"
},
"bytecode": "",
"bytecodeSha1": "da39a3ee5e6b4b0d3255bfef95601890afd80709",
"compiler": {
"evm_version": "istanbul",
"optimizer": {
"enabled": true,
"runs": 200
},
"version": "0.8.2+commit.661d1103"
},
"contractName": "ChainlinkRequestInterface",
"coverageMap": {
"branches": {},
"statements": {}
},
"dependencies": [],
"deployedBytecode": "",
"deployedSourceMap": "",
"language": "Solidity",
"natspec": {
"kind": "dev",
"methods": {},
"version": 1
},
"offset": [
57,
487
],
"opcodes": "",
"pcMap": {},
"sha1": "bc63835b2333862300955acda341b72817fd90e9",
"source": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\ninterface ChainlinkRequestInterface {\n function oracleRequest(\n address sender,\n uint256 requestPrice,\n bytes32 serviceAgreementID,\n address callbackAddress,\n bytes4 callbackFunctionId,\n uint256 nonce,\n uint256 dataVersion,\n bytes calldata data\n ) external;\n\n function cancelOracleRequest(\n bytes32 requestId,\n uint256 payment,\n bytes4 callbackFunctionId,\n uint256 expiration\n ) external;\n}\n",
"sourceMap": "",
"sourcePath": "/home/vscode/.brownie/packages/smartcontractkit/chainlink@1.6.0/contracts/src/v0.8/interfaces/ChainlinkRequestInterface.sol",
"type": "interface"
}