{"version":3,"file":"margin_registry.mjs","names":["versioned.Versioned","vec_set.VecSet","table.Table","vec_map.VecMap"],"sources":["../../../src/contracts/deepbook_margin/margin_registry.ts"],"sourcesContent":["/**************************************************************\n * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *\n **************************************************************/\n\n/** Registry holds all margin pools. */\n\nimport {\n\tMoveStruct,\n\tMoveTuple,\n\tnormalizeMoveArguments,\n\ttype RawTransactionArgument,\n} from '../utils/index.js';\nimport { bcs, type BcsType } from '@mysten/sui/bcs';\nimport { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';\nimport * as versioned from './deps/sui/versioned.js';\nimport * as vec_set from './deps/sui/vec_set.js';\nimport * as table from './deps/sui/table.js';\nimport * as vec_map from './deps/sui/vec_map.js';\nconst $moduleName = '@deepbook/margin::margin_registry';\nexport const MARGIN_REGISTRY = new MoveStruct({\n\tname: `${$moduleName}::MARGIN_REGISTRY`,\n\tfields: {\n\t\tdummy_field: bcs.bool(),\n\t},\n});\nexport const MarginRegistry = new MoveStruct({\n\tname: `${$moduleName}::MarginRegistry`,\n\tfields: {\n\t\tid: bcs.Address,\n\t\tinner: versioned.Versioned,\n\t},\n});\nexport const MarginRegistryInner = new MoveStruct({\n\tname: `${$moduleName}::MarginRegistryInner`,\n\tfields: {\n\t\tregistry_id: bcs.Address,\n\t\tallowed_versions: vec_set.VecSet(bcs.u64()),\n\t\tpool_registry: table.Table,\n\t\tmargin_pools: table.Table,\n\t\tmargin_managers: table.Table,\n\t\tallowed_maintainers: vec_set.VecSet(bcs.Address),\n\t\tallowed_pause_caps: vec_set.VecSet(bcs.Address),\n\t},\n});\nexport const RiskRatios = new MoveStruct({\n\tname: `${$moduleName}::RiskRatios`,\n\tfields: {\n\t\tmin_withdraw_risk_ratio: bcs.u64(),\n\t\tmin_borrow_risk_ratio: bcs.u64(),\n\t\tliquidation_risk_ratio: bcs.u64(),\n\t\ttarget_liquidation_risk_ratio: bcs.u64(),\n\t},\n});\nexport const PoolConfig = new MoveStruct({\n\tname: `${$moduleName}::PoolConfig`,\n\tfields: {\n\t\tbase_margin_pool_id: bcs.Address,\n\t\tquote_margin_pool_id: bcs.Address,\n\t\trisk_ratios: RiskRatios,\n\t\tuser_liquidation_reward: bcs.u64(),\n\t\tpool_liquidation_reward: bcs.u64(),\n\t\tenabled: bcs.bool(),\n\t\textra_fields: vec_map.VecMap(bcs.string(), bcs.u64()),\n\t},\n});\nexport const ConfigKey = new MoveStruct({\n\tname: `${$moduleName}::ConfigKey<phantom Config>`,\n\tfields: {\n\t\tdummy_field: bcs.bool(),\n\t},\n});\nexport const CurrentPriceKey = new MoveStruct({\n\tname: `${$moduleName}::CurrentPriceKey`,\n\tfields: {\n\t\tpool_id: bcs.Address,\n\t},\n});\nexport const CurrentPriceData = new MoveStruct({\n\tname: `${$moduleName}::CurrentPriceData`,\n\tfields: {\n\t\tprice: bcs.u64(),\n\t\tlast_price_update_ms: bcs.u64(),\n\t\ttolerance: bcs.u64(),\n\t\tmax_price_age_ms: bcs.u64(),\n\t},\n});\nexport const MaxOrderTtlKey = new MoveTuple({\n\tname: `${$moduleName}::MaxOrderTtlKey`,\n\tfields: [bcs.Address],\n});\nexport const MinOpenRiskRatioKey = new MoveTuple({\n\tname: `${$moduleName}::MinOpenRiskRatioKey`,\n\tfields: [bcs.Address],\n});\nexport const MarginAdminCap = new MoveStruct({\n\tname: `${$moduleName}::MarginAdminCap`,\n\tfields: {\n\t\tid: bcs.Address,\n\t},\n});\nexport const MarginPauseCap = new MoveStruct({\n\tname: `${$moduleName}::MarginPauseCap`,\n\tfields: {\n\t\tid: bcs.Address,\n\t},\n});\nexport const MaintainerCap = new MoveStruct({\n\tname: `${$moduleName}::MaintainerCap`,\n\tfields: {\n\t\tid: bcs.Address,\n\t},\n});\nexport const MarginPoolCap = new MoveStruct({\n\tname: `${$moduleName}::MarginPoolCap`,\n\tfields: {\n\t\tid: bcs.Address,\n\t\tmargin_pool_id: bcs.Address,\n\t},\n});\nexport const MaintainerCapUpdated = new MoveStruct({\n\tname: `${$moduleName}::MaintainerCapUpdated`,\n\tfields: {\n\t\tmaintainer_cap_id: bcs.Address,\n\t\tallowed: bcs.bool(),\n\t\ttimestamp: bcs.u64(),\n\t},\n});\nexport const PauseCapUpdated = new MoveStruct({\n\tname: `${$moduleName}::PauseCapUpdated`,\n\tfields: {\n\t\tpause_cap_id: bcs.Address,\n\t\tallowed: bcs.bool(),\n\t\ttimestamp: bcs.u64(),\n\t},\n});\nexport const DeepbookPoolRegistered = new MoveStruct({\n\tname: `${$moduleName}::DeepbookPoolRegistered`,\n\tfields: {\n\t\tpool_id: bcs.Address,\n\t\tconfig: PoolConfig,\n\t\ttimestamp: bcs.u64(),\n\t},\n});\nexport const DeepbookPoolUpdated = new MoveStruct({\n\tname: `${$moduleName}::DeepbookPoolUpdated`,\n\tfields: {\n\t\tpool_id: bcs.Address,\n\t\tenabled: bcs.bool(),\n\t\ttimestamp: bcs.u64(),\n\t},\n});\nexport const DeepbookPoolConfigUpdated = new MoveStruct({\n\tname: `${$moduleName}::DeepbookPoolConfigUpdated`,\n\tfields: {\n\t\tpool_id: bcs.Address,\n\t\tconfig: PoolConfig,\n\t\ttimestamp: bcs.u64(),\n\t},\n});\nexport const CurrentPriceUpdated = new MoveStruct({\n\tname: `${$moduleName}::CurrentPriceUpdated`,\n\tfields: {\n\t\tpool_id: bcs.Address,\n\t\tprice: bcs.u64(),\n\t\ttimestamp: bcs.u64(),\n\t},\n});\nexport const PriceToleranceUpdated = new MoveStruct({\n\tname: `${$moduleName}::PriceToleranceUpdated`,\n\tfields: {\n\t\tpool_id: bcs.Address,\n\t\ttolerance: bcs.u64(),\n\t\ttimestamp: bcs.u64(),\n\t},\n});\nexport const MaxPriceAgeUpdated = new MoveStruct({\n\tname: `${$moduleName}::MaxPriceAgeUpdated`,\n\tfields: {\n\t\tpool_id: bcs.Address,\n\t\tmax_age_ms: bcs.u64(),\n\t\ttimestamp: bcs.u64(),\n\t},\n});\nexport const MaxOrderTtlUpdated = new MoveStruct({\n\tname: `${$moduleName}::MaxOrderTtlUpdated`,\n\tfields: {\n\t\tpool_id: bcs.Address,\n\t\tmax_order_ttl_ms: bcs.u64(),\n\t\ttimestamp: bcs.u64(),\n\t},\n});\nexport const MinOpenRiskRatioUpdated = new MoveStruct({\n\tname: `${$moduleName}::MinOpenRiskRatioUpdated`,\n\tfields: {\n\t\tpool_id: bcs.Address,\n\t\tmin_open_risk_ratio: bcs.u64(),\n\t\ttimestamp: bcs.u64(),\n\t},\n});\nexport interface MintMaintainerCapArguments {\n\tself: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n}\nexport interface MintMaintainerCapOptions {\n\tpackage?: string;\n\targuments:\n\t\t| MintMaintainerCapArguments\n\t\t| [self: RawTransactionArgument<string>, AdminCap: RawTransactionArgument<string>];\n}\n/**\n * Mint a `MaintainerCap`, only admin can mint a `MaintainerCap`. This function\n * does not have version restrictions\n */\nexport function mintMaintainerCap(options: MintMaintainerCapOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, null, '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'AdminCap'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'mint_maintainer_cap',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface RevokeMaintainerCapArguments {\n\tself: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tmaintainerCapId: RawTransactionArgument<string>;\n}\nexport interface RevokeMaintainerCapOptions {\n\tpackage?: string;\n\targuments:\n\t\t| RevokeMaintainerCapArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tAdminCap: RawTransactionArgument<string>,\n\t\t\t\tmaintainerCapId: RawTransactionArgument<string>,\n\t\t  ];\n}\n/**\n * Revoke a `MaintainerCap`. Only the admin can revoke a `MaintainerCap`. This\n * function does not have version restrictions\n */\nexport function revokeMaintainerCap(options: RevokeMaintainerCapOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, null, '0x2::object::ID', '0x2::clock::Clock'] satisfies (\n\t\tstring | null\n\t)[];\n\tconst parameterNames = ['self', 'AdminCap', 'maintainerCapId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'revoke_maintainer_cap',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface RegisterDeepbookPoolArguments {\n\tself: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tpool: RawTransactionArgument<string>;\n\tpoolConfig: TransactionArgument;\n}\nexport interface RegisterDeepbookPoolOptions {\n\tpackage?: string;\n\targuments:\n\t\t| RegisterDeepbookPoolArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tAdminCap: RawTransactionArgument<string>,\n\t\t\t\tpool: RawTransactionArgument<string>,\n\t\t\t\tpoolConfig: TransactionArgument,\n\t\t  ];\n\ttypeArguments: [string, string];\n}\n/** Register a margin pool for margin trading with existing margin pools */\nexport function registerDeepbookPool(options: RegisterDeepbookPoolOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, null, null, null, '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'AdminCap', 'pool', 'poolConfig'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'register_deepbook_pool',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface EnableDeepbookPoolArguments {\n\tself: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tpool: RawTransactionArgument<string>;\n}\nexport interface EnableDeepbookPoolOptions {\n\tpackage?: string;\n\targuments:\n\t\t| EnableDeepbookPoolArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tAdminCap: RawTransactionArgument<string>,\n\t\t\t\tpool: RawTransactionArgument<string>,\n\t\t  ];\n\ttypeArguments: [string, string];\n}\n/** Enables a deepbook pool for margin trading. */\nexport function enableDeepbookPool(options: EnableDeepbookPoolOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, null, null, '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'AdminCap', 'pool'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'enable_deepbook_pool',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface DisableDeepbookPoolArguments {\n\tself: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tpool: RawTransactionArgument<string>;\n}\nexport interface DisableDeepbookPoolOptions {\n\tpackage?: string;\n\targuments:\n\t\t| DisableDeepbookPoolArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tAdminCap: RawTransactionArgument<string>,\n\t\t\t\tpool: RawTransactionArgument<string>,\n\t\t  ];\n\ttypeArguments: [string, string];\n}\n/**\n * Disables a deepbook pool from margin trading. Only reduce only orders, cancels,\n * and withdraw settled amounts are allowed.\n */\nexport function disableDeepbookPool(options: DisableDeepbookPoolOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, null, null, '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'AdminCap', 'pool'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'disable_deepbook_pool',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface UpdateRiskParamsArguments {\n\tself: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tpool: RawTransactionArgument<string>;\n\tpoolConfig: TransactionArgument;\n}\nexport interface UpdateRiskParamsOptions {\n\tpackage?: string;\n\targuments:\n\t\t| UpdateRiskParamsArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tAdminCap: RawTransactionArgument<string>,\n\t\t\t\tpool: RawTransactionArgument<string>,\n\t\t\t\tpoolConfig: TransactionArgument,\n\t\t  ];\n\ttypeArguments: [string, string];\n}\n/** Updates risk params for a deepbook pool as the admin. */\nexport function updateRiskParams(options: UpdateRiskParamsOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, null, null, null, '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'AdminCap', 'pool', 'poolConfig'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'update_risk_params',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface AddConfigArguments<Config extends BcsType<any>> {\n\tself: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tconfig: RawTransactionArgument<Config>;\n}\nexport interface AddConfigOptions<Config extends BcsType<any>> {\n\tpackage?: string;\n\targuments:\n\t\t| AddConfigArguments<Config>\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tAdminCap: RawTransactionArgument<string>,\n\t\t\t\tconfig: RawTransactionArgument<Config>,\n\t\t  ];\n\ttypeArguments: [string];\n}\n/** Add Pyth Config to the MarginRegistry. */\nexport function addConfig<Config extends BcsType<any>>(options: AddConfigOptions<Config>) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, null, `${options.typeArguments[0]}`] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'AdminCap', 'config'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'add_config',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface RemoveConfigArguments {\n\tself: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n}\nexport interface RemoveConfigOptions {\n\tpackage?: string;\n\targuments:\n\t\t| RemoveConfigArguments\n\t\t| [self: RawTransactionArgument<string>, AdminCap: RawTransactionArgument<string>];\n\ttypeArguments: [string];\n}\n/** Remove Pyth Config from the MarginRegistry. */\nexport function removeConfig(options: RemoveConfigOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, null] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'AdminCap'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'remove_config',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface EnableVersionArguments {\n\tself: RawTransactionArgument<string>;\n\tversion: RawTransactionArgument<number | bigint>;\n\tAdminCap: RawTransactionArgument<string>;\n}\nexport interface EnableVersionOptions {\n\tpackage?: string;\n\targuments:\n\t\t| EnableVersionArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tversion: RawTransactionArgument<number | bigint>,\n\t\t\t\tAdminCap: RawTransactionArgument<string>,\n\t\t  ];\n}\n/**\n * Enables a package version Only Admin can enable a package version This function\n * does not have version restrictions\n */\nexport function enableVersion(options: EnableVersionOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, 'u64', null] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'version', 'AdminCap'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'enable_version',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface DisableVersionArguments {\n\tself: RawTransactionArgument<string>;\n\tversion: RawTransactionArgument<number | bigint>;\n\tAdminCap: RawTransactionArgument<string>;\n}\nexport interface DisableVersionOptions {\n\tpackage?: string;\n\targuments:\n\t\t| DisableVersionArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tversion: RawTransactionArgument<number | bigint>,\n\t\t\t\tAdminCap: RawTransactionArgument<string>,\n\t\t  ];\n}\n/**\n * Disables a package version Only Admin can disable a package version This\n * function does not have version restrictions\n */\nexport function disableVersion(options: DisableVersionOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, 'u64', null] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'version', 'AdminCap'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'disable_version',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface DisableVersionPauseCapArguments {\n\tself: RawTransactionArgument<string>;\n\tversion: RawTransactionArgument<number | bigint>;\n\tpauseCap: RawTransactionArgument<string>;\n}\nexport interface DisableVersionPauseCapOptions {\n\tpackage?: string;\n\targuments:\n\t\t| DisableVersionPauseCapArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tversion: RawTransactionArgument<number | bigint>,\n\t\t\t\tpauseCap: RawTransactionArgument<string>,\n\t\t  ];\n}\n/**\n * Disables a package version Pause Cap must be valid and can disable the version\n * This function does not have version restrictions\n */\nexport function disableVersionPauseCap(options: DisableVersionPauseCapOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, 'u64', null] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'version', 'pauseCap'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'disable_version_pause_cap',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface MintPauseCapArguments {\n\tself: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n}\nexport interface MintPauseCapOptions {\n\tpackage?: string;\n\targuments:\n\t\t| MintPauseCapArguments\n\t\t| [self: RawTransactionArgument<string>, AdminCap: RawTransactionArgument<string>];\n}\n/**\n * Mint a pause cap Only Admin can mint a pause cap This function does not have\n * version restrictions\n */\nexport function mintPauseCap(options: MintPauseCapOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, null, '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'AdminCap'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'mint_pause_cap',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface RevokePauseCapArguments {\n\tself: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tpauseCapId: RawTransactionArgument<string>;\n}\nexport interface RevokePauseCapOptions {\n\tpackage?: string;\n\targuments:\n\t\t| RevokePauseCapArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tAdminCap: RawTransactionArgument<string>,\n\t\t\t\tpauseCapId: RawTransactionArgument<string>,\n\t\t  ];\n}\n/**\n * Revoke a pause cap Only Admin can revoke a pause cap This function does not have\n * version restrictions\n */\nexport function revokePauseCap(options: RevokePauseCapOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, null, '0x2::clock::Clock', '0x2::object::ID'] satisfies (\n\t\tstring | null\n\t)[];\n\tconst parameterNames = ['self', 'AdminCap', 'pauseCapId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'revoke_pause_cap',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface SetPriceToleranceArguments {\n\tself: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tpool: RawTransactionArgument<string>;\n\ttolerance: RawTransactionArgument<number | bigint>;\n}\nexport interface SetPriceToleranceOptions {\n\tpackage?: string;\n\targuments:\n\t\t| SetPriceToleranceArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tAdminCap: RawTransactionArgument<string>,\n\t\t\t\tpool: RawTransactionArgument<string>,\n\t\t\t\ttolerance: RawTransactionArgument<number | bigint>,\n\t\t  ];\n\ttypeArguments: [string, string];\n}\n/**\n * Set price deviation tolerance for a pool tolerance is in 9 decimals where 1.0 =\n * 1_000_000_000 (e.g., 100_000_000 = 0.1 = 10%) Only Admin can set tolerance\n * Requires price to be initialized first via update_current_price\n */\nexport function setPriceTolerance(options: SetPriceToleranceOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, null, null, 'u64', '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'AdminCap', 'pool', 'tolerance'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'set_price_tolerance',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface SetMaxPriceAgeArguments {\n\tself: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tpool: RawTransactionArgument<string>;\n\tmaxAgeMs: RawTransactionArgument<number | bigint>;\n}\nexport interface SetMaxPriceAgeOptions {\n\tpackage?: string;\n\targuments:\n\t\t| SetMaxPriceAgeArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tAdminCap: RawTransactionArgument<string>,\n\t\t\t\tpool: RawTransactionArgument<string>,\n\t\t\t\tmaxAgeMs: RawTransactionArgument<number | bigint>,\n\t\t  ];\n\ttypeArguments: [string, string];\n}\n/**\n * Set maximum price age in milliseconds for a pool Only Admin can set max price\n * age Requires price to be initialized first via update_current_price\n */\nexport function setMaxPriceAge(options: SetMaxPriceAgeOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, null, null, 'u64', '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'AdminCap', 'pool', 'maxAgeMs'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'set_max_price_age',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface SetMaxOrderTtlArguments {\n\tself: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tpool: RawTransactionArgument<string>;\n\tmaxOrderTtlMs: RawTransactionArgument<number | bigint>;\n}\nexport interface SetMaxOrderTtlOptions {\n\tpackage?: string;\n\targuments:\n\t\t| SetMaxOrderTtlArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tAdminCap: RawTransactionArgument<string>,\n\t\t\t\tpool: RawTransactionArgument<string>,\n\t\t\t\tmaxOrderTtlMs: RawTransactionArgument<number | bigint>,\n\t\t  ];\n\ttypeArguments: [string, string];\n}\n/**\n * Set the maximum lifetime (in ms) of margin limit orders for a pool.\n * User-supplied `expire_timestamp` on margin limit-order placements is clamped to\n * at most `now + max_order_ttl_ms`. Bounds margin orders' exposure to stale-price\n * exploitation if liquidity disappears after placement. Only Admin can set max\n * order TTL.\n */\nexport function setMaxOrderTtl(options: SetMaxOrderTtlOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, null, null, 'u64', '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'AdminCap', 'pool', 'maxOrderTtlMs'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'set_max_order_ttl',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface SetMinOpenRiskRatioArguments {\n\tself: RawTransactionArgument<string>;\n\tAdminCap: RawTransactionArgument<string>;\n\tpool: RawTransactionArgument<string>;\n\tminOpenRiskRatio: RawTransactionArgument<number | bigint>;\n}\nexport interface SetMinOpenRiskRatioOptions {\n\tpackage?: string;\n\targuments:\n\t\t| SetMinOpenRiskRatioArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tAdminCap: RawTransactionArgument<string>,\n\t\t\t\tpool: RawTransactionArgument<string>,\n\t\t\t\tminOpenRiskRatio: RawTransactionArgument<number | bigint>,\n\t\t  ];\n\ttypeArguments: [string, string];\n}\n/**\n * Set the per-pool `min_open_risk_ratio` override — the post-trade solvency floor\n * enforced on opening (risk-increasing) orders. Must sit in\n * `(liquidation_risk_ratio, min_borrow_risk_ratio]`: above liquidation so an open\n * can't land in the liquidatable zone, at or below the borrow floor. Absent an\n * override the floor defaults to the midpoint of liquidation and min_borrow. Only\n * Admin can set it.\n */\nexport function setMinOpenRiskRatio(options: SetMinOpenRiskRatioOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, null, null, 'u64', '0x2::clock::Clock'] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'AdminCap', 'pool', 'minOpenRiskRatio'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'set_min_open_risk_ratio',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface NewPoolConfigArguments {\n\tself: RawTransactionArgument<string>;\n\tminWithdrawRiskRatio: RawTransactionArgument<number | bigint>;\n\tminBorrowRiskRatio: RawTransactionArgument<number | bigint>;\n\tliquidationRiskRatio: RawTransactionArgument<number | bigint>;\n\ttargetLiquidationRiskRatio: RawTransactionArgument<number | bigint>;\n\tuserLiquidationReward: RawTransactionArgument<number | bigint>;\n\tpoolLiquidationReward: RawTransactionArgument<number | bigint>;\n}\nexport interface NewPoolConfigOptions {\n\tpackage?: string;\n\targuments:\n\t\t| NewPoolConfigArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tminWithdrawRiskRatio: RawTransactionArgument<number | bigint>,\n\t\t\t\tminBorrowRiskRatio: RawTransactionArgument<number | bigint>,\n\t\t\t\tliquidationRiskRatio: RawTransactionArgument<number | bigint>,\n\t\t\t\ttargetLiquidationRiskRatio: RawTransactionArgument<number | bigint>,\n\t\t\t\tuserLiquidationReward: RawTransactionArgument<number | bigint>,\n\t\t\t\tpoolLiquidationReward: RawTransactionArgument<number | bigint>,\n\t\t  ];\n\ttypeArguments: [string, string];\n}\n/**\n * Create a PoolConfig with margin pool IDs and risk parameters Enable is false by\n * default, must be enabled after registration\n */\nexport function newPoolConfig(options: NewPoolConfigOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, 'u64', 'u64', 'u64', 'u64', 'u64', 'u64'] satisfies (\n\t\tstring | null\n\t)[];\n\tconst parameterNames = [\n\t\t'self',\n\t\t'minWithdrawRiskRatio',\n\t\t'minBorrowRiskRatio',\n\t\t'liquidationRiskRatio',\n\t\t'targetLiquidationRiskRatio',\n\t\t'userLiquidationReward',\n\t\t'poolLiquidationReward',\n\t];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'new_pool_config',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface NewPoolConfigWithLeverageArguments {\n\tself: RawTransactionArgument<string>;\n\tleverage: RawTransactionArgument<number | bigint>;\n}\nexport interface NewPoolConfigWithLeverageOptions {\n\tpackage?: string;\n\targuments:\n\t\t| NewPoolConfigWithLeverageArguments\n\t\t| [self: RawTransactionArgument<string>, leverage: RawTransactionArgument<number | bigint>];\n\ttypeArguments: [string, string];\n}\n/** Create a PoolConfig with default risk parameters based on leverage */\nexport function newPoolConfigWithLeverage(options: NewPoolConfigWithLeverageOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, 'u64'] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'leverage'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'new_pool_config_with_leverage',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface PoolEnabledArguments {\n\tself: RawTransactionArgument<string>;\n\tpool: RawTransactionArgument<string>;\n}\nexport interface PoolEnabledOptions {\n\tpackage?: string;\n\targuments:\n\t\t| PoolEnabledArguments\n\t\t| [self: RawTransactionArgument<string>, pool: RawTransactionArgument<string>];\n\ttypeArguments: [string, string];\n}\n/** Check if a deepbook pool is registered for margin trading */\nexport function poolEnabled(options: PoolEnabledOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, null] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'pool'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'pool_enabled',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface GetMarginPoolIdArguments {\n\tself: RawTransactionArgument<string>;\n}\nexport interface GetMarginPoolIdOptions {\n\tpackage?: string;\n\targuments: GetMarginPoolIdArguments | [self: RawTransactionArgument<string>];\n\ttypeArguments: [string];\n}\n/** Get the margin pool id for the given asset. */\nexport function getMarginPoolId(options: GetMarginPoolIdOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['self'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'get_margin_pool_id',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t\ttypeArguments: options.typeArguments,\n\t\t});\n}\nexport interface GetDeepbookPoolMarginPoolIdsArguments {\n\tself: RawTransactionArgument<string>;\n\tdeepbookPoolId: RawTransactionArgument<string>;\n}\nexport interface GetDeepbookPoolMarginPoolIdsOptions {\n\tpackage?: string;\n\targuments:\n\t\t| GetDeepbookPoolMarginPoolIdsArguments\n\t\t| [self: RawTransactionArgument<string>, deepbookPoolId: RawTransactionArgument<string>];\n}\n/** Get the margin pool IDs for a deepbook pool */\nexport function getDeepbookPoolMarginPoolIds(options: GetDeepbookPoolMarginPoolIdsOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, '0x2::object::ID'] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'deepbookPoolId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'get_deepbook_pool_margin_pool_ids',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface GetMarginManagerIdsArguments {\n\tself: RawTransactionArgument<string>;\n\towner: RawTransactionArgument<string>;\n}\nexport interface GetMarginManagerIdsOptions {\n\tpackage?: string;\n\targuments:\n\t\t| GetMarginManagerIdsArguments\n\t\t| [self: RawTransactionArgument<string>, owner: RawTransactionArgument<string>];\n}\n/** Get the margin manager IDs for a given owner */\nexport function getMarginManagerIds(options: GetMarginManagerIdsOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, 'address'] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'owner'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'get_margin_manager_ids',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface CanLiquidateArguments {\n\tself: RawTransactionArgument<string>;\n\tdeepbookPoolId: RawTransactionArgument<string>;\n\triskRatio: RawTransactionArgument<number | bigint>;\n}\nexport interface CanLiquidateOptions {\n\tpackage?: string;\n\targuments:\n\t\t| CanLiquidateArguments\n\t\t| [\n\t\t\t\tself: RawTransactionArgument<string>,\n\t\t\t\tdeepbookPoolId: RawTransactionArgument<string>,\n\t\t\t\triskRatio: RawTransactionArgument<number | bigint>,\n\t\t  ];\n}\nexport function canLiquidate(options: CanLiquidateOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, '0x2::object::ID', 'u64'] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'deepbookPoolId', 'riskRatio'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'can_liquidate',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface BaseMarginPoolIdArguments {\n\tself: RawTransactionArgument<string>;\n\tdeepbookPoolId: RawTransactionArgument<string>;\n}\nexport interface BaseMarginPoolIdOptions {\n\tpackage?: string;\n\targuments:\n\t\t| BaseMarginPoolIdArguments\n\t\t| [self: RawTransactionArgument<string>, deepbookPoolId: RawTransactionArgument<string>];\n}\nexport function baseMarginPoolId(options: BaseMarginPoolIdOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, '0x2::object::ID'] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'deepbookPoolId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'base_margin_pool_id',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface QuoteMarginPoolIdArguments {\n\tself: RawTransactionArgument<string>;\n\tdeepbookPoolId: RawTransactionArgument<string>;\n}\nexport interface QuoteMarginPoolIdOptions {\n\tpackage?: string;\n\targuments:\n\t\t| QuoteMarginPoolIdArguments\n\t\t| [self: RawTransactionArgument<string>, deepbookPoolId: RawTransactionArgument<string>];\n}\nexport function quoteMarginPoolId(options: QuoteMarginPoolIdOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, '0x2::object::ID'] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'deepbookPoolId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'quote_margin_pool_id',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface MinWithdrawRiskRatioArguments {\n\tself: RawTransactionArgument<string>;\n\tdeepbookPoolId: RawTransactionArgument<string>;\n}\nexport interface MinWithdrawRiskRatioOptions {\n\tpackage?: string;\n\targuments:\n\t\t| MinWithdrawRiskRatioArguments\n\t\t| [self: RawTransactionArgument<string>, deepbookPoolId: RawTransactionArgument<string>];\n}\nexport function minWithdrawRiskRatio(options: MinWithdrawRiskRatioOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, '0x2::object::ID'] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'deepbookPoolId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'min_withdraw_risk_ratio',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface MinBorrowRiskRatioArguments {\n\tself: RawTransactionArgument<string>;\n\tdeepbookPoolId: RawTransactionArgument<string>;\n}\nexport interface MinBorrowRiskRatioOptions {\n\tpackage?: string;\n\targuments:\n\t\t| MinBorrowRiskRatioArguments\n\t\t| [self: RawTransactionArgument<string>, deepbookPoolId: RawTransactionArgument<string>];\n}\nexport function minBorrowRiskRatio(options: MinBorrowRiskRatioOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, '0x2::object::ID'] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'deepbookPoolId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'min_borrow_risk_ratio',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface LiquidationRiskRatioArguments {\n\tself: RawTransactionArgument<string>;\n\tdeepbookPoolId: RawTransactionArgument<string>;\n}\nexport interface LiquidationRiskRatioOptions {\n\tpackage?: string;\n\targuments:\n\t\t| LiquidationRiskRatioArguments\n\t\t| [self: RawTransactionArgument<string>, deepbookPoolId: RawTransactionArgument<string>];\n}\nexport function liquidationRiskRatio(options: LiquidationRiskRatioOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, '0x2::object::ID'] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'deepbookPoolId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'liquidation_risk_ratio',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface TargetLiquidationRiskRatioArguments {\n\tself: RawTransactionArgument<string>;\n\tdeepbookPoolId: RawTransactionArgument<string>;\n}\nexport interface TargetLiquidationRiskRatioOptions {\n\tpackage?: string;\n\targuments:\n\t\t| TargetLiquidationRiskRatioArguments\n\t\t| [self: RawTransactionArgument<string>, deepbookPoolId: RawTransactionArgument<string>];\n}\nexport function targetLiquidationRiskRatio(options: TargetLiquidationRiskRatioOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, '0x2::object::ID'] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'deepbookPoolId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'target_liquidation_risk_ratio',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface MinOpenRiskRatioArguments {\n\tself: RawTransactionArgument<string>;\n\tdeepbookPoolId: RawTransactionArgument<string>;\n}\nexport interface MinOpenRiskRatioOptions {\n\tpackage?: string;\n\targuments:\n\t\t| MinOpenRiskRatioArguments\n\t\t| [self: RawTransactionArgument<string>, deepbookPoolId: RawTransactionArgument<string>];\n}\n/**\n * Post-trade solvency floor for _opening_ (risk-increasing) orders, sitting in\n * `(liquidation_risk_ratio, min_borrow_risk_ratio]`. Lets a max-leverage open\n * absorb the opening trade's spread — which lands the post-trade ratio just under\n * the borrow floor — without aborting, while staying above the liquidatable zone.\n * Defaults to the midpoint of liquidation and min_borrow; an admin override\n * (`set_min_open_risk_ratio`) is honored only while it stays in the valid band, so\n * a later risk-param change can't strand it below liquidation.\n */\nexport function minOpenRiskRatio(options: MinOpenRiskRatioOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, '0x2::object::ID'] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'deepbookPoolId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'min_open_risk_ratio',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface UserLiquidationRewardArguments {\n\tself: RawTransactionArgument<string>;\n\tdeepbookPoolId: RawTransactionArgument<string>;\n}\nexport interface UserLiquidationRewardOptions {\n\tpackage?: string;\n\targuments:\n\t\t| UserLiquidationRewardArguments\n\t\t| [self: RawTransactionArgument<string>, deepbookPoolId: RawTransactionArgument<string>];\n}\nexport function userLiquidationReward(options: UserLiquidationRewardOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, '0x2::object::ID'] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'deepbookPoolId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'user_liquidation_reward',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface PoolLiquidationRewardArguments {\n\tself: RawTransactionArgument<string>;\n\tdeepbookPoolId: RawTransactionArgument<string>;\n}\nexport interface PoolLiquidationRewardOptions {\n\tpackage?: string;\n\targuments:\n\t\t| PoolLiquidationRewardArguments\n\t\t| [self: RawTransactionArgument<string>, deepbookPoolId: RawTransactionArgument<string>];\n}\nexport function poolLiquidationReward(options: PoolLiquidationRewardOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, '0x2::object::ID'] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'deepbookPoolId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'pool_liquidation_reward',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface AllowedMaintainersArguments {\n\tself: RawTransactionArgument<string>;\n}\nexport interface AllowedMaintainersOptions {\n\tpackage?: string;\n\targuments: AllowedMaintainersArguments | [self: RawTransactionArgument<string>];\n}\nexport function allowedMaintainers(options: AllowedMaintainersOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['self'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'allowed_maintainers',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface AllowedPauseCapsArguments {\n\tself: RawTransactionArgument<string>;\n}\nexport interface AllowedPauseCapsOptions {\n\tpackage?: string;\n\targuments: AllowedPauseCapsArguments | [self: RawTransactionArgument<string>];\n}\nexport function allowedPauseCaps(options: AllowedPauseCapsOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null] satisfies (string | null)[];\n\tconst parameterNames = ['self'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'allowed_pause_caps',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\nexport interface GetPoolConfigArguments {\n\tself: RawTransactionArgument<string>;\n\tdeepbookPoolId: RawTransactionArgument<string>;\n}\nexport interface GetPoolConfigOptions {\n\tpackage?: string;\n\targuments:\n\t\t| GetPoolConfigArguments\n\t\t| [self: RawTransactionArgument<string>, deepbookPoolId: RawTransactionArgument<string>];\n}\n/** Get the pool configuration for a deepbook pool */\nexport function getPoolConfig(options: GetPoolConfigOptions) {\n\tconst packageAddress = options.package ?? '@deepbook/margin';\n\tconst argumentsTypes = [null, '0x2::object::ID'] satisfies (string | null)[];\n\tconst parameterNames = ['self', 'deepbookPoolId'];\n\treturn (tx: Transaction) =>\n\t\ttx.moveCall({\n\t\t\tpackage: packageAddress,\n\t\t\tmodule: 'margin_registry',\n\t\t\tfunction: 'get_pool_config',\n\t\t\targuments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),\n\t\t});\n}\n"],"mappings":";;;;;;;;;;;;AAkBA,MAAM,cAAc;AACpB,MAAa,kBAAkB,IAAI,WAAW;CAC7C,MAAM,GAAG,YAAY;CACrB,QAAQ,EACP,aAAa,IAAI,MAAM,EACvB;CACD,CAAC;AACF,MAAa,iBAAiB,IAAI,WAAW;CAC5C,MAAM,GAAG,YAAY;CACrB,QAAQ;EACP,IAAI,IAAI;EACR,OAAOA;EACP;CACD,CAAC;AACF,MAAa,sBAAsB,IAAI,WAAW;CACjD,MAAM,GAAG,YAAY;C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