@mysten/deepbook-v3 1.3.3 → 1.3.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,33 @@
1
1
  # @mysten/deepbook-v3
2
2
 
3
+ ## 1.3.6
4
+
5
+ ### Patch Changes
6
+
7
+ - f7de3e5: Restore docs in published tarballs.
8
+ - Updated dependencies [f7de3e5]
9
+ - @mysten/bcs@2.0.5
10
+ - @mysten/sui@2.16.2
11
+
12
+ ## 1.3.5
13
+
14
+ ### Patch Changes
15
+
16
+ - 9e067cf: Validate the new per-package release flow end-to-end across every public @mysten package.
17
+ No functional changes — empty patch bump to force the orchestrator to dispatch every
18
+ release-<pkg>.yml workflow with `dry_run=false` so each package publishes via OIDC trusted
19
+ publishing.
20
+ - Updated dependencies [9e067cf]
21
+ - @mysten/bcs@2.0.4
22
+ - @mysten/sui@2.16.1
23
+
24
+ ## 1.3.4
25
+
26
+ ### Patch Changes
27
+
28
+ - 75a32c1: Bump `axios` to `^1.16.0` to address security advisories (CVE-2025-62718 and related
29
+ prototype pollution issues).
30
+
3
31
  ## 1.3.3
4
32
 
5
33
  ### Patch Changes
@@ -1,11 +1,11 @@
1
1
  import { MoveStruct } from "../utils/index.mjs";
2
- import * as _mysten_sui_bcs19 from "@mysten/sui/bcs";
2
+ import * as _mysten_sui_bcs51 from "@mysten/sui/bcs";
3
3
  import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
4
4
 
5
5
  //#region src/contracts/deepbook/deep_price.d.ts
6
6
  declare const OrderDeepPrice: MoveStruct<{
7
- asset_is_base: _mysten_sui_bcs19.BcsType<boolean, boolean, "bool">;
8
- deep_per_asset: _mysten_sui_bcs19.BcsType<string, string | number | bigint, "u64">;
7
+ asset_is_base: _mysten_sui_bcs51.BcsType<boolean, boolean, "bool">;
8
+ deep_per_asset: _mysten_sui_bcs51.BcsType<string, string | number | bigint, "u64">;
9
9
  }, "@deepbook/core::deep_price::OrderDeepPrice">;
10
10
  //#endregion
11
11
  export { OrderDeepPrice };
@@ -1,22 +1,22 @@
1
1
  import { MoveStruct } from "../utils/index.mjs";
2
- import * as _mysten_sui_bcs32 from "@mysten/sui/bcs";
2
+ import * as _mysten_sui_bcs19 from "@mysten/sui/bcs";
3
3
  import { Transaction, TransactionArgument } from "@mysten/sui/transactions";
4
4
 
5
5
  //#region src/contracts/deepbook/order.d.ts
