@muffinfi/muffin-contracts
Version:
Smart contracts of Muffin Protocol
287 lines (286 loc) • 6.54 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "IMuffinHubPositionsView",
"sourceName": "contracts/interfaces/hub/positions/IMuffinHubPositionsView.sol",
"abi": [
{
"inputs": [
{
"internalType": "bytes32",
"name": "poolId",
"type": "bytes32"
}
],
"name": "getAllTiers",
"outputs": [
{
"components": [
{
"internalType": "uint128",
"name": "liquidity",
"type": "uint128"
},
{
"internalType": "uint128",
"name": "sqrtPrice",
"type": "uint128"
},
{
"internalType": "uint24",
"name": "sqrtGamma",
"type": "uint24"
},
{
"internalType": "int24",
"name": "tick",
"type": "int24"
},
{
"internalType": "int24",
"name": "nextTickBelow",
"type": "int24"
},
{
"internalType": "int24",
"name": "nextTickAbove",
"type": "int24"
},
{
"internalType": "uint80",
"name": "feeGrowthGlobal0",
"type": "uint80"
},
{
"internalType": "uint80",
"name": "feeGrowthGlobal1",
"type": "uint80"
}
],
"internalType": "struct Tiers.Tier[]",
"name": "tiers",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getDefaultAllowedSqrtGammas",
"outputs": [
{
"internalType": "uint24[]",
"name": "sqrtGammas",
"type": "uint24[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "poolId",
"type": "bytes32"
}
],
"name": "getLimitOrderTickSpacingMultipliers",
"outputs": [
{
"internalType": "uint8[]",
"name": "tickSpacingMultipliers",
"type": "uint8[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "poolId",
"type": "bytes32"
}
],
"name": "getPoolAllowedSqrtGammas",
"outputs": [
{
"internalType": "uint24[]",
"name": "sqrtGammas",
"type": "uint24[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "poolId",
"type": "bytes32"
}
],
"name": "getPoolDefaultTickSpacing",
"outputs": [
{
"internalType": "uint8",
"name": "tickSpacing",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "poolId",
"type": "bytes32"
},
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "uint256",
"name": "positionRefId",
"type": "uint256"
},
{
"internalType": "uint8",
"name": "tierId",
"type": "uint8"
},
{
"internalType": "int24",
"name": "tickLower",
"type": "int24"
},
{
"internalType": "int24",
"name": "tickUpper",
"type": "int24"
}
],
"name": "getPositionFeeGrowthInside",
"outputs": [
{
"internalType": "uint80",
"name": "feeGrowthInside0",
"type": "uint80"
},
{
"internalType": "uint80",
"name": "feeGrowthInside1",
"type": "uint80"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "poolId",
"type": "bytes32"
},
{
"internalType": "uint8",
"name": "tierId",
"type": "uint8"
},
{
"internalType": "int24",
"name": "tick",
"type": "int24"
},
{
"internalType": "bool",
"name": "zeroForOne",
"type": "bool"
}
],
"name": "getSettlement",
"outputs": [
{
"internalType": "uint96",
"name": "liquidityD8",
"type": "uint96"
},
{
"internalType": "uint16",
"name": "tickSpacing",
"type": "uint16"
},
{
"internalType": "uint32",
"name": "nextSnapshotId",
"type": "uint32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "poolId",
"type": "bytes32"
},
{
"internalType": "uint8",
"name": "tierId",
"type": "uint8"
},
{
"internalType": "int24",
"name": "tick",
"type": "int24"
},
{
"internalType": "bool",
"name": "zeroForOne",
"type": "bool"
},
{
"internalType": "uint32",
"name": "snapshotId",
"type": "uint32"
}
],
"name": "getSettlementSnapshot",
"outputs": [
{
"components": [
{
"internalType": "uint80",
"name": "feeGrowthInside0",
"type": "uint80"
},
{
"internalType": "uint80",
"name": "feeGrowthInside1",
"type": "uint80"
}
],
"internalType": "struct Settlement.Snapshot",
"name": "snapshot",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}