UNPKG

@muffinfi/muffin-contracts

Version:

Smart contracts of Muffin Protocol

324 lines (323 loc) 7.49 kB
{ "_format": "hh-sol-artifact-1", "contractName": "IMuffinHubView", "sourceName": "contracts/interfaces/hub/IMuffinHubView.sol", "abi": [ { "inputs": [], "name": "getDefaultParameters", "outputs": [ { "internalType": "uint8", "name": "tickSpacing", "type": "uint8" }, { "internalType": "uint8", "name": "protocolFee", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "poolId", "type": "bytes32" } ], "name": "getPoolParameters", "outputs": [ { "internalType": "uint8", "name": "tickSpacing", "type": "uint8" }, { "internalType": "uint8", "name": "protocolFee", "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": "getPosition", "outputs": [ { "components": [ { "internalType": "uint96", "name": "liquidityD8", "type": "uint96" }, { "internalType": "uint80", "name": "feeGrowthInside0Last", "type": "uint80" }, { "internalType": "uint80", "name": "feeGrowthInside1Last", "type": "uint80" }, { "internalType": "uint8", "name": "limitOrderType", "type": "uint8" }, { "internalType": "uint32", "name": "settlementSnapshotId", "type": "uint32" } ], "internalType": "struct Positions.Position", "name": "position", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "slot", "type": "bytes32" } ], "name": "getStorageAt", "outputs": [ { "internalType": "bytes32", "name": "word", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "poolId", "type": "bytes32" }, { "internalType": "uint8", "name": "tierId", "type": "uint8" }, { "internalType": "int24", "name": "tick", "type": "int24" } ], "name": "getTick", "outputs": [ { "components": [ { "internalType": "uint96", "name": "liquidityLowerD8", "type": "uint96" }, { "internalType": "uint96", "name": "liquidityUpperD8", "type": "uint96" }, { "internalType": "int24", "name": "nextBelow", "type": "int24" }, { "internalType": "int24", "name": "nextAbove", "type": "int24" }, { "internalType": "bool", "name": "needSettle0", "type": "bool" }, { "internalType": "bool", "name": "needSettle1", "type": "bool" }, { "internalType": "uint80", "name": "feeGrowthOutside0", "type": "uint80" }, { "internalType": "uint80", "name": "feeGrowthOutside1", "type": "uint80" } ], "internalType": "struct Ticks.Tick", "name": "tickObj", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "poolId", "type": "bytes32" }, { "internalType": "uint8", "name": "tierId", "type": "uint8" } ], "name": "getTier", "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": "tier", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "poolId", "type": "bytes32" } ], "name": "getTiersCount", "outputs": [ { "internalType": "uint256", "name": "count", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "poolId", "type": "bytes32" }, { "internalType": "uint24", "name": "sqrtGamma", "type": "uint24" } ], "name": "isSqrtGammaAllowed", "outputs": [ { "internalType": "bool", "name": "allowed", "type": "bool" } ], "stateMutability": "view", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "linkReferences": {}, "deployedLinkReferences": {} }