@valueswap/v2-periphery
Version:
🎚 Peripheral smart contracts for interacting with Valueswap V2
606 lines • 19.7 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/second/Documents/work/valueswap-v2-periphery/contracts/interfaces/IWETH.sol\":\"IWETH\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":999999},\"remappings\":[]},\"sources\":{\"/Users/second/Documents/work/valueswap-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/second/Documents/work/valueswap-v2-periphery/contracts/interfaces/IWETH.sol",
"ast": {
"absolutePath": "/Users/second/Documents/work/valueswap-v2-periphery/contracts/interfaces/IWETH.sol",
"exportedSymbols": {
"IWETH": [
5440
]
},
"id": 5441,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 5422,
"literals": [
"solidity",
">=",
"0.5",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:24:12"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 5440,
"linearizedBaseContracts": [
5440
],
"name": "IWETH",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"functionSelector": "d0e30db0",
"id": 5425,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "deposit",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 5423,
"nodeType": "ParameterList",
"parameters": [],
"src": "64:2:12"
},
"returnParameters": {
"id": 5424,
"nodeType": "ParameterList",
"parameters": [],
"src": "83:0:12"
},
"scope": 5440,
"src": "48:36:12",
"stateMutability": "payable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "a9059cbb",
"id": 5434,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transfer",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 5430,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5427,
"mutability": "mutable",
"name": "to",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 5434,
"src": "107:10:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5426,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "107:7:12",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 5429,
"mutability": "mutable",
"name": "value",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 5434,
"src": "119:10:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5428,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "119:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "106:24:12"
},
"returnParameters": {
"id": 5433,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5432,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 5434,
"src": "149:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 5431,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "149:4:12",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "148:6:12"
},
"scope": 5440,
"src": "89:66:12",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"functionSelector": "2e1a7d4d",
"id": 5439,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "withdraw",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 5437,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5436,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 5439,
"src": "178:4:12",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 5435,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "178:4:12",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "177:6:12"
},
"returnParameters": {
"id": 5438,
"nodeType": "ParameterList",
"parameters": [],
"src": "192:0:12"
},
"scope": 5440,
"src": "160:33:12",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 5441,
"src": "26:169:12"
}
],
"src": "0:196:12"
},
"legacyAST": {
"attributes": {
"absolutePath": "/Users/second/Documents/work/valueswap-v2-periphery/contracts/interfaces/IWETH.sol",
"exportedSymbols": {
"IWETH": [
5440
]
}
},
"children": [
{
"attributes": {
"literals": [
"solidity",
">=",
"0.5",
".0"
]
},
"id": 5422,
"name": "PragmaDirective",
"src": "0:24:12"
},
{
"attributes": {
"abstract": false,
"baseContracts": [
null
],
"contractDependencies": [
null
],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"linearizedBaseContracts": [
5440
],
"name": "IWETH",
"scope": 5441
},
"children": [
{
"attributes": {
"body": null,
"documentation": null,
"functionSelector": "d0e30db0",
"implemented": false,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "deposit",
"overrides": null,
"scope": 5440,
"stateMutability": "payable",
"virtual": false,
"visibility": "external"
},
"children": [
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 5423,
"name": "ParameterList",
"src": "64:2:12"
},
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 5424,
"name": "ParameterList",
"src": "83:0:12"
}
],
"id": 5425,
"name": "FunctionDefinition",
"src": "48:36:12"
},
{
"attributes": {
"body": null,
"documentation": null,
"functionSelector": "a9059cbb",
"implemented": false,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "transfer",
"overrides": null,
"scope": 5440,
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "to",
"overrides": null,
"scope": 5434,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 5426,
"name": "ElementaryTypeName",
"src": "107:7:12"
}
],
"id": 5427,
"name": "VariableDeclaration",
"src": "107:10:12"
},
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "value",
"overrides": null,
"scope": 5434,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint",
"type": "uint256"
},
"id": 5428,
"name": "ElementaryTypeName",
"src": "119:4:12"
}
],
"id": 5429,
"name": "VariableDeclaration",
"src": "119:10:12"
}
],
"id": 5430,
"name": "ParameterList",
"src": "106:24:12"
},
{
"children": [
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "",
"overrides": null,
"scope": 5434,
"stateVariable": false,
"storageLocation": "default",
"type": "bool",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "bool",
"type": "bool"
},
"id": 5431,
"name": "ElementaryTypeName",
"src": "149:4:12"
}
],
"id": 5432,
"name": "VariableDeclaration",
"src": "149:4:12"
}
],
"id": 5433,
"name": "ParameterList",
"src": "148:6:12"
}
],
"id": 5434,
"name": "FunctionDefinition",
"src": "89:66:12"
},
{
"attributes": {
"body": null,
"documentation": null,
"functionSelector": "2e1a7d4d",
"implemented": false,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "withdraw",
"overrides": null,
"scope": 5440,
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "",
"overrides": null,
"scope": 5439,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint",
"type": "uint256"
},
"id": 5435,
"name": "ElementaryTypeName",
"src": "178:4:12"
}
],
"id": 5436,
"name": "VariableDeclaration",
"src": "178:4:12"
}
],
"id": 5437,
"name": "ParameterList",
"src": "177:6:12"
},
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 5438,
"name": "ParameterList",
"src": "192:0:12"
}
],
"id": 5439,
"name": "FunctionDefinition",
"src": "160:33:12"
}
],
"id": 5440,
"name": "ContractDefinition",
"src": "26:169:12"
}
],
"id": 5441,
"name": "SourceUnit",
"src": "0:196:12"
},
"compiler": {
"name": "solc",
"version": "0.6.6+commit.6c089d02.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.3.3",
"updatedAt": "2021-01-30T15:45:24.167Z",
"devdoc": {
"methods": {}
},
"userdoc": {
"methods": {}
}
}