UNPKG

moonwalkerswap-v1-core

Version:
742 lines 29.5 kB
{ "contractName": "IMoonwalkerPoolOwnerActions", "abi": [ { "inputs": [ { "internalType": "uint8", "name": "feeProtocol0", "type": "uint8" }, { "internalType": "uint8", "name": "feeProtocol1", "type": "uint8" } ], "name": "setFeeProtocol", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "recipient", "type": "address" }, { "internalType": "uint128", "name": "amount0Requested", "type": "uint128" }, { "internalType": "uint128", "name": "amount1Requested", "type": "uint128" } ], "name": "collectProtocol", "outputs": [ { "internalType": "uint128", "name": "amount0", "type": "uint128" }, { "internalType": "uint128", "name": "amount1", "type": "uint128" } ], "stateMutability": "nonpayable", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.7.6+commit.7338295f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"amount0Requested\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amount1Requested\",\"type\":\"uint128\"}],\"name\":\"collectProtocol\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"amount0\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amount1\",\"type\":\"uint128\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"feeProtocol0\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"feeProtocol1\",\"type\":\"uint8\"}],\"name\":\"setFeeProtocol\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"collectProtocol(address,uint128,uint128)\":{\"params\":{\"amount0Requested\":\"The maximum amount of token0 to send, can be 0 to collect fees in only token1\",\"amount1Requested\":\"The maximum amount of token1 to send, can be 0 to collect fees in only token0\",\"recipient\":\"The address to which collected protocol fees should be sent\"},\"returns\":{\"amount0\":\"The protocol fee collected in token0\",\"amount1\":\"The protocol fee collected in token1\"}},\"setFeeProtocol(uint8,uint8)\":{\"params\":{\"feeProtocol0\":\"new protocol fee for token0 of the pool\",\"feeProtocol1\":\"new protocol fee for token1 of the pool\"}}},\"title\":\"Permissioned pool actions\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"collectProtocol(address,uint128,uint128)\":{\"notice\":\"Collect the protocol fee accrued to the pool\"},\"setFeeProtocol(uint8,uint8)\":{\"notice\":\"Set the denominator of the protocol's % share of the fees\"}},\"notice\":\"Contains pool methods that may only be called by the factory owner\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/interfaces/pool/IMoonwalkerPoolOwnerActions.sol\":\"IMoonwalkerPoolOwnerActions\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/interfaces/pool/IMoonwalkerPoolOwnerActions.sol\":{\"keccak256\":\"0x4e0aff2d20141240010056058a6e85faff9357390e1459a717b6bad0a5889ebb\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://744646728b66bad9ac7fc5b4074e444ce02503738ae0bd465061d902e4b7e278\",\"dweb:/ipfs/Qmanknkx1G9c7by4b95AQC53FkbMiNBeHnLzES9o5nidN5\"]}},\"version\":1}", "bytecode": "0x", "deployedBytecode": "0x", "immutableReferences": {}, "generatedSources": [], "deployedGeneratedSources": [], "sourceMap": "", "deployedSourceMap": "", "source": "// SPDX-License-Identifier: MIT\npragma solidity >=0.5.0;\n\n/// @title Permissioned pool actions\n/// @notice Contains pool methods that may only be called by the factory owner\ninterface IMoonwalkerPoolOwnerActions {\n /// @notice Set the denominator of the protocol's % share of the fees\n /// @param feeProtocol0 new protocol fee for token0 of the pool\n /// @param feeProtocol1 new protocol fee for token1 of the pool\n function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) external;\n\n /// @notice Collect the protocol fee accrued to the pool\n /// @param recipient The address to which collected protocol fees should be sent\n /// @param amount0Requested The maximum amount of token0 to send, can be 0 to collect fees in only token1\n /// @param amount1Requested The maximum amount of token1 to send, can be 0 to collect fees in only token0\n /// @return amount0 The protocol fee collected in token0\n /// @return amount1 The protocol fee collected in token1\n function collectProtocol(\n address recipient,\n uint128 amount0Requested,\n uint128 amount1Requested\n ) external returns (uint128 amount0, uint128 amount1);\n}\n", "sourcePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/interfaces/pool/IMoonwalkerPoolOwnerActions.sol", "ast": { "absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/interfaces/pool/IMoonwalkerPoolOwnerActions.sol", "exportedSymbols": { "IMoonwalkerPoolOwnerActions": [ 3413 ] }, "id": 3414, "license": "MIT", "nodeType": "SourceUnit", "nodes": [ { "id": 3389, "literals": [ "solidity", ">=", "0.5", ".0" ], "nodeType": "PragmaDirective", "src": "32:24:15" }, { "abstract": false, "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": { "id": 3390, "nodeType": "StructuredDocumentation", "src": "58:116:15", "text": "@title Permissioned pool actions\n @notice Contains pool methods that may only be called by the factory owner" }, "fullyImplemented": false, "id": 3413, "linearizedBaseContracts": [ 3413 ], "name": "IMoonwalkerPoolOwnerActions", "nodeType": "ContractDefinition", "nodes": [ { "documentation": { "id": 3391, "nodeType": "StructuredDocumentation", "src": "218:205:15", "text": "@notice Set the denominator of the protocol's % share of the fees\n @param feeProtocol0 new protocol fee for token0 of the pool\n @param feeProtocol1 new protocol fee for token1 of the pool" }, "functionSelector": "8206a4d1", "id": 3398, "implemented": false, "kind": "function", "modifiers": [], "name": "setFeeProtocol", "nodeType": "FunctionDefinition", "parameters": { "id": 3396, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3393, "mutability": "mutable", "name": "feeProtocol0", "nodeType": "VariableDeclaration", "scope": 3398, "src": "452:18:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 3392, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "452:5:15", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "visibility": "internal" }, { "constant": false, "id": 3395, "mutability": "mutable", "name": "feeProtocol1", "nodeType": "VariableDeclaration", "scope": 3398, "src": "472:18:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 3394, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "472:5:15", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "visibility": "internal" } ], "src": "451:40:15" }, "returnParameters": { "id": 3397, "nodeType": "ParameterList", "parameters": [], "src": "500:0:15" }, "scope": 3413, "src": "428:73:15", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, { "documentation": { "id": 3399, "nodeType": "StructuredDocumentation", "src": "507:483:15", "text": "@notice Collect the protocol fee accrued to the pool\n @param recipient The address to which collected protocol fees should be sent\n @param amount0Requested The maximum amount of token0 to send, can be 0 to collect fees in only token1\n @param amount1Requested The maximum amount of token1 to send, can be 0 to collect fees in only token0\n @return amount0 The protocol fee collected in token0\n @return amount1 The protocol fee collected in token1" }, "functionSelector": "85b66729", "id": 3412, "implemented": false, "kind": "function", "modifiers": [], "name": "collectProtocol", "nodeType": "FunctionDefinition", "parameters": { "id": 3406, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3401, "mutability": "mutable", "name": "recipient", "nodeType": "VariableDeclaration", "scope": 3412, "src": "1029:17:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3400, "name": "address", "nodeType": "ElementaryTypeName", "src": "1029:7:15", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "visibility": "internal" }, { "constant": false, "id": 3403, "mutability": "mutable", "name": "amount0Requested", "nodeType": "VariableDeclaration", "scope": 3412, "src": "1056:24:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint128", "typeString": "uint128" }, "typeName": { "id": 3402, "name": "uint128", "nodeType": "ElementaryTypeName", "src": "1056:7:15", "typeDescriptions": { "typeIdentifier": "t_uint128", "typeString": "uint128" } }, "visibility": "internal" }, { "constant": false, "id": 3405, "mutability": "mutable", "name": "amount1Requested", "nodeType": "VariableDeclaration", "scope": 3412, "src": "1090:24:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint128", "typeString": "uint128" }, "typeName": { "id": 3404, "name": "uint128", "nodeType": "ElementaryTypeName", "src": "1090:7:15", "typeDescriptions": { "typeIdentifier": "t_uint128", "typeString": "uint128" } }, "visibility": "internal" } ], "src": "1019:101:15" }, "returnParameters": { "id": 3411, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3408, "mutability": "mutable", "name": "amount0", "nodeType": "VariableDeclaration", "scope": 3412, "src": "1139:15:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint128", "typeString": "uint128" }, "typeName": { "id": 3407, "name": "uint128", "nodeType": "ElementaryTypeName", "src": "1139:7:15", "typeDescriptions": { "typeIdentifier": "t_uint128", "typeString": "uint128" } }, "visibility": "internal" }, { "constant": false, "id": 3410, "mutability": "mutable", "name": "amount1", "nodeType": "VariableDeclaration", "scope": 3412, "src": "1156:15:15", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint128", "typeString": "uint128" }, "typeName": { "id": 3409, "name": "uint128", "nodeType": "ElementaryTypeName", "src": "1156:7:15", "typeDescriptions": { "typeIdentifier": "t_uint128", "typeString": "uint128" } }, "visibility": "internal" } ], "src": "1138:34:15" }, "scope": 3413, "src": "995:178:15", "stateMutability": "nonpayable", "virtual": false, "visibility": "external" } ], "scope": 3414, "src": "174:1001:15" } ], "src": "32:1144:15" }, "legacyAST": { "attributes": { "absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/interfaces/pool/IMoonwalkerPoolOwnerActions.sol", "exportedSymbols": { "IMoonwalkerPoolOwnerActions": [ 3413 ] }, "license": "MIT" }, "children": [ { "attributes": { "literals": [ "solidity", ">=", "0.5", ".0" ] }, "id": 3389, "name": "PragmaDirective", "src": "32:24:15" }, { "attributes": { "abstract": false, "baseContracts": [ null ], "contractDependencies": [ null ], "contractKind": "interface", "fullyImplemented": false, "linearizedBaseContracts": [ 3413 ], "name": "IMoonwalkerPoolOwnerActions", "scope": 3414 }, "children": [ { "attributes": { "text": "@title Permissioned pool actions\n @notice Contains pool methods that may only be called by the factory owner" }, "id": 3390, "name": "StructuredDocumentation", "src": "58:116:15" }, { "attributes": { "functionSelector": "8206a4d1", "implemented": false, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "setFeeProtocol", "scope": 3413, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, "children": [ { "attributes": { "text": "@notice Set the denominator of the protocol's % share of the fees\n @param feeProtocol0 new protocol fee for token0 of the pool\n @param feeProtocol1 new protocol fee for token1 of the pool" }, "id": 3391, "name": "StructuredDocumentation", "src": "218:205:15" }, { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "feeProtocol0", "scope": 3398, "stateVariable": false, "storageLocation": "default", "type": "uint8", "visibility": "internal" }, "children": [ { "attributes": { "name": "uint8", "type": "uint8" }, "id": 3392, "name": "ElementaryTypeName", "src": "452:5:15" } ], "id": 3393, "name": "VariableDeclaration", "src": "452:18:15" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "feeProtocol1", "scope": 3398, "stateVariable": false, "storageLocation": "default", "type": "uint8", "visibility": "internal" }, "children": [ { "attributes": { "name": "uint8", "type": "uint8" }, "id": 3394, "name": "ElementaryTypeName", "src": "472:5:15" } ], "id": 3395, "name": "VariableDeclaration", "src": "472:18:15" } ], "id": 3396, "name": "ParameterList", "src": "451:40:15" }, { "attributes": { "parameters": [ null ] }, "children": [], "id": 3397, "name": "ParameterList", "src": "500:0:15" } ], "id": 3398, "name": "FunctionDefinition", "src": "428:73:15" }, { "attributes": { "functionSelector": "85b66729", "implemented": false, "isConstructor": false, "kind": "function", "modifiers": [ null ], "name": "collectProtocol", "scope": 3413, "stateMutability": "nonpayable", "virtual": false, "visibility": "external" }, "children": [ { "attributes": { "text": "@notice Collect the protocol fee accrued to the pool\n @param recipient The address to which collected protocol fees should be sent\n @param amount0Requested The maximum amount of token0 to send, can be 0 to collect fees in only token1\n @param amount1Requested The maximum amount of token1 to send, can be 0 to collect fees in only token0\n @return amount0 The protocol fee collected in token0\n @return amount1 The protocol fee collected in token1" }, "id": 3399, "name": "StructuredDocumentation", "src": "507:483:15" }, { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "recipient", "scope": 3412, "stateVariable": false, "storageLocation": "default", "type": "address", "visibility": "internal" }, "children": [ { "attributes": { "name": "address", "stateMutability": "nonpayable", "type": "address" }, "id": 3400, "name": "ElementaryTypeName", "src": "1029:7:15" } ], "id": 3401, "name": "VariableDeclaration", "src": "1029:17:15" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "amount0Requested", "scope": 3412, "stateVariable": false, "storageLocation": "default", "type": "uint128", "visibility": "internal" }, "children": [ { "attributes": { "name": "uint128", "type": "uint128" }, "id": 3402, "name": "ElementaryTypeName", "src": "1056:7:15" } ], "id": 3403, "name": "VariableDeclaration", "src": "1056:24:15" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "amount1Requested", "scope": 3412, "stateVariable": false, "storageLocation": "default", "type": "uint128", "visibility": "internal" }, "children": [ { "attributes": { "name": "uint128", "type": "uint128" }, "id": 3404, "name": "ElementaryTypeName", "src": "1090:7:15" } ], "id": 3405, "name": "VariableDeclaration", "src": "1090:24:15" } ], "id": 3406, "name": "ParameterList", "src": "1019:101:15" }, { "children": [ { "attributes": { "constant": false, "mutability": "mutable", "name": "amount0", "scope": 3412, "stateVariable": false, "storageLocation": "default", "type": "uint128", "visibility": "internal" }, "children": [ { "attributes": { "name": "uint128", "type": "uint128" }, "id": 3407, "name": "ElementaryTypeName", "src": "1139:7:15" } ], "id": 3408, "name": "VariableDeclaration", "src": "1139:15:15" }, { "attributes": { "constant": false, "mutability": "mutable", "name": "amount1", "scope": 3412, "stateVariable": false, "storageLocation": "default", "type": "uint128", "visibility": "internal" }, "children": [ { "attributes": { "name": "uint128", "type": "uint128" }, "id": 3409, "name": "ElementaryTypeName", "src": "1156:7:15" } ], "id": 3410, "name": "VariableDeclaration", "src": "1156:15:15" } ], "id": 3411, "name": "ParameterList", "src": "1138:34:15" } ], "id": 3412, "name": "FunctionDefinition", "src": "995:178:15" } ], "id": 3413, "name": "ContractDefinition", "src": "174:1001:15" } ], "id": 3414, "name": "SourceUnit", "src": "32:1144:15" }, "compiler": { "name": "solc", "version": "0.7.6+commit.7338295f.Emscripten.clang" }, "networks": {}, "schemaVersion": "3.4.1", "updatedAt": "2022-01-17T20:05:41.707Z", "devdoc": { "kind": "dev", "methods": { "collectProtocol(address,uint128,uint128)": { "params": { "amount0Requested": "The maximum amount of token0 to send, can be 0 to collect fees in only token1", "amount1Requested": "The maximum amount of token1 to send, can be 0 to collect fees in only token0", "recipient": "The address to which collected protocol fees should be sent" }, "returns": { "amount0": "The protocol fee collected in token0", "amount1": "The protocol fee collected in token1" } }, "setFeeProtocol(uint8,uint8)": { "params": { "feeProtocol0": "new protocol fee for token0 of the pool", "feeProtocol1": "new protocol fee for token1 of the pool" } } }, "title": "Permissioned pool actions", "version": 1 }, "userdoc": { "kind": "user", "methods": { "collectProtocol(address,uint128,uint128)": { "notice": "Collect the protocol fee accrued to the pool" }, "setFeeProtocol(uint8,uint8)": { "notice": "Set the denominator of the protocol's % share of the fees" } }, "notice": "Contains pool methods that may only be called by the factory owner", "version": 1 } }