UNPKG

@windfallswap/core

Version:

🎛 Core contracts for the Windfall Swap protocol

1,427 lines (1,426 loc) • 78.2 kB
{ "contractName": "IERC20", "abi": [ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "constant": true, "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "symbol", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "totalSupply", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "address", "name": "owner", "type": "address" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" } ], "name": "allowance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "approve", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "transfer", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/D/defi/windfall/windfallswap-core/contracts/interfaces/IERC20.sol\":\"IERC20\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":999999},\"remappings\":[]},\"sources\":{\"/D/defi/windfall/windfallswap-core/contracts/interfaces/IERC20.sol\":{\"keccak256\":\"0xa791b279660ee5eb66ebd4f23b539055d178ae24677f3a164567441ecfdcf73a\",\"urls\":[\"bzz-raw://06f36f585a8b82eb388ccccc4e8c483718a99a07f5f12d3217afc254ab139a68\",\"dweb:/ipfs/Qmedr3aAH6F3ZTgZJ3enoP92ZD8yNwiCStwtGknNXhiK8v\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity >=0.5.0;\r\n\r\ninterface IERC20 {\r\n event Approval(address indexed owner, address indexed spender, uint value);\r\n event Transfer(address indexed from, address indexed to, uint value);\r\n\r\n function name() external view returns (string memory);\r\n function symbol() external view returns (string memory);\r\n function decimals() external view returns (uint8);\r\n function totalSupply() external view returns (uint);\r\n function balanceOf(address owner) external view returns (uint);\r\n function allowance(address owner, address spender) external view returns (uint);\r\n\r\n function approve(address spender, uint value) external returns (bool);\r\n function transfer(address to, uint value) external returns (bool);\r\n function transferFrom(address from, address to, uint value) external returns (bool);\r\n}\r\n", "sourcePath": "D:\\defi\\windfall\\windfallswap-core\\contracts\\interfaces\\IERC20.sol", "ast": { "absolutePath": "/D/defi/windfall/windfallswap-core/contracts/interfaces/IERC20.sol", "exportedSymbols": { "IERC20": [ 1737 ] }, "id": 1738, "nodeType": "SourceUnit", "nodes": [ { "id": 1655, "literals": [ "solidity", ">=", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "0:24:4" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 1737, "linearizedBaseContracts": [ 1737 ], "name": "IERC20", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "documentation": null, "id": 1663, "name": "Approval", "nodeType": "EventDefinition", "parameters": { "id": 1662, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1657, "indexed": true, "name": "owner", "nodeType": "VariableDeclaration", "scope": 1663, "src": "67:21:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1656, "name": "address", "nodeType": "ElementaryTypeName", "src": "67:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1659, "indexed": true, "name": "spender", "nodeType": "VariableDeclaration", "scope": 1663, "src": "90:23:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1658, "name": "address", "nodeType": "ElementaryTypeName", "src": "90:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1661, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", "scope": 1663, "src": "115:10:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1660, "name": "uint", "nodeType": "ElementaryTypeName", "src": "115:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "66:60:4" }, "src": "52:75:4" }, { "anonymous": false, "documentation": null, "id": 1671, "name": "Transfer", "nodeType": "EventDefinition", "parameters": { "id": 1670, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1665, "indexed": true, "name": "from", "nodeType": "VariableDeclaration", "scope": 1671, "src": "148:20:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1664, "name": "address", "nodeType": "ElementaryTypeName", "src": "148:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1667, "indexed": true, "name": "to", "nodeType": "VariableDeclaration", "scope": 1671, "src": "170:18:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1666, "name": "address", "nodeType": "ElementaryTypeName", "src": "170:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1669, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", "scope": 1671, "src": "190:10:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1668, "name": "uint", "nodeType": "ElementaryTypeName", "src": "190:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "147:54:4" }, "src": "133:69:4" }, { "body": null, "documentation": null, "id": 1676, "implemented": false, "kind": "function", "modifiers": [], "name": "name", "nodeType": "FunctionDefinition", "parameters": { "id": 1672, "nodeType": "ParameterList", "parameters": [], "src": "223:2:4" }, "returnParameters": { "id": 1675, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1674, "name": "", "nodeType": "VariableDeclaration", "scope": 1676, "src": "249:13:4", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1673, "name": "string", "nodeType": "ElementaryTypeName", "src": "249:6:4", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "248:15:4" }, "scope": 1737, "src": "210:54:4", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 1681, "implemented": false, "kind": "function", "modifiers": [], "name": "symbol", "nodeType": "FunctionDefinition", "parameters": { "id": 1677, "nodeType": "ParameterList", "parameters": [], "src": "285:2:4" }, "returnParameters": { "id": 1680, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1679, "name": "", "nodeType": "VariableDeclaration", "scope": 1681, "src": "311:13:4", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1678, "name": "string", "nodeType": "ElementaryTypeName", "src": "311:6:4", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "310:15:4" }, "scope": 1737, "src": "270:56:4", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 1686, "implemented": false, "kind": "function", "modifiers": [], "name": "decimals", "nodeType": "FunctionDefinition", "parameters": { "id": 1682, "nodeType": "ParameterList", "parameters": [], "src": "349:2:4" }, "returnParameters": { "id": 1685, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1684, "name": "", "nodeType": "VariableDeclaration", "scope": 1686, "src": "375:5:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 1683, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "375:5:4", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": null, "visibility": "internal" } ], "src": "374:7:4" }, "scope": 1737, "src": "332:50:4", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 1691, "implemented": false, "kind": "function", "modifiers": [], "name": "totalSupply", "nodeType": "FunctionDefinition", "parameters": { "id": 1687, "nodeType": "ParameterList", "parameters": [], "src": "408:2:4" }, "returnParameters": { "id": 1690, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1689, "name": "", "nodeType": "VariableDeclaration", "scope": 1691, "src": "434:4:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1688, "name": "uint", "nodeType": "ElementaryTypeName", "src": "434:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "433:6:4" }, "scope": 1737, "src": "388:52:4", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 1698, "implemented": false, "kind": "function", "modifiers": [], "name": "balanceOf", "nodeType": "FunctionDefinition", "parameters": { "id": 1694, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1693, "name": "owner", "nodeType": "VariableDeclaration", "scope": 1698, "src": "465:13:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1692, "name": "address", "nodeType": "ElementaryTypeName", "src": "465:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "464:15:4" }, "returnParameters": { "id": 1697, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1696, "name": "", "nodeType": "VariableDeclaration", "scope": 1698, "src": "503:4:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1695, "name": "uint", "nodeType": "ElementaryTypeName", "src": "503:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "502:6:4" }, "scope": 1737, "src": "446:63:4", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 1707, "implemented": false, "kind": "function", "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { "id": 1703, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1700, "name": "owner", "nodeType": "VariableDeclaration", "scope": 1707, "src": "534:13:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1699, "name": "address", "nodeType": "ElementaryTypeName", "src": "534:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1702, "name": "spender", "nodeType": "VariableDeclaration", "scope": 1707, "src": "549:15:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1701, "name": "address", "nodeType": "ElementaryTypeName", "src": "549:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "533:32:4" }, "returnParameters": { "id": 1706, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1705, "name": "", "nodeType": "VariableDeclaration", "scope": 1707, "src": "589:4:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1704, "name": "uint", "nodeType": "ElementaryTypeName", "src": "589:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "588:6:4" }, "scope": 1737, "src": "515:80:4", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 1716, "implemented": false, "kind": "function", "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { "id": 1712, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1709, "name": "spender", "nodeType": "VariableDeclaration", "scope": 1716, "src": "620:15:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1708, "name": "address", "nodeType": "ElementaryTypeName", "src": "620:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1711, "name": "value", "nodeType": "VariableDeclaration", "scope": 1716, "src": "637:10:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1710, "name": "uint", "nodeType": "ElementaryTypeName", "src": "637:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "619:29:4" }, "returnParameters": { "id": 1715, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1714, "name": "", "nodeType": "VariableDeclaration", "scope": 1716, "src": "667:4:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 1713, "name": "bool", "nodeType": "ElementaryTypeName", "src": "667:4:4", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "666:6:4" }, "scope": 1737, "src": "603:70:4", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 1725, "implemented": false, "kind": "function", "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { "id": 1721, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1718, "name": "to", "nodeType": "VariableDeclaration", "scope": 1725, "src": "697:10:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1717, "name": "address", "nodeType": "ElementaryTypeName", "src": "697:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1720, "name": "value", "nodeType": "VariableDeclaration", "scope": 1725, "src": "709:10:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1719, "name": "uint", "nodeType": "ElementaryTypeName", "src": "709:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "696:24:4" }, "returnParameters": { "id": 1724, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1723, "name": "", "nodeType": "VariableDeclaration", "scope": 1725, "src": "739:4:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 1722, "name": "bool", "nodeType": "ElementaryTypeName", "src": "739:4:4", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "738:6:4" }, "scope": 1737, "src": "679:66:4", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 1736, "implemented": false, "kind": "function", "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { "id": 1732, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1727, "name": "from", "nodeType": "VariableDeclaration", "scope": 1736, "src": "773:12:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1726, "name": "address", "nodeType": "ElementaryTypeName", "src": "773:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1729, "name": "to", "nodeType": "VariableDeclaration", "scope": 1736, "src": "787:10:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1728, "name": "address", "nodeType": "ElementaryTypeName", "src": "787:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1731, "name": "value", "nodeType": "VariableDeclaration", "scope": 1736, "src": "799:10:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1730, "name": "uint", "nodeType": "ElementaryTypeName", "src": "799:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "772:38:4" }, "returnParameters": { "id": 1735, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1734, "name": "", "nodeType": "VariableDeclaration", "scope": 1736, "src": "829:4:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 1733, "name": "bool", "nodeType": "ElementaryTypeName", "src": "829:4:4", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "828:6:4" }, "scope": 1737, "src": "751:84:4", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" } ], "scope": 1738, "src": "28:810:4" } ], "src": "0:840:4" }, "legacyAST": { "absolutePath": "/D/defi/windfall/windfallswap-core/contracts/interfaces/IERC20.sol", "exportedSymbols": { "IERC20": [ 1737 ] }, "id": 1738, "nodeType": "SourceUnit", "nodes": [ { "id": 1655, "literals": [ "solidity", ">=", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "0:24:4" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 1737, "linearizedBaseContracts": [ 1737 ], "name": "IERC20", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "documentation": null, "id": 1663, "name": "Approval", "nodeType": "EventDefinition", "parameters": { "id": 1662, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1657, "indexed": true, "name": "owner", "nodeType": "VariableDeclaration", "scope": 1663, "src": "67:21:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1656, "name": "address", "nodeType": "ElementaryTypeName", "src": "67:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1659, "indexed": true, "name": "spender", "nodeType": "VariableDeclaration", "scope": 1663, "src": "90:23:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1658, "name": "address", "nodeType": "ElementaryTypeName", "src": "90:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1661, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", "scope": 1663, "src": "115:10:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1660, "name": "uint", "nodeType": "ElementaryTypeName", "src": "115:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "66:60:4" }, "src": "52:75:4" }, { "anonymous": false, "documentation": null, "id": 1671, "name": "Transfer", "nodeType": "EventDefinition", "parameters": { "id": 1670, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1665, "indexed": true, "name": "from", "nodeType": "VariableDeclaration", "scope": 1671, "src": "148:20:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1664, "name": "address", "nodeType": "ElementaryTypeName", "src": "148:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1667, "indexed": true, "name": "to", "nodeType": "VariableDeclaration", "scope": 1671, "src": "170:18:4", "stateVariable": false, "storageLocation": "default",