import { DeepBookConfig } from "../utils/config.mjs"; import * as _mysten_sui_transactions451 from "@mysten/sui/transactions"; import { Transaction } from "@mysten/sui/transactions"; //#region src/transactions/marginRegistry.d.ts /** * MarginRegistryContract class for managing MarginRegistry read-only operations. */ declare class MarginRegistryContract { #private; /** * @param {DeepBookConfig} config Configuration for MarginRegistryContract */ constructor(config: DeepBookConfig); /** * @description Check if a deepbook pool is enabled for margin trading * @param {string} poolKey The key to identify the pool * @returns A function that takes a Transaction object */ poolEnabled: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions451.TransactionResult; /** * @description Get the margin pool ID for a given asset * @param {string} coinKey The key to identify the coin * @returns A function that takes a Transaction object */ getMarginPoolId: (coinKey: string) => (tx: Transaction) => _mysten_sui_transactions451.TransactionResult; /** * @description Get the margin pool IDs (base and quote) for a deepbook pool * @param {string} poolKey The key to identify the pool * @returns A function that takes a Transaction object */ getDeepbookPoolMarginPoolIds: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions451.TransactionResult; /** * @description Get the margin manager IDs for a given owner * @param {string} owner The owner address * @returns A function that takes a Transaction object */ getMarginManagerIds: (owner: string) => (tx: Transaction) => _mysten_sui_transactions451.TransactionResult; /** * @description Get the base margin pool ID for a deepbook pool * @param {string} poolKey The key to identify the pool * @returns A function that takes a Transaction object */ baseMarginPoolId: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions451.TransactionResult; /** * @description Get the quote margin pool ID for a deepbook pool * @param {string} poolKey The key to identify the pool * @returns A function that takes a Transaction object */ quoteMarginPoolId: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions451.TransactionResult; /** * @description Get the minimum withdraw risk ratio for a deepbook pool * @param {string} poolKey The key to identify the pool * @returns A function that takes a Transaction object */ minWithdrawRiskRatio: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions451.TransactionResult; /** * @description Get the minimum borrow risk ratio for a deepbook pool * @param {string} poolKey The key to identify the pool * @returns A function that takes a Transaction object */ minBorrowRiskRatio: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions451.TransactionResult; /** * @description Get the minimum risk ratio required to open a new position on * a deepbook pool. Distinct from `minBorrowRiskRatio`, which gates borrowing. * @param {string} poolKey The key to identify the pool * @returns A function that takes a Transaction object */ minOpenRiskRatio: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions451.TransactionResult; /** * @description Get the liquidation risk ratio for a deepbook pool * @param {string} poolKey The key to identify the pool * @returns A function that takes a Transaction object */ liquidationRiskRatio: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions451.TransactionResult; /** * @description Get the target liquidation risk ratio for a deepbook pool * @param {string} poolKey The key to identify the pool * @returns A function that takes a Transaction object */ targetLiquidationRiskRatio: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions451.TransactionResult; /** * @description Get the user liquidation reward for a deepbook pool * @param {string} poolKey The key to identify the pool * @returns A function that takes a Transaction object */ userLiquidationReward: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions451.TransactionResult; /** * @description Get the pool liquidation reward for a deepbook pool * @param {string} poolKey The key to identify the pool * @returns A function that takes a Transaction object */ poolLiquidationReward: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions451.TransactionResult; /** * @description Get all allowed maintainer cap IDs * @returns A function that takes a Transaction object */ allowedMaintainers: () => (tx: Transaction) => _mysten_sui_transactions451.TransactionResult; /** * @description Get all allowed pause cap IDs * @returns A function that takes a Transaction object */ allowedPauseCaps: () => (tx: Transaction) => _mysten_sui_transactions451.TransactionResult; } //#endregion export { MarginRegistryContract }; //# sourceMappingURL=marginRegistry.d.mts.map