@etherisc/depeg-contracts
Version:
Etherisc's smart contracts for a depeg insurance for stable coins.
184 lines • 5.42 kB
JSON
{
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "requestId",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "respond",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"allSourcePaths": {
"43": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IOracleService.sol"
},
"ast": {
"absolutePath": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IOracleService.sol",
"exportedSymbols": {
"IOracleService": [
23292
]
},
"id": 23293,
"license": "Apache-2.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 23284,
"literals": [
"solidity",
"0.8",
".2"
],
"nodeType": "PragmaDirective",
"src": "39:22:43"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 23292,
"linearizedBaseContracts": [
23292
],
"name": "IOracleService",
"nameLocation": "73:14:43",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "e409534a",
"id": 23291,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "respond",
"nameLocation": "104:7:43",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 23289,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 23286,
"mutability": "mutable",
"name": "requestId",
"nameLocation": "120:9:43",
"nodeType": "VariableDeclaration",
"scope": 23291,
"src": "112:17:43",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 23285,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "112:7:43",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 23288,
"mutability": "mutable",
"name": "data",
"nameLocation": "146:4:43",
"nodeType": "VariableDeclaration",
"scope": 23291,
"src": "131:19:43",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 23287,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "131:5:43",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "111:40:43"
},
"returnParameters": {
"id": 23290,
"nodeType": "ParameterList",
"parameters": [],
"src": "160:0:43"
},
"scope": 23292,
"src": "95:66:43",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 23293,
"src": "63:100:43"
}
],
"src": "39:125:43"
},
"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": "/home/vscode/.brownie/packages/etherisc/gif-interface@3b0002a/contracts/services/IOracleService.sol",
"type": "interface"
}