moonwalkerswap-v1-core
Version:
Moonwalkerswap v1 core
414 lines • 17.6 kB
JSON
{
"contractName": "IMoonwalkerMintCallback",
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "amount0Owed",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount1Owed",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "moonwalkerMintCallback",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.7.6+commit.7338295f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0Owed\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Owed\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"moonwalkerMintCallback\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"moonwalkerMintCallback(uint256,uint256,bytes)\":{\"details\":\"In the implementation you must pay the pool tokens owed for the minted liquidity. The caller of this method must be checked to be a MoonwalkerPool deployed by the canonical MoonwalkerFactory.\",\"params\":{\"amount0Owed\":\"The amount of token0 due to the pool for the minted liquidity\",\"amount1Owed\":\"The amount of token1 due to the pool for the minted liquidity\",\"data\":\"Any data passed through by the caller via the IMoonwalkerPoolActions#mint call\"}}},\"title\":\"Callback for IMoonwalkerPoolActions#mint\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"moonwalkerMintCallback(uint256,uint256,bytes)\":{\"notice\":\"Called to `msg.sender` after minting liquidity to a position from IMoonwalkerPool#mint.\"}},\"notice\":\"Any contract that calls IMoonwalkerPoolActions#mint must implement this interface\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/interfaces/callback/IMoonwalkerMintCallback.sol\":\"IMoonwalkerMintCallback\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/interfaces/callback/IMoonwalkerMintCallback.sol\":{\"keccak256\":\"0xfd57ef3ddedb21e814dc6a2e7415c672e4ecd90428f0e33bc70b58e83d07b996\",\"license\":\"GPL-2.0-or-later\",\"urls\":[\"bzz-raw://14579a25f1f2f26521ce7a79dd936e7afe766a8e617a953917986cc079d7d959\",\"dweb:/ipfs/Qmc4Qv1Sqqq6WuEV8b4iWy95GhtE8B3KwtvKTPFsPfhGpQ\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"immutableReferences": {},
"generatedSources": [],
"deployedGeneratedSources": [],
"sourceMap": "",
"deployedSourceMap": "",
"source": "// SPDX-License-Identifier: GPL-2.0-or-later\npragma solidity >=0.5.0;\n\n/// @title Callback for IMoonwalkerPoolActions#mint\n/// @notice Any contract that calls IMoonwalkerPoolActions#mint must implement this interface\ninterface IMoonwalkerMintCallback {\n /// @notice Called to `msg.sender` after minting liquidity to a position from IMoonwalkerPool#mint.\n /// @dev In the implementation you must pay the pool tokens owed for the minted liquidity.\n /// The caller of this method must be checked to be a MoonwalkerPool deployed by the canonical MoonwalkerFactory.\n /// @param amount0Owed The amount of token0 due to the pool for the minted liquidity\n /// @param amount1Owed The amount of token1 due to the pool for the minted liquidity\n /// @param data Any data passed through by the caller via the IMoonwalkerPoolActions#mint call\n function moonwalkerMintCallback(\n uint256 amount0Owed,\n uint256 amount1Owed,\n bytes calldata data\n ) external;\n}\n",
"sourcePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/interfaces/callback/IMoonwalkerMintCallback.sol",
"ast": {
"absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/interfaces/callback/IMoonwalkerMintCallback.sol",
"exportedSymbols": {
"IMoonwalkerMintCallback": [
3087
]
},
"id": 3088,
"license": "GPL-2.0-or-later",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 3075,
"literals": [
"solidity",
">=",
"0.5",
".0"
],
"nodeType": "PragmaDirective",
"src": "45:24:9"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": {
"id": 3076,
"nodeType": "StructuredDocumentation",
"src": "71:146:9",
"text": "@title Callback for IMoonwalkerPoolActions#mint\n @notice Any contract that calls IMoonwalkerPoolActions#mint must implement this interface"
},
"fullyImplemented": false,
"id": 3087,
"linearizedBaseContracts": [
3087
],
"name": "IMoonwalkerMintCallback",
"nodeType": "ContractDefinition",
"nodes": [
{
"documentation": {
"id": 3077,
"nodeType": "StructuredDocumentation",
"src": "257:589:9",
"text": "@notice Called to `msg.sender` after minting liquidity to a position from IMoonwalkerPool#mint.\n @dev In the implementation you must pay the pool tokens owed for the minted liquidity.\n The caller of this method must be checked to be a MoonwalkerPool deployed by the canonical MoonwalkerFactory.\n @param amount0Owed The amount of token0 due to the pool for the minted liquidity\n @param amount1Owed The amount of token1 due to the pool for the minted liquidity\n @param data Any data passed through by the caller via the IMoonwalkerPoolActions#mint call"
},
"functionSelector": "a8572a50",
"id": 3086,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "moonwalkerMintCallback",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3084,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3079,
"mutability": "mutable",
"name": "amount0Owed",
"nodeType": "VariableDeclaration",
"scope": 3086,
"src": "892:19:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3078,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "892:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 3081,
"mutability": "mutable",
"name": "amount1Owed",
"nodeType": "VariableDeclaration",
"scope": 3086,
"src": "921:19:9",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3080,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "921:7:9",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 3083,
"mutability": "mutable",
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 3086,
"src": "950:19:9",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 3082,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "950:5:9",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "882:93:9"
},
"returnParameters": {
"id": 3085,
"nodeType": "ParameterList",
"parameters": [],
"src": "984:0:9"
},
"scope": 3087,
"src": "851:134:9",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 3088,
"src": "217:770:9"
}
],
"src": "45:943:9"
},
"legacyAST": {
"attributes": {
"absolutePath": "/Users/warrenmason/Documents/UniswapV3Contracts/Core/LiveContracts/MoonwalkerSwap-v1-Core/contracts/interfaces/callback/IMoonwalkerMintCallback.sol",
"exportedSymbols": {
"IMoonwalkerMintCallback": [
3087
]
},
"license": "GPL-2.0-or-later"
},
"children": [
{
"attributes": {
"literals": [
"solidity",
">=",
"0.5",
".0"
]
},
"id": 3075,
"name": "PragmaDirective",
"src": "45:24:9"
},
{
"attributes": {
"abstract": false,
"baseContracts": [
null
],
"contractDependencies": [
null
],
"contractKind": "interface",
"fullyImplemented": false,
"linearizedBaseContracts": [
3087
],
"name": "IMoonwalkerMintCallback",
"scope": 3088
},
"children": [
{
"attributes": {
"text": "@title Callback for IMoonwalkerPoolActions#mint\n @notice Any contract that calls IMoonwalkerPoolActions#mint must implement this interface"
},
"id": 3076,
"name": "StructuredDocumentation",
"src": "71:146:9"
},
{
"attributes": {
"functionSelector": "a8572a50",
"implemented": false,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "moonwalkerMintCallback",
"scope": 3087,
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
"children": [
{
"attributes": {
"text": "@notice Called to `msg.sender` after minting liquidity to a position from IMoonwalkerPool#mint.\n @dev In the implementation you must pay the pool tokens owed for the minted liquidity.\n The caller of this method must be checked to be a MoonwalkerPool deployed by the canonical MoonwalkerFactory.\n @param amount0Owed The amount of token0 due to the pool for the minted liquidity\n @param amount1Owed The amount of token1 due to the pool for the minted liquidity\n @param data Any data passed through by the caller via the IMoonwalkerPoolActions#mint call"
},
"id": 3077,
"name": "StructuredDocumentation",
"src": "257:589:9"
},
{
"children": [
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "amount0Owed",
"scope": 3086,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint256",
"type": "uint256"
},
"id": 3078,
"name": "ElementaryTypeName",
"src": "892:7:9"
}
],
"id": 3079,
"name": "VariableDeclaration",
"src": "892:19:9"
},
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "amount1Owed",
"scope": 3086,
"stateVariable": false,
"storageLocation": "default",
"type": "uint256",
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "uint256",
"type": "uint256"
},
"id": 3080,
"name": "ElementaryTypeName",
"src": "921:7:9"
}
],
"id": 3081,
"name": "VariableDeclaration",
"src": "921:19:9"
},
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "data",
"scope": 3086,
"stateVariable": false,
"storageLocation": "calldata",
"type": "bytes",
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "bytes",
"type": "bytes"
},
"id": 3082,
"name": "ElementaryTypeName",
"src": "950:5:9"
}
],
"id": 3083,
"name": "VariableDeclaration",
"src": "950:19:9"
}
],
"id": 3084,
"name": "ParameterList",
"src": "882:93:9"
},
{
"attributes": {
"parameters": [
null
]
},
"children": [],
"id": 3085,
"name": "ParameterList",
"src": "984:0:9"
}
],
"id": 3086,
"name": "FunctionDefinition",
"src": "851:134:9"
}
],
"id": 3087,
"name": "ContractDefinition",
"src": "217:770:9"
}
],
"id": 3088,
"name": "SourceUnit",
"src": "45:943:9"
},
"compiler": {
"name": "solc",
"version": "0.7.6+commit.7338295f.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.1",
"updatedAt": "2022-01-17T20:05:41.699Z",
"devdoc": {
"kind": "dev",
"methods": {
"moonwalkerMintCallback(uint256,uint256,bytes)": {
"details": "In the implementation you must pay the pool tokens owed for the minted liquidity. The caller of this method must be checked to be a MoonwalkerPool deployed by the canonical MoonwalkerFactory.",
"params": {
"amount0Owed": "The amount of token0 due to the pool for the minted liquidity",
"amount1Owed": "The amount of token1 due to the pool for the minted liquidity",
"data": "Any data passed through by the caller via the IMoonwalkerPoolActions#mint call"
}
}
},
"title": "Callback for IMoonwalkerPoolActions#mint",
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {
"moonwalkerMintCallback(uint256,uint256,bytes)": {
"notice": "Called to `msg.sender` after minting liquidity to a position from IMoonwalkerPool#mint."
}
},
"notice": "Any contract that calls IMoonwalkerPoolActions#mint must implement this interface",
"version": 1
}
}