import { CreatePoolAdminParams, SetEwmaParams } from "../types/index.mjs"; import { DeepBookConfig } from "../utils/config.mjs"; import * as _mysten_sui_transactions156 from "@mysten/sui/transactions"; import { Transaction } from "@mysten/sui/transactions"; //#region src/transactions/deepbookAdmin.d.ts /** * DeepBookAdminContract class for managing admin actions. */ declare class DeepBookAdminContract { #private; /** * @param {DeepBookConfig} config Configuration for DeepBookAdminContract */ constructor(config: DeepBookConfig); /** * @description Create a new pool as admin * @param {CreatePoolAdminParams} params Parameters for creating pool as admin * @returns A function that takes a Transaction object */ createPoolAdmin: (params: CreatePoolAdminParams) => (tx: Transaction) => void; /** * @description Unregister a pool as admin * @param {string} poolKey The key of the pool to be unregistered by admin * @returns A function that takes a Transaction object */ unregisterPoolAdmin: (poolKey: string) => (tx: Transaction) => void; /** * @description Update the allowed versions for a pool * @param {string} poolKey The key of the pool to be updated * @returns A function that takes a Transaction object */ updateAllowedVersions: (poolKey: string) => (tx: Transaction) => void; /** * @description Enable a specific version * @param {number} version The version to be enabled * @returns A function that takes a Transaction object */ enableVersion: (version: number) => (tx: Transaction) => void; /** * @description Disable a specific version * @param {number} version The version to be disabled * @returns A function that takes a Transaction object */ disableVersion: (version: number) => (tx: Transaction) => void; /** * @description Sets the treasury address where pool creation fees will be sent * @param {string} treasuryAddress The treasury address * @returns A function that takes a Transaction object */ setTreasuryAddress: (treasuryAddress: string) => (tx: Transaction) => void; /** * @description Add a coin to whitelist of stable coins * @param {string} stableCoinKey The name of the stable coin to be added * @returns A function that takes a Transaction object */ addStableCoin: (stableCoinKey: string) => (tx: Transaction) => void; /** * @description Remove a coin from whitelist of stable coins * @param {string} stableCoinKey The name of the stable coin to be removed * @returns A function that takes a Transaction object */ removeStableCoin: (stableCoinKey: string) => (tx: Transaction) => void; /** * @description Adjust the tick size of a pool * @param {string} poolKey The key to identify the pool * @param {number} newTickSize The new tick size * @returns A function that takes a Transaction object */ adjustTickSize: (poolKey: string, newTickSize: number) => (tx: Transaction) => void; /** * @description Adjust the lot size and min size of a pool * @param {string} poolKey The key to identify the pool * @param {number} newLotSize The new lot size * @param {number} newMinSize The new min size * @returns A function that takes a Transaction object */ adjustMinLotSize: (poolKey: string, newLotSize: number, newMinSize: number) => (tx: Transaction) => void; /** * @description Initialize the balance manager map * @returns A function that takes a Transaction object */ initBalanceManagerMap: () => (tx: Transaction) => void; /** * @description Set the EWMA parameters for a pool * @param {string} poolKey The key to identify the pool * @param {SetEwmaParamsParams} params The parameters to set * @returns A function that takes a Transaction object */ setEwmaParams: (poolKey: string, params: SetEwmaParams) => (tx: Transaction) => void; /** * @description Enable or disable the EWMA state for a pool * @param {string} poolKey The key to identify the pool * @param {boolean} enable Whether to enable or disable the EWMA state * @returns A function that takes a Transaction object */ enableEwmaState: (poolKey: string, enable: boolean) => (tx: Transaction) => void; /** * @description Authorize the MarginApp to access protected features of DeepBook * @returns A function that takes a Transaction object */ authorizeMarginApp: () => (tx: Transaction) => void; /** * @description Deauthorize the MarginApp by removing its authorization key * @returns A function that takes a Transaction object and returns a bool */ deauthorizeMarginApp: () => (tx: Transaction) => _mysten_sui_transactions156.TransactionResult; /** * @description Mint a `DeepbookCorePauseCap`. The new cap's ID is recorded * in the core registry so it can later disable any allowed package version * via `disableVersionWithCorePauseCap`. Companion to the margin-side * `MarginAdminContract.mintPauseCap`. * @returns A function that takes a Transaction object and returns the new pause cap */ mintCorePauseCap: () => (tx: Transaction) => _mysten_sui_transactions156.TransactionResult; /** * @description Revoke a previously minted `DeepbookCorePauseCap` by ID. * @param {string} pauseCapId The ID of the core pause cap to revoke * @returns A function that takes a Transaction object */ revokeCorePauseCap: (pauseCapId: string) => (tx: Transaction) => void; /** * @description Emergency kill switch — disable any allowed core package * version (including the current one) using a held `DeepbookCorePauseCap`. * Re-enable later via `enableVersion`. * @param {number | bigint} version The version to disable * @param {string} pauseCapId The ID of the core pause cap to authorize the disable * @returns A function that takes a Transaction object */ disableVersionWithCorePauseCap: (version: number | bigint, pauseCapId: string) => (tx: Transaction) => void; /** * @description Get the set of allowed `DeepbookCorePauseCap` IDs from the * core registry. * @returns A function that takes a Transaction object and returns a `VecSet` */ corePauseCaps: () => (tx: Transaction) => _mysten_sui_transactions156.TransactionResult; } //#endregion export { DeepBookAdminContract }; //# sourceMappingURL=deepbookAdmin.d.mts.map