@muffinfi/muffin-contracts
Version:
Smart contracts of Muffin Protocol
448 lines (447 loc) • 10.6 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "IMuffinHubPositionsActions",
"sourceName": "contracts/interfaces/hub/positions/IMuffinHubPositionsActions.sol",
"abi": [
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "token0",
"type": "address"
},
{
"internalType": "address",
"name": "token1",
"type": "address"
},
{
"internalType": "uint8",
"name": "tierId",
"type": "uint8"
},
{
"internalType": "int24",
"name": "tickLower",
"type": "int24"
},
{
"internalType": "int24",
"name": "tickUpper",
"type": "int24"
},
{
"internalType": "uint96",
"name": "liquidityD8",
"type": "uint96"
},
{
"internalType": "uint256",
"name": "positionRefId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "accRefId",
"type": "uint256"
},
{
"internalType": "bool",
"name": "collectAllFees",
"type": "bool"
}
],
"internalType": "struct IMuffinHubPositionsActions.BurnParams",
"name": "params",
"type": "tuple"
}
],
"name": "burn",
"outputs": [
{
"internalType": "uint256",
"name": "amount0",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount1",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "feeAmount0",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "feeAmount1",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "address",
"name": "recipient",
"type": "address"
}
],
"name": "collectProtocolFee",
"outputs": [
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "token0",
"type": "address"
},
{
"internalType": "address",
"name": "token1",
"type": "address"
},
{
"internalType": "uint8",
"name": "tierId",
"type": "uint8"
},
{
"internalType": "int24",
"name": "tickLower",
"type": "int24"
},
{
"internalType": "int24",
"name": "tickUpper",
"type": "int24"
},
{
"internalType": "uint96",
"name": "liquidityD8",
"type": "uint96"
},
{
"internalType": "uint256",
"name": "positionRefId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "accRefId",
"type": "uint256"
},
{
"internalType": "bool",
"name": "collectAllFees",
"type": "bool"
}
],
"internalType": "struct IMuffinHubPositionsActions.BurnParams",
"name": "params",
"type": "tuple"
}
],
"name": "collectSettled",
"outputs": [
{
"internalType": "uint256",
"name": "amount0",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount1",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "feeAmount0",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "feeAmount1",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "token0",
"type": "address"
},
{
"internalType": "address",
"name": "token1",
"type": "address"
},
{
"internalType": "uint8",
"name": "tierId",
"type": "uint8"
},
{
"internalType": "int24",
"name": "tickLower",
"type": "int24"
},
{
"internalType": "int24",
"name": "tickUpper",
"type": "int24"
},
{
"internalType": "uint96",
"name": "liquidityD8",
"type": "uint96"
},
{
"internalType": "address",
"name": "recipient",
"type": "address"
},
{
"internalType": "uint256",
"name": "positionRefId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "senderAccRefId",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"internalType": "struct IMuffinHubPositionsActions.MintParams",
"name": "params",
"type": "tuple"
}
],
"name": "mint",
"outputs": [
{
"internalType": "uint256",
"name": "amount0",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount1",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint24[]",
"name": "sqrtGammas",
"type": "uint24[]"
}
],
"name": "setDefaultAllowedSqrtGammas",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "tickSpacing",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "protocolFee",
"type": "uint8"
}
],
"name": "setDefaultParameters",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_governance",
"type": "address"
}
],
"name": "setGovernance",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token0",
"type": "address"
},
{
"internalType": "address",
"name": "token1",
"type": "address"
},
{
"internalType": "uint8",
"name": "tierId",
"type": "uint8"
},
{
"internalType": "int24",
"name": "tickLower",
"type": "int24"
},
{
"internalType": "int24",
"name": "tickUpper",
"type": "int24"
},
{
"internalType": "uint256",
"name": "positionRefId",
"type": "uint256"
},
{
"internalType": "uint8",
"name": "limitOrderType",
"type": "uint8"
}
],
"name": "setLimitOrderType",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "poolId",
"type": "bytes32"
},
{
"internalType": "uint24[]",
"name": "sqrtGammas",
"type": "uint24[]"
}
],
"name": "setPoolAllowedSqrtGammas",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "poolId",
"type": "bytes32"
},
{
"internalType": "uint8",
"name": "tickSpacing",
"type": "uint8"
}
],
"name": "setPoolDefaultTickSpacing",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "poolId",
"type": "bytes32"
},
{
"internalType": "uint8",
"name": "tickSpacing",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "protocolFee",
"type": "uint8"
}
],
"name": "setPoolParameters",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "poolId",
"type": "bytes32"
},
{
"internalType": "uint8",
"name": "tierId",
"type": "uint8"
},
{
"internalType": "uint24",
"name": "sqrtGamma",
"type": "uint24"
},
{
"internalType": "uint8",
"name": "limitOrderTickSpacingMultiplier",
"type": "uint8"
}
],
"name": "setTierParameters",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}