UNPKG

moonwalkerswap-v1-core

Version:
1,187 lines 79.7 kB
{ "contractName": "IERC20Minimal", "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" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "recipient", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "transfer", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" } ], "name": "allowance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "approve", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "address", "name": "recipient", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.7.6+commit.7338295f\"},\"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\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"Approval(address,address,uint256)\":{\"params\":{\"owner\":\"The account that approved spending of its tokens\",\"spender\":\"The account for which the spending allowance was modified\",\"value\":\"The new allowance from the owner to the spender\"}},\"Transfer(address,address,uint256)\":{\"params\":{\"from\":\"The account from which the tokens were sent, i.e. the balance decreased\",\"to\":\"The account to which the tokens were sent, i.e. the balance increased\",\"value\":\"The amount of tokens that were transferred\"}}},\"kind\":\"dev\",\"methods\":{\"allowance(address,address)\":{\"params\":{\"owner\":\"The account of the token owner\",\"spender\":\"The account of the token spender\"},\"returns\":{\"_0\":\"The current allowance granted by `owner` to `spender`\"}},\"approve(address,uint256)\":{\"params\":{\"amount\":\"The amount of tokens allowed to be used by `spender`\",\"spender\":\"The account which will be allowed to spend a given amount of the owners tokens\"},\"returns\":{\"_0\":\"Returns true for a successful approval, false for unsuccessful\"}},\"balanceOf(address)\":{\"params\":{\"account\":\"The account for which to look up the number of tokens it has, i.e. its balance\"},\"returns\":{\"_0\":\"The number of tokens held by the account\"}},\"transfer(address,uint256)\":{\"params\":{\"amount\":\"The number of tokens to send from the sender to the recipient\",\"recipient\":\"The account that will receive the amount transferred\"},\"returns\":{\"_0\":\"Returns true for a successful transfer, false for an unsuccessful transfer\"}},\"transferFrom(address,address,uint256)\":{\"params\":{\"amount\":\"The amount of the transfer\",\"recipient\":\"The recipient of the transfer\",\"sender\":\"The account from which the transfer will be initiated\"},\"returns\":{\"_0\":\"Returns true for a successful transfer, false for unsuccessful\"}}},\"title\":\"Minimal ERC20 interface for Moonwalkerswap\",\"version\":1},\"userdoc\":{\"events\":{\"Approval(address,address,uint256)\":{\"notice\":\"Event emitted when the approval amount for the spender of a given owner's tokens changes.\"},\"Transfer(address,address,uint256)\":{\"notice\":\"Event emitted when tokens are transferred from one address to another, either via `#transfer` or `#transferFrom`.\"}},\"kind\":\"user\",\"methods\":{\"allowance(address,address)\":{\"notice\":\"Returns the current allowance given to a spender by an owner\"},\"approve(address,uint256)\":{\"notice\":\"Sets the allowance of a spender from the `msg.sender` to the value `amount`\"},\"balanceOf(address)\":{\"notice\":\"Returns the balance of a token\"},\"transfer(address,uint256)\":{\"notice\":\"Transfers the amount of token from the `msg.sender` to the recipient\"},\"transferFrom(address,address,uint256)\":{\"notice\":\"Transfers `amount` tokens from `sender` to `recipient` up to the allowance given to the `msg.sender`\"}},\"notice\":\"Contains a subset of the full ERC20 interface that is used in Moonwalkerswap\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/interfaces/IERC20Minimal.sol\":\"IERC20Minimal\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/interfaces/IERC20Minimal.sol\":{\"keccak256\":\"0x7ab95ce2d6a483f0255ecee7068989051c3ed85fce0c44fab13889e7a71334e1\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a62f6b6dc9ba1843687ad346a10cafc8d86b95d1f498032054f11baef3d6c22e\",\"dweb:/ipfs/QmdiDLfAZLr1pkE8ZVCnSgBocAEejPwstaJJvPN4LZYEcf\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "immutableReferences": {}, "generatedSources": [], "deployedGeneratedSources": [], "sourceMap": "", "deployedSourceMap": "", "source": "// SPDX-License-Identifier: MIT\npragma solidity >=0.5.0;\n\n/// @title Minimal ERC20 interface for Moonwalkerswap\n/// @notice Contains a subset of the full ERC20 interface that is used in Moonwalkerswap\ninterface IERC20Minimal {\n /// @notice Returns the balance of a token\n /// @param account The account for which to look up the number of tokens it has, i.e. its balance\n /// @return The number of tokens held by the account\n function balanceOf(address account) external view returns (uint256);\n\n /// @notice Transfers the amount of token from the `msg.sender` to the recipient\n /// @param recipient The account that will receive the amount transferred\n /// @param amount The number of tokens to send from the sender to the recipient\n /// @return Returns true for a successful transfer, false for an unsuccessful transfer\n function transfer(address recipient, uint256 amount) external returns (bool);\n\n /// @notice Returns the current allowance given to a spender by an owner\n /// @param owner The account of the token owner\n /// @param spender The account of the token spender\n /// @return The current allowance granted by `owner` to `spender`\n function allowance(address owner, address spender) external view returns (uint256);\n\n /// @notice Sets the allowance of a spender from the `msg.sender` to the value `amount`\n /// @param spender The account which will be allowed to spend a given amount of the owners tokens\n /// @param amount The amount of tokens allowed to be used by `spender`\n /// @return Returns true for a successful approval, false for unsuccessful\n function approve(address spender, uint256 amount) external returns (bool);\n\n /// @notice Transfers `amount` tokens from `sender` to `recipient` up to the allowance given to the `msg.sender`\n /// @param sender The account from which the transfer will be initiated\n /// @param recipient The recipient of the transfer\n /// @param amount The amount of the transfer\n /// @return Returns true for a successful transfer, false for unsuccessful\n function transferFrom(\n address sender,\n address recipient,\n uint256 amount\n ) external returns (bool);\n\n /// @notice Event emitted when tokens are transferred from one address to another, either via `#transfer` or `#transferFrom`.\n /// @param from The account from which the tokens were sent, i.e. the balance decreased\n /// @param to The account to which the tokens were sent, i.e. the balance increased\n /// @param value The amount of tokens that were transferred\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /// @notice Event emitted when the approval amount for the spender of a given owner's tokens changes.\n /// @param owner The account that approved spending of its tokens\n /// @param spender The account for which the spending allowance was modified\n /// @param value The new allowance from the owner to the spender\n event Approval(address indexed owner, address indexed spender, uint256 value);\n}\n", "sourcePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/interfaces/IERC20Minimal.sol", "ast": { "absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/interfaces/IERC20Minimal.sol", "exportedSymbols": { "IERC20Minimal": [ 2936 ] }, "id": 2937, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 2866, "literals": [ "solidity", ">=", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "32:24:4" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": { "id": 2867, "nodeType": "StructuredDocumentation", "src": "58:143:4", "text": "@title Minimal ERC20 interface for Moonwalkerswap\n @notice Contains a subset of the full ERC20 interface that is used in Moonwalkerswap" }, "fullyImplemented": false, "id": 2936, "linearizedBaseContracts": [ 2936 ], "name": "IERC20Minimal", "nodeType": "ContractDefinition", "nodes": [ { "documentation": { "id": 2868, "nodeType": "StructuredDocumentation", "src": "231:201:4", "text": "@notice Returns the balance of a token\n @param account The account for which to look up the number of tokens it has, i.e. its balance\n @return The number of tokens held by the account" }, "functionSelector": "70a08231", "id": 2875, "implemented": false, "kind": "function", "modifiers": [], "name": "balanceOf", "nodeType": "FunctionDefinition", "parameters": { "id": 2871, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2870, "mutability": "mutable", "name": "account", "nodeType": "VariableDeclaration", "scope": 2875, "src": "456:15:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2869, "name": "address", "nodeType": "ElementaryTypeName", "src": "456:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "455:17:4" }, "returnParameters": { "id": 2874, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2873, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "scope": 2875, "src": "496:7:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2872, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "496:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "495:9:4" }, "scope": 2936, "src": "437:68:4", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "documentation": { "id": 2876, "nodeType": "StructuredDocumentation", "src": "511:333:4", "text": "@notice Transfers the amount of token from the `msg.sender` to the recipient\n @param recipient The account that will receive the amount transferred\n @param amount The number of tokens to send from the sender to the recipient\n @return Returns true for a successful transfer, false for an unsuccessful transfer" }, "functionSelector": "a9059cbb", "id": 2885, "implemented": false, "kind": "function", "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { "id": 2881, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2878, "mutability": "mutable", "name": "recipient", "nodeType": "VariableDeclaration", "scope": 2885, "src": "867:17:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2877, "name": "address", "nodeType": "ElementaryTypeName", "src": "867:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 2880, "mutability": "mutable", "name": "amount", "nodeType": "VariableDeclaration", "scope": 2885, "src": "886:14:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2879, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "886:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "866:35:4" }, "returnParameters": { "id": 2884, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2883, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "scope": 2885, "src": "920:4:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 2882, "name": "bool", "nodeType": "ElementaryTypeName", "src": "920:4:4", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "919:6:4" }, "scope": 2936, "src": "849:77:4", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "documentation": { "id": 2886, "nodeType": "StructuredDocumentation", "src": "932:250:4", "text": "@notice Returns the current allowance given to a spender by an owner\n @param owner The account of the token owner\n @param spender The account of the token spender\n @return The current allowance granted by `owner` to `spender`" }, "functionSelector": "dd62ed3e", "id": 2895, "implemented": false, "kind": "function", "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { "id": 2891, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2888, "mutability": "mutable", "name": "owner", "nodeType": "VariableDeclaration", "scope": 2895, "src": "1206:13:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2887, "name": "address", "nodeType": "ElementaryTypeName", "src": "1206:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 2890, "mutability": "mutable", "name": "spender", "nodeType": "VariableDeclaration", "scope": 2895, "src": "1221:15:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2889, "name": "address", "nodeType": "ElementaryTypeName", "src": "1221:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" } ], "src": "1205:32:4" }, "returnParameters": { "id": 2894, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2893, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "scope": 2895, "src": "1261:7:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2892, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1261:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1260:9:4" }, "scope": 2936, "src": "1187:83:4", "stateMutability": "view", "virtual": false, "visibility": "external" }, { "documentation": { "id": 2896, "nodeType": "StructuredDocumentation", "src": "1276:343:4", "text": "@notice Sets the allowance of a spender from the `msg.sender` to the value `amount`\n @param spender The account which will be allowed to spend a given amount of the owners tokens\n @param amount The amount of tokens allowed to be used by `spender`\n @return Returns true for a successful approval, false for unsuccessful" }, "functionSelector": "095ea7b3", "id": 2905, "implemented": false, "kind": "function", "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { "id": 2901, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2898, "mutability": "mutable", "name": "spender", "nodeType": "VariableDeclaration", "scope": 2905, "src": "1641:15:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2897, "name": "address", "nodeType": "ElementaryTypeName", "src": "1641:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 2900, "mutability": "mutable", "name": "amount", "nodeType": "VariableDeclaration", "scope": 2905, "src": "1658:14:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2899, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "1658:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "1640:33:4" }, "returnParameters": { "id": 2904, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2903, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "scope": 2905, "src": "1692:4:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 2902, "name": "bool", "nodeType": "ElementaryTypeName", "src": "1692:4:4", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "1691:6:4" }, "scope": 2936, "src": "1624:74:4", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "documentation": { "id": 2906, "nodeType": "StructuredDocumentation", "src": "1704:371:4", "text": "@notice Transfers `amount` tokens from `sender` to `recipient` up to the allowance given to the `msg.sender`\n @param sender The account from which the transfer will be initiated\n @param recipient The recipient of the transfer\n @param amount The amount of the transfer\n @return Returns true for a successful transfer, false for unsuccessful" }, "functionSelector": "23b872dd", "id": 2917, "implemented": false, "kind": "function", "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { "id": 2913, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2908, "mutability": "mutable", "name": "sender", "nodeType": "VariableDeclaration", "scope": 2917, "src": "2111:14:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2907, "name": "address", "nodeType": "ElementaryTypeName", "src": "2111:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 2910, "mutability": "mutable", "name": "recipient", "nodeType": "VariableDeclaration", "scope": 2917, "src": "2135:17:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2909, "name": "address", "nodeType": "ElementaryTypeName", "src": "2135:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 2912, "mutability": "mutable", "name": "amount", "nodeType": "VariableDeclaration", "scope": 2917, "src": "2162:14:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2911, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2162:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "2101:81:4" }, "returnParameters": { "id": 2916, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2915, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "scope": 2917, "src": "2201:4:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 2914, "name": "bool", "nodeType": "ElementaryTypeName", "src": "2201:4:4", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "visibility": "internal" } ], "src": "2200:6:4" }, "scope": 2936, "src": "2080:127:4", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "anonymous": false, "documentation": { "id": 2918, "nodeType": "StructuredDocumentation", "src": "2213:369:4", "text": "@notice Event emitted when tokens are transferred from one address to another, either via `#transfer` or `#transferFrom`.\n @param from The account from which the tokens were sent, i.e. the balance decreased\n @param to The account to which the tokens were sent, i.e. the balance increased\n @param value The amount of tokens that were transferred" }, "id": 2926, "name": "Transfer", "nodeType": "EventDefinition", "parameters": { "id": 2925, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2920, "indexed": true, "mutability": "mutable", "name": "from", "nodeType": "VariableDeclaration", "scope": 2926, "src": "2602:20:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2919, "name": "address", "nodeType": "ElementaryTypeName", "src": "2602:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 2922, "indexed": true, "mutability": "mutable", "name": "to", "nodeType": "VariableDeclaration", "scope": 2926, "src": "2624:18:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2921, "name": "address", "nodeType": "ElementaryTypeName", "src": "2624:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 2924, "indexed": false, "mutability": "mutable", "name": "value", "nodeType": "VariableDeclaration", "scope": 2926, "src": "2644:13:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2923, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "2644:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "2601:57:4" }, "src": "2587:72:4" }, { "anonymous": false, "documentation": { "id": 2927, "nodeType": "StructuredDocumentation", "src": "2665:321:4", "text": "@notice Event emitted when the approval amount for the spender of a given owner's tokens changes.\n @param owner The account that approved spending of its tokens\n @param spender The account for which the spending allowance was modified\n @param value The new allowance from the owner to the spender" }, "id": 2935, "name": "Approval", "nodeType": "EventDefinition", "parameters": { "id": 2934, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2929, "indexed": true, "mutability": "mutable", "name": "owner", "nodeType": "VariableDeclaration", "scope": 2935, "src": "3006:21:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2928, "name": "address", "nodeType": "ElementaryTypeName", "src": "3006:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 2931, "indexed": true, "mutability": "mutable", "name": "spender", "nodeType": "VariableDeclaration", "scope": 2935, "src": "3029:23:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2930, "name": "address", "nodeType": "ElementaryTypeName", "src": "3029:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 2933, "indexed": false, "mutability": "mutable", "name": "value", "nodeType": "VariableDeclaration", "scope": 2935, "src": "3054:13:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2932, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "3054:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "visibility": "internal" } ], "src": "3005:63:4" }, "src": "2991:78:4" } ], "scope": 2937, "src": "201:2870:4" } ], "src": "32:3040:4" }, "legacyAST": { "attributes": { "absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/interfaces/IERC20Minimal.sol", "exportedSymbols": { "IERC20Minimal": [ 2936 ] }, "license": "MIT" }, "children": [ { "attributes": { "literals": [ "solidity", ">=", "0.5", ".0" ] }, "id": 2866, "name": "PragmaDirective", "src": "32:24:4" }, { "attributes": { "abstract": false, "baseContracts": [ null ], "contractDependencies": [ null ], "contractKind": "interface", "fullyImplemented": false, "linearizedBaseContracts": [ 2936 ], "name": "IERC20Minimal", "scope": 2937 }, "children": [ { "attributes": { "text": "@title Minimal ERC20 interface for Moonwalkerswap\n @notice Contains a subset of the full ERC20 interface that is used in Moonwalkerswap" }, "id": 2867, "name": "StructuredDocumentation", "src": "58:143:4" }, { "attributes": { "functionSelector": "70a08231", "implemented": false, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "balanceOf", "scope": 2936, "stateMutability": "view", "virtual": false, "visibility": "external" }, "children": [ { "attributes": { "text": "@notice Returns the balance of a token\n @param account The account for which to look up the number of tokens it has, i.e. its balance\n @return The number of tokens held by the account" }, "id": 2868, "name": "StructuredDocumentation", "src": "231:201:4" }, { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "account", "scope": 2875, "stateVariable": false, "storageLocation": "default", "type": "address", "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 2869, "name": "ElementaryTypeName", "src": "456:7:4" } ], "id": 2870, "name": "VariableDeclaration", "src": "456:15:4" } ], "id": 2871, "name": "ParameterList", "src": "455:17:4" }, { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "", "scope": 2875, "stateVariable": false, "storageLocation": "default", "type": "uint256", "visibility": "internal" }, "children": [ { "attributes": { "name": "uint256", "type": "uint256" }, "id": 2872, "name": "ElementaryTypeName", "src": "496:7:4" } ], "id": 2873, "name": "VariableDeclaration", "src": "496:7:4" } ], "id": 2874, "name": "ParameterList", "src": "495:9:4" } ], "id": 2875, "name": "FunctionDefinition", "src": "437:68:4" }, { "attributes": { "functionSelector": "a9059cbb", "implemented": false, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "transfer", "scope": 2936, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, "children": [ { "attributes": { "text": "@notice Transfers the amount of token from the `msg.sender` to the recipient\n @param recipient The account that will receive the amount transferred\n @param amount The number of tokens to send from the sender to the recipient\n @return Returns true for a successful transfer, false for an unsuccessful transfer" }, "id": 2876, "name": "StructuredDocumentation", "src": "511:333:4" }, { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "recipient", "scope": 2885, "stateVariable": false, "storageLocation": "default", "type": "address", "visi