164 lines
4.3 KiB
JSON
164 lines
4.3 KiB
JSON
{
|
|
"compiler": {
|
|
"version": "0.8.26+commit.8a97fa7a"
|
|
},
|
|
"language": "Solidity",
|
|
"output": {
|
|
"abi": [
|
|
{
|
|
"inputs": [],
|
|
"name": "ADDRESSES_PROVIDER",
|
|
"outputs": [
|
|
{
|
|
"internalType": "contract IPoolAddressesProvider",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [],
|
|
"name": "POOL",
|
|
"outputs": [
|
|
{
|
|
"internalType": "contract IPool",
|
|
"name": "",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "asset",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "amount",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "premium",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "initiator",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "bytes",
|
|
"name": "params",
|
|
"type": "bytes"
|
|
}
|
|
],
|
|
"name": "executeOperation",
|
|
"outputs": [
|
|
{
|
|
"internalType": "bool",
|
|
"name": "",
|
|
"type": "bool"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable",
|
|
"type": "function"
|
|
}
|
|
],
|
|
"devdoc": {
|
|
"author": "Aave",
|
|
"kind": "dev",
|
|
"methods": {
|
|
"executeOperation(address,uint256,uint256,address,bytes)": {
|
|
"details": "Ensure that the contract can return the debt + premium, e.g., has enough funds to repay and has approved the Pool to pull the total amount",
|
|
"params": {
|
|
"amount": "The amount of the flash-borrowed asset",
|
|
"asset": "The address of the flash-borrowed asset",
|
|
"initiator": "The address of the flashloan initiator",
|
|
"params": "The byte-encoded params passed when initiating the flashloan",
|
|
"premium": "The fee of the flash-borrowed asset"
|
|
},
|
|
"returns": {
|
|
"_0": "True if the execution of the operation succeeds, false otherwise"
|
|
}
|
|
}
|
|
},
|
|
"title": "FlashLoanSimpleReceiverBase",
|
|
"version": 1
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {
|
|
"executeOperation(address,uint256,uint256,address,bytes)": {
|
|
"notice": "Executes an operation after receiving the flash-borrowed asset"
|
|
}
|
|
},
|
|
"notice": "Base contract to develop a flashloan-receiver contract.",
|
|
"version": 1
|
|
}
|
|
},
|
|
"settings": {
|
|
"compilationTarget": {
|
|
"contracts/flashloan/base/FlashLoanSimpleReceiverBase.sol": "FlashLoanSimpleReceiverBase"
|
|
},
|
|
"evmVersion": "cancun",
|
|
"libraries": {},
|
|
"metadata": {
|
|
"bytecodeHash": "ipfs"
|
|
},
|
|
"optimizer": {
|
|
"enabled": false,
|
|
"runs": 200
|
|
},
|
|
"remappings": []
|
|
},
|
|
"sources": {
|
|
"contracts/flashloan/base/FlashLoanSimpleReceiverBase.sol": {
|
|
"keccak256": "0x8a98a3b7ebf150ec02e94091ad159812e8d1f36ce52c8814f82e6aea7bb57af5",
|
|
"license": "AGPL-3.0",
|
|
"urls": [
|
|
"bzz-raw://acddd9e206372baa12f4c29671fec34ed54a4ce6055268002614286555939214",
|
|
"dweb:/ipfs/QmVDXSJCFMs9KqgRZH8r65XeM25m1Q5uKSchX5iashxdKk"
|
|
]
|
|
},
|
|
"contracts/flashloan/interfaces/IFlashLoanSimpleReceiver.sol": {
|
|
"keccak256": "0xa708476930b78c899c6921e5954688a230ccb6a0b868bcdb84ba9aab5665db2a",
|
|
"license": "AGPL-3.0",
|
|
"urls": [
|
|
"bzz-raw://315f474494ab74142aacc680cb1c6320900ab55d85321657736a1f91a6ec43a3",
|
|
"dweb:/ipfs/QmSPvCzv43Fwj35h1VLzjdZWJMVfEmmsH6giC2AJHaMeiW"
|
|
]
|
|
},
|
|
"contracts/interfaces/IPool.sol": {
|
|
"keccak256": "0x91fc8cafd9f6fda5046620662d57c5ab5f724375be08903114576216a4980629",
|
|
"license": "AGPL-3.0",
|
|
"urls": [
|
|
"bzz-raw://87c472da79a61750b3cd010532de6092c6be145591f27ca5436850e9985cf3ae",
|
|
"dweb:/ipfs/QmSVysBKZUepgucokF4Av7i3PJQSj2RSpXKKfYaAcYkR6d"
|
|
]
|
|
},
|
|
"contracts/interfaces/IPoolAddressesProvider.sol": {
|
|
"keccak256": "0xf37b9fdb389d45783acfc16664c06f28af953d4a409d1059bdf10b917d41fd4a",
|
|
"license": "AGPL-3.0",
|
|
"urls": [
|
|
"bzz-raw://bb3c42a324ea0adf0095b1e3ea05df7edd70816cfd472e79a29a4fd5b196fa7b",
|
|
"dweb:/ipfs/QmcSYcH5NZc96EHqAp7sY5Gxvo1229gLnihyBfqme5EdGj"
|
|
]
|
|
},
|
|
"contracts/protocol/libraries/types/DataTypes.sol": {
|
|
"keccak256": "0xf484b9e835d41d75d2ad32ea241e1cc859f278df49a8c4ceb2c0299036e577be",
|
|
"license": "BUSL-1.1",
|
|
"urls": [
|
|
"bzz-raw://eafa12cff7ec168fd0e868ffee3931cc128c57bab003efbdb30e67e73d477fe3",
|
|
"dweb:/ipfs/QmU6nessQ7F1JLRbeYzZzgkh4E5mRdVh3YqLNN5nxGuUvb"
|
|
]
|
|
}
|
|
},
|
|
"version": 1
|
|
} |