import { InterestConfigParams, MarginPoolConfigParams } from "../types/index.mjs"; import { DeepBookConfig } from "../utils/config.mjs"; import * as _mysten_sui_transactions165 from "@mysten/sui/transactions"; import { Transaction, TransactionArgument, TransactionObjectArgument } from "@mysten/sui/transactions"; //#region src/transactions/marginMaintainer.d.ts /** * DeepBookMaintainerContract class for managing maintainer actions. */ declare class MarginMaintainerContract { #private; /** * @param {DeepBookConfig} config Configuration for MarginMaintainerContract */ constructor(config: DeepBookConfig); /** * @description Create a new margin pool * @param {string} coinKey The key to identify the coin * @param {TransactionArgument} poolConfig The configuration for the pool * @returns A function that takes a Transaction object */ createMarginPool: (coinKey: string, poolConfig: TransactionArgument) => (tx: Transaction) => void; /** * @description Create a new protocol config * @param {string} coinKey The key to identify the coin * @param {MarginPoolConfigParams} marginPoolConfig The configuration for the margin pool (with optional rate limit) * @param {InterestConfigParams} interestConfig The configuration for the interest * @returns A function that takes a Transaction object */ newProtocolConfig: (coinKey: string, marginPoolConfig: MarginPoolConfigParams, interestConfig: InterestConfigParams) => (tx: Transaction) => _mysten_sui_transactions165.TransactionResult; /** * @description Create a new margin pool config * @param {string} coinKey The key to identify the coin * @param {MarginPoolConfigParams} marginPoolConfig The configuration for the margin pool * @returns A function that takes a Transaction object */ newMarginPoolConfig: (coinKey: string, marginPoolConfig: MarginPoolConfigParams) => (tx: Transaction) => _mysten_sui_transactions165.TransactionResult; /** * @description Create a new margin pool config with rate limit * @param {string} coinKey The key to identify the coin * @param {MarginPoolConfigParams} marginPoolConfig The configuration for the margin pool with rate limit * @returns A function that takes a Transaction object */ newMarginPoolConfigWithRateLimit: (coinKey: string, marginPoolConfig: Required> & MarginPoolConfigParams) => (tx: Transaction) => _mysten_sui_transactions165.TransactionResult; /** * @description Create a new interest config * @param {InterestConfigParams} interestConfig The configuration for the interest * @returns A function that takes a Transaction object */ newInterestConfig: (interestConfig: InterestConfigParams) => (tx: Transaction) => _mysten_sui_transactions165.TransactionResult; /** * @description Enable a deepbook pool for loan * @param {string} deepbookPoolKey The key to identify the deepbook pool * @param {string} coinKey The key to identify the margin pool * @param {TransactionObjectArgument} marginPoolCap The margin pool cap * @returns A function that takes a Transaction object */ enableDeepbookPoolForLoan: (deepbookPoolKey: string, coinKey: string, marginPoolCap: TransactionObjectArgument) => (tx: Transaction) => void; /** * @description Disable a deepbook pool for loan * @param {string} deepbookPoolKey The key to identify the deepbook pool * @param {string} coinKey The key to identify the margin pool * @param {TransactionObjectArgument} marginPoolCap The margin pool cap * @returns A function that takes a Transaction object */ disableDeepbookPoolForLoan: (deepbookPoolKey: string, coinKey: string, marginPoolCap: TransactionObjectArgument) => (tx: Transaction) => void; /** * @description Update the interest params * @param {string} coinKey The key to identify the margin pool * @param {TransactionObjectArgument} marginPoolCap The margin pool cap * @param {InterestConfigParams} interestConfig The configuration for the interest * @returns A function that takes a Transaction object */ updateInterestParams: (coinKey: string, marginPoolCap: TransactionObjectArgument, interestConfig: InterestConfigParams) => (tx: Transaction) => void; /** * @description Update the margin pool config * @param {string} coinKey The key to identify the margin pool * @param {TransactionObjectArgument} marginPoolCap The margin pool cap * @param {MarginPoolConfigParams} marginPoolConfig The configuration for the margin pool (with optional rate limit) * @returns A function that takes a Transaction object */ updateMarginPoolConfig: (coinKey: string, marginPoolCap: TransactionObjectArgument, marginPoolConfig: MarginPoolConfigParams) => (tx: Transaction) => void; } //#endregion export { MarginMaintainerContract }; //# sourceMappingURL=marginMaintainer.d.mts.map