@mysten/deepbook-v3 1.0.4 → 1.0.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @mysten/deepbook-v3
2
2
 
3
+ ## 1.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - ad9a3a4: Price added function
8
+
9
+ ## 1.0.5
10
+
11
+ ### Patch Changes
12
+
13
+ - 65550fe: Update executeConditionalOrders for composability
14
+
3
15
  ## 1.0.4
4
16
 
5
17
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  import { CanPlaceLimitOrderParams, CanPlaceMarketOrderParams, CreatePermissionlessPoolParams, PlaceLimitOrderParams, PlaceMarketOrderParams, SwapParams, SwapWithManagerParams } from "../types/index.mjs";
2
2
  import { DeepBookConfig } from "../utils/config.mjs";
3
- import * as _mysten_sui_transactions10 from "@mysten/sui/transactions";
3
+ import * as _mysten_sui_transactions31 from "@mysten/sui/transactions";
4
4
  import { Transaction } from "@mysten/sui/transactions";
5
5
 
6
6
  //#region src/transactions/deepbook.d.ts
@@ -358,40 +358,40 @@ declare class DeepBookContract {
358
358
  * @param {string} referral The referral (DeepBookPoolReferral) to get the balances for
359
359
  * @returns A function that takes a Transaction object
360
360
  */
361
- getPoolReferralBalances: (poolKey: string, referral: string) => (tx: Transaction) => _mysten_sui_transactions10.TransactionResult;
361
+ getPoolReferralBalances: (poolKey: string, referral: string) => (tx: Transaction) => _mysten_sui_transactions31.TransactionResult;
362
362
  /**
363
363
  * @description Get the multiplier for a referral (DeepBookPoolReferral)
364
364
  * @param {string} poolKey The key to identify the pool
365
365
  * @param {string} referral The referral (DeepBookPoolReferral) to get the multiplier for
366
366
  * @returns A function that takes a Transaction object
367
367
  */
368
- poolReferralMultiplier: (poolKey: string, referral: string) => (tx: Transaction) => _mysten_sui_transactions10.TransactionResult;
368
+ poolReferralMultiplier: (poolKey: string, referral: string) => (tx: Transaction) => _mysten_sui_transactions31.TransactionResult;
369
369
  /**
370
370
  * @description Check if a pool is a stable pool
371
371
  * @param {string} poolKey The key to identify the pool
372
372
  * @returns A function that takes a Transaction object
373
373
  */
374
- stablePool: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions10.TransactionResult;
374
+ stablePool: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions31.TransactionResult;
375
375
  /**
376
376
  * @description Check if a pool is registered
377
377
  * @param {string} poolKey The key to identify the pool
378
378
  * @returns A function that takes a Transaction object
379
379
  */
380
- registeredPool: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions10.TransactionResult;
380
+ registeredPool: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions31.TransactionResult;
381
381
  /**
382
382
  * @description Get the quote quantity out for a given base quantity using input token as fee
383
383
  * @param {string} poolKey The key to identify the pool
384
384
  * @param {number} baseQuantity Base quantity to convert
385
385
  * @returns A function that takes a Transaction object
386
386
  */
387
- getQuoteQuantityOutInputFee: (poolKey: string, baseQuantity: number) => (tx: Transaction) => _mysten_sui_transactions10.TransactionResult;
387
+ getQuoteQuantityOutInputFee: (poolKey: string, baseQuantity: number) => (tx: Transaction) => _mysten_sui_transactions31.TransactionResult;
388
388
  /**
389
389
  * @description Get the base quantity out for a given quote quantity using input token as fee
390
390
  * @param {string} poolKey The key to identify the pool
391
391
  * @param {number} quoteQuantity Quote quantity to convert
392
392
  * @returns A function that takes a Transaction object
393
393
  */
394
- getBaseQuantityOutInputFee: (poolKey: string, quoteQuantity: number) => (tx: Transaction) => _mysten_sui_transactions10.TransactionResult;
394
+ getBaseQuantityOutInputFee: (poolKey: string, quoteQuantity: number) => (tx: Transaction) => _mysten_sui_transactions31.TransactionResult;
395
395
  /**
396
396
  * @description Get the quantity out for a given base or quote quantity using input token as fee
397
397
  * @param {string} poolKey The key to identify the pool
@@ -399,7 +399,7 @@ declare class DeepBookContract {
399
399
  * @param {number} quoteQuantity Quote quantity to convert
400
400
  * @returns A function that takes a Transaction object
401
401
  */
402
- getQuantityOutInputFee: (poolKey: string, baseQuantity: number, quoteQuantity: number) => (tx: Transaction) => _mysten_sui_transactions10.TransactionResult;
402
+ getQuantityOutInputFee: (poolKey: string, baseQuantity: number, quoteQuantity: number) => (tx: Transaction) => _mysten_sui_transactions31.TransactionResult;
403
403
  /**
404
404
  * @description Get the base quantity needed to receive a target quote quantity
405
405
  * @param {string} poolKey The key to identify the pool
@@ -407,7 +407,7 @@ declare class DeepBookContract {
407
407
  * @param {boolean} payWithDeep Whether to pay fees with DEEP
408
408
  * @returns A function that takes a Transaction object
409
409
  */
410
- getBaseQuantityIn: (poolKey: string, targetQuoteQuantity: number, payWithDeep: boolean) => (tx: Transaction) => _mysten_sui_transactions10.TransactionResult;
410
+ getBaseQuantityIn: (poolKey: string, targetQuoteQuantity: number, payWithDeep: boolean) => (tx: Transaction) => _mysten_sui_transactions31.TransactionResult;
411
411
  /**
412
412
  * @description Get the quote quantity needed to receive a target base quantity
413
413
  * @param {string} poolKey The key to identify the pool
@@ -415,14 +415,14 @@ declare class DeepBookContract {
415
415
  * @param {boolean} payWithDeep Whether to pay fees with DEEP
416
416
  * @returns A function that takes a Transaction object
417
417
  */
418
- getQuoteQuantityIn: (poolKey: string, targetBaseQuantity: number, payWithDeep: boolean) => (tx: Transaction) => _mysten_sui_transactions10.TransactionResult;
418
+ getQuoteQuantityIn: (poolKey: string, targetBaseQuantity: number, payWithDeep: boolean) => (tx: Transaction) => _mysten_sui_transactions31.TransactionResult;
419
419
  /**
420
420
  * @description Get account order details for a balance manager
421
421
  * @param {string} poolKey The key to identify the pool
422
422
  * @param {string} managerKey Key of the balance manager
423
423
  * @returns A function that takes a Transaction object
424
424
  */
425
- getAccountOrderDetails: (poolKey: string, managerKey: string) => (tx: Transaction) => _mysten_sui_transactions10.TransactionResult;
425
+ getAccountOrderDetails: (poolKey: string, managerKey: string) => (tx: Transaction) => _mysten_sui_transactions31.TransactionResult;
426
426
  /**
427
427
  * @description Get the DEEP required for an order
428
428
  * @param {string} poolKey The key to identify the pool
@@ -430,51 +430,51 @@ declare class DeepBookContract {
430
430
  * @param {number} price Price
431
431
  * @returns A function that takes a Transaction object
432
432
  */
433
- getOrderDeepRequired: (poolKey: string, baseQuantity: number, price: number) => (tx: Transaction) => _mysten_sui_transactions10.TransactionResult;
433
+ getOrderDeepRequired: (poolKey: string, baseQuantity: number, price: number) => (tx: Transaction) => _mysten_sui_transactions31.TransactionResult;
434
434
  /**
435
435
  * @description Check if account exists for a balance manager
436
436
  * @param {string} poolKey The key to identify the pool
437
437
  * @param {string} managerKey Key of the balance manager
438
438
  * @returns A function that takes a Transaction object
439
439
  */
440
- accountExists: (poolKey: string, managerKey: string) => (tx: Transaction) => _mysten_sui_transactions10.TransactionResult;
440
+ accountExists: (poolKey: string, managerKey: string) => (tx: Transaction) => _mysten_sui_transactions31.TransactionResult;
441
441
  /**
442
442
  * @description Get the next epoch trade parameters for a pool
443
443
  * @param {string} poolKey The key to identify the pool
444
444
  * @returns A function that takes a Transaction object
445
445
  */
446
- poolTradeParamsNext: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions10.TransactionResult;
446
+ poolTradeParamsNext: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions31.TransactionResult;
447
447
  /**
448
448
  * @description Get the quorum for a pool
449
449
  * @param {string} poolKey The key to identify the pool
450
450
  * @returns A function that takes a Transaction object
451
451
  */
452
- quorum: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions10.TransactionResult;
452
+ quorum: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions31.TransactionResult;
453
453
  /**
454
454
  * @description Get the pool ID
455
455
  * @param {string} poolKey The key to identify the pool
456
456
  * @returns A function that takes a Transaction object
457
457
  */
458
- poolId: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions10.TransactionResult;
458
+ poolId: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions31.TransactionResult;
459
459
  /**
460
460
  * @description Check if a limit order can be placed
461
461
  * @param {CanPlaceLimitOrderParams} params Parameters for checking limit order validity
462
462
  * @returns A function that takes a Transaction object
463
463
  */
464
- canPlaceLimitOrder: (params: CanPlaceLimitOrderParams) => (tx: Transaction) => _mysten_sui_transactions10.TransactionResult;
464
+ canPlaceLimitOrder: (params: CanPlaceLimitOrderParams) => (tx: Transaction) => _mysten_sui_transactions31.TransactionResult;
465
465
  /**
466
466
  * @description Check if a market order can be placed
467
467
  * @param {CanPlaceMarketOrderParams} params Parameters for checking market order validity
468
468
  * @returns A function that takes a Transaction object
469
469
  */
470
- canPlaceMarketOrder: (params: CanPlaceMarketOrderParams) => (tx: Transaction) => _mysten_sui_transactions10.TransactionResult;
470
+ canPlaceMarketOrder: (params: CanPlaceMarketOrderParams) => (tx: Transaction) => _mysten_sui_transactions31.TransactionResult;
471
471
  /**
472
472
  * @description Check if market order params are valid
473
473
  * @param {string} poolKey The key to identify the pool
474
474
  * @param {number} quantity Quantity
475
475
  * @returns A function that takes a Transaction object
476
476
  */
477
- checkMarketOrderParams: (poolKey: string, quantity: number) => (tx: Transaction) => _mysten_sui_transactions10.TransactionResult;
477
+ checkMarketOrderParams: (poolKey: string, quantity: number) => (tx: Transaction) => _mysten_sui_transactions31.TransactionResult;
478
478
  /**
479
479
  * @description Check if limit order params are valid
480
480
  * @param {string} poolKey The key to identify the pool
@@ -483,7 +483,7 @@ declare class DeepBookContract {
483
483
  * @param {number} expireTimestamp Expiration timestamp
484
484
  * @returns A function that takes a Transaction object
485
485
  */
486
- checkLimitOrderParams: (poolKey: string, price: number, quantity: number, expireTimestamp: number) => (tx: Transaction) => _mysten_sui_transactions10.TransactionResult;
486
+ checkLimitOrderParams: (poolKey: string, price: number, quantity: number, expireTimestamp: number) => (tx: Transaction) => _mysten_sui_transactions31.TransactionResult;
487
487
  }
