UNPKG

moonwalkerswap-v1-core

Version:
414 lines 17.6 kB
{ "contractName": "IMoonwalkerFlashCallback", "abi": [ { "inputs": [ { "internalType": "uint256", "name": "fee0", "type": "uint256" }, { "internalType": "uint256", "name": "fee1", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "moonwalkerFlashCallback", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.7.6+commit.7338295f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"fee0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"fee1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"moonwalkerFlashCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"moonwalkerFlashCallback(uint256,uint256,bytes)\":{\"details\":\"In the implementation you must repay the pool the tokens sent by flash plus the computed fee amounts. The caller of this method must be checked to be a MoonwalkerPool deployed by the canonical MoonwalkerV3Factory.\",\"params\":{\"data\":\"Any data passed through by the caller via the IMoonwalkerPoolActions#flash call\",\"fee0\":\"The fee amount in token0 due to the pool by the end of the flash\",\"fee1\":\"The fee amount in token1 due to the pool by the end of the flash\"}}},\"title\":\"Callback for IMoonwalkerPoolActions#flash\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"moonwalkerFlashCallback(uint256,uint256,bytes)\":{\"notice\":\"Called to `msg.sender` after transferring to the recipient from IMoonwalkerPool#flash.\"}},\"notice\":\"Any contract that calls IMoonwalkerPoolActions#flash must implement this interface\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/interfaces/callback/IMoonwalkerFlashCallback.sol\":\"IMoonwalkerFlashCallback\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/interfaces/callback/IMoonwalkerFlashCallback.sol\":{\"keccak256\":\"0x456376424212df363adc087b56dedac6c014f739adb86640478d1a93ca59f3db\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0abf23d373a3983679e9d8c396a59a9c0837ec26c4e94efbfaec9cae4a581a73\",\"dweb:/ipfs/QmZMpv8X5daH19PrTwYQqcpTr51u5zDE2rBqLLFeCuAoz9\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "immutableReferences": {}, "generatedSources": [], "deployedGeneratedSources": [], "sourceMap": "", "deployedSourceMap": "", "source": "// SPDX-License-Identifier: MIT\npragma solidity >=0.5.0;\n\n/// @title Callback for IMoonwalkerPoolActions#flash\n/// @notice Any contract that calls IMoonwalkerPoolActions#flash must implement this interface\ninterface IMoonwalkerFlashCallback {\n /// @notice Called to `msg.sender` after transferring to the recipient from IMoonwalkerPool#flash.\n /// @dev In the implementation you must repay the pool the tokens sent by flash plus the computed fee amounts.\n /// The caller of this method must be checked to be a MoonwalkerPool deployed by the canonical MoonwalkerV3Factory.\n /// @param fee0 The fee amount in token0 due to the pool by the end of the flash\n /// @param fee1 The fee amount in token1 due to the pool by the end of the flash\n /// @param data Any data passed through by the caller via the IMoonwalkerPoolActions#flash call\n function moonwalkerFlashCallback(\n uint256 fee0,\n uint256 fee1,\n bytes calldata data\n ) external;\n}\n", "sourcePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/interfaces/callback/IMoonwalkerFlashCallback.sol", "ast": { "absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/interfaces/callback/IMoonwalkerFlashCallback.sol", "exportedSymbols": { "IMoonwalkerFlashCallback": [ 3073 ] }, "id": 3074, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 3061, "literals": [ "solidity", ">=", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "32:24:8" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": { "id": 3062, "nodeType": "StructuredDocumentation", "src": "58:148:8", "text": "@title Callback for IMoonwalkerPoolActions#flash\n @notice Any contract that calls IMoonwalkerPoolActions#flash must implement this interface" }, "fullyImplemented": false, "id": 3073, "linearizedBaseContracts": [ 3073 ], "name": "IMoonwalkerFlashCallback", "nodeType": "ContractDefinition", "nodes": [ { "documentation": { "id": 3063, "nodeType": "StructuredDocumentation", "src": "247:603:8", "text": "@notice Called to `msg.sender` after transferring to the recipient from IMoonwalkerPool#flash.\n @dev In the implementation you must repay the pool the tokens sent by flash plus the computed fee amounts.\n The caller of this method must be checked to be a MoonwalkerPool deployed by the canonical MoonwalkerV3Factory.\n @param fee0 The fee amount in token0 due to the pool by the end of the flash\n @param fee1 The fee amount in token1 due to the pool by the end of the flash\n @param data Any data passed through by the caller via the IMoonwalkerPoolActions#flash call" }, "functionSelector": "f8ed26dc", "id": 3072, "implemented": false, "kind": "function", "modifiers": [], "name": "moonwalkerFlashCallback", "nodeType": "FunctionDefinition", "parameters": { "id": 3070, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3065, "mutability": "mutable", "name": "fee0", "nodeType": "VariableDeclaration", "scope": 3072, "src": "897:12:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3064, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "897:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 3067, "mutability": "mutable", "name": "fee1", "nodeType": "VariableDeclaration", "scope": 3072, "src": "919:12:8", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3066, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "919:7:8", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" }, { "constant": false, "id": 3069, "mutability": "mutable", "name": "data", "nodeType": "VariableDeclaration", "scope": 3072, "src": "941:19:8", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes" }, "typeName": { "id": 3068, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "941:5:8", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "visibility": "internal" } ], "src": "887:79:8" }, "returnParameters": { "id": 3071, "nodeType": "ParameterList", "parameters": [], "src": "975:0:8" }, "scope": 3073, "src": "855:121:8", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" } ], "scope": 3074, "src": "206:772:8" } ], "src": "32:947:8" }, "legacyAST": { "attributes": { "absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/interfaces/callback/IMoonwalkerFlashCallback.sol", "exportedSymbols": { "IMoonwalkerFlashCallback": [ 3073 ] }, "license": "MIT" }, "children": [ { "attributes": { "literals": [ "solidity", ">=", "0.5", ".0" ] }, "id": 3061, "name": "PragmaDirective", "src": "32:24:8" }, { "attributes": { "abstract": false, "baseContracts": [ null ], "contractDependencies": [ null ], "contractKind": "interface", "fullyImplemented": false, "linearizedBaseContracts": [ 3073 ], "name": "IMoonwalkerFlashCallback", "scope": 3074 }, "children": [ { "attributes": { "text": "@title Callback for IMoonwalkerPoolActions#flash\n @notice Any contract that calls IMoonwalkerPoolActions#flash must implement this interface" }, "id": 3062, "name": "StructuredDocumentation", "src": "58:148:8" }, { "attributes": { "functionSelector": "f8ed26dc", "implemented": false, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "moonwalkerFlashCallback", "scope": 3073, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, "children": [ { "attributes": { "text": "@notice Called to `msg.sender` after transferring to the recipient from IMoonwalkerPool#flash.\n @dev In the implementation you must repay the pool the tokens sent by flash plus the computed fee amounts.\n The caller of this method must be checked to be a MoonwalkerPool deployed by the canonical MoonwalkerV3Factory.\n @param fee0 The fee amount in token0 due to the pool by the end of the flash\n @param fee1 The fee amount in token1 due to the pool by the end of the flash\n @param data Any data passed through by the caller via the IMoonwalkerPoolActions#flash call" }, "id": 3063, "name": "StructuredDocumentation", "src": "247:603:8" }, { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "fee0", "scope": 3072, "stateVariable": false, "storageLocation": "default", "type": "uint256", "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 3064, "name": "ElementaryTypeName", "src": "897:7:8" } ], "id": 3065, "name": "VariableDeclaration", "src": "897:12:8" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "fee1", "scope": 3072, "stateVariable": false, "storageLocation": "default", "type": "uint256", "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 3066, "name": "ElementaryTypeName", "src": "919:7:8" } ], "id": 3067, "name": "VariableDeclaration", "src": "919:12:8" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "data", "scope": 3072, "stateVariable": false, "storageLocation": "calldata", "type": "bytes", "visibility": "internal" }, "children": [ { "attributes": { "name": "bytes", "type": "bytes" }, "id": 3068, "name": "ElementaryTypeName", "src": "941:5:8" } ], "id": 3069, "name": "VariableDeclaration", "src": "941:19:8" } ], "id": 3070, "name": "ParameterList", "src": "887:79:8" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 3071, "name": "ParameterList", "src": "975:0:8" } ], "id": 3072, "name": "FunctionDefinition", "src": "855:121:8" } ], "id": 3073, "name": "ContractDefinition", "src": "206:772:8" } ], "id": 3074, "name": "SourceUnit", "src": "32:947:8" }, "compiler": { "name": "solc", "version": "0.7.6+commit.7338295f.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.4.1", "updatedAt": "2022-01-17T20:05:41.698Z", "devdoc": { "kind": "dev", "methods": { "moonwalkerFlashCallback(uint256,uint256,bytes)": { "details": "In the implementation you must repay the pool the tokens sent by flash plus the computed fee amounts. The caller of this method must be checked to be a MoonwalkerPool deployed by the canonical MoonwalkerV3Factory.", "params": { "data": "Any data passed through by the caller via the IMoonwalkerPoolActions#flash call", "fee0": "The fee amount in token0 due to the pool by the end of the flash", "fee1": "The fee amount in token1 due to the pool by the end of the flash" } } }, "title": "Callback for IMoonwalkerPoolActions#flash", "version": 1 }, "userdoc": { "kind": "user", "methods": { "moonwalkerFlashCallback(uint256,uint256,bytes)": { "notice": "Called to `msg.sender` after transferring to the recipient from IMoonwalkerPool#flash." } }, "notice": "Any contract that calls IMoonwalkerPoolActions#flash must implement this interface", "version": 1 } }