turbos-margin-sdk 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -2982,11 +2982,37 @@ interface ExecuteConditionalOrdersArgs {
2982
2982
  maxOrdersToExecute: bigint | TransactionArgument;
2983
2983
  clock: TransactionObjectInput;
2984
2984
  }
2985
+ /**
2986
+ * DEPRECATED. Use `execute_conditional_orders_v2`.
2987
+ *
2988
+ * The v1 entry preserves its on-chain signature so the v5 package upgrade
2989
+ * type-checks against existing dependents, but the body is replaced with
2990
+ * `abort EDeprecatedUseV2`. The v2 variant adds margin-pool + oracle params
2991
+ * and enforces a post-fill `risk_ratio >= min_borrow_risk_ratio` invariant
2992
+ * inside `process_collected_orders_v2`.
2993
+ */
2994
+ declare function executeConditionalOrders(tx: Transaction, typeArgs: [string, string], args: ExecuteConditionalOrdersArgs): TransactionResult;
2995
+ interface ExecuteConditionalOrdersV2Args {
2996
+ self: TransactionObjectInput;
2997
+ pool: TransactionObjectInput;
2998
+ baseMarginPool: TransactionObjectInput;
2999
+ quoteMarginPool: TransactionObjectInput;
3000
+ basePriceInfoObject: TransactionObjectInput;
3001
+ quotePriceInfoObject: TransactionObjectInput;
3002
+ registry: TransactionObjectInput;
3003
+ maxOrdersToExecute: bigint | TransactionArgument;
3004
+ clock: TransactionObjectInput;
3005
+ }
2985
3006
  /**
2986
3007
  * Execute conditional orders and return the order infos.
2987
3008
  * This is a permissionless function that can be called by anyone.
3009
+ *
3010
+ * v2 adds `base_margin_pool` + `quote_margin_pool` parameters and enforces
3011
+ * a post-fill `risk_ratio >= min_borrow_risk_ratio` invariant inside the
3012
+ * inner loop. If any single triggered fill would breach that floor, the
3013
+ * entire txn aborts — no partial-state landing.
2988
3014
  */