488
488
  //#endregion
489
489
  export { DeepBookContract };
@@ -1,6 +1,6 @@
1
1
  import { CreatePoolAdminParams, SetEwmaParams } from "../types/index.mjs";
2
2
  import { DeepBookConfig } from "../utils/config.mjs";
3
- import * as _mysten_sui_transactions29 from "@mysten/sui/transactions";
3
+ import * as _mysten_sui_transactions58 from "@mysten/sui/transactions";
4
4
  import { Transaction } from "@mysten/sui/transactions";
5
5
 
6
6
  //#region src/transactions/deepbookAdmin.d.ts
@@ -104,7 +104,7 @@ declare class DeepBookAdminContract {
104
104
  * @description Deauthorize the MarginApp by removing its authorization key
105
105
  * @returns A function that takes a Transaction object and returns a bool
106
106
  */
107
- deauthorizeMarginApp: () => (tx: Transaction) => _mysten_sui_transactions29.TransactionResult;
107
+ deauthorizeMarginApp: () => (tx: Transaction) => _mysten_sui_transactions58.TransactionResult;
108
108
  }
109
109
  //#endregion
110
110
  export { DeepBookAdminContract };
@@ -1,6 +1,6 @@
1
1
  import { PoolConfigParams } from "../types/index.mjs";
