@valueswap/v2-periphery
Version:
🎚 Peripheral smart contracts for interacting with Valueswap V2
509 lines • 17.7 kB
JSON
{
"contractName": "IValueswapV2Migrator",
"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/second/Documents/work/valueswap-v2-periphery/contracts/interfaces/IValueswapV2Migrator.sol\":\"IValueswapV2Migrator\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":999999},\"remappings\":[]},\"sources\":{\"/Users/second/Documents/work/valueswap-v2-periphery/contracts/interfaces/IValueswapV2Migrator.sol\":{\"keccak256\":\"0x892e70808b5263f38b7f68c4f0f23766a35a4cb90ab47c215e9edc4992fd7989\",\"urls\":[\"bzz-raw://cf94d37f8cdc877097a6ed46a7452ab49c944d5ef1f2665bc96e50b5c6800fe3\",\"dweb:/ipfs/QmNicJzwH45Y8JPMZ6jjZ7DPi1fSKWq2d6BvYofFSUUcTH\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"immutableReferences": {},
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity >=0.5.0;\n\ninterface IValueswapV2Migrator {\n function migrate(address token, uint amountTokenMin, uint amountETHMin, address to, uint deadline) external;\n}\n",
"sourcePath": "/Users/second/Documents/work/valueswap-v2-periphery/contracts/interfaces/IValueswapV2Migrator.sol",
"ast": {
"absolutePath": "/Users/second/Documents/work/valueswap-v2-periphery/contracts/interfaces/IValueswapV2Migrator.sol",
"exportedSymbols": {
"IValueswapV2Migrator": [
5024
]
},
"id": 5025,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 5010,
"literals": [
"solidity",
">=",
"0.5",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:24:9"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 5024,
"linearizedBaseContracts": [
5024
],
"name": "IValueswapV2Migrator",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"functionSelector": "b7df1d25",
"id": 5023,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "migrate",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 5021,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5012,
"mutability": "mutable",
"name": "token",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 5023,
"src": "80:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5011,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "80:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 5014,
"mutability": "mutable",
"name": "amountTokenMin",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 5023,
"src": "95:19:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5013,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "95:4:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 5016,
"mutability": "mutable",
"name": "amountETHMin",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 5023,
"src": "116:17:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5015,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "116:4:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 5018,
"mutability": "mutable",
"name": "to",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 5023,
"src": "135:10:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5017,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "135:7:9",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 5020,
"mutability": "mutable",
"name": "deadline",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 5023,
"src": "147:13:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5019,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "147:4:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "79:82:9"
},
"returnParameters": {
"id": 5022,
"nodeType": "ParameterList",
"parameters": [],
"src": "170:0:9"
},
"scope": 5024,
"src": "63:108:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 5025,
"src": "26:147:9"
}
],
"src": "0:174:9"
},
"legacyAST": {
"attributes": {
"absolutePath": "/Users/second/Documents/work/valueswap-v2-periphery/contracts/interfaces/IValueswapV2Migrator.sol",
"exportedSymbols": {
"IValueswapV2Migrator": [
5024
]
}
},
"children": [
{
"attributes": {
"literals": [
"solidity",
">=",
"0.5",
".0"
]
},
"id": 5010,
"name": "PragmaDirective",
"src": "0:24:9"
},
{
"attributes": {
"abstract": false,
"baseContracts": [
null
],
"contractDependencies": [
null
],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"linearizedBaseContracts": [
5024
],
"name": "IValueswapV2Migrator",
"scope": 5025
},
"children": [
{
"attributes": {
"body": null,
"documentation": null,
"functionSelector": "b7df1d25",
"implemented": false,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "migrate",
"overrides": null,
"scope": 5024,
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "token",
"overrides": null,
"scope": 5023,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 5011,
"name": "ElementaryTypeName",
"src": "80:7:9"
}
],
"id": 5012,
"name": "VariableDeclaration",
"src": "80:13:9"
},
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "amountTokenMin",
"overrides": null,
"scope": 5023,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint",
"type": "uint256"
},
"id": 5013,
"name": "ElementaryTypeName",
"src": "95:4:9"
}
],
"id": 5014,
"name": "VariableDeclaration",
"src": "95:19:9"
},
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "amountETHMin",
"overrides": null,
"scope": 5023,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint",
"type": "uint256"
},
"id": 5015,
"name": "ElementaryTypeName",
"src": "116:4:9"
}
],
"id": 5016,
"name": "VariableDeclaration",
"src": "116:17:9"
},
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "to",
"overrides": null,
"scope": 5023,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 5017,
"name": "ElementaryTypeName",
"src": "135:7:9"
}
],
"id": 5018,
"name": "VariableDeclaration",
"src": "135:10:9"
},
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "deadline",
"overrides": null,
"scope": 5023,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint",
"type": "uint256"
},
"id": 5019,
"name": "ElementaryTypeName",
"src": "147:4:9"
}
],
"id": 5020,
"name": "VariableDeclaration",
"src": "147:13:9"
}
],
"id": 5021,
"name": "ParameterList",
"src": "79:82:9"
},
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 5022,
"name": "ParameterList",
"src": "170:0:9"
}
],
"id": 5023,
"name": "FunctionDefinition",
"src": "63:108:9"
}
],
"id": 5024,
"name": "ContractDefinition",
"src": "26:147:9"
}
],
"id": 5025,
"name": "SourceUnit",
"src": "0:174:9"
},
"compiler": {
"name": "solc",
"version": "0.6.6+commit.6c089d02.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.3.3",
"updatedAt": "2021-01-30T15:45:24.163Z",
"devdoc": {
"methods": {}
},
"userdoc": {
"methods": {}
}
}