turbos-margin-sdk 0.3.2 → 0.4.0-next.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/CHANGELOG.md +103 -0
- package/dist/esm/index.js +35 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.mts +23 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.js +35 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,108 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
# [0.4.0-next.0](https://github.com/turbos-finance/turbos-omm-sdk-sdk/compare/0.3.2...0.4.0-next.0) (2026-01-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add new margin manager functions without referral ([42e8be9](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/42e8be9e04b5bf2dc09ec09d71f7df5e385ccca0))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## [0.3.2](https://github.com/turbos-finance/turbos-omm-sdk-sdk/compare/0.3.1...0.3.2) (2026-01-19)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* modules are not exposed ([9c6e465](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/9c6e465a512b52cd3767c3cd1c0ebc059430c9e2))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
## [0.3.1](https://github.com/turbos-finance/turbos-omm-sdk-sdk/compare/0.3.0...0.3.1) (2026-01-19)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [0.3.0](https://github.com/turbos-finance/turbos-omm-sdk-sdk/compare/0.3.0-next.3...0.3.0) (2026-01-19)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
# [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)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# [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)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
# [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)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Bug Fixes
|
|
41
|
+
|
|
42
|
+
* update README usage example ([8ed50a1](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/8ed50a12bff012dee00ee714b8f2057a59dbc8f2))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
# [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)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
# [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)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Features
|
|
54
|
+
|
|
55
|
+
* combine testnet and mainnet env together ([c1d9695](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/c1d9695fdc5e4acf6e684d7fc13c3e88f73adb21))
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
## [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)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
## [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)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
## [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)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
# [0.2.0](https://github.com/turbos-finance/turbos-omm-sdk-sdk/compare/0.1.0...0.2.0) (2026-01-13)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### Features
|
|
75
|
+
|
|
76
|
+
* new testnet contract ([0f6d37a](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/0f6d37abb652557f747a7a078593f2be5720e90c))
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
# [0.1.0](https://github.com/turbos-finance/turbos-omm-sdk-sdk/compare/0.1.0-next.0...0.1.0) (2026-01-12)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
# [0.1.0-next.0](https://github.com/turbos-finance/turbos-omm-sdk-sdk/compare/1d67344a88a622fda252a2ca43eaaaea0762f928...0.1.0-next.0) (2026-01-12)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
### Bug Fixes
|
|
88
|
+
|
|
89
|
+
* ts error ([92adcd0](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/92adcd0da4b96b7e5785d2e2d738b60d7527ec77))
|
|
90
|
+
* update MARGIN_REGISTRY constant value ([e9032aa](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/e9032aa9e93099cb9a5e90f36d8784c9c852b1ef))
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### Features
|
|
94
|
+
|
|
95
|
+
* add deepbook ([2373318](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/2373318cb3c720d68b903d27a272373a077b2c08))
|
|
96
|
+
* add DEEPBOOK_REGISTRY_ID constant ([70d047d](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/70d047d420640ec4b6796fadc3aeb7ae00942cdc))
|
|
97
|
+
* Add pool proxy entry point. ([a17cfec](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/a17cfecda1d051984977bf1854b49f84118b3472))
|
|
98
|
+
* change config ([1d67344](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/1d67344a88a622fda252a2ca43eaaaea0762f928))
|
|
99
|
+
* new testnet contract ([9635af3](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/9635af345ead27fff1f255fae2364c6e9fb9474d))
|
|
100
|
+
* new testnet version ([7529770](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/7529770d2af0df4b31adbec6e736db41968f0436))
|
|
101
|
+
* new testnet version ([c7580e9](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/c7580e96f70b11286b1afa13f82899fd067b44bc))
|
|
102
|
+
* remove `ts-expect-error` injection from `util.ts` during generation ([babe5dd](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/babe5dd79c0ca6b19e998b8fe9e943306ac559b4))
|
|
103
|
+
* 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))
|
|
104
|
+
* upgrade testnet contract ([759d7f6](https://github.com/turbos-finance/turbos-omm-sdk-sdk/commit/759d7f62f231fc394493f732ec18eb9a7d18845e))
|
|
105
|
+
|
|
3
106
|
## [0.3.2](https://github.com/turbos-finance/turbos-omm-sdk-sdk/compare/0.3.1...0.3.2) (2026-01-19)
|
|
4
107
|
|
|
5
108
|
|
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: "
|
|
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(
|