2
2
  import { DeepBookConfig } from "../utils/config.mjs";
3
- import * as _mysten_sui_transactions30 from "@mysten/sui/transactions";
3
+ import * as _mysten_sui_transactions59 from "@mysten/sui/transactions";
4
4
  import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
5
5
 
6
6
  //#region src/transactions/marginAdmin.d.ts
@@ -18,7 +18,7 @@ declare class MarginAdminContract {
18
18
  * @description Mint a maintainer cap
19
19
  * @returns A function that takes a Transaction object
20
20
  */
21
- mintMaintainerCap: () => (tx: Transaction) => _mysten_sui_transactions30.TransactionResult;
21
+ mintMaintainerCap: () => (tx: Transaction) => _mysten_sui_transactions59.TransactionResult;
22
22
  /**
23
23
  * @description Revoke a maintainer cap
24
24
  * @returns A function that takes a Transaction object
@@ -81,7 +81,7 @@ declare class MarginAdminContract {
81
81
  * @param {PoolConfigParams} poolConfigParams The parameters for the pool config
82
82
  * @returns A function that takes a Transaction object
83
83
  */
84
- newPoolConfig: (poolKey: string, poolConfigParams: PoolConfigParams) => (tx: Transaction) => _mysten_sui_transactions30.TransactionResult;
84
+ newPoolConfig: (poolKey: string, poolConfigParams: PoolConfigParams) => (tx: Transaction) => _mysten_sui_transactions59.TransactionResult;
85
85
  /**
86
86
  * @description Create a new pool config with leverage
87
87
  * @param {string} poolKey The key to identify the pool
@@ -96,7 +96,7 @@ declare class MarginAdminContract {
96
96
  * @param {number} maxEwmaDifferenceBps The maximum EWMA difference in basis points
97
97
  * @returns A function that takes a Transaction object
98
98
  */
99
- newCoinTypeData: (coinKey: string, maxConfBps: number, maxEwmaDifferenceBps: number) => (tx: Transaction) => _mysten_sui_transactions30.TransactionResult;
99
+ newCoinTypeData: (coinKey: string, maxConfBps: number, maxEwmaDifferenceBps: number) => (tx: Transaction) => _mysten_sui_transactions59.TransactionResult;
100
100
  /**
101
101
  * @description Create a new Pyth config
102
102
  * @param {Array<{coinKey: string, maxConfBps: number, maxEwmaDifferenceBps: number}>} coinSetups The coins with their oracle config to be added to the Pyth config
@@ -107,12 +107,12 @@ declare class MarginAdminContract {
107
107
  coinKey: string;
108
108
  maxConfBps: number;
109
109
  maxEwmaDifferenceBps: number;
110
- }>, maxAgeSeconds: number) => (tx: Transaction) => _mysten_sui_transactions30.TransactionResult;
110
+ }>, maxAgeSeconds: number) => (tx: Transaction) => _mysten_sui_transactions59.TransactionResult;
111
111
  /**
112
112
  * @description Mint a pause cap
113
113
  * @returns A function that takes a Transaction object
114
114
  */
115
- mintPauseCap: () => (tx: Transaction) => _mysten_sui_transactions30.TransactionResult;
115
+ mintPauseCap: () => (tx: Transaction) => _mysten_sui_transactions59.TransactionResult;
116
116
  /**
117
117
  * @description Revoke a pause cap
118
118
  * @param {string} pauseCapId The ID of the pause cap to revoke
@@ -132,7 +132,7 @@ declare class MarginAdminContract {
132
132
  * @param {string} coinKey The key to identify the margin pool
133
133
  * @returns A function that takes a Transaction object and returns a Coin<Asset>
134
134
  */
135
- adminWithdrawDefaultReferralFees: (coinKey: string) => (tx: Transaction) => _mysten_sui_transactions30.TransactionResult;
135
+ adminWithdrawDefaultReferralFees: (coinKey: string) => (tx: Transaction) => _mysten_sui_transactions59.TransactionResult;
136
136
  }