2989
- declare function executeConditionalOrders(tx: Transaction, typeArgs: [string, string], args: ExecuteConditionalOrdersArgs): TransactionResult;
3015
+ declare function executeConditionalOrdersV2(tx: Transaction, typeArgs: [string, string], args: ExecuteConditionalOrdersV2Args): TransactionResult;
2990
3016
  interface NewArgs$6 {
2991
3017
  pool: TransactionObjectInput;
2992
3018
  deepbookRegistry: TransactionObjectInput;
@@ -3012,6 +3038,12 @@ interface ShareArgs {
3012
3038
  }
3013
3039
  /** Shares the margin manager. The initializer is dropped in the process. */
3014
3040
  declare function share(tx: Transaction, typeArgs: [string, string], args: ShareArgs): TransactionResult;
3041
+ interface RegisterMarginManagerArgs {
3042
+ self: TransactionObjectInput;
3043
+ marginRegistry: TransactionObjectInput;
3044
+ }
3045
+ /** Register the margin manager back to the margin registry. */
3046
+ declare function registerMarginManager(tx: Transaction, typeArgs: [string, string], args: RegisterMarginManagerArgs): TransactionResult;
3015
3047
  interface UnregisterMarginManagerArgs {
3016
3048
  self: TransactionObjectInput;
3017
3049
  marginRegistry: TransactionObjectInput;
@@ -3199,6 +3231,57 @@ declare function lowestTriggerAbovePrice(tx: Transaction, typeArgs: [string, str
3199
3231
  * Returns 0 if there are no trigger_below orders
3200
3232
  */
3201
3233
  declare function highestTriggerBelowPrice(tx: Transaction, typeArgs: [string, string], self: TransactionObjectInput): TransactionResult;
3234
+ interface GetAccountOrderDetailsArgs$1 {
3235
+ self: TransactionObjectInput;
3236
+ pool: TransactionObjectInput;
3237
+ }
3238
+ declare function getAccountOrderDetails$1(tx: Transaction, typeArgs: [string, string], args: GetAccountOrderDetailsArgs$1): TransactionResult;
3239
+ interface AccountOpenOrdersArgs$1 {
3240
+ self: TransactionObjectInput;
3241
+ pool: TransactionObjectInput;
3242
+ }
3243
+ declare function accountOpenOrders$1(tx: Transaction, typeArgs: [string, string], args: AccountOpenOrdersArgs$1): TransactionResult;
3244
+ interface LockedBalanceArgs$2 {
3245
+ self: TransactionObjectInput;
3246
+ pool: TransactionObjectInput;
3247
+ }
3248
+ declare function lockedBalance$2(tx: Transaction, typeArgs: [string, string], args: LockedBalanceArgs$2): TransactionResult;
3249
+ declare function balanceManagerId$3(tx: Transaction, typeArgs: [string, string], self: TransactionObjectInput): TransactionResult;
3250
+ interface GetBalanceManagerReferralIdArgs$1 {
3251
+ self: TransactionObjectInput;
3252
+ poolId: string | TransactionArgument;
3253
+ }
3254
+ declare function getBalanceManagerReferralId$1(tx: Transaction, typeArgs: [string, string], args: GetBalanceManagerReferralIdArgs$1): TransactionResult;
3255
+ interface AccountExistsArgs$2 {
3256
+ self: TransactionObjectInput;
3257
+ pool: TransactionObjectInput;
3258
+ }
3259
+ declare function accountExists$2(tx: Transaction, typeArgs: [string, string], args: AccountExistsArgs$2): TransactionResult;
3260
+ interface AccountArgs$2 {
3261
+ self: TransactionObjectInput;
3262
+ pool: TransactionObjectInput;
3263
+ }
3264
+ declare function account$3(tx: Transaction, typeArgs: [string, string], args: AccountArgs$2): TransactionResult;
3265
+ interface CanPlaceLimitOrderArgs$1 {
3266
+ self: TransactionObjectInput;
3267
+ pool: TransactionObjectInput;
3268
+ price: bigint | TransactionArgument;
3269
+ quantity: bigint | TransactionArgument;
3270
+ isBid: boolean | TransactionArgument;
3271
+ payWithDeep: boolean | TransactionArgument;
3272
+ expireTimestamp: bigint | TransactionArgument;
3273
+ clock: TransactionObjectInput;
3274
+ }
3275
+ declare function canPlaceLimitOrder$1(tx: Transaction, typeArgs: [string, string], args: CanPlaceLimitOrderArgs$1): TransactionResult;
3276
+ interface CanPlaceMarketOrderArgs$1 {
3277
+ self: TransactionObjectInput;
3278
+ pool: TransactionObjectInput;
3279
+ quantity: bigint | TransactionArgument;
3280
+ isBid: boolean | TransactionArgument;
3281
+ payWithDeep: boolean | TransactionArgument;
3282
+ clock: TransactionObjectInput;
3283
+ }
3284
+ declare function canPlaceMarketOrder$1(tx: Transaction, typeArgs: [string, string], args: CanPlaceMarketOrderArgs$1): TransactionResult;
3202
3285
  /** Unwraps balance manager for trading in deepbook. */
3203
3286
  declare function balanceManagerTradingMut(tx: Transaction, typeArgs: [string, string], self: TransactionObjectInput): TransactionResult;
3204
3287
  interface WithdrawSettledAmountsPermissionlessIntArgs {
@@ -3292,15 +3375,15 @@ interface AssetsInDebtUnitUnsafeArgs {
3292
3375
  quoteOracle: TransactionObjectInput;
3293
3376
  }
3294
3377
  declare function assetsInDebtUnitUnsafe(tx: Transaction, typeArgs: [string, string], args: AssetsInDebtUnitUnsafeArgs): TransactionResult;
3295
- interface PlacePendingOrderArgs {
3378
+ interface PlacePendingOrderV2Args {
3296
3379
  self: TransactionObjectInput;
3297
3380
  registry: TransactionObjectInput;
3298
3381
  pool: TransactionObjectInput;
3299
3382
  pendingOrder: TransactionObjectInput;
3300
3383
  clock: TransactionObjectInput;
3301
3384
  }
3302
- declare function placePendingOrder(tx: Transaction, typeArgs: [string, string], args: PlacePendingOrderArgs): TransactionResult;
3303
- interface PlacePendingLimitOrderArgs {
3385
+ declare function placePendingOrderV2(tx: Transaction, typeArgs: [string, string], args: PlacePendingOrderV2Args): TransactionResult;
3386
+ interface PlacePendingLimitOrderV2Args {
3304
3387
  self: TransactionObjectInput;
3305
3388
  registry: TransactionObjectInput;
3306
3389
  pool: TransactionObjectInput;
@@ -3314,9 +3397,13 @@ interface PlacePendingLimitOrderArgs {
3314
3397
  expireTimestamp: bigint | TransactionArgument;
3315
3398
  clock: TransactionObjectInput;
3316
3399
  }
3317
- /** Only used for tpsl pending orders. */
3318
- declare function placePendingLimitOrder(tx: Transaction, typeArgs: [string, string], args: PlacePendingLimitOrderArgs): TransactionResult;
3319
- interface PlaceMarketOrderConditionalArgs {
3400
+ /**
3401
+ * Only used for tpsl pending orders.
3402
+ * The post-fill solvency invariant is enforced one level up in
3403
+ * `process_collected_orders_v2`, where we have access to the margin pools.
3404
+ */
3405
+ declare function placePendingLimitOrderV2(tx: Transaction, typeArgs: [string, string], args: PlacePendingLimitOrderV2Args): TransactionResult;
3406
+ interface PlaceMarketOrderConditionalV2Args {
3320
3407
  self: TransactionObjectInput;
3321
3408
  registry: TransactionObjectInput;
3322
3409
  pool: TransactionObjectInput;
@@ -3330,12 +3417,18 @@ interface PlaceMarketOrderConditionalArgs {
3330
3417
  /**
3331
3418
  * Places a market order in the pool.
3332
3419
  * Only used for tpsl pending orders.
3420
+ * The post-fill solvency invariant is enforced one level up in
3421
+ * `process_collected_orders_v2`, where we have access to the margin pools.
3333
3422
  */
3334
- declare function placeMarketOrderConditional(tx: Transaction, typeArgs: [string, string], args: PlaceMarketOrderConditionalArgs): TransactionResult;
3335
- interface ProcessCollectedOrdersArgs {
3423
+ declare function placeMarketOrderConditionalV2(tx: Transaction, typeArgs: [string, string], args: PlaceMarketOrderConditionalV2Args): TransactionResult;
3424
+ interface ProcessCollectedOrdersV2Args {
3336
3425
  self: TransactionObjectInput;
3337
3426
  pool: TransactionObjectInput;
3338
3427
  registry: TransactionObjectInput;
3428
+ baseMarginPool: TransactionObjectInput;
3429
+ quoteMarginPool: TransactionObjectInput;
3430
+ baseOracle: TransactionObjectInput;
3431
+ quoteOracle: TransactionObjectInput;
3339
3432
  orders: Array<TransactionObjectInput> | TransactionArgument;
3340
3433
  orderInfos: Array<TransactionObjectInput> | TransactionArgument;
3341
3434
  executedIds: Array<bigint | TransactionArgument> | TransactionArgument;
@@ -3345,8 +3438,17 @@ interface ProcessCollectedOrdersArgs {
3345
3438
  maxOrdersToExecute: bigint | TransactionArgument;
3346
3439
  clock: TransactionObjectInput;
3347
3440
  }
3348
- /** Helper function to process collected conditional orders */
3349
- declare function processCollectedOrders(tx: Transaction, typeArgs: [string, string], args: ProcessCollectedOrdersArgs): TransactionResult;
3441
+ /**
3442
+ * Helper function to process collected conditional orders.
3443
+ *
3444
+ * After each successful `place_pending_order_v2` call, recompute `risk_ratio`
3445
+ * against Pyth via the public `risk_ratio` helper. If the manager has debt
3446
+ * and the post-fill ratio is below `min_borrow_risk_ratio`, abort the entire
3447
+ * txn with `EInsufficientRiskRatioAfterTrade`. We do not allow partial-fill
3448
+ * landing — one bad fill reverts everything so the manager is never left in
3449
+ * a state borrowing would have been forbidden from.
3450
+ */
3451
+ declare function processCollectedOrdersV2(tx: Transaction, typeArgs: [string, string], args: ProcessCollectedOrdersV2Args): TransactionResult;
3350
3452
  declare function balanceManagerUnsafeMut(tx: Transaction, typeArgs: [string, string], self: TransactionObjectInput): TransactionResult;
3351
3453
 
3352
3454
  /**
@@ -4966,6 +5068,7 @@ type marginManager_DepositCollateralEventJSONField = DepositCollateralEventJSONF
4966
5068
  type marginManager_DepositCollateralEventReified = DepositCollateralEventReified;
4967
5069
  type marginManager_DepositIntArgs = DepositIntArgs;
4968
5070
  type marginManager_ExecuteConditionalOrdersArgs = ExecuteConditionalOrdersArgs;
5071
+ type marginManager_ExecuteConditionalOrdersV2Args = ExecuteConditionalOrdersV2Args;
4969
5072
  type marginManager_LiquidateArgs = LiquidateArgs;
4970
5073
  type marginManager_LiquidationEvent = LiquidationEvent;
4971
5074
  declare const marginManager_LiquidationEvent: typeof LiquidationEvent;
@@ -5013,10 +5116,11 @@ type marginManager_MarginManagerJSONField<BaseAsset extends PhantomTypeArgument,
5013
5116
  type marginManager_MarginManagerReified<BaseAsset extends PhantomTypeArgument, QuoteAsset extends PhantomTypeArgument> = MarginManagerReified<BaseAsset, QuoteAsset>;
5014
5117
  type marginManager_NewMarginManagerArgs = NewMarginManagerArgs;
5015
5118
  type marginManager_NewWithInitializerArgs = NewWithInitializerArgs;
5016
- type marginManager_PlaceMarketOrderConditionalArgs = PlaceMarketOrderConditionalArgs;
5017
- type marginManager_PlacePendingLimitOrderArgs = PlacePendingLimitOrderArgs;
5018
- type marginManager_PlacePendingOrderArgs = PlacePendingOrderArgs;
5019
- type marginManager_ProcessCollectedOrdersArgs = ProcessCollectedOrdersArgs;
5119
+ type marginManager_PlaceMarketOrderConditionalV2Args = PlaceMarketOrderConditionalV2Args;
5120
+ type marginManager_PlacePendingLimitOrderV2Args = PlacePendingLimitOrderV2Args;
5121
+ type marginManager_PlacePendingOrderV2Args = PlacePendingOrderV2Args;
5122
+ type marginManager_ProcessCollectedOrdersV2Args = ProcessCollectedOrdersV2Args;
5123
+ type marginManager_RegisterMarginManagerArgs = RegisterMarginManagerArgs;
5020
5124
  type marginManager_RepayBaseArgs = RepayBaseArgs;
5021
5125
  type marginManager_RepayQuoteArgs = RepayQuoteArgs;
5022
5126
  type marginManager_RepayWithdrawArgs = RepayWithdrawArgs;
@@ -5053,6 +5157,7 @@ declare const marginManager_deepBalance: typeof deepBalance;
5053
5157
  declare const marginManager_deepbookPool: typeof deepbookPool;
5054
5158
  declare const marginManager_depositInt: typeof depositInt;
5055
5159
  declare const marginManager_executeConditionalOrders: typeof executeConditionalOrders;
5160
+ declare const marginManager_executeConditionalOrdersV2: typeof executeConditionalOrdersV2;
5056
5161
  declare const marginManager_hasBaseDebt: typeof hasBaseDebt;
5057
5162
  declare const marginManager_highestTriggerBelowPrice: typeof highestTriggerBelowPrice;
5058
5163
  declare const marginManager_isDepositCollateralEvent: typeof isDepositCollateralEvent;
@@ -5070,11 +5175,12 @@ declare const marginManager_lowestTriggerAbovePrice: typeof lowestTriggerAbovePr
5070
5175
  declare const marginManager_managerState: typeof managerState;
5071
5176
  declare const marginManager_newMarginManager: typeof newMarginManager;
5072
5177
  declare const marginManager_newWithInitializer: typeof newWithInitializer;
5073
- declare const marginManager_placeMarketOrderConditional: typeof placeMarketOrderConditional;
5074
- declare const marginManager_placePendingLimitOrder: typeof placePendingLimitOrder;
5075
- declare const marginManager_placePendingOrder: typeof placePendingOrder;
5076
- declare const marginManager_processCollectedOrders: typeof processCollectedOrders;
5178
+ declare const marginManager_placeMarketOrderConditionalV2: typeof placeMarketOrderConditionalV2;
5179
+ declare const marginManager_placePendingLimitOrderV2: typeof placePendingLimitOrderV2;
5180
+ declare const marginManager_placePendingOrderV2: typeof placePendingOrderV2;
5181
+ declare const marginManager_processCollectedOrdersV2: typeof processCollectedOrdersV2;
5077
5182
  declare const marginManager_quoteBalance: typeof quoteBalance;
5183
+ declare const marginManager_registerMarginManager: typeof registerMarginManager;
5078
5184
  declare const marginManager_repayBase: typeof repayBase;
5079
5185
  declare const marginManager_repayQuote: typeof repayQuote;
5080
5186
  declare const marginManager_repayWithdraw: typeof repayWithdraw;
@@ -5089,7 +5195,7 @@ declare const marginManager_unregisterMarginManager: typeof unregisterMarginMana
5089
5195
  declare const marginManager_unsetMarginManagerReferral: typeof unsetMarginManagerReferral;
5090
5196
  declare const marginManager_withdrawSettledAmountsPermissionlessInt: typeof withdrawSettledAmountsPermissionlessInt;
5091
5197
  declare namespace marginManager {
5092
- export { type AddConditionalOrderArgs$1 as AddConditionalOrderArgs, type marginManager_AssetsInDebtUnitArgs as AssetsInDebtUnitArgs, type marginManager_AssetsInDebtUnitUnsafeArgs as AssetsInDebtUnitUnsafeArgs, type marginManager_BorrowBaseArgs as BorrowBaseArgs, type marginManager_BorrowQuoteArgs as BorrowQuoteArgs, type marginManager_CalculateAssetsArgs as CalculateAssetsArgs, type marginManager_CalculateDebtsArgs as CalculateDebtsArgs, type CanBorrowArgs$1 as CanBorrowArgs, type CancelAllConditionalOrdersArgs$1 as CancelAllConditionalOrdersArgs, type CancelConditionalOrderArgs$1 as CancelConditionalOrderArgs, type marginManager_ConditionalOrderArgs as ConditionalOrderArgs, type DepositArgs$1 as DepositArgs, marginManager_DepositCollateralEvent as DepositCollateralEvent, type marginManager_DepositCollateralEventFields as DepositCollateralEventFields, type marginManager_DepositCollateralEventJSON as DepositCollateralEventJSON, type marginManager_DepositCollateralEventJSONField as DepositCollateralEventJSONField, type marginManager_DepositCollateralEventReified as DepositCollateralEventReified, type marginManager_DepositIntArgs as DepositIntArgs, type marginManager_ExecuteConditionalOrdersArgs as ExecuteConditionalOrdersArgs, type marginManager_LiquidateArgs as LiquidateArgs, marginManager_LiquidationEvent as LiquidationEvent, type marginManager_LiquidationEventFields as LiquidationEventFields, type marginManager_LiquidationEventJSON as LiquidationEventJSON, type marginManager_LiquidationEventJSONField as LiquidationEventJSONField, type marginManager_LiquidationEventReified as LiquidationEventReified, type marginManager_LiquidationWithdrawArgs as LiquidationWithdrawArgs, marginManager_LoanBorrowedEvent as LoanBorrowedEvent, type marginManager_LoanBorrowedEventFields as LoanBorrowedEventFields, type marginManager_LoanBorrowedEventJSON as LoanBorrowedEventJSON, type marginManager_LoanBorrowedEventJSONField as LoanBorrowedEventJSONField, type marginManager_LoanBorrowedEventReified as LoanBorrowedEventReified, marginManager_LoanRepaidEvent as LoanRepaidEvent, type marginManager_LoanRepaidEventFields as LoanRepaidEventFields, type marginManager_LoanRepaidEventJSON as LoanRepaidEventJSON, type marginManager_LoanRepaidEventJSONField as LoanRepaidEventJSONField, type marginManager_LoanRepaidEventReified as LoanRepaidEventReified, marginManager_ManagerInitializer as ManagerInitializer, type marginManager_ManagerInitializerFields as ManagerInitializerFields, type marginManager_ManagerInitializerJSON as ManagerInitializerJSON, type marginManager_ManagerInitializerJSONField as ManagerInitializerJSONField, type marginManager_ManagerInitializerReified as ManagerInitializerReified, type marginManager_ManagerStateArgs as ManagerStateArgs, marginManager_MarginApp as MarginApp, type marginManager_MarginAppFields as MarginAppFields, type marginManager_MarginAppJSON as MarginAppJSON, type marginManager_MarginAppJSONField as MarginAppJSONField, type marginManager_MarginAppReified as MarginAppReified, marginManager_MarginManager as MarginManager, marginManager_MarginManagerCreatedEvent as MarginManagerCreatedEvent, type marginManager_MarginManagerCreatedEventFields as MarginManagerCreatedEventFields, type marginManager_MarginManagerCreatedEventJSON as MarginManagerCreatedEventJSON, type marginManager_MarginManagerCreatedEventJSONField as MarginManagerCreatedEventJSONField, type marginManager_MarginManagerCreatedEventReified as MarginManagerCreatedEventReified, type marginManager_MarginManagerFields as MarginManagerFields, type marginManager_MarginManagerJSON as MarginManagerJSON, type marginManager_MarginManagerJSONField as MarginManagerJSONField, type marginManager_MarginManagerReified as MarginManagerReified, type NewArgs$6 as NewArgs, type marginManager_NewMarginManagerArgs as NewMarginManagerArgs, type marginManager_NewWithInitializerArgs as NewWithInitializerArgs, type marginManager_PlaceMarketOrderConditionalArgs as PlaceMarketOrderConditionalArgs, type marginManager_PlacePendingLimitOrderArgs as PlacePendingLimitOrderArgs, type marginManager_PlacePendingOrderArgs as PlacePendingOrderArgs, type marginManager_ProcessCollectedOrdersArgs as ProcessCollectedOrdersArgs, type RepayArgs$1 as RepayArgs, type marginManager_RepayBaseArgs as RepayBaseArgs, type marginManager_RepayQuoteArgs as RepayQuoteArgs, type marginManager_RepayWithdrawArgs as RepayWithdrawArgs, type marginManager_RiskRatioArgs as RiskRatioArgs, type marginManager_RiskRatioIntArgs as RiskRatioIntArgs, type marginManager_RiskRatioIntUnsafeArgs as RiskRatioIntUnsafeArgs, type marginManager_RiskRatioUnsafeArgs as RiskRatioUnsafeArgs, type marginManager_SetMarginManagerReferralArgs as SetMarginManagerReferralArgs, type marginManager_ShareArgs as ShareArgs, type marginManager_UnregisterMarginManagerArgs as UnregisterMarginManagerArgs, type marginManager_UnsetMarginManagerReferralArgs as UnsetMarginManagerReferralArgs, type WithdrawArgs$3 as WithdrawArgs, marginManager_WithdrawCollateralEvent as WithdrawCollateralEvent, type marginManager_WithdrawCollateralEventFields as WithdrawCollateralEventFields, type marginManager_WithdrawCollateralEventJSON as WithdrawCollateralEventJSON, type marginManager_WithdrawCollateralEventJSONField as WithdrawCollateralEventJSONField, type marginManager_WithdrawCollateralEventReified as WithdrawCollateralEventReified, type marginManager_WithdrawSettledAmountsPermissionlessIntArgs as WithdrawSettledAmountsPermissionlessIntArgs, addConditionalOrder$1 as addConditionalOrder, marginManager_assetsInDebtUnit as assetsInDebtUnit, marginManager_assetsInDebtUnitUnsafe as assetsInDebtUnitUnsafe, balanceManager$1 as balanceManager, marginManager_balanceManagerTradingMut as balanceManagerTradingMut, marginManager_balanceManagerUnsafeMut as balanceManagerUnsafeMut, marginManager_baseBalance as baseBalance, marginManager_borrowBase as borrowBase, marginManager_borrowQuote as borrowQuote, marginManager_borrowedBaseShares as borrowedBaseShares, marginManager_borrowedQuoteShares as borrowedQuoteShares, marginManager_borrowedShares as borrowedShares, marginManager_calculateAssets as calculateAssets, marginManager_calculateDebts as calculateDebts, canBorrow$1 as canBorrow, cancelAllConditionalOrders$1 as cancelAllConditionalOrders, cancelConditionalOrder$1 as cancelConditionalOrder, marginManager_conditionalOrder as conditionalOrder, marginManager_conditionalOrderIds as conditionalOrderIds, marginManager_deepBalance as deepBalance, marginManager_deepbookPool as deepbookPool, deposit$1 as deposit, marginManager_depositInt as depositInt, marginManager_executeConditionalOrders as executeConditionalOrders, marginManager_hasBaseDebt as hasBaseDebt, marginManager_highestTriggerBelowPrice as highestTriggerBelowPrice, id$3 as id, marginManager_isDepositCollateralEvent as isDepositCollateralEvent, marginManager_isLiquidationEvent as isLiquidationEvent, marginManager_isLoanBorrowedEvent as isLoanBorrowedEvent, marginManager_isLoanRepaidEvent as isLoanRepaidEvent, marginManager_isManagerInitializer as isManagerInitializer, marginManager_isMarginApp as isMarginApp, marginManager_isMarginManager as isMarginManager, marginManager_isMarginManagerCreatedEvent as isMarginManagerCreatedEvent, marginManager_isWithdrawCollateralEvent as isWithdrawCollateralEvent, marginManager_liquidate as liquidate, marginManager_liquidationWithdraw as liquidationWithdraw, marginManager_lowestTriggerAbovePrice as lowestTriggerAbovePrice, marginManager_managerState as managerState, marginPoolId$2 as marginPoolId, marginManager_newMarginManager as newMarginManager, marginManager_newWithInitializer as newWithInitializer, new_$8 as new_, owner$1 as owner, marginManager_placeMarketOrderConditional as placeMarketOrderConditional, marginManager_placePendingLimitOrder as placePendingLimitOrder, marginManager_placePendingOrder as placePendingOrder, marginManager_processCollectedOrders as processCollectedOrders, marginManager_quoteBalance as quoteBalance, repay$1 as repay, marginManager_repayBase as repayBase, marginManager_repayQuote as repayQuote, marginManager_repayWithdraw as repayWithdraw, marginManager_riskRatio as riskRatio, marginManager_riskRatioInt as riskRatioInt, marginManager_riskRatioIntUnsafe as riskRatioIntUnsafe, marginManager_riskRatioUnsafe as riskRatioUnsafe, marginManager_setMarginManagerReferral as setMarginManagerReferral, marginManager_share as share, marginManager_tradeProof as tradeProof, marginManager_unregisterMarginManager as unregisterMarginManager, marginManager_unsetMarginManagerReferral as unsetMarginManagerReferral, validateOwner$1 as validateOwner, withdraw$3 as withdraw, marginManager_withdrawSettledAmountsPermissionlessInt as withdrawSettledAmountsPermissionlessInt };
5198
+ export { type AccountArgs$2 as AccountArgs, type AccountExistsArgs$2 as AccountExistsArgs, type AccountOpenOrdersArgs$1 as AccountOpenOrdersArgs, type AddConditionalOrderArgs$1 as AddConditionalOrderArgs, type marginManager_AssetsInDebtUnitArgs as AssetsInDebtUnitArgs, type marginManager_AssetsInDebtUnitUnsafeArgs as AssetsInDebtUnitUnsafeArgs, type marginManager_BorrowBaseArgs as BorrowBaseArgs, type marginManager_BorrowQuoteArgs as BorrowQuoteArgs, type marginManager_CalculateAssetsArgs as CalculateAssetsArgs, type marginManager_CalculateDebtsArgs as CalculateDebtsArgs, type CanBorrowArgs$1 as CanBorrowArgs, type CanPlaceLimitOrderArgs$1 as CanPlaceLimitOrderArgs, type CanPlaceMarketOrderArgs$1 as CanPlaceMarketOrderArgs, type CancelAllConditionalOrdersArgs$1 as CancelAllConditionalOrdersArgs, type CancelConditionalOrderArgs$1 as CancelConditionalOrderArgs, type marginManager_ConditionalOrderArgs as ConditionalOrderArgs, type DepositArgs$1 as DepositArgs, marginManager_DepositCollateralEvent as DepositCollateralEvent, type marginManager_DepositCollateralEventFields as DepositCollateralEventFields, type marginManager_DepositCollateralEventJSON as DepositCollateralEventJSON, type marginManager_DepositCollateralEventJSONField as DepositCollateralEventJSONField, type marginManager_DepositCollateralEventReified as DepositCollateralEventReified, type marginManager_DepositIntArgs as DepositIntArgs, type marginManager_ExecuteConditionalOrdersArgs as ExecuteConditionalOrdersArgs, type marginManager_ExecuteConditionalOrdersV2Args as ExecuteConditionalOrdersV2Args, type GetAccountOrderDetailsArgs$1 as GetAccountOrderDetailsArgs, type GetBalanceManagerReferralIdArgs$1 as GetBalanceManagerReferralIdArgs, type marginManager_LiquidateArgs as LiquidateArgs, marginManager_LiquidationEvent as LiquidationEvent, type marginManager_LiquidationEventFields as LiquidationEventFields, type marginManager_LiquidationEventJSON as LiquidationEventJSON, type marginManager_LiquidationEventJSONField as LiquidationEventJSONField, type marginManager_LiquidationEventReified as LiquidationEventReified, type marginManager_LiquidationWithdrawArgs as LiquidationWithdrawArgs, marginManager_LoanBorrowedEvent as LoanBorrowedEvent, type marginManager_LoanBorrowedEventFields as LoanBorrowedEventFields, type marginManager_LoanBorrowedEventJSON as LoanBorrowedEventJSON, type marginManager_LoanBorrowedEventJSONField as LoanBorrowedEventJSONField, type marginManager_LoanBorrowedEventReified as LoanBorrowedEventReified, marginManager_LoanRepaidEvent as LoanRepaidEvent, type marginManager_LoanRepaidEventFields as LoanRepaidEventFields, type marginManager_LoanRepaidEventJSON as LoanRepaidEventJSON, type marginManager_LoanRepaidEventJSONField as LoanRepaidEventJSONField, type marginManager_LoanRepaidEventReified as LoanRepaidEventReified, type LockedBalanceArgs$2 as LockedBalanceArgs, marginManager_ManagerInitializer as ManagerInitializer, type marginManager_ManagerInitializerFields as ManagerInitializerFields, type marginManager_ManagerInitializerJSON as ManagerInitializerJSON, type marginManager_ManagerInitializerJSONField as ManagerInitializerJSONField, type marginManager_ManagerInitializerReified as ManagerInitializerReified, type marginManager_ManagerStateArgs as ManagerStateArgs, marginManager_MarginApp as MarginApp, type marginManager_MarginAppFields as MarginAppFields, type marginManager_MarginAppJSON as MarginAppJSON, type marginManager_MarginAppJSONField as MarginAppJSONField, type marginManager_MarginAppReified as MarginAppReified, marginManager_MarginManager as MarginManager, marginManager_MarginManagerCreatedEvent as MarginManagerCreatedEvent, type marginManager_MarginManagerCreatedEventFields as MarginManagerCreatedEventFields, type marginManager_MarginManagerCreatedEventJSON as MarginManagerCreatedEventJSON, type marginManager_MarginManagerCreatedEventJSONField as MarginManagerCreatedEventJSONField, type marginManager_MarginManagerCreatedEventReified as MarginManagerCreatedEventReified, type marginManager_MarginManagerFields as MarginManagerFields, type marginManager_MarginManagerJSON as MarginManagerJSON, type marginManager_MarginManagerJSONField as MarginManagerJSONField, type marginManager_MarginManagerReified as MarginManagerReified, type NewArgs$6 as NewArgs, type marginManager_NewMarginManagerArgs as NewMarginManagerArgs, type marginManager_NewWithInitializerArgs as NewWithInitializerArgs, type marginManager_PlaceMarketOrderConditionalV2Args as PlaceMarketOrderConditionalV2Args, type marginManager_PlacePendingLimitOrderV2Args as PlacePendingLimitOrderV2Args, type marginManager_PlacePendingOrderV2Args as PlacePendingOrderV2Args, type marginManager_ProcessCollectedOrdersV2Args as ProcessCollectedOrdersV2Args, type marginManager_RegisterMarginManagerArgs as RegisterMarginManagerArgs, type RepayArgs$1 as RepayArgs, type marginManager_RepayBaseArgs as RepayBaseArgs, type marginManager_RepayQuoteArgs as RepayQuoteArgs, type marginManager_RepayWithdrawArgs as RepayWithdrawArgs, type marginManager_RiskRatioArgs as RiskRatioArgs, type marginManager_RiskRatioIntArgs as RiskRatioIntArgs, type marginManager_RiskRatioIntUnsafeArgs as RiskRatioIntUnsafeArgs, type marginManager_RiskRatioUnsafeArgs as RiskRatioUnsafeArgs, type marginManager_SetMarginManagerReferralArgs as SetMarginManagerReferralArgs, type marginManager_ShareArgs as ShareArgs, type marginManager_UnregisterMarginManagerArgs as UnregisterMarginManagerArgs, type marginManager_UnsetMarginManagerReferralArgs as UnsetMarginManagerReferralArgs, type WithdrawArgs$3 as WithdrawArgs, marginManager_WithdrawCollateralEvent as WithdrawCollateralEvent, type marginManager_WithdrawCollateralEventFields as WithdrawCollateralEventFields, type marginManager_WithdrawCollateralEventJSON as WithdrawCollateralEventJSON, type marginManager_WithdrawCollateralEventJSONField as WithdrawCollateralEventJSONField, type marginManager_WithdrawCollateralEventReified as WithdrawCollateralEventReified, type marginManager_WithdrawSettledAmountsPermissionlessIntArgs as WithdrawSettledAmountsPermissionlessIntArgs, account$3 as account, accountExists$2 as accountExists, accountOpenOrders$1 as accountOpenOrders, addConditionalOrder$1 as addConditionalOrder, marginManager_assetsInDebtUnit as assetsInDebtUnit, marginManager_assetsInDebtUnitUnsafe as assetsInDebtUnitUnsafe, balanceManager$1 as balanceManager, balanceManagerId$3 as balanceManagerId, marginManager_balanceManagerTradingMut as balanceManagerTradingMut, marginManager_balanceManagerUnsafeMut as balanceManagerUnsafeMut, marginManager_baseBalance as baseBalance, marginManager_borrowBase as borrowBase, marginManager_borrowQuote as borrowQuote, marginManager_borrowedBaseShares as borrowedBaseShares, marginManager_borrowedQuoteShares as borrowedQuoteShares, marginManager_borrowedShares as borrowedShares, marginManager_calculateAssets as calculateAssets, marginManager_calculateDebts as calculateDebts, canBorrow$1 as canBorrow, canPlaceLimitOrder$1 as canPlaceLimitOrder, canPlaceMarketOrder$1 as canPlaceMarketOrder, cancelAllConditionalOrders$1 as cancelAllConditionalOrders, cancelConditionalOrder$1 as cancelConditionalOrder, marginManager_conditionalOrder as conditionalOrder, marginManager_conditionalOrderIds as conditionalOrderIds, marginManager_deepBalance as deepBalance, marginManager_deepbookPool as deepbookPool, deposit$1 as deposit, marginManager_depositInt as depositInt, marginManager_executeConditionalOrders as executeConditionalOrders, marginManager_executeConditionalOrdersV2 as executeConditionalOrdersV2, getAccountOrderDetails$1 as getAccountOrderDetails, getBalanceManagerReferralId$1 as getBalanceManagerReferralId, marginManager_hasBaseDebt as hasBaseDebt, marginManager_highestTriggerBelowPrice as highestTriggerBelowPrice, id$3 as id, marginManager_isDepositCollateralEvent as isDepositCollateralEvent, marginManager_isLiquidationEvent as isLiquidationEvent, marginManager_isLoanBorrowedEvent as isLoanBorrowedEvent, marginManager_isLoanRepaidEvent as isLoanRepaidEvent, marginManager_isManagerInitializer as isManagerInitializer, marginManager_isMarginApp as isMarginApp, marginManager_isMarginManager as isMarginManager, marginManager_isMarginManagerCreatedEvent as isMarginManagerCreatedEvent, marginManager_isWithdrawCollateralEvent as isWithdrawCollateralEvent, marginManager_liquidate as liquidate, marginManager_liquidationWithdraw as liquidationWithdraw, lockedBalance$2 as lockedBalance, marginManager_lowestTriggerAbovePrice as lowestTriggerAbovePrice, marginManager_managerState as managerState, marginPoolId$2 as marginPoolId, marginManager_newMarginManager as newMarginManager, marginManager_newWithInitializer as newWithInitializer, new_$8 as new_, owner$1 as owner, marginManager_placeMarketOrderConditionalV2 as placeMarketOrderConditionalV2, marginManager_placePendingLimitOrderV2 as placePendingLimitOrderV2, marginManager_placePendingOrderV2 as placePendingOrderV2, marginManager_processCollectedOrdersV2 as processCollectedOrdersV2, marginManager_quoteBalance as quoteBalance, marginManager_registerMarginManager as registerMarginManager, repay$1 as repay, marginManager_repayBase as repayBase, marginManager_repayQuote as repayQuote, marginManager_repayWithdraw as repayWithdraw, marginManager_riskRatio as riskRatio, marginManager_riskRatioInt as riskRatioInt, marginManager_riskRatioIntUnsafe as riskRatioIntUnsafe, marginManager_riskRatioUnsafe as riskRatioUnsafe, marginManager_setMarginManagerReferral as setMarginManagerReferral, marginManager_share as share, marginManager_tradeProof as tradeProof, marginManager_unregisterMarginManager as unregisterMarginManager, marginManager_unsetMarginManagerReferral as unsetMarginManagerReferral, validateOwner$1 as validateOwner, withdraw$3 as withdraw, marginManager_withdrawSettledAmountsPermissionlessInt as withdrawSettledAmountsPermissionlessInt };
5093
5199
  }
5094
5200
 
5095
5201
  interface CreateMarginPoolArgs {
@@ -5139,6 +5245,14 @@ interface UpdateMarginPoolConfigArgs {
5139
5245
  }
5140
5246
  /** Updates margin pool config */
5141
5247
  declare function updateMarginPoolConfig(tx: Transaction, typeArg: string, args: UpdateMarginPoolConfigArgs): TransactionResult;
5248
+ interface AdminInjectCapitalArgs {
5249
+ self: TransactionObjectInput;
5250
+ adminCap: TransactionObjectInput;
5251
+ coin: TransactionObjectInput;
5252
+ clock: TransactionObjectInput;
5253
+ }
5254
+ /** Inject capital into the margin pool without minting supplier shares. */
5255
+ declare function adminInjectCapital(tx: Transaction, typeArg: string, args: AdminInjectCapitalArgs): TransactionResult;
5142
5256
  interface MintSupplierCapArgs$1 {
5143
5257
  registry: TransactionObjectInput;
5144
5258
  clock: TransactionObjectInput;
@@ -6647,6 +6761,7 @@ declare class SupplyReferralMinted implements StructClass {
6647
6761
  static fetch(client: SupportedSuiClient, id: string): Promise<SupplyReferralMinted>;
6648
6762
  }
6649
6763
 
6764
+ type marginPool_AdminInjectCapitalArgs = AdminInjectCapitalArgs;
6650
6765
  type marginPool_AdminWithdrawDefaultReferralFeesArgs = AdminWithdrawDefaultReferralFeesArgs;
6651
6766
  type marginPool_AssetSupplied = AssetSupplied;
6652
6767
  declare const marginPool_AssetSupplied: typeof AssetSupplied;
@@ -6726,6 +6841,7 @@ type marginPool_UpdateMarginPoolConfigArgs = UpdateMarginPoolConfigArgs;
6726
6841
  type marginPool_UserSupplyAmountArgs = UserSupplyAmountArgs;
6727
6842
  type marginPool_WithdrawMaintainerFeesArgs = WithdrawMaintainerFeesArgs;
6728
6843
  type marginPool_WithdrawReferralFeesArgs = WithdrawReferralFeesArgs;
6844
+ declare const marginPool_adminInjectCapital: typeof adminInjectCapital;
6729
6845
  declare const marginPool_adminWithdrawDefaultReferralFees: typeof adminWithdrawDefaultReferralFees;
6730
6846
  declare const marginPool_createMarginPool: typeof createMarginPool;
6731
6847
  declare const marginPool_deepbookPoolAllowed: typeof deepbookPoolAllowed;
@@ -6753,7 +6869,7 @@ declare const marginPool_vaultBalance: typeof vaultBalance;
6753
6869
  declare const marginPool_withdrawMaintainerFees: typeof withdrawMaintainerFees;
6754
6870
  declare const marginPool_withdrawReferralFees: typeof withdrawReferralFees;
6755
6871
  declare namespace marginPool {
6756
- export { type marginPool_AdminWithdrawDefaultReferralFeesArgs as AdminWithdrawDefaultReferralFeesArgs, marginPool_AssetSupplied as AssetSupplied, type marginPool_AssetSuppliedFields as AssetSuppliedFields, type marginPool_AssetSuppliedJSON as AssetSuppliedJSON, type marginPool_AssetSuppliedJSONField as AssetSuppliedJSONField, type marginPool_AssetSuppliedReified as AssetSuppliedReified, marginPool_AssetWithdrawn as AssetWithdrawn, type marginPool_AssetWithdrawnFields as AssetWithdrawnFields, type marginPool_AssetWithdrawnJSON as AssetWithdrawnJSON, type marginPool_AssetWithdrawnJSONField as AssetWithdrawnJSONField, type marginPool_AssetWithdrawnReified as AssetWithdrawnReified, type BorrowArgs$1 as BorrowArgs, type BorrowSharesToAmountArgs$1 as BorrowSharesToAmountArgs, type marginPool_CreateMarginPoolArgs as CreateMarginPoolArgs, type marginPool_DeepbookPoolAllowedArgs as DeepbookPoolAllowedArgs, DeepbookPoolUpdated$1 as DeepbookPoolUpdated, type DeepbookPoolUpdatedFields$1 as DeepbookPoolUpdatedFields, type DeepbookPoolUpdatedJSON$1 as DeepbookPoolUpdatedJSON, type DeepbookPoolUpdatedJSONField$1 as DeepbookPoolUpdatedJSONField, type DeepbookPoolUpdatedReified$1 as DeepbookPoolUpdatedReified, type marginPool_DisableDeepbookPoolForLoanArgs as DisableDeepbookPoolForLoanArgs, type marginPool_EnableDeepbookPoolForLoanArgs as EnableDeepbookPoolForLoanArgs, type GetAvailableWithdrawalArgs$1 as GetAvailableWithdrawalArgs, marginPool_InterestParamsUpdated as InterestParamsUpdated, type marginPool_InterestParamsUpdatedFields as InterestParamsUpdatedFields, type marginPool_InterestParamsUpdatedJSON as InterestParamsUpdatedJSON, type marginPool_InterestParamsUpdatedJSONField as InterestParamsUpdatedJSONField, type marginPool_InterestParamsUpdatedReified as InterestParamsUpdatedReified, marginPool_MaintainerFeesWithdrawn as MaintainerFeesWithdrawn, type marginPool_MaintainerFeesWithdrawnFields as MaintainerFeesWithdrawnFields, type marginPool_MaintainerFeesWithdrawnJSON as MaintainerFeesWithdrawnJSON, type marginPool_MaintainerFeesWithdrawnJSONField as MaintainerFeesWithdrawnJSONField, type marginPool_MaintainerFeesWithdrawnReified as MaintainerFeesWithdrawnReified, marginPool_MarginPool as MarginPool, marginPool_MarginPoolConfigUpdated as MarginPoolConfigUpdated, type marginPool_MarginPoolConfigUpdatedFields as MarginPoolConfigUpdatedFields, type marginPool_MarginPoolConfigUpdatedJSON as MarginPoolConfigUpdatedJSON, type marginPool_MarginPoolConfigUpdatedJSONField as MarginPoolConfigUpdatedJSONField, type marginPool_MarginPoolConfigUpdatedReified as MarginPoolConfigUpdatedReified, marginPool_MarginPoolCreated as MarginPoolCreated, type marginPool_MarginPoolCreatedFields as MarginPoolCreatedFields, type marginPool_MarginPoolCreatedJSON as MarginPoolCreatedJSON, type marginPool_MarginPoolCreatedJSONField as MarginPoolCreatedJSONField, type marginPool_MarginPoolCreatedReified as MarginPoolCreatedReified, type marginPool_MarginPoolFields as MarginPoolFields, type marginPool_MarginPoolJSON as MarginPoolJSON, type marginPool_MarginPoolJSONField as MarginPoolJSONField, type marginPool_MarginPoolReified as MarginPoolReified, type MintSupplierCapArgs$1 as MintSupplierCapArgs, type marginPool_MintSupplyReferralArgs as MintSupplyReferralArgs, marginPool_ProtocolFeesWithdrawn as ProtocolFeesWithdrawn, type marginPool_ProtocolFeesWithdrawnFields as ProtocolFeesWithdrawnFields, type marginPool_ProtocolFeesWithdrawnJSON as ProtocolFeesWithdrawnJSON, type marginPool_ProtocolFeesWithdrawnJSONField as ProtocolFeesWithdrawnJSONField, type marginPool_ProtocolFeesWithdrawnReified as ProtocolFeesWithdrawnReified, type marginPool_RepayArgs as RepayArgs, type marginPool_RepayLiquidationArgs as RepayLiquidationArgs, marginPool_SupplierCap as SupplierCap, type marginPool_SupplierCapFields as SupplierCapFields, type marginPool_SupplierCapJSON as SupplierCapJSON, type marginPool_SupplierCapJSONField as SupplierCapJSONField, marginPool_SupplierCapMinted as SupplierCapMinted, type marginPool_SupplierCapMintedFields as SupplierCapMintedFields, type marginPool_SupplierCapMintedJSON as SupplierCapMintedJSON, type marginPool_SupplierCapMintedJSONField as SupplierCapMintedJSONField, type marginPool_SupplierCapMintedReified as SupplierCapMintedReified, type marginPool_SupplierCapReified as SupplierCapReified, type SupplyArgs$1 as SupplyArgs, marginPool_SupplyReferralMinted as SupplyReferralMinted, type marginPool_SupplyReferralMintedFields as SupplyReferralMintedFields, type marginPool_SupplyReferralMintedJSON as SupplyReferralMintedJSON, type marginPool_SupplyReferralMintedJSONField as SupplyReferralMintedJSONField, type marginPool_SupplyReferralMintedReified as SupplyReferralMintedReified, type TotalSupplyWithInterestArgs$1 as TotalSupplyWithInterestArgs, type marginPool_UpdateInterestParamsArgs as UpdateInterestParamsArgs, type marginPool_UpdateMarginPoolConfigArgs as UpdateMarginPoolConfigArgs, type marginPool_UserSupplyAmountArgs as UserSupplyAmountArgs, type UserSupplySharesArgs$1 as UserSupplySharesArgs, type WithdrawArgs$2 as WithdrawArgs, type marginPool_WithdrawMaintainerFeesArgs as WithdrawMaintainerFeesArgs, type WithdrawProtocolFeesArgs$1 as WithdrawProtocolFeesArgs, type marginPool_WithdrawReferralFeesArgs as WithdrawReferralFeesArgs, marginPool_adminWithdrawDefaultReferralFees as adminWithdrawDefaultReferralFees, borrow$1 as borrow, borrowRatio$1 as borrowRatio, borrowShares$1 as borrowShares, borrowSharesToAmount$1 as borrowSharesToAmount, marginPool_createMarginPool as createMarginPool, marginPool_deepbookPoolAllowed as deepbookPoolAllowed, marginPool_disableDeepbookPoolForLoan as disableDeepbookPoolForLoan, marginPool_enableDeepbookPoolForLoan as enableDeepbookPoolForLoan, getAvailableWithdrawal$1 as getAvailableWithdrawal, id$2 as id, interestRate$1 as interestRate, marginPool_isAssetSupplied as isAssetSupplied, marginPool_isAssetWithdrawn as isAssetWithdrawn, isDeepbookPoolUpdated$1 as isDeepbookPoolUpdated, marginPool_isInterestParamsUpdated as isInterestParamsUpdated, marginPool_isMaintainerFeesWithdrawn as isMaintainerFeesWithdrawn, marginPool_isMarginPool as isMarginPool, marginPool_isMarginPoolConfigUpdated as isMarginPoolConfigUpdated, marginPool_isMarginPoolCreated as isMarginPoolCreated, marginPool_isProtocolFeesWithdrawn as isProtocolFeesWithdrawn, marginPool_isRateLimitEnabled as isRateLimitEnabled, marginPool_isSupplierCap as isSupplierCap, marginPool_isSupplierCapMinted as isSupplierCapMinted, marginPool_isSupplyReferralMinted as isSupplyReferralMinted, lastUpdateTimestamp$1 as lastUpdateTimestamp, maxUtilizationRate$1 as maxUtilizationRate, minBorrow$1 as minBorrow, mintSupplierCap$1 as mintSupplierCap, mintSupplyReferral$1 as mintSupplyReferral, protocolFees$2 as protocolFees, protocolSpread$1 as protocolSpread, rateLimitCapacity$1 as rateLimitCapacity, rateLimitRefillRatePerMs$1 as rateLimitRefillRatePerMs, marginPool_repay as repay, marginPool_repayLiquidation as repayLiquidation, supply$1 as supply, supplyCap$1 as supplyCap, supplyRatio$1 as supplyRatio, supplyShares$1 as supplyShares, totalBorrow$1 as totalBorrow, totalSupply$2 as totalSupply, totalSupplyWithInterest$1 as totalSupplyWithInterest, marginPool_trueInterestRate as trueInterestRate, marginPool_updateInterestParams as updateInterestParams, marginPool_updateMarginPoolConfig as updateMarginPoolConfig, marginPool_userSupplyAmount as userSupplyAmount, userSupplyShares$1 as userSupplyShares, marginPool_vaultBalance as vaultBalance, withdraw$2 as withdraw, marginPool_withdrawMaintainerFees as withdrawMaintainerFees, withdrawProtocolFees$2 as withdrawProtocolFees, marginPool_withdrawReferralFees as withdrawReferralFees };
6872
+ export { type marginPool_AdminInjectCapitalArgs as AdminInjectCapitalArgs, type marginPool_AdminWithdrawDefaultReferralFeesArgs as AdminWithdrawDefaultReferralFeesArgs, marginPool_AssetSupplied as AssetSupplied, type marginPool_AssetSuppliedFields as AssetSuppliedFields, type marginPool_AssetSuppliedJSON as AssetSuppliedJSON, type marginPool_AssetSuppliedJSONField as AssetSuppliedJSONField, type marginPool_AssetSuppliedReified as AssetSuppliedReified, marginPool_AssetWithdrawn as AssetWithdrawn, type marginPool_AssetWithdrawnFields as AssetWithdrawnFields, type marginPool_AssetWithdrawnJSON as AssetWithdrawnJSON, type marginPool_AssetWithdrawnJSONField as AssetWithdrawnJSONField, type marginPool_AssetWithdrawnReified as AssetWithdrawnReified, type BorrowArgs$1 as BorrowArgs, type BorrowSharesToAmountArgs$1 as BorrowSharesToAmountArgs, type marginPool_CreateMarginPoolArgs as CreateMarginPoolArgs, type marginPool_DeepbookPoolAllowedArgs as DeepbookPoolAllowedArgs, DeepbookPoolUpdated$1 as DeepbookPoolUpdated, type DeepbookPoolUpdatedFields$1 as DeepbookPoolUpdatedFields, type DeepbookPoolUpdatedJSON$1 as DeepbookPoolUpdatedJSON, type DeepbookPoolUpdatedJSONField$1 as DeepbookPoolUpdatedJSONField, type DeepbookPoolUpdatedReified$1 as DeepbookPoolUpdatedReified, type marginPool_DisableDeepbookPoolForLoanArgs as DisableDeepbookPoolForLoanArgs, type marginPool_EnableDeepbookPoolForLoanArgs as EnableDeepbookPoolForLoanArgs, type GetAvailableWithdrawalArgs$1 as GetAvailableWithdrawalArgs, marginPool_InterestParamsUpdated as InterestParamsUpdated, type marginPool_InterestParamsUpdatedFields as InterestParamsUpdatedFields, type marginPool_InterestParamsUpdatedJSON as InterestParamsUpdatedJSON, type marginPool_InterestParamsUpdatedJSONField as InterestParamsUpdatedJSONField, type marginPool_InterestParamsUpdatedReified as InterestParamsUpdatedReified, marginPool_MaintainerFeesWithdrawn as MaintainerFeesWithdrawn, type marginPool_MaintainerFeesWithdrawnFields as MaintainerFeesWithdrawnFields, type marginPool_MaintainerFeesWithdrawnJSON as MaintainerFeesWithdrawnJSON, type marginPool_MaintainerFeesWithdrawnJSONField as MaintainerFeesWithdrawnJSONField, type marginPool_MaintainerFeesWithdrawnReified as MaintainerFeesWithdrawnReified, marginPool_MarginPool as MarginPool, marginPool_MarginPoolConfigUpdated as MarginPoolConfigUpdated, type marginPool_MarginPoolConfigUpdatedFields as MarginPoolConfigUpdatedFields, type marginPool_MarginPoolConfigUpdatedJSON as MarginPoolConfigUpdatedJSON, type marginPool_MarginPoolConfigUpdatedJSONField as MarginPoolConfigUpdatedJSONField, type marginPool_MarginPoolConfigUpdatedReified as MarginPoolConfigUpdatedReified, marginPool_MarginPoolCreated as MarginPoolCreated, type marginPool_MarginPoolCreatedFields as MarginPoolCreatedFields, type marginPool_MarginPoolCreatedJSON as MarginPoolCreatedJSON, type marginPool_MarginPoolCreatedJSONField as MarginPoolCreatedJSONField, type marginPool_MarginPoolCreatedReified as MarginPoolCreatedReified, type marginPool_MarginPoolFields as MarginPoolFields, type marginPool_MarginPoolJSON as MarginPoolJSON, type marginPool_MarginPoolJSONField as MarginPoolJSONField, type marginPool_MarginPoolReified as MarginPoolReified, type MintSupplierCapArgs$1 as MintSupplierCapArgs, type marginPool_MintSupplyReferralArgs as MintSupplyReferralArgs, marginPool_ProtocolFeesWithdrawn as ProtocolFeesWithdrawn, type marginPool_ProtocolFeesWithdrawnFields as ProtocolFeesWithdrawnFields, type marginPool_ProtocolFeesWithdrawnJSON as ProtocolFeesWithdrawnJSON, type marginPool_ProtocolFeesWithdrawnJSONField as ProtocolFeesWithdrawnJSONField, type marginPool_ProtocolFeesWithdrawnReified as ProtocolFeesWithdrawnReified, type marginPool_RepayArgs as RepayArgs, type marginPool_RepayLiquidationArgs as RepayLiquidationArgs, marginPool_SupplierCap as SupplierCap, type marginPool_SupplierCapFields as SupplierCapFields, type marginPool_SupplierCapJSON as SupplierCapJSON, type marginPool_SupplierCapJSONField as SupplierCapJSONField, marginPool_SupplierCapMinted as SupplierCapMinted, type marginPool_SupplierCapMintedFields as SupplierCapMintedFields, type marginPool_SupplierCapMintedJSON as SupplierCapMintedJSON, type marginPool_SupplierCapMintedJSONField as SupplierCapMintedJSONField, type marginPool_SupplierCapMintedReified as SupplierCapMintedReified, type marginPool_SupplierCapReified as SupplierCapReified, type SupplyArgs$1 as SupplyArgs, marginPool_SupplyReferralMinted as SupplyReferralMinted, type marginPool_SupplyReferralMintedFields as SupplyReferralMintedFields, type marginPool_SupplyReferralMintedJSON as SupplyReferralMintedJSON, type marginPool_SupplyReferralMintedJSONField as SupplyReferralMintedJSONField, type marginPool_SupplyReferralMintedReified as SupplyReferralMintedReified, type TotalSupplyWithInterestArgs$1 as TotalSupplyWithInterestArgs, type marginPool_UpdateInterestParamsArgs as UpdateInterestParamsArgs, type marginPool_UpdateMarginPoolConfigArgs as UpdateMarginPoolConfigArgs, type marginPool_UserSupplyAmountArgs as UserSupplyAmountArgs, type UserSupplySharesArgs$1 as UserSupplySharesArgs, type WithdrawArgs$2 as WithdrawArgs, type marginPool_WithdrawMaintainerFeesArgs as WithdrawMaintainerFeesArgs, type WithdrawProtocolFeesArgs$1 as WithdrawProtocolFeesArgs, type marginPool_WithdrawReferralFeesArgs as WithdrawReferralFeesArgs, marginPool_adminInjectCapital as adminInjectCapital, marginPool_adminWithdrawDefaultReferralFees as adminWithdrawDefaultReferralFees, borrow$1 as borrow, borrowRatio$1 as borrowRatio, borrowShares$1 as borrowShares, borrowSharesToAmount$1 as borrowSharesToAmount, marginPool_createMarginPool as createMarginPool, marginPool_deepbookPoolAllowed as deepbookPoolAllowed, marginPool_disableDeepbookPoolForLoan as disableDeepbookPoolForLoan, marginPool_enableDeepbookPoolForLoan as enableDeepbookPoolForLoan, getAvailableWithdrawal$1 as getAvailableWithdrawal, id$2 as id, interestRate$1 as interestRate, marginPool_isAssetSupplied as isAssetSupplied, marginPool_isAssetWithdrawn as isAssetWithdrawn, isDeepbookPoolUpdated$1 as isDeepbookPoolUpdated, marginPool_isInterestParamsUpdated as isInterestParamsUpdated, marginPool_isMaintainerFeesWithdrawn as isMaintainerFeesWithdrawn, marginPool_isMarginPool as isMarginPool, marginPool_isMarginPoolConfigUpdated as isMarginPoolConfigUpdated, marginPool_isMarginPoolCreated as isMarginPoolCreated, marginPool_isProtocolFeesWithdrawn as isProtocolFeesWithdrawn, marginPool_isRateLimitEnabled as isRateLimitEnabled, marginPool_isSupplierCap as isSupplierCap, marginPool_isSupplierCapMinted as isSupplierCapMinted, marginPool_isSupplyReferralMinted as isSupplyReferralMinted, lastUpdateTimestamp$1 as lastUpdateTimestamp, maxUtilizationRate$1 as maxUtilizationRate, minBorrow$1 as minBorrow, mintSupplierCap$1 as mintSupplierCap, mintSupplyReferral$1 as mintSupplyReferral, protocolFees$2 as protocolFees, protocolSpread$1 as protocolSpread, rateLimitCapacity$1 as rateLimitCapacity, rateLimitRefillRatePerMs$1 as rateLimitRefillRatePerMs, marginPool_repay as repay, marginPool_repayLiquidation as repayLiquidation, supply$1 as supply, supplyCap$1 as supplyCap, supplyRatio$1 as supplyRatio, supplyShares$1 as supplyShares, totalBorrow$1 as totalBorrow, totalSupply$2 as totalSupply, totalSupplyWithInterest$1 as totalSupplyWithInterest, marginPool_trueInterestRate as trueInterestRate, marginPool_updateInterestParams as updateInterestParams, marginPool_updateMarginPoolConfig as updateMarginPoolConfig, marginPool_userSupplyAmount as userSupplyAmount, userSupplyShares$1 as userSupplyShares, marginPool_vaultBalance as vaultBalance, withdraw$2 as withdraw, marginPool_withdrawMaintainerFees as withdrawMaintainerFees, withdrawProtocolFees$2 as withdrawProtocolFees, marginPool_withdrawReferralFees as withdrawReferralFees };
6757
6873
  }
6758
6874
 
6759
6875
  declare function init$2(tx: Transaction, marginRegistry: TransactionObjectInput): TransactionResult;
@@ -8813,7 +8929,7 @@ interface PlaceLimitOrderArgs$1 {
8813
8929
  expireTimestamp: bigint | TransactionArgument;
8814
8930
  clock: TransactionObjectInput;
8815
8931
  }
8816
- /** Places a limit order in the pool. */
8932
+ /** DEPRECATED. Use `place_limit_order_v2`. */
8817
8933
  declare function placeLimitOrder$1(tx: Transaction, typeArgs: [string, string], args: PlaceLimitOrderArgs$1): TransactionResult;
8818
8934
  interface PlaceMarketOrderArgs$1 {
8819
8935
  registry: TransactionObjectInput;
@@ -8826,7 +8942,7 @@ interface PlaceMarketOrderArgs$1 {
8826
8942
  payWithDeep: boolean | TransactionArgument;
8827
8943
  clock: TransactionObjectInput;
8828
8944
  }
8829
- /** Places a market order in the pool. */
8945
+ /** DEPRECATED. Use `place_market_order_v2`. */
8830
8946
  declare function placeMarketOrder$1(tx: Transaction, typeArgs: [string, string], args: PlaceMarketOrderArgs$1): TransactionResult;
8831
8947
  interface PlaceReduceOnlyLimitOrderArgs {
8832
8948
  registry: TransactionObjectInput;
@@ -8843,7 +8959,7 @@ interface PlaceReduceOnlyLimitOrderArgs {
8843
8959
  expireTimestamp: bigint | TransactionArgument;
8844
8960
  clock: TransactionObjectInput;
8845
8961
  }
8846
- /** Places a reduce-only order in the pool. Used when margin trading is disabled. */
8962
+ /** DEPRECATED. Use `place_reduce_only_limit_order_v2`. */
8847
8963
  declare function placeReduceOnlyLimitOrder(tx: Transaction, typeArgs: [string, string, string], args: PlaceReduceOnlyLimitOrderArgs): TransactionResult;
8848
8964
  interface PlaceReduceOnlyMarketOrderArgs {
8849
8965
  registry: TransactionObjectInput;
@@ -8857,8 +8973,84 @@ interface PlaceReduceOnlyMarketOrderArgs {
8857
8973
  payWithDeep: boolean | TransactionArgument;
8858
8974
  clock: TransactionObjectInput;
8859
8975
  }
8860
- /** Places a reduce-only market order in the pool. Used when margin trading is disabled. */
8976
+ /** DEPRECATED. Use `place_reduce_only_market_order_v2`. */
8861
8977
  declare function placeReduceOnlyMarketOrder(tx: Transaction, typeArgs: [string, string, string], args: PlaceReduceOnlyMarketOrderArgs): TransactionResult;
8978
+ interface PlaceLimitOrderV2Args {
8979
+ registry: TransactionObjectInput;
8980
+ marginManager: TransactionObjectInput;
8981
+ pool: TransactionObjectInput;
8982
+ baseMarginPool: TransactionObjectInput;
8983
+ quoteMarginPool: TransactionObjectInput;
8984
+ baseOracle: TransactionObjectInput;
8985
+ quoteOracle: TransactionObjectInput;
8986
+ clientOrderId: bigint | TransactionArgument;
8987
+ orderType: number | TransactionArgument;
8988
+ selfMatchingOption: number | TransactionArgument;
8989
+ price: bigint | TransactionArgument;
8990
+ quantity: bigint | TransactionArgument;
8991
+ isBid: boolean | TransactionArgument;
8992
+ payWithDeep: boolean | TransactionArgument;
8993
+ expireTimestamp: bigint | TransactionArgument;
8994
+ clock: TransactionObjectInput;
8995
+ }
8996
+ /** Places a limit order in the pool. */
8997
+ declare function placeLimitOrderV2(tx: Transaction, typeArgs: [string, string], args: PlaceLimitOrderV2Args): TransactionResult;
8998
+ interface PlaceMarketOrderV2Args {
8999
+ registry: TransactionObjectInput;
9000
+ marginManager: TransactionObjectInput;
9001
+ pool: TransactionObjectInput;
9002
+ baseMarginPool: TransactionObjectInput;
9003
+ quoteMarginPool: TransactionObjectInput;
9004
+ baseOracle: TransactionObjectInput;
9005
+ quoteOracle: TransactionObjectInput;
9006
+ clientOrderId: bigint | TransactionArgument;
9007
+ selfMatchingOption: number | TransactionArgument;
9008
+ quantity: bigint | TransactionArgument;
9009
+ isBid: boolean | TransactionArgument;
9010
+ payWithDeep: boolean | TransactionArgument;
9011
+ clock: TransactionObjectInput;
9012
+ }
9013
+ /** Places a market order in the pool. */
9014
+ declare function placeMarketOrderV2(tx: Transaction, typeArgs: [string, string], args: PlaceMarketOrderV2Args): TransactionResult;
9015
+ interface PlaceReduceOnlyLimitOrderV2Args {
9016
+ registry: TransactionObjectInput;
9017
+ marginManager: TransactionObjectInput;
9018
+ pool: TransactionObjectInput;
9019
+ marginPool: TransactionObjectInput;
9020
+ baseMarginPool: TransactionObjectInput;
9021
+ quoteMarginPool: TransactionObjectInput;
9022
+ baseOracle: TransactionObjectInput;
9023
+ quoteOracle: TransactionObjectInput;
9024
+ clientOrderId: bigint | TransactionArgument;
9025
+ orderType: number | TransactionArgument;
9026
+ selfMatchingOption: number | TransactionArgument;
9027
+ price: bigint | TransactionArgument;
9028
+ quantity: bigint | TransactionArgument;
9029
+ isBid: boolean | TransactionArgument;
9030
+ payWithDeep: boolean | TransactionArgument;
9031
+ expireTimestamp: bigint | TransactionArgument;
9032
+ clock: TransactionObjectInput;
9033
+ }
9034
+ /** Places a reduce-only order in the pool. Used when margin trading is disabled. */
9035
+ declare function placeReduceOnlyLimitOrderV2(tx: Transaction, typeArgs: [string, string, string], args: PlaceReduceOnlyLimitOrderV2Args): TransactionResult;
9036
+ interface PlaceReduceOnlyMarketOrderV2Args {
9037
+ registry: TransactionObjectInput;
9038
+ marginManager: TransactionObjectInput;
9039
+ pool: TransactionObjectInput;
9040
+ marginPool: TransactionObjectInput;
9041
+ baseMarginPool: TransactionObjectInput;
9042
+ quoteMarginPool: TransactionObjectInput;
9043
+ baseOracle: TransactionObjectInput;
9044
+ quoteOracle: TransactionObjectInput;
9045
+ clientOrderId: bigint | TransactionArgument;
9046
+ selfMatchingOption: number | TransactionArgument;
9047
+ quantity: bigint | TransactionArgument;
9048
+ isBid: boolean | TransactionArgument;
9049
+ payWithDeep: boolean | TransactionArgument;
9050
+ clock: TransactionObjectInput;
9051
+ }
9052
+ /** Places a reduce-only market order in the pool. Used when margin trading is disabled. */
9053
+ declare function placeReduceOnlyMarketOrderV2(tx: Transaction, typeArgs: [string, string, string], args: PlaceReduceOnlyMarketOrderV2Args): TransactionResult;
8862
9054
  interface ModifyOrderArgs$2 {
8863
9055
  registry: TransactionObjectInput;
8864
9056
  marginManager: TransactionObjectInput;
@@ -8963,17 +9155,65 @@ interface CalculateEffectivePriceArgs {
8963
9155
  * Returns (effective_price, quote_amount) where quote_amount is quote_in for bids and quote_out for asks.
8964
9156
  */
8965
9157
  declare function calculateEffectivePrice(tx: Transaction, typeArgs: [string, string], args: CalculateEffectivePriceArgs): TransactionResult;
9158
+ interface AssertPostTradeSolventArgs {
9159
+ marginManager: TransactionObjectInput;
9160
+ registry: TransactionObjectInput;
9161
+ pool: TransactionObjectInput;
9162
+ baseMarginPool: TransactionObjectInput;
9163
+ quoteMarginPool: TransactionObjectInput;
9164
+ baseOracle: TransactionObjectInput;
9165
+ quoteOracle: TransactionObjectInput;
9166
+ clock: TransactionObjectInput;
9167
+ }
9168
+ /**
9169
+ * Asserts the manager remains above the borrow-floor risk ratio after a
9170
+ * trade. Skipped when the manager has no debt (nothing to be insolvent
9171
+ * against). Threshold reuses `min_borrow_risk_ratio` so trading cannot push
9172
+ * a manager below the level borrowing is already gated at.
9173
+ */
9174
+ declare function assertPostTradeSolvent(tx: Transaction, typeArgs: [string, string], args: AssertPostTradeSolventArgs): TransactionResult;
9175
+ interface AssertReduceOnlyMonotonicArgs {
9176
+ marginManager: TransactionObjectInput;
9177
+ registry: TransactionObjectInput;
9178
+ pool: TransactionObjectInput;
9179
+ baseMarginPool: TransactionObjectInput;
9180
+ quoteMarginPool: TransactionObjectInput;
9181
+ baseOracle: TransactionObjectInput;
9182
+ quoteOracle: TransactionObjectInput;
9183
+ clock: TransactionObjectInput;
9184
+ riskRatioBefore: bigint | TransactionArgument;
9185
+ }
9186
+ /**
9187
+ * Asserts a reduce-only fill did not worsen the manager's risk ratio.
9188
+ * Caller is responsible for ensuring the manager had debt at the entry —
9189
+ * the reduce-only quantity predicate (`base_debt > base_asset` or
9190
+ * `quote_debt > quote_asset`) already aborts the txn for no-debt managers,
9191
+ * so `risk_ratio_before` is always a real ratio by the time this fires.
9192
+ */
9193
+ declare function assertReduceOnlyMonotonic(tx: Transaction, typeArgs: [string, string], args: AssertReduceOnlyMonotonicArgs): TransactionResult;
8966
9194
 
9195
+ type poolProxy_AssertPostTradeSolventArgs = AssertPostTradeSolventArgs;
9196
+ type poolProxy_AssertReduceOnlyMonotonicArgs = AssertReduceOnlyMonotonicArgs;
8967
9197
  type poolProxy_CalculateEffectivePriceArgs = CalculateEffectivePriceArgs;
9198
+ type poolProxy_PlaceLimitOrderV2Args = PlaceLimitOrderV2Args;
9199
+ type poolProxy_PlaceMarketOrderV2Args = PlaceMarketOrderV2Args;
8968
9200
  type poolProxy_PlaceReduceOnlyLimitOrderArgs = PlaceReduceOnlyLimitOrderArgs;
9201
+ type poolProxy_PlaceReduceOnlyLimitOrderV2Args = PlaceReduceOnlyLimitOrderV2Args;
8969
9202
  type poolProxy_PlaceReduceOnlyMarketOrderArgs = PlaceReduceOnlyMarketOrderArgs;
9203
+ type poolProxy_PlaceReduceOnlyMarketOrderV2Args = PlaceReduceOnlyMarketOrderV2Args;
8970
9204
  type poolProxy_UpdateCurrentPriceArgs = UpdateCurrentPriceArgs;
9205
+ declare const poolProxy_assertPostTradeSolvent: typeof assertPostTradeSolvent;
9206
+ declare const poolProxy_assertReduceOnlyMonotonic: typeof assertReduceOnlyMonotonic;
8971
9207
  declare const poolProxy_calculateEffectivePrice: typeof calculateEffectivePrice;
9208
+ declare const poolProxy_placeLimitOrderV2: typeof placeLimitOrderV2;
9209
+ declare const poolProxy_placeMarketOrderV2: typeof placeMarketOrderV2;
8972
9210
  declare const poolProxy_placeReduceOnlyLimitOrder: typeof placeReduceOnlyLimitOrder;
9211
+ declare const poolProxy_placeReduceOnlyLimitOrderV2: typeof placeReduceOnlyLimitOrderV2;
8973
9212
  declare const poolProxy_placeReduceOnlyMarketOrder: typeof placeReduceOnlyMarketOrder;
9213
+ declare const poolProxy_placeReduceOnlyMarketOrderV2: typeof placeReduceOnlyMarketOrderV2;
8974
9214
  declare const poolProxy_updateCurrentPrice: typeof updateCurrentPrice;
8975
9215
  declare namespace poolProxy {
8976
- export { type poolProxy_CalculateEffectivePriceArgs as CalculateEffectivePriceArgs, type CancelAllOrdersArgs$1 as CancelAllOrdersArgs, type CancelOrderArgs$2 as CancelOrderArgs, type CancelOrdersArgs$1 as CancelOrdersArgs, type ClaimRebatesArgs$1 as ClaimRebatesArgs, type ModifyOrderArgs$2 as ModifyOrderArgs, type PlaceLimitOrderArgs$1 as PlaceLimitOrderArgs, type PlaceMarketOrderArgs$1 as PlaceMarketOrderArgs, type poolProxy_PlaceReduceOnlyLimitOrderArgs as PlaceReduceOnlyLimitOrderArgs, type poolProxy_PlaceReduceOnlyMarketOrderArgs as PlaceReduceOnlyMarketOrderArgs, type StakeArgs$1 as StakeArgs, type SubmitProposalArgs$1 as SubmitProposalArgs, type UnstakeArgs$1 as UnstakeArgs, type poolProxy_UpdateCurrentPriceArgs as UpdateCurrentPriceArgs, type VoteArgs$1 as VoteArgs, type WithdrawSettledAmountsArgs$2 as WithdrawSettledAmountsArgs, type WithdrawSettledAmountsPermissionlessArgs$1 as WithdrawSettledAmountsPermissionlessArgs, poolProxy_calculateEffectivePrice as calculateEffectivePrice, cancelAllOrders$1 as cancelAllOrders, cancelOrder$2 as cancelOrder, cancelOrders$1 as cancelOrders, claimRebates$2 as claimRebates, modifyOrder$2 as modifyOrder, placeLimitOrder$1 as placeLimitOrder, placeMarketOrder$1 as placeMarketOrder, poolProxy_placeReduceOnlyLimitOrder as placeReduceOnlyLimitOrder, poolProxy_placeReduceOnlyMarketOrder as placeReduceOnlyMarketOrder, stake$1 as stake, submitProposal$1 as submitProposal, unstake$1 as unstake, poolProxy_updateCurrentPrice as updateCurrentPrice, vote$1 as vote, withdrawSettledAmounts$2 as withdrawSettledAmounts, withdrawSettledAmountsPermissionless$1 as withdrawSettledAmountsPermissionless };
9216
+ export { type poolProxy_AssertPostTradeSolventArgs as AssertPostTradeSolventArgs, type poolProxy_AssertReduceOnlyMonotonicArgs as AssertReduceOnlyMonotonicArgs, type poolProxy_CalculateEffectivePriceArgs as CalculateEffectivePriceArgs, type CancelAllOrdersArgs$1 as CancelAllOrdersArgs, type CancelOrderArgs$2 as CancelOrderArgs, type CancelOrdersArgs$1 as CancelOrdersArgs, type ClaimRebatesArgs$1 as ClaimRebatesArgs, type ModifyOrderArgs$2 as ModifyOrderArgs, type PlaceLimitOrderArgs$1 as PlaceLimitOrderArgs, type poolProxy_PlaceLimitOrderV2Args as PlaceLimitOrderV2Args, type PlaceMarketOrderArgs$1 as PlaceMarketOrderArgs, type poolProxy_PlaceMarketOrderV2Args as PlaceMarketOrderV2Args, type poolProxy_PlaceReduceOnlyLimitOrderArgs as PlaceReduceOnlyLimitOrderArgs, type poolProxy_PlaceReduceOnlyLimitOrderV2Args as PlaceReduceOnlyLimitOrderV2Args, type poolProxy_PlaceReduceOnlyMarketOrderArgs as PlaceReduceOnlyMarketOrderArgs, type poolProxy_PlaceReduceOnlyMarketOrderV2Args as PlaceReduceOnlyMarketOrderV2Args, type StakeArgs$1 as StakeArgs, type SubmitProposalArgs$1 as SubmitProposalArgs, type UnstakeArgs$1 as UnstakeArgs, type poolProxy_UpdateCurrentPriceArgs as UpdateCurrentPriceArgs, type VoteArgs$1 as VoteArgs, type WithdrawSettledAmountsArgs$2 as WithdrawSettledAmountsArgs, type WithdrawSettledAmountsPermissionlessArgs$1 as WithdrawSettledAmountsPermissionlessArgs, poolProxy_assertPostTradeSolvent as assertPostTradeSolvent, poolProxy_assertReduceOnlyMonotonic as assertReduceOnlyMonotonic, poolProxy_calculateEffectivePrice as calculateEffectivePrice, cancelAllOrders$1 as cancelAllOrders, cancelOrder$2 as cancelOrder, cancelOrders$1 as cancelOrders, claimRebates$2 as claimRebates, modifyOrder$2 as modifyOrder, placeLimitOrder$1 as placeLimitOrder, poolProxy_placeLimitOrderV2 as placeLimitOrderV2, placeMarketOrder$1 as placeMarketOrder, poolProxy_placeMarketOrderV2 as placeMarketOrderV2, poolProxy_placeReduceOnlyLimitOrder as placeReduceOnlyLimitOrder, poolProxy_placeReduceOnlyLimitOrderV2 as placeReduceOnlyLimitOrderV2, poolProxy_placeReduceOnlyMarketOrder as placeReduceOnlyMarketOrder, poolProxy_placeReduceOnlyMarketOrderV2 as placeReduceOnlyMarketOrderV2, stake$1 as stake, submitProposal$1 as submitProposal, unstake$1 as unstake, poolProxy_updateCurrentPrice as updateCurrentPrice, vote$1 as vote, withdrawSettledAmounts$2 as withdrawSettledAmounts, withdrawSettledAmountsPermissionless$1 as withdrawSettledAmountsPermissionless };
8977
9217
  }
8978
9218
 
8979
9219
  /** Initialize the position manager. */
@@ -14085,6 +14325,38 @@ interface CancelOrdersArgs {
14085
14325
  * If any order fails to cancel, no orders will be cancelled.
14086
14326
  */
14087
14327
  declare function cancelOrders(tx: Transaction, typeArgs: [string, string], args: CancelOrdersArgs): TransactionResult;
14328
+ interface CancelLiveOrderArgs {
14329
+ self: TransactionObjectInput;
14330
+ balanceManager: TransactionObjectInput;
14331
+ tradeProof: TransactionObjectInput;
14332
+ orderId: bigint | TransactionArgument;
14333
+ clock: TransactionObjectInput;
14334
+ }
14335
+ /**
14336
+ * Cancel a single order, no-op if the order_id is not currently in the
14337
+ * balance_manager's open orders (e.g. already filled, cancelled, or not
14338
+ * owned by this balance_manager). If the order is present, it must be
14339
+ * owned by the balance_manager.
14340
+ * On a successful cancel the order is removed from the book and the
14341
+ * balance_manager's open orders, and an order canceled event is emitted.
14342
+ */
14343
+ declare function cancelLiveOrder(tx: Transaction, typeArgs: [string, string], args: CancelLiveOrderArgs): TransactionResult;
14344
+ interface CancelLiveOrdersArgs {
14345
+ self: TransactionObjectInput;
14346
+ balanceManager: TransactionObjectInput;
14347
+ tradeProof: TransactionObjectInput;
14348
+ orderIds: Array<bigint | TransactionArgument> | TransactionArgument;
14349
+ clock: TransactionObjectInput;
14350
+ }
14351
+ /**
14352
+ * Cancel multiple orders within a vector, skipping any order_id that is not
14353
+ * currently in the balance_manager's open orders (e.g. already filled,
14354
+ * cancelled, or not owned by this balance_manager). Orders that are present
14355
+ * must be owned by the balance_manager.
14356
+ * The live orders are removed from the book and the balance_manager's open
14357
+ * orders. Order canceled events are emitted for each cancelled order.
14358
+ */
14359
+ declare function cancelLiveOrders(tx: Transaction, typeArgs: [string, string], args: CancelLiveOrdersArgs): TransactionResult;
14088
14360
  interface CancelAllOrdersArgs {
14089
14361
  self: TransactionObjectInput;
14090
14362
  balanceManager: TransactionObjectInput;
@@ -15720,6 +15992,8 @@ type pool_BurnDeepArgs = BurnDeepArgs;
15720
15992
  type pool_CanPlaceLimitOrderArgs = CanPlaceLimitOrderArgs;
15721
15993
  type pool_CanPlaceMarketOrderArgs = CanPlaceMarketOrderArgs;
15722
15994
  type pool_CancelAllOrdersArgs = CancelAllOrdersArgs;
15995
+ type pool_CancelLiveOrderArgs = CancelLiveOrderArgs;
15996
+ type pool_CancelLiveOrdersArgs = CancelLiveOrdersArgs;
15723
15997
  type pool_CancelOrderArgs = CancelOrderArgs;
15724
15998
  type pool_CancelOrdersArgs = CancelOrdersArgs;
15725
15999
  type pool_CheckLimitOrderParamsArgs = CheckLimitOrderParamsArgs;
@@ -15833,6 +16107,8 @@ declare const pool_burnDeep: typeof burnDeep;
15833
16107
  declare const pool_canPlaceLimitOrder: typeof canPlaceLimitOrder;
15834
16108
  declare const pool_canPlaceMarketOrder: typeof canPlaceMarketOrder;
15835
16109
  declare const pool_cancelAllOrders: typeof cancelAllOrders;
16110
+ declare const pool_cancelLiveOrder: typeof cancelLiveOrder;
16111
+ declare const pool_cancelLiveOrders: typeof cancelLiveOrders;
15836
16112
  declare const pool_cancelOrder: typeof cancelOrder;
15837
16113
  declare const pool_cancelOrders: typeof cancelOrders;
15838
16114
  declare const pool_checkLimitOrderParams: typeof checkLimitOrderParams;
@@ -15910,7 +16186,7 @@ declare const pool_vote: typeof vote;
15910
16186
  declare const pool_whitelisted: typeof whitelisted;
15911
16187
  declare const pool_withdrawSettledAmountsPermissionless: typeof withdrawSettledAmountsPermissionless;
15912
16188
  declare namespace pool {
15913
- export { type AccountArgs$1 as AccountArgs, type AccountExistsArgs$1 as AccountExistsArgs, type pool_AccountOpenOrdersArgs as AccountOpenOrdersArgs, type pool_AddDeepPricePointArgs as AddDeepPricePointArgs, type pool_AdjustMinLotSizeAdminArgs as AdjustMinLotSizeAdminArgs, type pool_AdjustTickSizeAdminArgs as AdjustTickSizeAdminArgs, pool_BookParamsUpdated as BookParamsUpdated, type pool_BookParamsUpdatedFields as BookParamsUpdatedFields, type pool_BookParamsUpdatedJSON as BookParamsUpdatedJSON, type pool_BookParamsUpdatedJSONField as BookParamsUpdatedJSONField, type pool_BookParamsUpdatedReified as BookParamsUpdatedReified, type BorrowFlashloanBaseArgs$1 as BorrowFlashloanBaseArgs, type BorrowFlashloanQuoteArgs$1 as BorrowFlashloanQuoteArgs, type pool_BurnDeepArgs as BurnDeepArgs, type pool_CanPlaceLimitOrderArgs as CanPlaceLimitOrderArgs, type pool_CanPlaceMarketOrderArgs as CanPlaceMarketOrderArgs, type pool_CancelAllOrdersArgs as CancelAllOrdersArgs, type pool_CancelOrderArgs as CancelOrderArgs, type pool_CancelOrdersArgs as CancelOrdersArgs, type pool_CheckLimitOrderParamsArgs as CheckLimitOrderParamsArgs, type pool_CheckMarketOrderParamsArgs as CheckMarketOrderParamsArgs, type pool_ClaimPoolReferralRewardsArgs as ClaimPoolReferralRewardsArgs, type pool_ClaimRebatesArgs as ClaimRebatesArgs, type pool_ClaimReferralRewardsArgs as ClaimReferralRewardsArgs, type pool_CreatePermissionlessPoolArgs as CreatePermissionlessPoolArgs, type pool_CreatePoolAdminArgs as CreatePoolAdminArgs, type pool_CreatePoolArgs as CreatePoolArgs, pool_DeepBurned as DeepBurned, type pool_DeepBurnedFields as DeepBurnedFields, type pool_DeepBurnedJSON as DeepBurnedJSON, type pool_DeepBurnedJSONField as DeepBurnedJSONField, type pool_DeepBurnedReified as DeepBurnedReified, type pool_EnableEwmaStateArgs as EnableEwmaStateArgs, type pool_GetAccountOrderDetailsArgs as GetAccountOrderDetailsArgs, type pool_GetBaseQuantityInArgs as GetBaseQuantityInArgs, type pool_GetBaseQuantityOutArgs as GetBaseQuantityOutArgs, type pool_GetBaseQuantityOutInputFeeArgs as GetBaseQuantityOutInputFeeArgs, type pool_GetLevel2RangeArgs as GetLevel2RangeArgs, type pool_GetLevel2TicksFromMidArgs as GetLevel2TicksFromMidArgs, type pool_GetOrderArgs as GetOrderArgs, type pool_GetOrderDeepRequiredArgs as GetOrderDeepRequiredArgs, type pool_GetOrdersArgs as GetOrdersArgs, type pool_GetPoolReferralBalancesArgs as GetPoolReferralBalancesArgs, type pool_GetQuantityOutArgs as GetQuantityOutArgs, type pool_GetQuantityOutInputFeeArgs as GetQuantityOutInputFeeArgs, type pool_GetQuoteQuantityInArgs as GetQuoteQuantityInArgs, type pool_GetQuoteQuantityOutArgs as GetQuoteQuantityOutArgs, type pool_GetQuoteQuantityOutInputFeeArgs as GetQuoteQuantityOutInputFeeArgs, type pool_GetReferralBalancesArgs as GetReferralBalancesArgs, type pool_LockedBalanceArgs as LockedBalanceArgs, type pool_MidPriceArgs as MidPriceArgs, type pool_MintReferralArgs as MintReferralArgs, type pool_ModifyOrderArgs as ModifyOrderArgs, type pool_PlaceLimitOrderArgs as PlaceLimitOrderArgs, type pool_PlaceMarketOrderArgs as PlaceMarketOrderArgs, type pool_PlaceOrderIntArgs as PlaceOrderIntArgs, pool_Pool as Pool, pool_PoolCreated as PoolCreated, type pool_PoolCreatedFields as PoolCreatedFields, type pool_PoolCreatedJSON as PoolCreatedJSON, type pool_PoolCreatedJSONField as PoolCreatedJSONField, type pool_PoolCreatedReified as PoolCreatedReified, type pool_PoolFields as PoolFields, pool_PoolInner as PoolInner, type pool_PoolInnerFields as PoolInnerFields, type pool_PoolInnerJSON as PoolInnerJSON, type pool_PoolInnerJSONField as PoolInnerJSONField, type pool_PoolInnerReified as PoolInnerReified, type pool_PoolJSON as PoolJSON, type pool_PoolJSONField as PoolJSONField, type pool_PoolReferralMultiplierArgs as PoolReferralMultiplierArgs, type pool_PoolReified as PoolReified, type pool_ProcessReferralFeesArgs as ProcessReferralFeesArgs, pool_ReferralClaimed as ReferralClaimed, pool_ReferralClaimedEvent as ReferralClaimedEvent, type pool_ReferralClaimedEventFields as ReferralClaimedEventFields, type pool_ReferralClaimedEventJSON as ReferralClaimedEventJSON, type pool_ReferralClaimedEventJSONField as ReferralClaimedEventJSONField, type pool_ReferralClaimedEventReified as ReferralClaimedEventReified, type pool_ReferralClaimedFields as ReferralClaimedFields, type pool_ReferralClaimedJSON as ReferralClaimedJSON, type pool_ReferralClaimedJSONField as ReferralClaimedJSONField, type pool_ReferralClaimedReified as ReferralClaimedReified, pool_ReferralFeeEvent as ReferralFeeEvent, type pool_ReferralFeeEventFields as ReferralFeeEventFields, type pool_ReferralFeeEventJSON as ReferralFeeEventJSON, type pool_ReferralFeeEventJSONField as ReferralFeeEventJSONField, type pool_ReferralFeeEventReified as ReferralFeeEventReified, pool_ReferralRewards as ReferralRewards, type pool_ReferralRewardsFields as ReferralRewardsFields, type pool_ReferralRewardsJSON as ReferralRewardsJSON, type pool_ReferralRewardsJSONField as ReferralRewardsJSONField, type pool_ReferralRewardsReified as ReferralRewardsReified, type ReturnFlashloanBaseArgs$1 as ReturnFlashloanBaseArgs, type ReturnFlashloanQuoteArgs$1 as ReturnFlashloanQuoteArgs, type pool_SetEwmaParamsArgs as SetEwmaParamsArgs, type pool_StakeArgs as StakeArgs, type pool_SubmitProposalArgs as SubmitProposalArgs, type pool_SwapExactBaseForQuoteArgs as SwapExactBaseForQuoteArgs, type pool_SwapExactBaseForQuoteWithManagerArgs as SwapExactBaseForQuoteWithManagerArgs, type pool_SwapExactQuantityArgs as SwapExactQuantityArgs, type pool_SwapExactQuantityWithManagerArgs as SwapExactQuantityWithManagerArgs, type pool_SwapExactQuoteForBaseArgs as SwapExactQuoteForBaseArgs, type pool_SwapExactQuoteForBaseWithManagerArgs as SwapExactQuoteForBaseWithManagerArgs, type pool_UnregisterPoolAdminArgs as UnregisterPoolAdminArgs, type pool_UnstakeArgs as UnstakeArgs, type pool_UpdateAllowedVersionsArgs as UpdateAllowedVersionsArgs, type pool_UpdateDeepbookReferralMultiplierArgs as UpdateDeepbookReferralMultiplierArgs, type pool_UpdateEwmaStateArgs as UpdateEwmaStateArgs, type pool_UpdatePoolAllowedVersionsArgs as UpdatePoolAllowedVersionsArgs, type pool_UpdatePoolReferralMultiplierArgs as UpdatePoolReferralMultiplierArgs, type pool_UpdateReferralMultiplierArgs as UpdateReferralMultiplierArgs, type pool_VoteArgs as VoteArgs, type WithdrawSettledAmountsArgs$1 as WithdrawSettledAmountsArgs, type pool_WithdrawSettledAmountsPermissionlessArgs as WithdrawSettledAmountsPermissionlessArgs, account$1 as account, accountExists$1 as accountExists, pool_accountOpenOrders as accountOpenOrders, pool_addDeepPricePoint as addDeepPricePoint, pool_adjustMinLotSizeAdmin as adjustMinLotSizeAdmin, pool_adjustTickSizeAdmin as adjustTickSizeAdmin, pool_asks as asks, pool_bids as bids, borrowFlashloanBase$1 as borrowFlashloanBase, borrowFlashloanQuote$1 as borrowFlashloanQuote, pool_burnDeep as burnDeep, pool_canPlaceLimitOrder as canPlaceLimitOrder, pool_canPlaceMarketOrder as canPlaceMarketOrder, pool_cancelAllOrders as cancelAllOrders, pool_cancelOrder as cancelOrder, pool_cancelOrders as cancelOrders, pool_checkLimitOrderParams as checkLimitOrderParams, pool_checkMarketOrderParams as checkMarketOrderParams, pool_claimPoolReferralRewards as claimPoolReferralRewards, pool_claimRebates as claimRebates, pool_claimReferralRewards as claimReferralRewards, pool_createPermissionlessPool as createPermissionlessPool, pool_createPool as createPool, pool_createPoolAdmin as createPoolAdmin, pool_enableEwmaState as enableEwmaState, pool_getAccountOrderDetails as getAccountOrderDetails, pool_getBaseQuantityIn as getBaseQuantityIn, pool_getBaseQuantityOut as getBaseQuantityOut, pool_getBaseQuantityOutInputFee as getBaseQuantityOutInputFee, pool_getLevel2Range as getLevel2Range, pool_getLevel2TicksFromMid as getLevel2TicksFromMid, pool_getOrder as getOrder, pool_getOrderDeepPrice as getOrderDeepPrice, pool_getOrderDeepRequired as getOrderDeepRequired, pool_getOrders as getOrders, pool_getPoolIdByAsset as getPoolIdByAsset, pool_getPoolReferralBalances as getPoolReferralBalances, pool_getQuantityOut as getQuantityOut, pool_getQuantityOutInputFee as getQuantityOutInputFee, pool_getQuoteQuantityIn as getQuoteQuantityIn, pool_getQuoteQuantityOut as getQuoteQuantityOut, pool_getQuoteQuantityOutInputFee as getQuoteQuantityOutInputFee, pool_getReferralBalances as getReferralBalances, pool_id as id, pool_isBookParamsUpdated as isBookParamsUpdated, pool_isDeepBurned as isDeepBurned, pool_isPool as isPool, pool_isPoolCreated as isPoolCreated, pool_isPoolInner as isPoolInner, pool_isReferralClaimed as isReferralClaimed, pool_isReferralClaimedEvent as isReferralClaimedEvent, pool_isReferralFeeEvent as isReferralFeeEvent, pool_isReferralRewards as isReferralRewards, pool_loadEwmaState as loadEwmaState, loadInner$2 as loadInner, loadInnerMut$2 as loadInnerMut, pool_lockedBalance as lockedBalance, pool_midPrice as midPrice, pool_mintReferral as mintReferral, pool_modifyOrder as modifyOrder, pool_placeLimitOrder as placeLimitOrder, pool_placeMarketOrder as placeMarketOrder, pool_placeOrderInt as placeOrderInt, pool_poolBookParams as poolBookParams, pool_poolReferralMultiplier as poolReferralMultiplier, pool_poolTradeParams as poolTradeParams, pool_poolTradeParamsNext as poolTradeParamsNext, pool_processReferralFees as processReferralFees, pool_quorum as quorum, pool_registeredPool as registeredPool, returnFlashloanBase$1 as returnFlashloanBase, returnFlashloanQuote$1 as returnFlashloanQuote, pool_setEwmaParams as setEwmaParams, pool_stablePool as stablePool, pool_stake as stake, pool_submitProposal as submitProposal, pool_swapExactBaseForQuote as swapExactBaseForQuote, pool_swapExactBaseForQuoteWithManager as swapExactBaseForQuoteWithManager, pool_swapExactQuantity as swapExactQuantity, pool_swapExactQuantityWithManager as swapExactQuantityWithManager, pool_swapExactQuoteForBase as swapExactQuoteForBase, pool_swapExactQuoteForBaseWithManager as swapExactQuoteForBaseWithManager, pool_unregisterPoolAdmin as unregisterPoolAdmin, pool_unstake as unstake, pool_updateAllowedVersions as updateAllowedVersions, pool_updateDeepbookReferralMultiplier as updateDeepbookReferralMultiplier, pool_updateEwmaState as updateEwmaState, pool_updatePoolAllowedVersions as updatePoolAllowedVersions, pool_updatePoolReferralMultiplier as updatePoolReferralMultiplier, pool_updateReferralMultiplier as updateReferralMultiplier, pool_vaultBalances as vaultBalances, pool_vote as vote, pool_whitelisted as whitelisted, withdrawSettledAmounts$1 as withdrawSettledAmounts, pool_withdrawSettledAmountsPermissionless as withdrawSettledAmountsPermissionless };
16189
+ export { type AccountArgs$1 as AccountArgs, type AccountExistsArgs$1 as AccountExistsArgs, type pool_AccountOpenOrdersArgs as AccountOpenOrdersArgs, type pool_AddDeepPricePointArgs as AddDeepPricePointArgs, type pool_AdjustMinLotSizeAdminArgs as AdjustMinLotSizeAdminArgs, type pool_AdjustTickSizeAdminArgs as AdjustTickSizeAdminArgs, pool_BookParamsUpdated as BookParamsUpdated, type pool_BookParamsUpdatedFields as BookParamsUpdatedFields, type pool_BookParamsUpdatedJSON as BookParamsUpdatedJSON, type pool_BookParamsUpdatedJSONField as BookParamsUpdatedJSONField, type pool_BookParamsUpdatedReified as BookParamsUpdatedReified, type BorrowFlashloanBaseArgs$1 as BorrowFlashloanBaseArgs, type BorrowFlashloanQuoteArgs$1 as BorrowFlashloanQuoteArgs, type pool_BurnDeepArgs as BurnDeepArgs, type pool_CanPlaceLimitOrderArgs as CanPlaceLimitOrderArgs, type pool_CanPlaceMarketOrderArgs as CanPlaceMarketOrderArgs, type pool_CancelAllOrdersArgs as CancelAllOrdersArgs, type pool_CancelLiveOrderArgs as CancelLiveOrderArgs, type pool_CancelLiveOrdersArgs as CancelLiveOrdersArgs, type pool_CancelOrderArgs as CancelOrderArgs, type pool_CancelOrdersArgs as CancelOrdersArgs, type pool_CheckLimitOrderParamsArgs as CheckLimitOrderParamsArgs, type pool_CheckMarketOrderParamsArgs as CheckMarketOrderParamsArgs, type pool_ClaimPoolReferralRewardsArgs as ClaimPoolReferralRewardsArgs, type pool_ClaimRebatesArgs as ClaimRebatesArgs, type pool_ClaimReferralRewardsArgs as ClaimReferralRewardsArgs, type pool_CreatePermissionlessPoolArgs as CreatePermissionlessPoolArgs, type pool_CreatePoolAdminArgs as CreatePoolAdminArgs, type pool_CreatePoolArgs as CreatePoolArgs, pool_DeepBurned as DeepBurned, type pool_DeepBurnedFields as DeepBurnedFields, type pool_DeepBurnedJSON as DeepBurnedJSON, type pool_DeepBurnedJSONField as DeepBurnedJSONField, type pool_DeepBurnedReified as DeepBurnedReified, type pool_EnableEwmaStateArgs as EnableEwmaStateArgs, type pool_GetAccountOrderDetailsArgs as GetAccountOrderDetailsArgs, type pool_GetBaseQuantityInArgs as GetBaseQuantityInArgs, type pool_GetBaseQuantityOutArgs as GetBaseQuantityOutArgs, type pool_GetBaseQuantityOutInputFeeArgs as GetBaseQuantityOutInputFeeArgs, type pool_GetLevel2RangeArgs as GetLevel2RangeArgs, type pool_GetLevel2TicksFromMidArgs as GetLevel2TicksFromMidArgs, type pool_GetOrderArgs as GetOrderArgs, type pool_GetOrderDeepRequiredArgs as GetOrderDeepRequiredArgs, type pool_GetOrdersArgs as GetOrdersArgs, type pool_GetPoolReferralBalancesArgs as GetPoolReferralBalancesArgs, type pool_GetQuantityOutArgs as GetQuantityOutArgs, type pool_GetQuantityOutInputFeeArgs as GetQuantityOutInputFeeArgs, type pool_GetQuoteQuantityInArgs as GetQuoteQuantityInArgs, type pool_GetQuoteQuantityOutArgs as GetQuoteQuantityOutArgs, type pool_GetQuoteQuantityOutInputFeeArgs as GetQuoteQuantityOutInputFeeArgs, type pool_GetReferralBalancesArgs as GetReferralBalancesArgs, type pool_LockedBalanceArgs as LockedBalanceArgs, type pool_MidPriceArgs as MidPriceArgs, type pool_MintReferralArgs as MintReferralArgs, type pool_ModifyOrderArgs as ModifyOrderArgs, type pool_PlaceLimitOrderArgs as PlaceLimitOrderArgs, type pool_PlaceMarketOrderArgs as PlaceMarketOrderArgs, type pool_PlaceOrderIntArgs as PlaceOrderIntArgs, pool_Pool as Pool, pool_PoolCreated as PoolCreated, type pool_PoolCreatedFields as PoolCreatedFields, type pool_PoolCreatedJSON as PoolCreatedJSON, type pool_PoolCreatedJSONField as PoolCreatedJSONField, type pool_PoolCreatedReified as PoolCreatedReified, type pool_PoolFields as PoolFields, pool_PoolInner as PoolInner, type pool_PoolInnerFields as PoolInnerFields, type pool_PoolInnerJSON as PoolInnerJSON, type pool_PoolInnerJSONField as PoolInnerJSONField, type pool_PoolInnerReified as PoolInnerReified, type pool_PoolJSON as PoolJSON, type pool_PoolJSONField as PoolJSONField, type pool_PoolReferralMultiplierArgs as PoolReferralMultiplierArgs, type pool_PoolReified as PoolReified, type pool_ProcessReferralFeesArgs as ProcessReferralFeesArgs, pool_ReferralClaimed as ReferralClaimed, pool_ReferralClaimedEvent as ReferralClaimedEvent, type pool_ReferralClaimedEventFields as ReferralClaimedEventFields, type pool_ReferralClaimedEventJSON as ReferralClaimedEventJSON, type pool_ReferralClaimedEventJSONField as ReferralClaimedEventJSONField, type pool_ReferralClaimedEventReified as ReferralClaimedEventReified, type pool_ReferralClaimedFields as ReferralClaimedFields, type pool_ReferralClaimedJSON as ReferralClaimedJSON, type pool_ReferralClaimedJSONField as ReferralClaimedJSONField, type pool_ReferralClaimedReified as ReferralClaimedReified, pool_ReferralFeeEvent as ReferralFeeEvent, type pool_ReferralFeeEventFields as ReferralFeeEventFields, type pool_ReferralFeeEventJSON as ReferralFeeEventJSON, type pool_ReferralFeeEventJSONField as ReferralFeeEventJSONField, type pool_ReferralFeeEventReified as ReferralFeeEventReified, pool_ReferralRewards as ReferralRewards, type pool_ReferralRewardsFields as ReferralRewardsFields, type pool_ReferralRewardsJSON as ReferralRewardsJSON, type pool_ReferralRewardsJSONField as ReferralRewardsJSONField, type pool_ReferralRewardsReified as ReferralRewardsReified, type ReturnFlashloanBaseArgs$1 as ReturnFlashloanBaseArgs, type ReturnFlashloanQuoteArgs$1 as ReturnFlashloanQuoteArgs, type pool_SetEwmaParamsArgs as SetEwmaParamsArgs, type pool_StakeArgs as StakeArgs, type pool_SubmitProposalArgs as SubmitProposalArgs, type pool_SwapExactBaseForQuoteArgs as SwapExactBaseForQuoteArgs, type pool_SwapExactBaseForQuoteWithManagerArgs as SwapExactBaseForQuoteWithManagerArgs, type pool_SwapExactQuantityArgs as SwapExactQuantityArgs, type pool_SwapExactQuantityWithManagerArgs as SwapExactQuantityWithManagerArgs, type pool_SwapExactQuoteForBaseArgs as SwapExactQuoteForBaseArgs, type pool_SwapExactQuoteForBaseWithManagerArgs as SwapExactQuoteForBaseWithManagerArgs, type pool_UnregisterPoolAdminArgs as UnregisterPoolAdminArgs, type pool_UnstakeArgs as UnstakeArgs, type pool_UpdateAllowedVersionsArgs as UpdateAllowedVersionsArgs, type pool_UpdateDeepbookReferralMultiplierArgs as UpdateDeepbookReferralMultiplierArgs, type pool_UpdateEwmaStateArgs as UpdateEwmaStateArgs, type pool_UpdatePoolAllowedVersionsArgs as UpdatePoolAllowedVersionsArgs, type pool_UpdatePoolReferralMultiplierArgs as UpdatePoolReferralMultiplierArgs, type pool_UpdateReferralMultiplierArgs as UpdateReferralMultiplierArgs, type pool_VoteArgs as VoteArgs, type WithdrawSettledAmountsArgs$1 as WithdrawSettledAmountsArgs, type pool_WithdrawSettledAmountsPermissionlessArgs as WithdrawSettledAmountsPermissionlessArgs, account$1 as account, accountExists$1 as accountExists, pool_accountOpenOrders as accountOpenOrders, pool_addDeepPricePoint as addDeepPricePoint, pool_adjustMinLotSizeAdmin as adjustMinLotSizeAdmin, pool_adjustTickSizeAdmin as adjustTickSizeAdmin, pool_asks as asks, pool_bids as bids, borrowFlashloanBase$1 as borrowFlashloanBase, borrowFlashloanQuote$1 as borrowFlashloanQuote, pool_burnDeep as burnDeep, pool_canPlaceLimitOrder as canPlaceLimitOrder, pool_canPlaceMarketOrder as canPlaceMarketOrder, pool_cancelAllOrders as cancelAllOrders, pool_cancelLiveOrder as cancelLiveOrder, pool_cancelLiveOrders as cancelLiveOrders, pool_cancelOrder as cancelOrder, pool_cancelOrders as cancelOrders, pool_checkLimitOrderParams as checkLimitOrderParams, pool_checkMarketOrderParams as checkMarketOrderParams, pool_claimPoolReferralRewards as claimPoolReferralRewards, pool_claimRebates as claimRebates, pool_claimReferralRewards as claimReferralRewards, pool_createPermissionlessPool as createPermissionlessPool, pool_createPool as createPool, pool_createPoolAdmin as createPoolAdmin, pool_enableEwmaState as enableEwmaState, pool_getAccountOrderDetails as getAccountOrderDetails, pool_getBaseQuantityIn as getBaseQuantityIn, pool_getBaseQuantityOut as getBaseQuantityOut, pool_getBaseQuantityOutInputFee as getBaseQuantityOutInputFee, pool_getLevel2Range as getLevel2Range, pool_getLevel2TicksFromMid as getLevel2TicksFromMid, pool_getOrder as getOrder, pool_getOrderDeepPrice as getOrderDeepPrice, pool_getOrderDeepRequired as getOrderDeepRequired, pool_getOrders as getOrders, pool_getPoolIdByAsset as getPoolIdByAsset, pool_getPoolReferralBalances as getPoolReferralBalances, pool_getQuantityOut as getQuantityOut, pool_getQuantityOutInputFee as getQuantityOutInputFee, pool_getQuoteQuantityIn as getQuoteQuantityIn, pool_getQuoteQuantityOut as getQuoteQuantityOut, pool_getQuoteQuantityOutInputFee as getQuoteQuantityOutInputFee, pool_getReferralBalances as getReferralBalances, pool_id as id, pool_isBookParamsUpdated as isBookParamsUpdated, pool_isDeepBurned as isDeepBurned, pool_isPool as isPool, pool_isPoolCreated as isPoolCreated, pool_isPoolInner as isPoolInner, pool_isReferralClaimed as isReferralClaimed, pool_isReferralClaimedEvent as isReferralClaimedEvent, pool_isReferralFeeEvent as isReferralFeeEvent, pool_isReferralRewards as isReferralRewards, pool_loadEwmaState as loadEwmaState, loadInner$2 as loadInner, loadInnerMut$2 as loadInnerMut, pool_lockedBalance as lockedBalance, pool_midPrice as midPrice, pool_mintReferral as mintReferral, pool_modifyOrder as modifyOrder, pool_placeLimitOrder as placeLimitOrder, pool_placeMarketOrder as placeMarketOrder, pool_placeOrderInt as placeOrderInt, pool_poolBookParams as poolBookParams, pool_poolReferralMultiplier as poolReferralMultiplier, pool_poolTradeParams as poolTradeParams, pool_poolTradeParamsNext as poolTradeParamsNext, pool_processReferralFees as processReferralFees, pool_quorum as quorum, pool_registeredPool as registeredPool, returnFlashloanBase$1 as returnFlashloanBase, returnFlashloanQuote$1 as returnFlashloanQuote, pool_setEwmaParams as setEwmaParams, pool_stablePool as stablePool, pool_stake as stake, pool_submitProposal as submitProposal, pool_swapExactBaseForQuote as swapExactBaseForQuote, pool_swapExactBaseForQuoteWithManager as swapExactBaseForQuoteWithManager, pool_swapExactQuantity as swapExactQuantity, pool_swapExactQuantityWithManager as swapExactQuantityWithManager, pool_swapExactQuoteForBase as swapExactQuoteForBase, pool_swapExactQuoteForBaseWithManager as swapExactQuoteForBaseWithManager, pool_unregisterPoolAdmin as unregisterPoolAdmin, pool_unstake as unstake, pool_updateAllowedVersions as updateAllowedVersions, pool_updateDeepbookReferralMultiplier as updateDeepbookReferralMultiplier, pool_updateEwmaState as updateEwmaState, pool_updatePoolAllowedVersions as updatePoolAllowedVersions, pool_updatePoolReferralMultiplier as updatePoolReferralMultiplier, pool_updateReferralMultiplier as updateReferralMultiplier, pool_vaultBalances as vaultBalances, pool_vote as vote, pool_whitelisted as whitelisted, withdrawSettledAmounts$1 as withdrawSettledAmounts, pool_withdrawSettledAmountsPermissionless as withdrawSettledAmountsPermissionless };
15914
16190
  }
15915
16191
 
15916
16192
  interface AuthorizeAppArgs {