UNPKG

@windfallswap/core

Version:

🎛 Core contracts for the Windfall Swap protocol

403 lines • 13.9 kB
{ "contractName": "IWindfallCallee", "abi": [ { "constant": false, "inputs": [ { "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "amount0", "type": "uint256" }, { "internalType": "uint256", "name": "amount1", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "windfallCall", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"windfallCall\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/D/defi/windfall/windfallswap-core/contracts/interfaces/IWindfallCallee.sol\":\"IWindfallCallee\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":999999},\"remappings\":[]},\"sources\":{\"/D/defi/windfall/windfallswap-core/contracts/interfaces/IWindfallCallee.sol\":{\"keccak256\":\"0x112c038ab6f80af2490dc7b4fa7e2acd2938e3f40181be2d9bd9fd8eaa75dcea\",\"urls\":[\"bzz-raw://794a923d15a9b2fb42b0dcd299636f8075688b721a4d2b65011a39cce81a61ba\",\"dweb:/ipfs/QmZfkPPhWPqNfYvX7BBznyNWqMngDFxP1CGPMv7b5kJ1pp\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity >=0.5.0;\r\n\r\ninterface IWindfallCallee {\r\n function windfallCall(address sender, uint amount0, uint amount1, bytes calldata data) external;\r\n}\r\n", "sourcePath": "D:\\defi\\windfall\\windfallswap-core\\contracts\\interfaces\\IWindfallCallee.sol", "ast": { "absolutePath": "/D/defi/windfall/windfallswap-core/contracts/interfaces/IWindfallCallee.sol", "exportedSymbols": { "IWindfallCallee": [ 1751 ] }, "id": 1752, "nodeType": "SourceUnit", "nodes": [ { "id": 1739, "literals": [ "solidity", ">=", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "0:24:5" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 1751, "linearizedBaseContracts": [ 1751 ], "name": "IWindfallCallee", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 1750, "implemented": false, "kind": "function", "modifiers": [], "name": "windfallCall", "nodeType": "FunctionDefinition", "parameters": { "id": 1748, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1741, "name": "sender", "nodeType": "VariableDeclaration", "scope": 1750, "src": "83:14:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1740, "name": "address", "nodeType": "ElementaryTypeName", "src": "83:7:5", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1743, "name": "amount0", "nodeType": "VariableDeclaration", "scope": 1750, "src": "99:12:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1742, "name": "uint", "nodeType": "ElementaryTypeName", "src": "99:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1745, "name": "amount1", "nodeType": "VariableDeclaration", "scope": 1750, "src": "113:12:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1744, "name": "uint", "nodeType": "ElementaryTypeName", "src": "113:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1747, "name": "data", "nodeType": "VariableDeclaration", "scope": 1750, "src": "127:19:5", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes" }, "typeName": { "id": 1746, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "127:5:5", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "82:65:5" }, "returnParameters": { "id": 1749, "nodeType": "ParameterList", "parameters": [], "src": "156:0:5" }, "scope": 1751, "src": "61:96:5", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" } ], "scope": 1752, "src": "28:132:5" } ], "src": "0:162:5" }, "legacyAST": { "absolutePath": "/D/defi/windfall/windfallswap-core/contracts/interfaces/IWindfallCallee.sol", "exportedSymbols": { "IWindfallCallee": [ 1751 ] }, "id": 1752, "nodeType": "SourceUnit", "nodes": [ { "id": 1739, "literals": [ "solidity", ">=", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "0:24:5" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 1751, "linearizedBaseContracts": [ 1751 ], "name": "IWindfallCallee", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 1750, "implemented": false, "kind": "function", "modifiers": [], "name": "windfallCall", "nodeType": "FunctionDefinition", "parameters": { "id": 1748, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1741, "name": "sender", "nodeType": "VariableDeclaration", "scope": 1750, "src": "83:14:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1740, "name": "address", "nodeType": "ElementaryTypeName", "src": "83:7:5", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1743, "name": "amount0", "nodeType": "VariableDeclaration", "scope": 1750, "src": "99:12:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1742, "name": "uint", "nodeType": "ElementaryTypeName", "src": "99:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1745, "name": "amount1", "nodeType": "VariableDeclaration", "scope": 1750, "src": "113:12:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1744, "name": "uint", "nodeType": "ElementaryTypeName", "src": "113:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1747, "name": "data", "nodeType": "VariableDeclaration", "scope": 1750, "src": "127:19:5", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes" }, "typeName": { "id": 1746, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "127:5:5", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "82:65:5" }, "returnParameters": { "id": 1749, "nodeType": "ParameterList", "parameters": [], "src": "156:0:5" }, "scope": 1751, "src": "61:96:5", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" } ], "scope": 1752, "src": "28:132:5" } ], "src": "0:162:5" }, "compiler": { "name": "solc", "version": "0.5.16+commit.9c3226ce.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.3.2", "updatedAt": "2020-12-24T12:08:49.550Z", "devdoc": { "methods": {} }, "userdoc": { "methods": {} } }