turbos-margin-sdk 0.3.2 → 0.4.0-next.1

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,109 @@
1
1
  # Changelog
2
2
 
3
+ # [0.4.0-next.1](https://github.com/turbos-finance/turbos-omm-sdk-sdk/compare/0.3.2...0.4.0-next.1) (2026-01-23)
4
+
5
+
6
+ ### Features
7
+
8
+ * add abyss contract ([a1d9966](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/a1d9966e8fd63d6a4efb5158afb53effa62a38a5))
9
+ * add new margin manager functions without referral ([42e8be9](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/42e8be9e04b5bf2dc09ec09d71f7df5e385ccca0))
10
+
11
+
12
+
13
+ ## [0.3.2](https://github.com/turbos-finance/turbos-omm-sdk-sdk/compare/0.3.1...0.3.2) (2026-01-19)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * modules are not exposed ([9c6e465](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/9c6e465a512b52cd3767c3cd1c0ebc059430c9e2))
19
+
20
+
21
+
22
+ ## [0.3.1](https://github.com/turbos-finance/turbos-omm-sdk-sdk/compare/0.3.0...0.3.1) (2026-01-19)
23
+
24
+
25
+
26
+ # [0.3.0](https://github.com/turbos-finance/turbos-omm-sdk-sdk/compare/0.3.0-next.3...0.3.0) (2026-01-19)
27
+
28
+
29
+
30
+ # [0.3.0-next.3](https://github.com/turbos-finance/turbos-omm-sdk-sdk/compare/0.3.0-next.2...0.3.0-next.3) (2026-01-19)
31
+
32
+
33
+
34
+ # [0.3.0-next.2](https://github.com/turbos-finance/turbos-omm-sdk-sdk/compare/v0.3.0-next.2...0.3.0-next.2) (2026-01-19)
35
+
36
+
37
+
38
+ # [0.3.0-next.2](https://github.com/turbos-finance/turbos-omm-sdk-sdk/compare/0.3.0-next.1...v0.3.0-next.2) (2026-01-19)
39
+
40
+
41
+ ### Bug Fixes
42
+
43
+ * update README usage example ([8ed50a1](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/8ed50a12bff012dee00ee714b8f2057a59dbc8f2))
44
+
45
+
46
+
47
+ # [0.3.0-next.1](https://github.com/turbos-finance/turbos-omm-sdk-sdk/compare/0.3.0-next.0...0.3.0-next.1) (2026-01-19)
48
+
49
+
50
+
51
+ # [0.3.0-next.0](https://github.com/turbos-finance/turbos-omm-sdk-sdk/compare/0.2.1-next.2...0.3.0-next.0) (2026-01-19)
52
+
53
+
54
+ ### Features
55
+
56
+ * combine testnet and mainnet env together ([c1d9695](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/c1d9695fdc5e4acf6e684d7fc13c3e88f73adb21))
57
+
58
+
59
+
60
+ ## [0.2.1-next.2](https://github.com/turbos-finance/turbos-omm-sdk-sdk/compare/0.2.1-next.1...0.2.1-next.2) (2026-01-14)
61
+
62
+
63
+
64
+ ## [0.2.1-next.1](https://github.com/turbos-finance/turbos-omm-sdk-sdk/compare/0.2.1-next.0...0.2.1-next.1) (2026-01-14)
65
+
66
+
67
+
68
+ ## [0.2.1-next.0](https://github.com/turbos-finance/turbos-omm-sdk-sdk/compare/0.2.0...0.2.1-next.0) (2026-01-14)
69
+
70
+
71
+
72
+ # [0.2.0](https://github.com/turbos-finance/turbos-omm-sdk-sdk/compare/0.1.0...0.2.0) (2026-01-13)
73
+
74
+
75
+ ### Features
76
+
77
+ * new testnet contract ([0f6d37a](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/0f6d37abb652557f747a7a078593f2be5720e90c))
78
+
79
+
80
+
81
+ # [0.1.0](https://github.com/turbos-finance/turbos-omm-sdk-sdk/compare/0.1.0-next.0...0.1.0) (2026-01-12)
82
+
83
+
84
+
85
+ # [0.1.0-next.0](https://github.com/turbos-finance/turbos-omm-sdk-sdk/compare/1d67344a88a622fda252a2ca43eaaaea0762f928...0.1.0-next.0) (2026-01-12)
86
+
87
+
88
+ ### Bug Fixes
89
+
90
+ * ts error ([92adcd0](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/92adcd0da4b96b7e5785d2e2d738b60d7527ec77))
91
+ * update MARGIN_REGISTRY constant value ([e9032aa](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/e9032aa9e93099cb9a5e90f36d8784c9c852b1ef))
92
+
93
+
94
+ ### Features
95
+
96
+ * add deepbook ([2373318](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/2373318cb3c720d68b903d27a272373a077b2c08))
97
+ * add DEEPBOOK_REGISTRY_ID constant ([70d047d](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/70d047d420640ec4b6796fadc3aeb7ae00942cdc))
98
+ * Add pool proxy entry point. ([a17cfec](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/a17cfecda1d051984977bf1854b49f84118b3472))
99
+ * change config ([1d67344](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/1d67344a88a622fda252a2ca43eaaaea0762f928))
100
+ * new testnet contract ([9635af3](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/9635af345ead27fff1f255fae2364c6e9fb9474d))
101
+ * new testnet version ([7529770](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/7529770d2af0df4b31adbec6e736db41968f0436))
102
+ * new testnet version ([c7580e9](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/c7580e96f70b11286b1afa13f82899fd067b44bc))
103
+ * remove `ts-expect-error` injection from `util.ts` during generation ([babe5dd](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/babe5dd79c0ca6b19e998b8fe9e943306ac559b4))
104
+ * update generation script to conditionally export functions/structs and add `margin-constants` and `pool-proxy` entries ([e1bf767](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/e1bf7670ee5761c4eefa894691c30403277ecec8))
105
+ * upgrade testnet contract ([759d7f6](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/759d7f62f231fc394493f732ec18eb9a7d18845e))
106
+
3
107
  ## [0.3.2](https://github.com/turbos-finance/turbos-omm-sdk-sdk/compare/0.3.1...0.3.2) (2026-01-19)
