@andrekorol/kollateral-contracts
Version:
Kollateral protocol, the flash loan building block
432 lines • 15.5 kB
JSON
{
"contractName": "ILendingPool",
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "_receiver",
"type": "address"
},
{
"internalType": "address",
"name": "_reserve",
"type": "address"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "_params",
"type": "bytes"
}
],
"name": "flashLoan",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.7.3+commit.9bfce1f6\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_receiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_reserve\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_params\",\"type\":\"bytes\"}],\"name\":\"flashLoan\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/Users/andrekorol/src/kollateral/protocol/contracts/liquidity/aave/ILendingPool.sol\":\"ILendingPool\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/andrekorol/src/kollateral/protocol/contracts/liquidity/aave/ILendingPool.sol\":{\"keccak256\":\"0x9e97f4e47e98a1ade637d849dc0fd02e530a8bad4f80b41606bb4bb554484951\",\"license\":\"Apache-2.0\",\"urls\":[\"bzz-raw://1e6a4d959bb2cc99001596ff02633c3c53a3eca753859d6c458abe40817738c8\",\"dweb:/ipfs/QmTEwfaKaf9tfAuEiqKLid1RtcrJY5sd5kCCgsnqBacTAM\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"immutableReferences": {},
"generatedSources": [],
"deployedGeneratedSources": [],
"sourceMap": "",
"deployedSourceMap": "",
"source": "/*\n\n Copyright 2020 Kollateral LLC.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n*/\n\n// SPDX-License-Identifier: Apache-2.0\npragma solidity ^0.7.0;\n\ninterface ILendingPool {\n function flashLoan(\n address _receiver,\n address _reserve,\n uint256 _amount,\n bytes memory _params\n ) external;\n}\n",
"sourcePath": "/Users/andrekorol/src/kollateral/protocol/contracts/liquidity/aave/ILendingPool.sol",
"ast": {
"absolutePath": "/Users/andrekorol/src/kollateral/protocol/contracts/liquidity/aave/ILendingPool.sol",
"exportedSymbols": {
"ILendingPool": [
2428
]
},
"id": 2429,
"license": "Apache-2.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 2416,
"literals": [
"solidity",
"^",
"0.7",
".0"
],
"nodeType": "PragmaDirective",
"src": "640:23:17"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 2428,
"linearizedBaseContracts": [
2428
],
"name": "ILendingPool",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "5cffe9de",
"id": 2427,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "flashLoan",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2425,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2418,
"mutability": "mutable",
"name": "_receiver",
"nodeType": "VariableDeclaration",
"scope": 2427,
"src": "722:17:17",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2417,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "722:7:17",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2420,
"mutability": "mutable",
"name": "_reserve",
"nodeType": "VariableDeclaration",
"scope": 2427,
"src": "749:16:17",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2419,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "749:7:17",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2422,
"mutability": "mutable",
"name": "_amount",
"nodeType": "VariableDeclaration",
"scope": 2427,
"src": "775:15:17",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2421,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "775:7:17",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 2424,
"mutability": "mutable",
"name": "_params",
"nodeType": "VariableDeclaration",
"scope": 2427,
"src": "800:20:17",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 2423,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "800:5:17",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "712:114:17"
},
"returnParameters": {
"id": 2426,
"nodeType": "ParameterList",
"parameters": [],
"src": "835:0:17"
},
"scope": 2428,
"src": "694:142:17",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 2429,
"src": "665:173:17"
}
],
"src": "640:199:17"
},
"legacyAST": {
"attributes": {
"absolutePath": "/Users/andrekorol/src/kollateral/protocol/contracts/liquidity/aave/ILendingPool.sol",
"exportedSymbols": {
"ILendingPool": [
2428
]
},
"license": "Apache-2.0"
},
"children": [
{
"attributes": {
"literals": [
"solidity",
"^",
"0.7",
".0"
]
},
"id": 2416,
"name": "PragmaDirective",
"src": "640:23:17"
},
{
"attributes": {
"abstract": false,
"baseContracts": [
null
],
"contractDependencies": [
null
],
"contractKind": "interface",
"fullyImplemented": false,
"linearizedBaseContracts": [
2428
],
"name": "ILendingPool",
"scope": 2429
},
"children": [
{
"attributes": {
"functionSelector": "5cffe9de",
"implemented": false,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "flashLoan",
"scope": 2428,
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "_receiver",
"scope": 2427,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 2417,
"name": "ElementaryTypeName",
"src": "722:7:17"
}
],
"id": 2418,
"name": "VariableDeclaration",
"src": "722:17:17"
},
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "_reserve",
"scope": 2427,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 2419,
"name": "ElementaryTypeName",
"src": "749:7:17"
}
],
"id": 2420,
"name": "VariableDeclaration",
"src": "749:16:17"
},
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "_amount",
"scope": 2427,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint256",
"type": "uint256"
},
"id": 2421,
"name": "ElementaryTypeName",
"src": "775:7:17"
}
],
"id": 2422,
"name": "VariableDeclaration",
"src": "775:15:17"
},
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "_params",
"scope": 2427,
"stateVariable": false,
"storageLocation": "memory",
"type": "bytes",
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "bytes",
"type": "bytes"
},
"id": 2423,
"name": "ElementaryTypeName",
"src": "800:5:17"
}
],
"id": 2424,
"name": "VariableDeclaration",
"src": "800:20:17"
}
],
"id": 2425,
"name": "ParameterList",
"src": "712:114:17"
},
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 2426,
"name": "ParameterList",
"src": "835:0:17"
}
],
"id": 2427,
"name": "FunctionDefinition",
"src": "694:142:17"
}
],
"id": 2428,
"name": "ContractDefinition",
"src": "665:173:17"
}
],
"id": 2429,
"name": "SourceUnit",
"src": "640:199:17"
},
"compiler": {
"name": "solc",
"version": "0.7.3+commit.9bfce1f6.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.3.3",
"updatedAt": "2021-02-01T23:13:33.213Z",
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}