6
6
  declare const Order: MoveStruct<{
7
- balance_manager_id: _mysten_sui_bcs32.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
8
- order_id: _mysten_sui_bcs32.BcsType<string, string | number | bigint, "u128">;
9
- client_order_id: _mysten_sui_bcs32.BcsType<string, string | number | bigint, "u64">;
10
- quantity: _mysten_sui_bcs32.BcsType<string, string | number | bigint, "u64">;
11
- filled_quantity: _mysten_sui_bcs32.BcsType<string, string | number | bigint, "u64">;
12
- fee_is_deep: _mysten_sui_bcs32.BcsType<boolean, boolean, "bool">;
7
+ balance_manager_id: _mysten_sui_bcs19.BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
8
+ order_id: _mysten_sui_bcs19.BcsType<string, string | number | bigint, "u128">;
9
+ client_order_id: _mysten_sui_bcs19.BcsType<string, string | number | bigint, "u64">;
10
+ quantity: _mysten_sui_bcs19.BcsType<string, string | number | bigint, "u64">;
11
+ filled_quantity: _mysten_sui_bcs19.BcsType<string, string | number | bigint, "u64">;
12
+ fee_is_deep: _mysten_sui_bcs19.BcsType<boolean, boolean, "bool">;
13
13
  order_deep_price: MoveStruct<{
14
- asset_is_base: _mysten_sui_bcs32.BcsType<boolean, boolean, "bool">;
15
- deep_per_asset: _mysten_sui_bcs32.BcsType<string, string | number | bigint, "u64">;
14
+ asset_is_base: _mysten_sui_bcs19.BcsType<boolean, boolean, "bool">;
15
+ deep_per_asset: _mysten_sui_bcs19.BcsType<string, string | number | bigint, "u64">;
16
16
  }, "@deepbook/core::deep_price::OrderDeepPrice">;
17
- epoch: _mysten_sui_bcs32.BcsType<string, string | number | bigint, "u64">;
18
- status: _mysten_sui_bcs32.BcsType<number, number, "u8">;
19
- expire_timestamp: _mysten_sui_bcs32.BcsType<string, string | number | bigint, "u64">;
17
+ epoch: _mysten_sui_bcs19.BcsType<string, string | number | bigint, "u64">;
18
+ status: _mysten_sui_bcs19.BcsType<number, number, "u8">;
19
+ expire_timestamp: _mysten_sui_bcs19.BcsType<string, string | number | bigint, "u64">;
20
20
  }, "@deepbook/core::order::Order">;
21
21
  //#endregion
22
22
  export { Order };
@@ -1,5 +1,5 @@
1
1
  import { DeepBookConfig } from "../utils/config.mjs";
2
- import * as _mysten_sui_transactions91 from "@mysten/sui/transactions";
2
+ import * as _mysten_sui_transactions105 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_transactions91.TransactionResult;
38
+ withdraw: (vaultId: string, liquidationAdminCap: string, coinKey: string, amount: number) => (tx: Transaction) => _mysten_sui_transactions105.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_transactions91.TransactionResult;
63
+ balance: (vaultId: string, coinKey: string) => (tx: Transaction) => _mysten_sui_transactions105.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"],"mappings":";;;;;;;;cAWa,0BAAA;EAAA;;;;cAMA,MAAA,EAAQ,cAAA;EAiDd;;;;;EAxCN,sBAAA,GAA0B,mBAAA,cAAiC,EAAA,EAAI,WAAA;EA6IC;;;;;;;;EA9HhE,OAAA,GACE,OAAA,UAAiB,mBAAA,UAA6B,OAAA,UAAiB,MAAA,cAC/D,EAAA,EAAI,WAAA;EAjBqD;;;;;;;;EAsC3D,QAAA,GACE,OAAA,UAAiB,mBAAA,UAA6B,OAAA,UAAiB,MAAA,cAC/D,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA;EADf;;;;;;;;EAsBF,aAAA,GACE,OAAA,UAAiB,cAAA,UAAwB,OAAA,UAAiB,WAAA,eAC1D,EAAA,EAAI,WAAA;EADa;;;;;;;;EAuCnB,cAAA,GACE,OAAA,UAAiB,cAAA,UAAwB,OAAA,UAAiB,WAAA,eAC1D,EAAA,EAAI,WAAA;EADsD;;;;;;EAuC5D,OAAA,GAAW,OAAA,UAAiB,OAAA,cAAqB,EAAA,EAAI,WAAA,KAAW,0BAAA,CAAA,iBAAA;AAAA"}
1
+ {"version":3,"file":"marginLiquidations.d.mts","names":[],"sources":["../../src/transactions/marginLiquidations.ts"],"mappings":";;;;;;;;cAWa,0BAAA;EAAA;;;;cAMA,MAAA,EAAQ,cAAA;EAiDd;;;;;EAxCN,sBAAA,GAA0B,mBAAA,cAAiC,EAAA,EAAI,WAAA;EA6IC;;;;;;;;EA9HhE,OAAA,GACE,OAAA,UAAiB,mBAAA,UAA6B,OAAA,UAAiB,MAAA,cAC/D,EAAA,EAAI,WAAA;EAjBqD;;;;;;;;EAsC3D,QAAA,GACE,OAAA,UAAiB,mBAAA,UAA6B,OAAA,UAAiB,MAAA,cAC/D,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA;EADf;;;;;;;;EAsBF,aAAA,GACE,OAAA,UAAiB,cAAA,UAAwB,OAAA,UAAiB,WAAA,eAC1D,EAAA,EAAI,WAAA;EADa;;;;;;;;EAuCnB,cAAA,GACE,OAAA,UAAiB,cAAA,UAAwB,OAAA,UAAiB,WAAA,eAC1D,EAAA,EAAI,WAAA;EADsD;;;;;;EAuC5D,OAAA,GAAW,OAAA,UAAiB,OAAA,cAAqB,EAAA,EAAI,WAAA,KAAW,2BAAA,CAAA,iBAAA;AAAA"}
@@ -1,5 +1,5 @@
1
1
  import { DeepBookConfig } from "../utils/config.mjs";
