UNPKG

moonwalkerswap-v2-periphery

Version:
509 lines 18 kB
{ "contractName": "IMoonwalkerswapV2Migrator", "abi": [ { "inputs": [ { "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "amountTokenMin", "type": "uint256" }, { "internalType": "uint256", "name": "amountETHMin", "type": "uint256" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" } ], "name": "migrate", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.6.6+commit.6c089d02\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"migrate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/Moonwalkerswap-v2-periphery/contracts/interfaces/IMoonwalkerswapV2Migrator.sol\":\"IMoonwalkerswapV2Migrator\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/Moonwalkerswap-v2-periphery/contracts/interfaces/IMoonwalkerswapV2Migrator.sol\":{\"keccak256\":\"0x38d7aea5942b3e335de97be62433ce7bef345fe49bcebb946b6c676a69bb2ab6\",\"urls\":[\"bzz-raw://de004ccf513484acfb2b7af9f9f7453d3caa3471b44d9f0daa9db9a4dff40590\",\"dweb:/ipfs/QmNWDZomMPBFnGse9CLyqGUn7Rbu326Ys7mZwPGvkAxJ9D\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "immutableReferences": {}, "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity >=0.5.0;\n\ninterface IMoonwalkerswapV2Migrator {\n function migrate(address token, uint amountTokenMin, uint amountETHMin, address to, uint deadline) external;\n}\n", "sourcePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/Moonwalkerswap-v2-periphery/contracts/interfaces/IMoonwalkerswapV2Migrator.sol", "ast": { "absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/Moonwalkerswap-v2-periphery/contracts/interfaces/IMoonwalkerswapV2Migrator.sol", "exportedSymbols": { "IMoonwalkerswapV2Migrator": [ 3765 ] }, "id": 3766, "nodeType": "SourceUnit", "nodes": [ { "id": 3751, "literals": [ "solidity", ">=", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "0:24:4" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 3765, "linearizedBaseContracts": [ 3765 ], "name": "IMoonwalkerswapV2Migrator", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "functionSelector": "b7df1d25", "id": 3764, "implemented": false, "kind": "function", "modifiers": [], "name": "migrate", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 3762, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3753, "mutability": "mutable", "name": "token", "nodeType": "VariableDeclaration", "overrides": null, "scope": 3764, "src": "85:13:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3752, "name": "address", "nodeType": "ElementaryTypeName", "src": "85:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3755, "mutability": "mutable", "name": "amountTokenMin", "nodeType": "VariableDeclaration", "overrides": null, "scope": 3764, "src": "100:19:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3754, "name": "uint", "nodeType": "ElementaryTypeName", "src": "100:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3757, "mutability": "mutable", "name": "amountETHMin", "nodeType": "VariableDeclaration", "overrides": null, "scope": 3764, "src": "121:17:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3756, "name": "uint", "nodeType": "ElementaryTypeName", "src": "121:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3759, "mutability": "mutable", "name": "to", "nodeType": "VariableDeclaration", "overrides": null, "scope": 3764, "src": "140:10:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3758, "name": "address", "nodeType": "ElementaryTypeName", "src": "140:7:4", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3761, "mutability": "mutable", "name": "deadline", "nodeType": "VariableDeclaration", "overrides": null, "scope": 3764, "src": "152:13:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3760, "name": "uint", "nodeType": "ElementaryTypeName", "src": "152:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "84:82:4" }, "returnParameters": { "id": 3763, "nodeType": "ParameterList", "parameters": [], "src": "175:0:4" }, "scope": 3765, "src": "68:108:4", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" } ], "scope": 3766, "src": "26:152:4" } ], "src": "0:179:4" }, "legacyAST": { "attributes": { "absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/Moonwalkerswap-v2-periphery/contracts/interfaces/IMoonwalkerswapV2Migrator.sol", "exportedSymbols": { "IMoonwalkerswapV2Migrator": [ 3765 ] } }, "children": [ { "attributes": { "literals": [ "solidity", ">=", "0.5", ".0" ] }, "id": 3751, "name": "PragmaDirective", "src": "0:24:4" }, { "attributes": { "abstract": false, "baseContracts": [ null ], "contractDependencies": [ null ], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "linearizedBaseContracts": [ 3765 ], "name": "IMoonwalkerswapV2Migrator", "scope": 3766 }, "children": [ { "attributes": { "body": null, "documentation": null, "functionSelector": "b7df1d25", "implemented": false, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "migrate", "overrides": null, "scope": 3765, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, "children": [ { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "token", "overrides": null, "scope": 3764, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 3752, "name": "ElementaryTypeName", "src": "85:7:4" } ], "id": 3753, "name": "VariableDeclaration", "src": "85:13:4" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "amountTokenMin", "overrides": null, "scope": 3764, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 3754, "name": "ElementaryTypeName", "src": "100:4:4" } ], "id": 3755, "name": "VariableDeclaration", "src": "100:19:4" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "amountETHMin", "overrides": null, "scope": 3764, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 3756, "name": "ElementaryTypeName", "src": "121:4:4" } ], "id": 3757, "name": "VariableDeclaration", "src": "121:17:4" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "to", "overrides": null, "scope": 3764, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 3758, "name": "ElementaryTypeName", "src": "140:7:4" } ], "id": 3759, "name": "VariableDeclaration", "src": "140:10:4" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "deadline", "overrides": null, "scope": 3764, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 3760, "name": "ElementaryTypeName", "src": "152:4:4" } ], "id": 3761, "name": "VariableDeclaration", "src": "152:13:4" } ], "id": 3762, "name": "ParameterList", "src": "84:82:4" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 3763, "name": "ParameterList", "src": "175:0:4" } ], "id": 3764, "name": "FunctionDefinition", "src": "68:108:4" } ], "id": 3765, "name": "ContractDefinition", "src": "26:152:4" } ], "id": 3766, "name": "SourceUnit", "src": "0:179:4" }, "compiler": { "name": "solc", "version": "0.6.6+commit.6c089d02.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.4.1", "updatedAt": "2022-01-17T23:40:22.193Z", "devdoc": { "methods": {} }, "userdoc": { "methods": {} } }