UNPKG

@sonicswap/periphery

Version:

🎚 Peripheral smart contracts for interacting with the Sonicswap exchanges

515 lines • 17.8 kB
{ "contractName": "IUniswapV2Migrator", "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.12+commit.27d51765\"},\"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\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/var/www/Sonic/sonicswap-periphery/contracts/interfaces/IUniswapV2Migrator.sol\":\"IUniswapV2Migrator\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/var/www/Sonic/sonicswap-periphery/contracts/interfaces/IUniswapV2Migrator.sol\":{\"keccak256\":\"0xe9e3b74e3bd4759ab8c35015b42f7cea85db3ec204e08f8202519eb882cae1b4\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://1d7b949e671e202cb862ca7535c86e9ad2dacbe946e1a0b5c87192ab38d823e9\",\"dweb:/ipfs/QmWB1j6CwRWv2rL8ZGJp1G1trvFnJzwLhp618jd3ELK2gD\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "immutableReferences": {}, "sourceMap": "", "deployedSourceMap": "", "source": "// SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.5.0;\n\ninterface IUniswapV2Migrator {\n function migrate(address token, uint amountTokenMin, uint amountETHMin, address to, uint deadline) external;\n}\n", "sourcePath": "/var/www/Sonic/sonicswap-periphery/contracts/interfaces/IUniswapV2Migrator.sol", "ast": { "absolutePath": "/var/www/Sonic/sonicswap-periphery/contracts/interfaces/IUniswapV2Migrator.sol", "exportedSymbols": { "IUniswapV2Migrator": [ 5051 ] }, "id": 5052, "license": "GPL-3.0", "nodeType": "SourceUnit", "nodes": [ { "id": 5037, "literals": [ "solidity", ">=", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "36:24:9" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 5051, "linearizedBaseContracts": [ 5051 ], "name": "IUniswapV2Migrator", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "functionSelector": "b7df1d25", "id": 5050, "implemented": false, "kind": "function", "modifiers": [], "name": "migrate", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 5048, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 5039, "mutability": "mutable", "name": "token", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5050, "src": "114:13:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5038, "name": "address", "nodeType": "ElementaryTypeName", "src": "114:7:9", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5041, "mutability": "mutable", "name": "amountTokenMin", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5050, "src": "129:19:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5040, "name": "uint", "nodeType": "ElementaryTypeName", "src": "129:4:9", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5043, "mutability": "mutable", "name": "amountETHMin", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5050, "src": "150:17:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5042, "name": "uint", "nodeType": "ElementaryTypeName", "src": "150:4:9", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5045, "mutability": "mutable", "name": "to", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5050, "src": "169:10:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 5044, "name": "address", "nodeType": "ElementaryTypeName", "src": "169:7:9", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 5047, "mutability": "mutable", "name": "deadline", "nodeType": "VariableDeclaration", "overrides": null, "scope": 5050, "src": "181:13:9", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 5046, "name": "uint", "nodeType": "ElementaryTypeName", "src": "181:4:9", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "113:82:9" }, "returnParameters": { "id": 5049, "nodeType": "ParameterList", "parameters": [], "src": "204:0:9" }, "scope": 5051, "src": "97:108:9", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" } ], "scope": 5052, "src": "62:145:9" } ], "src": "36:172:9" }, "legacyAST": { "attributes": { "absolutePath": "/var/www/Sonic/sonicswap-periphery/contracts/interfaces/IUniswapV2Migrator.sol", "exportedSymbols": { "IUniswapV2Migrator": [ 5051 ] }, "license": "GPL-3.0" }, "children": [ { "attributes": { "literals": [ "solidity", ">=", "0.5", ".0" ] }, "id": 5037, "name": "PragmaDirective", "src": "36:24:9" }, { "attributes": { "abstract": false, "baseContracts": [ null ], "contractDependencies": [ null ], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "linearizedBaseContracts": [ 5051 ], "name": "IUniswapV2Migrator", "scope": 5052 }, "children": [ { "attributes": { "body": null, "documentation": null, "functionSelector": "b7df1d25", "implemented": false, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "migrate", "overrides": null, "scope": 5051, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, "children": [ { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "token", "overrides": null, "scope": 5050, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 5038, "name": "ElementaryTypeName", "src": "114:7:9" } ], "id": 5039, "name": "VariableDeclaration", "src": "114:13:9" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "amountTokenMin", "overrides": null, "scope": 5050, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 5040, "name": "ElementaryTypeName", "src": "129:4:9" } ], "id": 5041, "name": "VariableDeclaration", "src": "129:19:9" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "amountETHMin", "overrides": null, "scope": 5050, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 5042, "name": "ElementaryTypeName", "src": "150:4:9" } ], "id": 5043, "name": "VariableDeclaration", "src": "150:17:9" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "to", "overrides": null, "scope": 5050, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 5044, "name": "ElementaryTypeName", "src": "169:7:9" } ], "id": 5045, "name": "VariableDeclaration", "src": "169:10:9" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "deadline", "overrides": null, "scope": 5050, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 5046, "name": "ElementaryTypeName", "src": "181:4:9" } ], "id": 5047, "name": "VariableDeclaration", "src": "181:13:9" } ], "id": 5048, "name": "ParameterList", "src": "113:82:9" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 5049, "name": "ParameterList", "src": "204:0:9" } ], "id": 5050, "name": "FunctionDefinition", "src": "97:108:9" } ], "id": 5051, "name": "ContractDefinition", "src": "62:145:9" } ], "id": 5052, "name": "SourceUnit", "src": "36:172:9" }, "compiler": { "name": "solc", "version": "0.6.12+commit.27d51765.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.4.1", "updatedAt": "2021-06-27T14:36:02.133Z", "devdoc": { "kind": "dev", "methods": {}, "version": 1 }, "userdoc": { "kind": "user", "methods": {}, "version": 1 } }