moonwalkerswap-v2-periphery
Version:
Moonwalkerswap v2 periphery
606 lines • 19.9 kB
JSON
{
"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\":{\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/Moonwalkerswap-v2-periphery/contracts/interfaces/IWETH.sol\":\"IWETH\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/Moonwalkerswap-v2-periphery/contracts/interfaces/IWETH.sol\":{\"keccak256\":\"0xfc10758fd8dba790c39468dccd358cb7cef06ae7c4781832cc7aa76f91f167e6\",\"urls\":[\"bzz-raw://dc22493dea6c60d47835eeba53726f8a6f76f4fcd798d40e54608a1380515d49\",\"dweb:/ipfs/QmS1QVcBRH4TELYNE7XCfjSVQEWFupyaNLKmMkKH7iPjrm\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"immutableReferences": {},
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity >=0.5.0;\n\ninterface IWETH {\n function deposit() external payable;\n function transfer(address to, uint value) external returns (bool);\n function withdraw(uint) external;\n}\n",
"sourcePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/Moonwalkerswap-v2-periphery/contracts/interfaces/IWETH.sol",
"ast": {
"absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/Moonwalkerswap-v2-periphery/contracts/interfaces/IWETH.sol",
"exportedSymbols": {
"IWETH": [
4181
]
},
"id": 4182,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 4163,
"literals": [
"solidity",
">=",
"0.5",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:24:7"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 4181,
"linearizedBaseContracts": [
4181
],
"name": "IWETH",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"functionSelector": "d0e30db0",
"id": 4166,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "deposit",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 4164,
"nodeType": "ParameterList",
"parameters": [],
"src": "64:2:7"
},
"returnParameters": {
"id": 4165,
"nodeType": "ParameterList",
"parameters": [],
"src": "83:0:7"
},
"scope": 4181,
"src": "48:36:7",
"stateMutability": "payable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "a9059cbb",
"id": 4175,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transfer",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 4171,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4168,
"mutability": "mutable",
"name": "to",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 4175,
"src": "107:10:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 4167,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "107:7:7",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 4170,
"mutability": "mutable",
"name": "value",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 4175,
"src": "119:10:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4169,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "119:4:7",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "106:24:7"
},
"returnParameters": {
"id": 4174,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4173,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 4175,
"src": "149:4:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 4172,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "149:4:7",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "148:6:7"
},
"scope": 4181,
"src": "89:66:7",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "2e1a7d4d",
"id": 4180,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "withdraw",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 4178,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4177,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 4180,
"src": "178:4:7",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4176,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "178:4:7",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "177:6:7"
},
"returnParameters": {
"id": 4179,
"nodeType": "ParameterList",
"parameters": [],
"src": "192:0:7"
},
"scope": 4181,
"src": "160:33:7",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 4182,
"src": "26:169:7"
}
],
"src": "0:196:7"
},
"legacyAST": {
"attributes": {
"absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/Moonwalkerswap-v2-periphery/contracts/interfaces/IWETH.sol",
"exportedSymbols": {
"IWETH": [
4181
]
}
},
"children": [
{
"attributes": {
"literals": [
"solidity",
">=",
"0.5",
".0"
]
},
"id": 4163,
"name": "PragmaDirective",
"src": "0:24:7"
},
{
"attributes": {
"abstract": false,
"baseContracts": [
null
],
"contractDependencies": [
null
],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"linearizedBaseContracts": [
4181
],
"name": "IWETH",
"scope": 4182
},
"children": [
{
"attributes": {
"body": null,
"documentation": null,
"functionSelector": "d0e30db0",
"implemented": false,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "deposit",
"overrides": null,
"scope": 4181,
"stateMutability": "payable",
"virtual": false,
"visibility": "external"
},
"children": [
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 4164,
"name": "ParameterList",
"src": "64:2:7"
},
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 4165,
"name": "ParameterList",
"src": "83:0:7"
}
],
"id": 4166,
"name": "FunctionDefinition",
"src": "48:36:7"
},
{
"attributes": {
"body": null,
"documentation": null,
"functionSelector": "a9059cbb",
"implemented": false,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "transfer",
"overrides": null,
"scope": 4181,
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "to",
"overrides": null,
"scope": 4175,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 4167,
"name": "ElementaryTypeName",
"src": "107:7:7"
}
],
"id": 4168,
"name": "VariableDeclaration",
"src": "107:10:7"
},
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "value",
"overrides": null,
"scope": 4175,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint",
"type": "uint256"
},
"id": 4169,
"name": "ElementaryTypeName",
"src": "119:4:7"
}
],
"id": 4170,
"name": "VariableDeclaration",
"src": "119:10:7"
}
],
"id": 4171,
"name": "ParameterList",
"src": "106:24:7"
},
{
"children": [
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "",
"overrides": null,
"scope": 4175,
"stateVariable": false,
"storageLocation": "default",
"type": "bool",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "bool",
"type": "bool"
},
"id": 4172,
"name": "ElementaryTypeName",
"src": "149:4:7"
}
],
"id": 4173,
"name": "VariableDeclaration",
"src": "149:4:7"
}
],
"id": 4174,
"name": "ParameterList",
"src": "148:6:7"
}
],
"id": 4175,
"name": "FunctionDefinition",
"src": "89:66:7"
},
{
"attributes": {
"body": null,
"documentation": null,
"functionSelector": "2e1a7d4d",
"implemented": false,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "withdraw",
"overrides": null,
"scope": 4181,
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "",
"overrides": null,
"scope": 4180,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint",
"type": "uint256"
},
"id": 4176,
"name": "ElementaryTypeName",
"src": "178:4:7"
}
],
"id": 4177,
"name": "VariableDeclaration",
"src": "178:4:7"
}
],
"id": 4178,
"name": "ParameterList",
"src": "177:6:7"
},
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 4179,
"name": "ParameterList",
"src": "192:0:7"
}
],
"id": 4180,
"name": "FunctionDefinition",
"src": "160:33:7"
}
],
"id": 4181,
"name": "ContractDefinition",
"src": "26:169:7"
}
],
"id": 4182,
"name": "SourceUnit",
"src": "0:196:7"
},
"compiler": {
"name": "solc",
"version": "0.6.6+commit.6c089d02.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.1",
"updatedAt": "2022-01-17T23:40:22.198Z",
"devdoc": {
"methods": {}
},
"userdoc": {
"methods": {}
}
}