UNPKG

@valueswap/v2-periphery

Version:

🎚 Peripheral smart contracts for interacting with Valueswap V2

446 lines • 15.1 kB
{ "contractName": "IValueswapV2Callee", "abi": [ { "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": [], "stateMutability": "nonpayable", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.6.6+commit.6c089d02\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"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\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"@valueswap/v2-core/contracts/interfaces/IValueswapV2Callee.sol\":\"IValueswapV2Callee\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":999999},\"remappings\":[]},\"sources\":{\"@valueswap/v2-core/contracts/interfaces/IValueswapV2Callee.sol\":{\"keccak256\":\"0x6ae31ab548230a0da52d5478beb1759507c55d9be5bbb3393dd84f769c796781\",\"urls\":[\"bzz-raw://f94793e529f221f55f6eb94ea18c28a7dc4c393c16a036efbe292eb83fd00d89\",\"dweb:/ipfs/QmbbBRZV73opEXQHrW8txVHNCXCrXM2f6eLnB6qTGGXKFi\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "immutableReferences": {}, "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": "@valueswap/v2-core/contracts/interfaces/IValueswapV2Callee.sol", "ast": { "absolutePath": "@valueswap/v2-core/contracts/interfaces/IValueswapV2Callee.sol", "exportedSymbols": { "IValueswapV2Callee": [ 9053 ] }, "id": 9054, "nodeType": "SourceUnit", "nodes": [ { "id": 9041, "literals": [ "solidity", ">=", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "0:24:27" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 9053, "linearizedBaseContracts": [ 9053 ], "name": "IValueswapV2Callee", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "functionSelector": "f2e82feb", "id": 9052, "implemented": false, "kind": "function", "modifiers": [], "name": "valueswapV2Call", "nodeType": "FunctionDefinition", "overrides": null, "parameters": { "id": 9050, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 9043, "mutability": "mutable", "name": "sender", "nodeType": "VariableDeclaration", "overrides": null, "scope": 9052, "src": "86:14:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 9042, "name": "address", "nodeType": "ElementaryTypeName", "src": "86:7:27", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 9045, "mutability": "mutable", "name": "amount0", "nodeType": "VariableDeclaration", "overrides": null, "scope": 9052, "src": "102:12:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 9044, "name": "uint", "nodeType": "ElementaryTypeName", "src": "102:4:27", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 9047, "mutability": "mutable", "name": "amount1", "nodeType": "VariableDeclaration", "overrides": null, "scope": 9052, "src": "116:12:27", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 9046, "name": "uint", "nodeType": "ElementaryTypeName", "src": "116:4:27", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 9049, "mutability": "mutable", "name": "data", "nodeType": "VariableDeclaration", "overrides": null, "scope": 9052, "src": "130:19:27", "stateVariable": false, "storageLocation": "calldata", "typeDescriptions": { "typeIdentifier": "t_bytes_calldata_ptr", "typeString": "bytes" }, "typeName": { "id": 9048, "name": "bytes", "nodeType": "ElementaryTypeName", "src": "130:5:27", "typeDescriptions": { "typeIdentifier": "t_bytes_storage_ptr", "typeString": "bytes" } }, "value": null, "visibility": "internal" } ], "src": "85:65:27" }, "returnParameters": { "id": 9051, "nodeType": "ParameterList", "parameters": [], "src": "159:0:27" }, "scope": 9053, "src": "61:99:27", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" } ], "scope": 9054, "src": "26:136:27" } ], "src": "0:163:27" }, "legacyAST": { "attributes": { "absolutePath": "@valueswap/v2-core/contracts/interfaces/IValueswapV2Callee.sol", "exportedSymbols": { "IValueswapV2Callee": [ 9053 ] } }, "children": [ { "attributes": { "literals": [ "solidity", ">=", "0.5", ".0" ] }, "id": 9041, "name": "PragmaDirective", "src": "0:24:27" }, { "attributes": { "abstract": false, "baseContracts": [ null ], "contractDependencies": [ null ], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "linearizedBaseContracts": [ 9053 ], "name": "IValueswapV2Callee", "scope": 9054 }, "children": [ { "attributes": { "body": null, "documentation": null, "functionSelector": "f2e82feb", "implemented": false, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "valueswapV2Call", "overrides": null, "scope": 9053, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, "children": [ { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "sender", "overrides": null, "scope": 9052, "stateVariable": false, "storageLocation": "default", "type": "address", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 9042, "name": "ElementaryTypeName", "src": "86:7:27" } ], "id": 9043, "name": "VariableDeclaration", "src": "86:14:27" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "amount0", "overrides": null, "scope": 9052, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 9044, "name": "ElementaryTypeName", "src": "102:4:27" } ], "id": 9045, "name": "VariableDeclaration", "src": "102:12:27" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "amount1", "overrides": null, "scope": 9052, "stateVariable": false, "storageLocation": "default", "type": "uint256", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "uint", "type": "uint256" }, "id": 9046, "name": "ElementaryTypeName", "src": "116:4:27" } ], "id": 9047, "name": "VariableDeclaration", "src": "116:12:27" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "data", "overrides": null, "scope": 9052, "stateVariable": false, "storageLocation": "calldata", "type": "bytes", "value": null, "visibility": "internal" }, "children": [ { "attributes": { "name": "bytes", "type": "bytes" }, "id": 9048, "name": "ElementaryTypeName", "src": "130:5:27" } ], "id": 9049, "name": "VariableDeclaration", "src": "130:19:27" } ], "id": 9050, "name": "ParameterList", "src": "85:65:27" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 9051, "name": "ParameterList", "src": "159:0:27" } ], "id": 9052, "name": "FunctionDefinition", "src": "61:99:27" } ], "id": 9053, "name": "ContractDefinition", "src": "26:136:27" } ], "id": 9054, "name": "SourceUnit", "src": "0:163:27" }, "compiler": { "name": "solc", "version": "0.6.6+commit.6c089d02.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.3.3", "updatedAt": "2021-01-30T15:45:24.211Z", "devdoc": { "methods": {} }, "userdoc": { "methods": {} } }