137
137
  //#endregion
138
138
  export { MarginAdminContract };
@@ -1,5 +1,5 @@
1
1
  import { DeepBookConfig } from "../utils/config.mjs";
2
- import * as _mysten_sui_transactions92 from "@mysten/sui/transactions";
2
+ import * as _mysten_sui_transactions128 from "@mysten/sui/transactions";
3
3
  import { Transaction } from "@mysten/sui/transactions";
4
4
 
5
5
  //#region src/transactions/marginLiquidations.d.ts
@@ -35,7 +35,7 @@ declare class MarginLiquidationsContract {
35
35
  * @param {number} amount The amount to withdraw
36
36
  * @returns A function that takes a Transaction object and returns the withdrawn coin
37
37
  */
38
- withdraw: (vaultId: string, liquidationAdminCap: string, coinKey: string, amount: number) => (tx: Transaction) => _mysten_sui_transactions92.TransactionResult;
38
+ withdraw: (vaultId: string, liquidationAdminCap: string, coinKey: string, amount: number) => (tx: Transaction) => _mysten_sui_transactions128.TransactionResult;
39
39
  /**
40
40
  * @description Liquidate a margin manager by repaying base debt
41
41
  * @param {string} vaultId The liquidation vault object ID
@@ -60,7 +60,7 @@ declare class MarginLiquidationsContract {
60
60
  * @param {string} coinKey The key to identify the coin type
61
61
  * @returns A function that takes a Transaction object
62
62
  */
63
- balance: (vaultId: string, coinKey: string) => (tx: Transaction) => _mysten_sui_transactions92.TransactionResult;
63
+ balance: (vaultId: string, coinKey: string) => (tx: Transaction) => _mysten_sui_transactions128.TransactionResult;
64
64
  }
