UNPKG

@valueswap/v2-core

Version:
425 lines • 14.4 kB
{ "contractName": "IValueswapV2Callee", "abi": [ { "constant": false, "inputs": [ { "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "amount0", "type": "uint256" }, { "internalType": "uint256", "name": "amount1", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "valueswapV2Call", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"valueswapV2Call\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/second/Documents/work/valueswap-v2-core/contracts/interfaces/IValueswapV2Callee.sol\":\"IValueswapV2Callee\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":999999},\"remappings\":[]},\"sources\":{\"/Users/second/Documents/work/valueswap-v2-core/contracts/interfaces/IValueswapV2Callee.sol\":{\"keccak256\":\"0x6ae31ab548230a0da52d5478beb1759507c55d9be5bbb3393dd84f769c796781\",\"urls\":[\"bzz-raw://f94793e529f221f55f6eb94ea18c28a7dc4c393c16a036efbe292eb83fd00d89\",\"dweb:/ipfs/QmbbBRZV73opEXQHrW8txVHNCXCrXM2f6eLnB6qTGGXKFi\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity >=0.5.0;\n\ninterface IValueswapV2Callee {\n function valueswapV2Call(address sender, uint amount0, uint amount1, bytes calldata data) external;\n}\n", "sourcePath": "/Users/second/Documents/work/valueswap-v2-core/contracts/interfaces/IValueswapV2Callee.sol", "ast": { "absolutePath": "/Users/second/Documents/work/valueswap-v2-core/contracts/interfaces/IValueswapV2Callee.sol", "exportedSymbols": { "IValueswapV2Callee": [ 1751 ] }, "id": 1752, "nodeType": "SourceUnit", "nodes": [ { "id": 1739, "literals": [ "solidity", ">=", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "0:24:5" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 1751, "linearizedBaseContracts": [ 1751 ], "name": "IValueswapV2Callee", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 1750, "implemented": false, "kind": "function", "modifiers": [], "name": "valueswapV2Call", "nodeType": "FunctionDefinition", "parameters": { "id": 1748, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 1741, "name": "sender", "nodeType": "VariableDeclaration", "scope": 1750, "src": "86:14:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 1740, "name": "address", "nodeType": "ElementaryTypeName", "src": "86:7:5", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1743, "name": "amount0", "nodeType": "VariableDeclaration", "scope": 1750, "src": "102:12:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1742, "name": "uint", "nodeType": "ElementaryTypeName", "src": "102:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1745, "name": "amount1", "nodeType": "VariableDeclaration", "scope": 1750, "src": "116:12:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 1744, "name": "uint", "nodeType": "ElementaryTypeName", "src": "116:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 1747, "name": "data", "nodeType": "VariableDeclaration", "scope": 1750, "src": "130:19:5", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes" }, "typeName": { "id": 1746, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "130:5:5", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "85:65:5" }, "returnParameters": { "id": 1749, "nodeType": "ParameterList", "parameters": [], "src": "159:0:5" }, "scope": 1751, "src": "61:99:5", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" } ], "scope": 1752, "src": "26:136:5" } ], "src": "0:163:5" }, "legacyAST": { "attributes": { "absolutePath": "/Users/second/Documents/work/valueswap-v2-core/contracts/interfaces/IValueswapV2Callee.sol", "exportedSymbols": { "IValueswapV2Callee": [ 1751 ] } }, "children": [ { "attributes": { "literals": [ "solidity", ">=", "0.5", ".0" ] }, "id": 1739, "name": "PragmaDirective", "src": "0:24:5" }, { "attributes": { "baseContracts": [ null ], "contractDependencies": [ null ], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "linearizedBaseContracts": [ 1751 ], "name": "IValueswapV2Callee", "scope": 1752 }, "children": [ { "attributes": { "body": null, "documentation": null, "implemented": false, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "valueswapV2Call", "scope": 1751, "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, "children": [ { "children": [ { "attributes": { "constant": false, "name": "sender", "scope": 1750, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 1740, "name": "ElementaryTypeName", "src": "86:7:5" } ], "id": 1741, "name": "VariableDeclaration", "src": "86:14:5" }, { "attributes": { "constant": false, "name": "amount0", "scope": 1750, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 1742, "name": "ElementaryTypeName", "src": "102:4:5" } ], "id": 1743, "name": "VariableDeclaration", "src": "102:12:5" }, { "attributes": { "constant": false, "name": "amount1", "scope": 1750, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 1744, "name": "ElementaryTypeName", "src": "116:4:5" } ], "id": 1745, "name": "VariableDeclaration", "src": "116:12:5" }, { "attributes": { "constant": false, "name": "data", "scope": 1750, "stateVariable": false, "storageLocation": "calldata", "type": "bytes", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "bytes", "type": "bytes" }, "id": 1746, "name": "ElementaryTypeName", "src": "130:5:5" } ], "id": 1747, "name": "VariableDeclaration", "src": "130:19:5" } ], "id": 1748, "name": "ParameterList", "src": "85:65:5" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 1749, "name": "ParameterList", "src": "159:0:5" } ], "id": 1750, "name": "FunctionDefinition", "src": "61:99:5" } ], "id": 1751, "name": "ContractDefinition", "src": "26:136:5" } ], "id": 1752, "name": "SourceUnit", "src": "0:163:5" }, "compiler": { "name": "solc", "version": "0.5.16+commit.9c3226ce.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.3.3", "updatedAt": "2021-01-30T15:36:09.988Z", "devdoc": { "methods": {} }, "userdoc": { "methods": {} } }