turbos-margin-sdk 0.3.2 → 0.4.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 +7 -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,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
# [0.4.0](https://github.com/turbos-finance/turbos-omm-sdk-sdk/compare/0.3.2...0.4.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
|
+
|
|
3
10
|
## [0.3.2](https://github.com/turbos-finance/turbos-omm-sdk-sdk/compare/0.3.1...0.3.2) (2026-01-19)
|
|
4
11
|
|
|
5
12
|
|
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(
|