4
108
 
5
109
 
package/dist/esm/index.js CHANGED
@@ -167,7 +167,7 @@ var mainnetEnv = {
167
167
  },
168
168
  "turbos-margin-trading": {
169
169
  originalId: "0xf98f613416225e42930e0f25daacd83443abca19e9ce869ae05c657dba59f503",
170
- publishedAt: "0xf98f613416225e42930e0f25daacd83443abca19e9ce869ae05c657dba59f503",
170
+ publishedAt: "0x1b260bb90ddb6f994c339303c552390a9f90add7b06c117fc051df6171958f74",
171
171
  typeOrigins: {
172
172
  "acl::ACL": "0xf98f613416225e42930e0f25daacd83443abca19e9ce869ae05c657dba59f503",
173
173
  "acl::Member": "0xf98f613416225e42930e0f25daacd83443abca19e9ce869ae05c657dba59f503",
@@ -9344,6 +9344,8 @@ __export(turbos_margin_manager_exports, {
9344
9344
  marginPoolWithdraw: () => marginPoolWithdraw,
9345
9345
  newMarginManager: () => newMarginManager,
9346
9346
  newMarginManagerWithInitializer: () => newMarginManagerWithInitializer,
9347
+ newMarginManagerWithInitializerWithoutReferral: () => newMarginManagerWithInitializerWithoutReferral,
9348
+ newMarginManagerWithoutReferral: () => newMarginManagerWithoutReferral,
9347
9349
  registerDeepbookPoolReferral: () => registerDeepbookPoolReferral,
9348
9350
  registerMarginSupplyReferral: () => registerMarginSupplyReferral,
9349
9351
  withdrawCollateral: () => withdrawCollateral
@@ -9463,6 +9465,22 @@ function newMarginManager(tx, typeArgs, args) {
9463
9465
  ]
9464
9466
  });
9465
9467
  }
9468
+ function newMarginManagerWithoutReferral(tx, typeArgs, args) {
9469
+ return tx.moveCall({
9470
+ target: `${getPublishedAt(
9471
+ "turbos-margin-trading"
9472
+ )}::turbos_margin_manager::new_margin_manager_without_referral`,
9473
+ typeArguments: typeArgs,
9474
+ arguments: [
9475
+ obj(tx, args.config),
9476
+ obj(tx, args.turbosMarginRegistry),
9477
+ obj(tx, args.pool),
9478
+ obj(tx, args.deepbookRegistry),
9479
+ obj(tx, args.marginRegistry),
9480
+ obj(tx, args.clock)
9481
+ ]
9482
+ });
9483
+ }
9466
9484
  function newMarginManagerWithInitializer(tx, typeArgs, args) {
9467
9485
  return tx.moveCall({
9468
9486
  target: `${getPublishedAt(
@@ -9480,6 +9498,22 @@ function newMarginManagerWithInitializer(tx, typeArgs, args) {
9480
9498
  ]
9481
9499
  });
9482
9500
  }
9501
+ function newMarginManagerWithInitializerWithoutReferral(tx, typeArgs, args) {
9502
+ return tx.moveCall({
9503
+ target: `${getPublishedAt(
9504
+ "turbos-margin-trading"
9505
+ )}::turbos_margin_manager::new_margin_manager_with_initializer_without_referral`,
9506
+ typeArguments: typeArgs,
9507
+ arguments: [
9508
+ obj(tx, args.config),
9509
+ obj(tx, args.turbosMarginRegistry),
9510
+ obj(tx, args.pool),
9511
+ obj(tx, args.deepbookRegistry),
9512
+ obj(tx, args.marginRegistry),
9513
+ obj(tx, args.clock)
9514
+ ]
9515
+ });
9516
+ }
9483
9517
  function getUserMarginManagers(tx, args) {
9484
9518
  return tx.moveCall({
9485
9519
  target: `${getPublishedAt(
@@ -41489,6 +41523,18 @@ var configs = {
41489
41523
  testnet: "0x7c256edbda983a2cd6f946655f4bf3f00a41043993781f8674a7046e8c0e11d1",
41490
41524
  mainnet: "0xaf16199a2dff736e9f07a845f23c5da6df6f756eddb631aed9d24a93efc4549d"
41491
41525
  });
41526
+ },
41527
+ get ABYSS_REGISTRY_ID() {
41528
+ return switchConfig({
41529
+ testnet: "",
41530
+ mainnet: "0xfac1800074e8ed8eb2baf1e631e8199ccce6b0f6bfd50b5143e1ff47c438aecf"
41531
+ });
41532
+ },
41533
+ get ABYSS_SUPPLIER_CAP() {
41534
+ return switchConfig({
41535
+ testnet: "",
41536
+ mainnet: "0x3d0faab3953525d243275b39cbed465cb310fe2d4dd2c15428b8f7cf5962c2c0"
41537
+ });
41492
41538
  }
41493
41539
  };
41494
41540
  export {