65
65
  //#endregion
66
66
  export { MarginLiquidationsContract };
@@ -1 +1 @@
1
- {"version":3,"file":"marginLiquidations.d.mts","names":[],"sources":["../../src/transactions/marginLiquidations.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAUa,cAAA,0BAAA,CAA0B;EAMlB,CAAA,OAAA;EAS2C;;;EAwC9C,WAAA,CAAA,MAAA,EAjDG,cAiDH;EAuBX;;;;;gEA/DyD;;;;;;;;;mGAiBzD;;;;;;;;;oGAuBA,gBAAW,0BAAA,CAAA;;;;;;;;;0GAuBX;;;;;;;;;2GAwCA;;;;;;;sDAsC+C,gBAAW,0BAAA,CAAA"}
1
+ {"version":3,"file":"marginLiquidations.d.mts","names":[],"sources":["../../src/transactions/marginLiquidations.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAUa,cAAA,0BAAA,CAA0B;EAMlB,CAAA,OAAA;EAS2C;;;EAwC9C,WAAA,CAAA,MAAA,EAjDG,cAiDH;EAuBX;;;;;gEA/DyD;;;;;;;;;mGAiBzD;;;;;;;;;oGAuBA,gBAAW,2BAAA,CAAA;;;;;;;;;0GAuBX;;;;;;;;;2GAwCA;;;;;;;sDAsC+C,gBAAW,2BAAA,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { InterestConfigParams, MarginPoolConfigParams } from "../types/index.mjs";
2
2
  import { DeepBookConfig } from "../utils/config.mjs";
3
- import * as _mysten_sui_transactions36 from "@mysten/sui/transactions";
3
+ import * as _mysten_sui_transactions65 from "@mysten/sui/transactions";
4
4
  import { Transaction, TransactionArgument, TransactionObjectArgument } from "@mysten/sui/transactions";
5
5
 
6
6
  //#region src/transactions/marginMaintainer.d.ts
@@ -27,27 +27,27 @@ declare class MarginMaintainerContract {
27
27
  * @param {InterestConfigParams} interestConfig The configuration for the interest
28
28
  * @returns A function that takes a Transaction object
29
29
  */
30
- newProtocolConfig: (coinKey: string, marginPoolConfig: MarginPoolConfigParams, interestConfig: InterestConfigParams) => (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
30
+ newProtocolConfig: (coinKey: string, marginPoolConfig: MarginPoolConfigParams, interestConfig: InterestConfigParams) => (tx: Transaction) => _mysten_sui_transactions65.TransactionResult;
31
31
  /**
32
32
  * @description Create a new margin pool config
33
33
  * @param {string} coinKey The key to identify the coin
34
34
  * @param {MarginPoolConfigParams} marginPoolConfig The configuration for the margin pool
35
35
  * @returns A function that takes a Transaction object
36
36
  */
37
- newMarginPoolConfig: (coinKey: string, marginPoolConfig: MarginPoolConfigParams) => (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
37
+ newMarginPoolConfig: (coinKey: string, marginPoolConfig: MarginPoolConfigParams) => (tx: Transaction) => _mysten_sui_transactions65.TransactionResult;
38
38
  /**
39
39
  * @description Create a new margin pool config with rate limit
40
40
  * @param {string} coinKey The key to identify the coin
41
41
  * @param {MarginPoolConfigParams} marginPoolConfig The configuration for the margin pool with rate limit
42
42
  * @returns A function that takes a Transaction object
43
43
  */
44
- newMarginPoolConfigWithRateLimit: (coinKey: string, marginPoolConfig: Required<Pick<MarginPoolConfigParams, "rateLimitCapacity" | "rateLimitRefillRatePerMs" | "rateLimitEnabled">> & MarginPoolConfigParams) => (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
44
+ newMarginPoolConfigWithRateLimit: (coinKey: string, marginPoolConfig: Required<Pick<MarginPoolConfigParams, "rateLimitCapacity" | "rateLimitRefillRatePerMs" | "rateLimitEnabled">> & MarginPoolConfigParams) => (tx: Transaction) => _mysten_sui_transactions65.TransactionResult;
45
45
  /**
46
46
  * @description Create a new interest config
47
47
  * @param {InterestConfigParams} interestConfig The configuration for the interest
48
48
  * @returns A function that takes a Transaction object
49
49
  */
50
- newInterestConfig: (interestConfig: InterestConfigParams) => (tx: Transaction) => _mysten_sui_transactions36.TransactionResult;
50
+ newInterestConfig: (interestConfig: InterestConfigParams) => (tx: Transaction) => _mysten_sui_transactions65.TransactionResult;
51
51
  /**
52
52
  * @description Enable a deepbook pool for loan
53
53
  * @param {string} deepbookPoolKey The key to identify the deepbook pool
@@ -1,6 +1,6 @@
1
1
  import { DepositDuringInitParams, DepositParams } from "../types/index.mjs";
2
2
  import { DeepBookConfig } from "../utils/config.mjs";
3
- import * as _mysten_sui_transactions40 from "@mysten/sui/transactions";
3
+ import * as _mysten_sui_transactions69 from "@mysten/sui/transactions";
4
4
  import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
5
5
 
6
6
  //#region src/transactions/marginManager.d.ts
@@ -73,49 +73,49 @@ declare class MarginManagerContract {
73
73
  * @param {number} amount The amount to withdraw
74
74
  * @returns A function that takes a Transaction object
75
75
  */
76
- withdrawBase: (managerKey: string, amount: number) => (tx: Transaction) => _mysten_sui_transactions40.TransactionResult;
76
+ withdrawBase: (managerKey: string, amount: number) => (tx: Transaction) => _mysten_sui_transactions69.TransactionResult;
77
77
  /**
78
78
  * @description Withdraw quote from a margin manager
79
79
  * @param {string} managerKey The key to identify the manager
80
80
  * @param {number} amount The amount to withdraw
81
81
  * @returns A function that takes a Transaction object
82
82
  */
83
- withdrawQuote: (managerKey: string, amount: number) => (tx: Transaction) => _mysten_sui_transactions40.TransactionResult;
83
+ withdrawQuote: (managerKey: string, amount: number) => (tx: Transaction) => _mysten_sui_transactions69.TransactionResult;
84
84
  /**
85
85
  * @description Withdraw deep from a margin manager
86
86
  * @param {string} managerKey The key to identify the manager
87
87
  * @param {number} amount The amount to withdraw
88
88
  * @returns A function that takes a Transaction object
89
89
  */
90
- withdrawDeep: (managerKey: string, amount: number) => (tx: Transaction) => _mysten_sui_transactions40.TransactionResult;
90
+ withdrawDeep: (managerKey: string, amount: number) => (tx: Transaction) => _mysten_sui_transactions69.TransactionResult;
91
91
  /**
92
92
  * @description Borrow base from a margin manager
93
93
  * @param {string} managerKey The key to identify the manager
94
94
  * @param {number} amount The amount to borrow
95
95
  * @returns A function that takes a Transaction object
96
96
  */
97
- borrowBase: (managerKey: string, amount: number) => (tx: Transaction) => _mysten_sui_transactions40.TransactionResult;
97
+ borrowBase: (managerKey: string, amount: number) => (tx: Transaction) => _mysten_sui_transactions69.TransactionResult;
98
98
  /**
99
99
  * @description Borrow quote from a margin manager
100
100
  * @param {string} managerKey The key to identify the manager
101
101
  * @param {number} amount The amount to borrow
102
102
  * @returns A function that takes a Transaction object
103
103
  */
104
- borrowQuote: (managerKey: string, amount: number) => (tx: Transaction) => _mysten_sui_transactions40.TransactionResult;
104
+ borrowQuote: (managerKey: string, amount: number) => (tx: Transaction) => _mysten_sui_transactions69.TransactionResult;
105
105
  /**
106
106
  * @description Repay base from a margin manager
107
107
  * @param {string} managerKey The key to identify the manager
108
108
  * @param {number} amount The amount to repay
109
109
  * @returns A function that takes a Transaction object
110
110
  */
111
- repayBase: (managerKey: string, amount?: number) => (tx: Transaction) => _mysten_sui_transactions40.TransactionResult;
111
+ repayBase: (managerKey: string, amount?: number) => (tx: Transaction) => _mysten_sui_transactions69.TransactionResult;
112
112
  /**
113
113
  * @description Repay quote from a margin manager
114
114
  * @param {string} managerKey The key to identify the manager
115
115
  * @param {number} amount The amount to repay
116
116
  * @returns A function that takes a Transaction object
117
117
  */
118
- repayQuote: (managerKey: string, amount?: number) => (tx: Transaction) => _mysten_sui_transactions40.TransactionResult;
118
+ repayQuote: (managerKey: string, amount?: number) => (tx: Transaction) => _mysten_sui_transactions69.TransactionResult;
119
119
  /**
120
120
  * @description Liquidate a margin manager
121
121
  * @param {string} managerAddress The address of the manager to liquidate
@@ -124,7 +124,7 @@ declare class MarginManagerContract {
124
124
  * @param {TransactionArgument} repayCoin The coin to repay
125
125
  * @returns A function that takes a Transaction object
126
126
  */
127
- liquidate: (managerAddress: string, poolKey: string, debtIsBase: boolean, repayCoin: TransactionArgument) => (tx: Transaction) => _mysten_sui_transactions40.TransactionResult;
127
+ liquidate: (managerAddress: string, poolKey: string, debtIsBase: boolean, repayCoin: TransactionArgument) => (tx: Transaction) => _mysten_sui_transactions69.TransactionResult;
128
128
  /**
129
129
  * @description Set the referral for a margin manager (DeepBookPoolReferral)
130
130
  * @param {string} managerKey The key to identify the margin manager
@@ -145,63 +145,63 @@ declare class MarginManagerContract {
145
145
  * @param {string} marginManagerId The ID of the margin manager
146
146
  * @returns A function that takes a Transaction object
147
147
  */
148
- ownerByPoolKey: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions40.TransactionResult;
148
+ ownerByPoolKey: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions69.TransactionResult;
149
149
  /**
150
150
  * @description Get the DeepBook pool ID associated with a margin manager
151
151
  * @param {string} poolKey The key to identify the pool
152
152
  * @param {string} marginManagerId The ID of the margin manager
153
153
  * @returns A function that takes a Transaction object
154
154
  */
155
- deepbookPool: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions40.TransactionResult;
155
+ deepbookPool: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions69.TransactionResult;
156
156
  /**
157
157
  * @description Get the margin pool ID (if any) associated with a margin manager
158
158
  * @param {string} poolKey The key to identify the pool
159
159
  * @param {string} marginManagerId The ID of the margin manager
160
160
  * @returns A function that takes a Transaction object
161
161
  */
162
- marginPoolId: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions40.TransactionResult;
162
+ marginPoolId: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions69.TransactionResult;
163
163
  /**
164
164
  * @description Get borrowed shares for both base and quote assets
165
165
  * @param {string} poolKey The key to identify the pool
166
166
  * @param {string} marginManagerId The ID of the margin manager
167
167
  * @returns A function that takes a Transaction object
168
168
  */
169
- borrowedShares: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions40.TransactionResult;
169
+ borrowedShares: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions69.TransactionResult;
170
170
  /**
171
171
  * @description Get borrowed base shares
172
172
  * @param {string} poolKey The key to identify the pool
173
173
  * @param {string} marginManagerId The ID of the margin manager
174
174
  * @returns A function that takes a Transaction object
175
175
  */
176
- borrowedBaseShares: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions40.TransactionResult;
176
+ borrowedBaseShares: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions69.TransactionResult;
177
177
  /**
178
178
  * @description Get borrowed quote shares
179
179
  * @param {string} poolKey The key to identify the pool
180
180
  * @param {string} marginManagerId The ID of the margin manager
181
181
  * @returns A function that takes a Transaction object
182
182
  */
183
- borrowedQuoteShares: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions40.TransactionResult;
183
+ borrowedQuoteShares: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions69.TransactionResult;
184
184
  /**
185
185
  * @description Check if margin manager has base asset debt
186
186
  * @param {string} poolKey The key to identify the pool
187
187
  * @param {string} marginManagerId The ID of the margin manager
188
188
  * @returns A function that takes a Transaction object
189
189
  */
190
- hasBaseDebt: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions40.TransactionResult;
190
+ hasBaseDebt: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions69.TransactionResult;
191
191
  /**
192
192
  * @description Get the balance manager ID for a margin manager
193
193
  * @param {string} poolKey The key to identify the pool
194
194
  * @param {string} marginManagerId The ID of the margin manager
195
195
  * @returns A function that takes a Transaction object
196
196
  */
197
- balanceManager: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions40.TransactionResult;
197
+ balanceManager: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions69.TransactionResult;
198
198
  /**
199
199
  * @description Calculate assets (base and quote) for a margin manager
200
200
  * @param {string} poolKey The key to identify the pool
201
201
  * @param {string} marginManagerId The ID of the margin manager
202
202
  * @returns A function that takes a Transaction object
203
203
  */
204
- calculateAssets: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions40.TransactionResult;
204
+ calculateAssets: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions69.TransactionResult;
205
205
  /**
206
206
  * @description Calculate debts (base and quote) for a margin manager
207
207
  * @param {string} poolKey The key to identify the pool
@@ -209,7 +209,7 @@ declare class MarginManagerContract {
209
209
  * @param {string} marginManagerId The ID of the margin manager
210
210
  * @returns A function that takes a Transaction object
211
211
  */
212
- calculateDebts: (poolKey: string, coinKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions40.TransactionResult;
212
+ calculateDebts: (poolKey: string, coinKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions69.TransactionResult;
213
213
  /**
214
214
  * @description Get comprehensive state information for a margin manager
215
215
  * @param {string} poolKey The key to identify the pool
@@ -219,28 +219,28 @@ declare class MarginManagerContract {
219
219
  * base_debt, quote_debt, base_pyth_price, base_pyth_decimals,
220
220
  * quote_pyth_price, quote_pyth_decimals)
221
221
  */
222
- managerState: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions40.TransactionResult;
222
+ managerState: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions69.TransactionResult;
223
223
  /**
224
224
  * @description Get the base asset balance of a margin manager
225
225
  * @param {string} poolKey The key to identify the pool
226
226
  * @param {string} marginManagerId The ID of the margin manager
227
227
  * @returns A function that takes a Transaction object
228
228
  */
229
- baseBalance: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions40.TransactionResult;
229
+ baseBalance: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions69.TransactionResult;
230
230
  /**
231
231
  * @description Get the quote asset balance of a margin manager
232
232
  * @param {string} poolKey The key to identify the pool
233
233
  * @param {string} marginManagerId The ID of the margin manager
234
234
  * @returns A function that takes a Transaction object
235
235
  */
236
- quoteBalance: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions40.TransactionResult;
236
+ quoteBalance: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions69.TransactionResult;
237
237
  /**
238
238
  * @description Get the DEEP token balance of a margin manager
239
239
  * @param {string} poolKey The key to identify the pool
240
240
  * @param {string} marginManagerId The ID of the margin manager
241
241
  * @returns A function that takes a Transaction object
242
242
  */
243
- deepBalance: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions40.TransactionResult;
243
+ deepBalance: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions69.TransactionResult;
244
244
  /**
245
245
  * @description Get account order details for a margin manager.
246
246
  * This retrieves the balance manager from the margin manager and calls get_account_order_details.
@@ -248,7 +248,7 @@ declare class MarginManagerContract {
248
248
  * @param {string} marginManagerId The ID of the margin manager
249
249
  * @returns A function that takes a Transaction object
250
250
  */
251
- getMarginAccountOrderDetails: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions40.TransactionResult;
251
+ getMarginAccountOrderDetails: (poolKey: string, marginManagerId: string) => (tx: Transaction) => _mysten_sui_transactions69.TransactionResult;
252
252
  }
253
253
  //#endregion
254
254
  export { MarginManagerContract };