2
- import * as _mysten_sui_transactions93 from "@mysten/sui/transactions";
2
+ import * as _mysten_sui_transactions91 from "@mysten/sui/transactions";
3
3
  import { Transaction } from "@mysten/sui/transactions";
4
4
 
5
5
  //#region src/transactions/marginRegistry.d.ts
@@ -17,83 +17,83 @@ declare class MarginRegistryContract {
17
17
  * @param {string} poolKey The key to identify the pool
18
18
  * @returns A function that takes a Transaction object
19
19
  */
20
- poolEnabled: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
20
+ poolEnabled: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions91.TransactionResult;
21
21
  /**
22
22
  * @description Get the margin pool ID for a given asset
23
23
  * @param {string} coinKey The key to identify the coin
24
24
  * @returns A function that takes a Transaction object
25
25
  */
26
- getMarginPoolId: (coinKey: string) => (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
26
+ getMarginPoolId: (coinKey: string) => (tx: Transaction) => _mysten_sui_transactions91.TransactionResult;
27
27
  /**
28
28
  * @description Get the margin pool IDs (base and quote) for a deepbook pool
29
29
  * @param {string} poolKey The key to identify the pool
30
30
  * @returns A function that takes a Transaction object
31
31
  */
32
- getDeepbookPoolMarginPoolIds: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
32
+ getDeepbookPoolMarginPoolIds: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions91.TransactionResult;
33
33
  /**
34
34
  * @description Get the margin manager IDs for a given owner
35
35
  * @param {string} owner The owner address
36
36
  * @returns A function that takes a Transaction object
37
37
  */
38
- getMarginManagerIds: (owner: string) => (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
38
+ getMarginManagerIds: (owner: string) => (tx: Transaction) => _mysten_sui_transactions91.TransactionResult;
39
39
  /**
40
40
  * @description Get the base margin pool ID for a deepbook pool
41
41
  * @param {string} poolKey The key to identify the pool
42
42
  * @returns A function that takes a Transaction object
43
43
  */
44
- baseMarginPoolId: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
44
+ baseMarginPoolId: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions91.TransactionResult;
45
45
  /**
46
46
  * @description Get the quote margin pool ID for a deepbook pool
47
47
  * @param {string} poolKey The key to identify the pool
48
48
  * @returns A function that takes a Transaction object
49
49
  */
50
- quoteMarginPoolId: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
50
+ quoteMarginPoolId: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions91.TransactionResult;
51
51
  /**
52
52
  * @description Get the minimum withdraw risk ratio for a deepbook pool
53
53
  * @param {string} poolKey The key to identify the pool
54
54
  * @returns A function that takes a Transaction object
55
55
  */
56
- minWithdrawRiskRatio: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
56
+ minWithdrawRiskRatio: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions91.TransactionResult;
57
57
  /**
58
58
  * @description Get the minimum borrow risk ratio for a deepbook pool
59
59
  * @param {string} poolKey The key to identify the pool
60
60
  * @returns A function that takes a Transaction object
61
61
  */
62
- minBorrowRiskRatio: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
62
+ minBorrowRiskRatio: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions91.TransactionResult;
63
63
  /**
64
64
  * @description Get the liquidation risk ratio for a deepbook pool
65
65
  * @param {string} poolKey The key to identify the pool
66
66
  * @returns A function that takes a Transaction object
67
67
  */
68
- liquidationRiskRatio: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
68
+ liquidationRiskRatio: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions91.TransactionResult;
69
69
  /**
70
70
  * @description Get the target liquidation risk ratio for a deepbook pool
71
71
  * @param {string} poolKey The key to identify the pool
72
72
  * @returns A function that takes a Transaction object
73
73
  */
74
- targetLiquidationRiskRatio: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
74
+ targetLiquidationRiskRatio: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions91.TransactionResult;
75
75
  /**
76
76
  * @description Get the user liquidation reward for a deepbook pool
77
77
  * @param {string} poolKey The key to identify the pool
78
78
  * @returns A function that takes a Transaction object
79
79
  */
80
- userLiquidationReward: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
80
+ userLiquidationReward: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions91.TransactionResult;
81
81
  /**
82
82
  * @description Get the pool liquidation reward for a deepbook pool
83
83
  * @param {string} poolKey The key to identify the pool
84
84
  * @returns A function that takes a Transaction object
85
85
  */
86
- poolLiquidationReward: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
86
+ poolLiquidationReward: (poolKey: string) => (tx: Transaction) => _mysten_sui_transactions91.TransactionResult;
87
87
  /**
88
88
  * @description Get all allowed maintainer cap IDs
89
89
  * @returns A function that takes a Transaction object
90
90
  */
91
- allowedMaintainers: () => (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
91
+ allowedMaintainers: () => (tx: Transaction) => _mysten_sui_transactions91.TransactionResult;
92
92
  /**
93
93
  * @description Get all allowed pause cap IDs
94
94
  * @returns A function that takes a Transaction object
95
95
  */
96
- allowedPauseCaps: () => (tx: Transaction) => _mysten_sui_transactions93.TransactionResult;
96
+ allowedPauseCaps: () => (tx: Transaction) => _mysten_sui_transactions91.TransactionResult;
97
97
  }
98
98
  //#endregion
99
99
  export { MarginRegistryContract };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@mysten/deepbook-v3",
3
3
  "author": "Mysten Labs <build@mystenlabs.com>",
4
4
  "description": "Sui Deepbook SDK",
5
- "version": "1.3.3",
5
+ "version": "1.3.6",
6
6
  "license": "Apache-2.0",
7
7
  "type": "module",
8
8
  "main": "./dist/index.mjs",
@@ -31,9 +31,9 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@noble/hashes": "^2.0.1",
34
- "axios": "^1.15.0",
34
+ "axios": "^1.16.0",
35
35
  "axios-retry": "^4.5.0",
36
- "@mysten/bcs": "^2.0.3"
36
+ "@mysten/bcs": "^2.0.5"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@iarna/toml": "^2.2.5",
@@ -45,12 +45,10 @@
45
45
  "typescript": "^5.9.3",
46
46
  "vite": "^8.0.5",
47
47
  "vitest": "^4.0.17",
48
- "wait-on": "^9.0.3",
49
- "@mysten/codegen": "^0.10.3",
50
- "@mysten/sui": "^2.16.0"
48
+ "wait-on": "^9.0.3"
51
49
  },
52
50
  "peerDependencies": {
53
- "@mysten/sui": "^2.16.0"
51
+ "@mysten/sui": "^2.16.2"
54
52
  },
55
53
  "scripts": {
56
54
  "clean": "rm -rf tsconfig.tsbuildinfo ./dist",