UNPKG

@windfallswap/periphery

Version:

🎚 Peripheral smart contracts for interacting with Windfall Swap

560 lines • 18.6 kB
{ "contractName": "IWETH", "abi": [ { "inputs": [], "name": "deposit", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "transfer", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "withdraw", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.6.6+commit.6c089d02\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/D/defi/windfall/windfallswap-periphery/contracts/interfaces/IWETH.sol\":\"IWETH\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":999999},\"remappings\":[]},\"sources\":{\"/D/defi/windfall/windfallswap-periphery/contracts/interfaces/IWETH.sol\":{\"keccak256\":\"0x25ed8b4dd0b9382d61501d7fe6f30ea65e6800907ba4a5a0f280e79c80bdfd86\",\"urls\":[\"bzz-raw://72c047f1ad25724c269cfb87f9291558a2723d90ef8b25224caf84e04123a52f\",\"dweb:/ipfs/QmXjW9nmRTasWKYGMnQRBGRHJg2AbT6Z4azWowuST1bLu3\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "immutableReferences": {}, "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity >=0.5.0;\r\n\r\ninterface IWETH {\r\n function deposit() external payable;\r\n function transfer(address to, uint value) external returns (bool);\r\n function withdraw(uint) external;\r\n}\r\n", "sourcePath": "D:\\defi\\windfall\\windfallswap-periphery\\contracts\\interfaces\\IWETH.sol", "ast": { "absolutePath": "/D/defi/windfall/windfallswap-periphery/contracts/interfaces/IWETH.sol", "exportedSymbols": { "IWETH": [ 2422 ] }, "id": 2423, "nodeType": "SourceUnit", "nodes": [ { "id": 2404, "literals": [ "solidity", ">=", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "0:24:4" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 2422, "linearizedBaseContracts": [ 2422 ], "name": "IWETH", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "functionSelector": "d0e30db0", "id": 2407, "implemented": false, "kind": "function", "modifiers": [], "name": "deposit", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 2405, "nodeType": "ParameterList", "parameters": [], "src": "67:2:4" }, "returnParameters": { "id": 2406, "nodeType": "ParameterList", "parameters": [], "src": "86:0:4" }, "scope": 2422, "src": "51:36:4", "stateMutability": "payable", "virtual": false, "visibility": "external" }, { "body": null, "documentation": null, "functionSelector": "a9059cbb", "id": 2416, "implemented": false, "kind": "function", "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 2412, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2409, "mutability": "mutable", "name": "to", "nodeType": "VariableDeclaration", "overrides": null, "scope": 2416, "src": "111:10:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2408, "name": "address", "nodeType": "ElementaryTypeName", "src": "111:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 2411, "mutability": "mutable", "name": "value", "nodeType": "VariableDeclaration", "overrides": null, "scope": 2416, "src": "123:10:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2410, "name": "uint", "nodeType": "ElementaryTypeName", "src": "123:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "110:24:4" }, "returnParameters": { "id": 2415, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2414, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 2416, "src": "153:4:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 2413, "name": "bool", "nodeType": "ElementaryTypeName", "src": "153:4:4", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "152:6:4" }, "scope": 2422, "src": "93:66:4", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "body": null, "documentation": null, "functionSelector": "2e1a7d4d", "id": 2421, "implemented": false, "kind": "function", "modifiers": [], "name": "withdraw", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 2419, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2418, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 2421, "src": "183:4:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2417, "name": "uint", "nodeType": "ElementaryTypeName", "src": "183:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "182:6:4" }, "returnParameters": { "id": 2420, "nodeType": "ParameterList", "parameters": [], "src": "197:0:4" }, "scope": 2422, "src": "165:33:4", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" } ], "scope": 2423, "src": "28:173:4" } ], "src": "0:203:4" }, "legacyAST": { "absolutePath": "/D/defi/windfall/windfallswap-periphery/contracts/interfaces/IWETH.sol", "exportedSymbols": { "IWETH": [ 2422 ] }, "id": 2423, "nodeType": "SourceUnit", "nodes": [ { "id": 2404, "literals": [ "solidity", ">=", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "0:24:4" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 2422, "linearizedBaseContracts": [ 2422 ], "name": "IWETH", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "functionSelector": "d0e30db0", "id": 2407, "implemented": false, "kind": "function", "modifiers": [], "name": "deposit", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 2405, "nodeType": "ParameterList", "parameters": [], "src": "67:2:4" }, "returnParameters": { "id": 2406, "nodeType": "ParameterList", "parameters": [], "src": "86:0:4" }, "scope": 2422, "src": "51:36:4", "stateMutability": "payable", "virtual": false, "visibility": "external" }, { "body": null, "documentation": null, "functionSelector": "a9059cbb", "id": 2416, "implemented": false, "kind": "function", "modifiers": [], "name": "transfer", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 2412, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2409, "mutability": "mutable", "name": "to", "nodeType": "VariableDeclaration", "overrides": null, "scope": 2416, "src": "111:10:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 2408, "name": "address", "nodeType": "ElementaryTypeName", "src": "111:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 2411, "mutability": "mutable", "name": "value", "nodeType": "VariableDeclaration", "overrides": null, "scope": 2416, "src": "123:10:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2410, "name": "uint", "nodeType": "ElementaryTypeName", "src": "123:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "110:24:4" }, "returnParameters": { "id": 2415, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2414, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 2416, "src": "153:4:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 2413, "name": "bool", "nodeType": "ElementaryTypeName", "src": "153:4:4", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "152:6:4" }, "scope": 2422, "src": "93:66:4", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "body": null, "documentation": null, "functionSelector": "2e1a7d4d", "id": 2421, "implemented": false, "kind": "function", "modifiers": [], "name": "withdraw", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 2419, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 2418, "mutability": "mutable", "name": "", "nodeType": "VariableDeclaration", "overrides": null, "scope": 2421, "src": "183:4:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 2417, "name": "uint", "nodeType": "ElementaryTypeName", "src": "183:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "182:6:4" }, "returnParameters": { "id": 2420, "nodeType": "ParameterList", "parameters": [], "src": "197:0:4" }, "scope": 2422, "src": "165:33:4", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" } ], "scope": 2423, "src": "28:173:4" } ], "src": "0:203:4" }, "compiler": { "name": "solc", "version": "0.6.6+commit.6c089d02.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.3.2", "updatedAt": "2020-12-25T00:13:14.935Z", "devdoc": { "methods": {} }, "userdoc": { "methods": {} } }