Files
dungeons-and-dragons-nft/build/contracts/ChainlinkRequestInterface.json
PatrickAlphaC e6e6e68cff part2
2020-10-27 21:51:18 -04:00

982 lines
35 KiB
JSON

{
"contractName": "ChainlinkRequestInterface",
"abi": [
{
"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"
},
{
"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"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.6.6+commit.6c089d02\"},\"language\":\"Solidity\",\"output\":{\"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\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"@chainlink/contracts/src/v0.6/interfaces/ChainlinkRequestInterface.sol\":\"ChainlinkRequestInterface\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@chainlink/contracts/src/v0.6/interfaces/ChainlinkRequestInterface.sol\":{\"keccak256\":\"0x4b41b021bf58c429891ff291637de29be54741565105de82238dac9f6ecee374\",\"urls\":[\"bzz-raw://84681ff65b31b2e2c6977289661733c0f22409965b9057140f56f8a9ff185048\",\"dweb:/ipfs/QmS4TQJDSHQiKNwQ4LkSCVp7LjuRQwp6gem3271vtCwz9k\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"immutableReferences": {},
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity ^0.6.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, // Currently unused, always \"1\"\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",
"sourcePath": "@chainlink/contracts/src/v0.6/interfaces/ChainlinkRequestInterface.sol",
"ast": {
"absolutePath": "@chainlink/contracts/src/v0.6/interfaces/ChainlinkRequestInterface.sol",
"exportedSymbols": {
"ChainlinkRequestInterface": [
988
]
},
"id": 989,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 957,
"literals": [
"solidity",
"^",
"0.6",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:23:4"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 988,
"linearizedBaseContracts": [
988
],
"name": "ChainlinkRequestInterface",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"functionSelector": "40429946",
"id": 976,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "oracleRequest",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 974,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 959,
"mutability": "mutable",
"name": "sender",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 976,
"src": "93:14:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 958,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "93:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 961,
"mutability": "mutable",
"name": "requestPrice",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 976,
"src": "113:20:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 960,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "113:7:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 963,
"mutability": "mutable",
"name": "serviceAgreementID",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 976,
"src": "139:26:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 962,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "139:7:4",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 965,
"mutability": "mutable",
"name": "callbackAddress",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 976,
"src": "171:23:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 964,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "171:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 967,
"mutability": "mutable",
"name": "callbackFunctionId",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 976,
"src": "200:25:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 966,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "200:6:4",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 969,
"mutability": "mutable",
"name": "nonce",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 976,
"src": "231:13:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 968,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "231:7:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 971,
"mutability": "mutable",
"name": "dataVersion",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 976,
"src": "250:19:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 970,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "250:7:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 973,
"mutability": "mutable",
"name": "data",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 976,
"src": "307:19:4",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 972,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "307:5:4",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "87:243:4"
},
"returnParameters": {
"id": 975,
"nodeType": "ParameterList",
"parameters": [],
"src": "339:0:4"
},
"scope": 988,
"src": "65:275:4",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "6ee4d553",
"id": 987,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "cancelOracleRequest",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 985,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 978,
"mutability": "mutable",
"name": "requestId",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 987,
"src": "378:17:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 977,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "378:7:4",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 980,
"mutability": "mutable",
"name": "payment",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 987,
"src": "401:15:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 979,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "401:7:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 982,
"mutability": "mutable",
"name": "callbackFunctionId",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 987,
"src": "422:25:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 981,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "422:6:4",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 984,
"mutability": "mutable",
"name": "expiration",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 987,
"src": "453:18:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 983,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "453:7:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "372:103:4"
},
"returnParameters": {
"id": 986,
"nodeType": "ParameterList",
"parameters": [],
"src": "484:0:4"
},
"scope": 988,
"src": "344:141:4",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 989,
"src": "25:462:4"
}
],
"src": "0:488:4"
},
"legacyAST": {
"absolutePath": "@chainlink/contracts/src/v0.6/interfaces/ChainlinkRequestInterface.sol",
"exportedSymbols": {
"ChainlinkRequestInterface": [
988
]
},
"id": 989,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 957,
"literals": [
"solidity",
"^",
"0.6",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:23:4"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 988,
"linearizedBaseContracts": [
988
],
"name": "ChainlinkRequestInterface",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"functionSelector": "40429946",
"id": 976,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "oracleRequest",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 974,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 959,
"mutability": "mutable",
"name": "sender",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 976,
"src": "93:14:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 958,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "93:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 961,
"mutability": "mutable",
"name": "requestPrice",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 976,
"src": "113:20:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 960,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "113:7:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 963,
"mutability": "mutable",
"name": "serviceAgreementID",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 976,
"src": "139:26:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 962,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "139:7:4",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 965,
"mutability": "mutable",
"name": "callbackAddress",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 976,
"src": "171:23:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 964,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "171:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 967,
"mutability": "mutable",
"name": "callbackFunctionId",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 976,
"src": "200:25:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 966,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "200:6:4",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 969,
"mutability": "mutable",
"name": "nonce",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 976,
"src": "231:13:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 968,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "231:7:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 971,
"mutability": "mutable",
"name": "dataVersion",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 976,
"src": "250:19:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 970,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "250:7:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 973,
"mutability": "mutable",
"name": "data",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 976,
"src": "307:19:4",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 972,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "307:5:4",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "87:243:4"
},
"returnParameters": {
"id": 975,
"nodeType": "ParameterList",
"parameters": [],
"src": "339:0:4"
},
"scope": 988,
"src": "65:275:4",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "6ee4d553",
"id": 987,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "cancelOracleRequest",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 985,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 978,
"mutability": "mutable",
"name": "requestId",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 987,
"src": "378:17:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 977,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "378:7:4",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 980,
"mutability": "mutable",
"name": "payment",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 987,
"src": "401:15:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 979,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "401:7:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 982,
"mutability": "mutable",
"name": "callbackFunctionId",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 987,
"src": "422:25:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
},
"typeName": {
"id": 981,
"name": "bytes4",
"nodeType": "ElementaryTypeName",
"src": "422:6:4",
"typeDescriptions": {
"typeIdentifier": "t_bytes4",
"typeString": "bytes4"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 984,
"mutability": "mutable",
"name": "expiration",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 987,
"src": "453:18:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 983,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "453:7:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "372:103:4"
},
"returnParameters": {
"id": 986,
"nodeType": "ParameterList",
"parameters": [],
"src": "484:0:4"
},
"scope": 988,
"src": "344:141:4",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 989,
"src": "25:462:4"
}
],
"src": "0:488:4"
},
"compiler": {
"name": "solc",
"version": "0.6.6+commit.6c089d02.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.2.5",
"updatedAt": "2020-10-24T00:06:53.305Z",
"devdoc": {
"methods": {}
},
"userdoc": {
"methods": {}
}
}