UNPKG

@windfallswap/core

Version:

🎛 Core contracts for the Windfall Swap protocol

1,409 lines (1,408 loc) • 110 kB
{ "contractName": "IWindfallERC20", "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": "pure", "type": "function" }, { "constant": true, "inputs": [], "name": "symbol", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": true, "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "payable": false, "stateMutability": "pure", "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" }, { "constant": true, "inputs": [], "name": "DOMAIN_SEPARATOR", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "PERMIT_TYPEHASH", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "address", "name": "owner", "type": "address" } ], "name": "nonces", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }, { "internalType": "uint8", "name": "v", "type": "uint8" }, { "internalType": "bytes32", "name": "r", "type": "bytes32" }, { "internalType": "bytes32", "name": "s", "type": "bytes32" } ], "name": "permit", "outputs": [], "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\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"PERMIT_TYPEHASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"pure\",\"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\":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\":\"pure\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"nonces\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"permit\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"pure\",\"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/IWindfallERC20.sol\":\"IWindfallERC20\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":999999},\"remappings\":[]},\"sources\":{\"/D/defi/windfall/windfallswap-core/contracts/interfaces/IWindfallERC20.sol\":{\"keccak256\":\"0x06afc5fea9d39231709b5310fe95db5c27fd15de90260931716b4d639ade4ec4\",\"urls\":[\"bzz-raw://e111bda21798a8da22d630780283b45d2fe33fa7be8e475311ca12b614c537bf\",\"dweb:/ipfs/QmNgtysfQsjWjbsD8FxaWYRCcEttUP64zn2EsjotQUorh7\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity >=0.5.0;\r\n\r\ninterface IWindfallERC20 {\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 pure returns (string memory);\r\n function symbol() external pure returns (string memory);\r\n function decimals() external pure 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 function DOMAIN_SEPARATOR() external view returns (bytes32);\r\n function PERMIT_TYPEHASH() external pure returns (bytes32);\r\n function nonces(address owner) external view returns (uint);\r\n\r\n function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;\r\n}\r\n", "sourcePath": "D:\\defi\\windfall\\windfallswap-core\\contracts\\interfaces\\IWindfallERC20.sol", "ast": { "absolutePath": "/D/defi/windfall/windfallswap-core/contracts/interfaces/IWindfallERC20.sol", "exportedSymbols": { "IWindfallERC20": [ 1869 ] }, "id": 1870, "nodeType": "SourceUnit", "nodes": [ { "id": 1753, "literals": [ "solidity", ">=", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "0:24:6" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 1869, "linearizedBaseContracts": [ 1869 ], "name": "IWindfallERC20", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "documentation": null, "id": 1761, "name": "Approval", "nodeType": "EventDefinition", "parameters": { "id": 1760, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1755, "indexed": true, "name": "owner", "nodeType": "VariableDeclaration", "scope": 1761, "src": "75:21:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1754, "name": "address", "nodeType": "ElementaryTypeName", "src": "75:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1757, "indexed": true, "name": "spender", "nodeType": "VariableDeclaration", "scope": 1761, "src": "98:23:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1756, "name": "address", "nodeType": "ElementaryTypeName", "src": "98:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1759, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", "scope": 1761, "src": "123:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1758, "name": "uint", "nodeType": "ElementaryTypeName", "src": "123:4:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "74:60:6" }, "src": "60:75:6" }, { "anonymous": false, "documentation": null, "id": 1769, "name": "Transfer", "nodeType": "EventDefinition", "parameters": { "id": 1768, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1763, "indexed": true, "name": "from", "nodeType": "VariableDeclaration", "scope": 1769, "src": "156:20:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1762, "name": "address", "nodeType": "ElementaryTypeName", "src": "156:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1765, "indexed": true, "name": "to", "nodeType": "VariableDeclaration", "scope": 1769, "src": "178:18:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1764, "name": "address", "nodeType": "ElementaryTypeName", "src": "178:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1767, "indexed": false, "name": "value", "nodeType": "VariableDeclaration", "scope": 1769, "src": "198:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1766, "name": "uint", "nodeType": "ElementaryTypeName", "src": "198:4:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "155:54:6" }, "src": "141:69:6" }, { "body": null, "documentation": null, "id": 1774, "implemented": false, "kind": "function", "modifiers": [], "name": "name", "nodeType": "FunctionDefinition", "parameters": { "id": 1770, "nodeType": "ParameterList", "parameters": [], "src": "231:2:6" }, "returnParameters": { "id": 1773, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1772, "name": "", "nodeType": "VariableDeclaration", "scope": 1774, "src": "257:13:6", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1771, "name": "string", "nodeType": "ElementaryTypeName", "src": "257:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "256:15:6" }, "scope": 1869, "src": "218:54:6", "stateMutability": "pure", "superFunction": 1955, "visibility": "external" }, { "body": null, "documentation": null, "id": 1779, "implemented": false, "kind": "function", "modifiers": [], "name": "symbol", "nodeType": "FunctionDefinition", "parameters": { "id": 1775, "nodeType": "ParameterList", "parameters": [], "src": "293:2:6" }, "returnParameters": { "id": 1778, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1777, "name": "", "nodeType": "VariableDeclaration", "scope": 1779, "src": "319:13:6", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 1776, "name": "string", "nodeType": "ElementaryTypeName", "src": "319:6:6", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "318:15:6" }, "scope": 1869, "src": "278:56:6", "stateMutability": "pure", "superFunction": 1960, "visibility": "external" }, { "body": null, "documentation": null, "id": 1784, "implemented": false, "kind": "function", "modifiers": [], "name": "decimals", "nodeType": "FunctionDefinition", "parameters": { "id": 1780, "nodeType": "ParameterList", "parameters": [], "src": "357:2:6" }, "returnParameters": { "id": 1783, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1782, "name": "", "nodeType": "VariableDeclaration", "scope": 1784, "src": "383:5:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 1781, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "383:5:6", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": null, "visibility": "internal" } ], "src": "382:7:6" }, "scope": 1869, "src": "340:50:6", "stateMutability": "pure", "superFunction": 1965, "visibility": "external" }, { "body": null, "documentation": null, "id": 1789, "implemented": false, "kind": "function", "modifiers": [], "name": "totalSupply", "nodeType": "FunctionDefinition", "parameters": { "id": 1785, "nodeType": "ParameterList", "parameters": [], "src": "416:2:6" }, "returnParameters": { "id": 1788, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1787, "name": "", "nodeType": "VariableDeclaration", "scope": 1789, "src": "442:4:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1786, "name": "uint", "nodeType": "ElementaryTypeName", "src": "442:4:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "441:6:6" }, "scope": 1869, "src": "396:52:6", "stateMutability": "view", "superFunction": 1970, "visibility": "external" }, { "body": null, "documentation": null, "id": 1796, "implemented": false, "kind": "function", "modifiers": [], "name": "balanceOf", "nodeType": "FunctionDefinition", "parameters": { "id": 1792, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1791, "name": "owner", "nodeType": "VariableDeclaration", "scope": 1796, "src": "473:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1790, "name": "address", "nodeType": "ElementaryTypeName", "src": "473:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "472:15:6" }, "returnParameters": { "id": 1795, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1794, "name": "", "nodeType": "VariableDeclaration", "scope": 1796, "src": "511:4:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1793, "name": "uint", "nodeType": "ElementaryTypeName", "src": "511:4:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "510:6:6" }, "scope": 1869, "src": "454:63:6", "stateMutability": "view", "superFunction": 1977, "visibility": "external" }, { "body": null, "documentation": null, "id": 1805, "implemented": false, "kind": "function", "modifiers": [], "name": "allowance", "nodeType": "FunctionDefinition", "parameters": { "id": 1801, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1798, "name": "owner", "nodeType": "VariableDeclaration", "scope": 1805, "src": "542:13:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1797, "name": "address", "nodeType": "ElementaryTypeName", "src": "542:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1800, "name": "spender", "nodeType": "VariableDeclaration", "scope": 1805, "src": "557:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1799, "name": "address", "nodeType": "ElementaryTypeName", "src": "557:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "541:32:6" }, "returnParameters": { "id": 1804, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1803, "name": "", "nodeType": "VariableDeclaration", "scope": 1805, "src": "597:4:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1802, "name": "uint", "nodeType": "ElementaryTypeName", "src": "597:4:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "596:6:6" }, "scope": 1869, "src": "523:80:6", "stateMutability": "view", "superFunction": 1986, "visibility": "external" }, { "body": null, "documentation": null, "id": 1814, "implemented": false, "kind": "function", "modifiers": [], "name": "approve", "nodeType": "FunctionDefinition", "parameters": { "id": 1810, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1807, "name": "spender", "nodeType": "VariableDeclaration", "scope": 1814, "src": "628:15:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1806, "name": "address", "nodeType": "ElementaryTypeName", "src": "628:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1809, "name": "value", "nodeType": "VariableDeclaration", "scope": 1814, "src": "645:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1808, "name": "uint", "nodeType": "ElementaryTypeName", "src": "645:4:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "627:29:6" }, "returnParameters": { "id": 1813, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1812, "name": "", "nodeType": "VariableDeclaration", "scope": 1814, "src": "675:4:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 1811, "name": "bool", "nodeType": "ElementaryTypeName", "src": "675:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "674:6:6" }, "scope": 1869, "src": "611:70:6", "stateMutability": "nonpayable", "superFunction": 1995, "visibility": "external" }, { "body": null, "documentation": null, "id": 1823, "implemented": false, "kind": "function", "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "parameters": { "id": 1819, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1816, "name": "to", "nodeType": "VariableDeclaration", "scope": 1823, "src": "705:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1815, "name": "address", "nodeType": "ElementaryTypeName", "src": "705:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1818, "name": "value", "nodeType": "VariableDeclaration", "scope": 1823, "src": "717:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1817, "name": "uint", "nodeType": "ElementaryTypeName", "src": "717:4:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "704:24:6" }, "returnParameters": { "id": 1822, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1821, "name": "", "nodeType": "VariableDeclaration", "scope": 1823, "src": "747:4:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 1820, "name": "bool", "nodeType": "ElementaryTypeName", "src": "747:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "746:6:6" }, "scope": 1869, "src": "687:66:6", "stateMutability": "nonpayable", "superFunction": 2004, "visibility": "external" }, { "body": null, "documentation": null, "id": 1834, "implemented": false, "kind": "function", "modifiers": [], "name": "transferFrom", "nodeType": "FunctionDefinition", "parameters": { "id": 1830, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1825, "name": "from", "nodeType": "VariableDeclaration", "scope": 1834, "src": "781:12:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1824, "name": "address", "nodeType": "ElementaryTypeName", "src": "781:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1827, "name": "to", "nodeType": "VariableDeclaration", "scope": 1834, "src": "795:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1826, "name": "address", "nodeType": "ElementaryTypeName", "src": "795:7:6", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1829, "name": "value", "nodeType": "VariableDeclaration", "scope": 1834, "src": "807:10:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1828, "name": "uint", "nodeType": "ElementaryTypeName", "src": "807:4:6", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "780:38:6" }, "returnParameters": { "id": 1833, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1832, "name": "", "nodeType": "VariableDeclaration", "scope": 1834, "src": "837:4:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 1831, "name": "bool", "nodeType": "ElementaryTypeName", "src": "837:4:6", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "836:6:6" }, "scope": 1869, "src": "759:84:6", "stateMutability": "nonpayable", "superFunction": 2015, "visibility": "external" }, { "body": null, "documentation": null, "id": 1839, "implemented": false, "kind": "function", "modifiers": [], "name": "DOMAIN_SEPARATOR", "nodeType": "FunctionDefinition", "parameters": { "id": 1835, "nodeType": "ParameterList", "parameters": [], "src": "876:2:6" }, "returnParameters": { "id": 1838, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1837, "name": "", "nodeType": "VariableDeclaration", "scope": 1839, "src": "902:7:6", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 1836, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "902:7:6", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "901:9:6" }, "scope": 1869, "src": "851:60:6", "stateMutability": "view", "superFunction": 2020, "visibility": "external" }, { "body": null, "documentation": null, "id": 1844, "implemented": false, "kind": "function", "modifiers": [], "name": "PERMIT_TYPEHASH", "nodeType": "FunctionDefinition", "parameters": { "id": 1840, "nodeType": "ParameterList", "parameters": [], "src": "941:2:6" }, "returnParameters": { "id": 1843, "nodeType": "ParameterList", "parameters": [