llll-sdk 0.0.0-experimental-20260119174721 → 0.0.0-experimental-20260120162634
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/dist/index.d.mts +1 -8
- package/dist/index.d.ts +1 -8
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import { CetusClmmSDK } from '@cetusprotocol/sui-clmm-sdk';
|
|
|
4
4
|
import * as _cetusprotocol_aggregator_sdk from '@cetusprotocol/aggregator-sdk';
|
|
5
5
|
import { AggregatorClient } from '@cetusprotocol/aggregator-sdk';
|
|
6
6
|
import { RewardSummary, ParsedObligation, SuilendClient, ParsedLendingMarket, ParsedReserve, Side, PerDayRewardSummary, AprRewardSummary } from '@suilend/sdk';
|
|
7
|
-
import {
|
|
7
|
+
import { Transaction, TransactionObjectArgument } from '@mysten/sui/transactions';
|
|
8
8
|
import * as _suilend_sdk__generated_suilend_reserve_structs from '@suilend/sdk/_generated/suilend/reserve/structs';
|
|
9
9
|
import { Reserve } from '@suilend/sdk/_generated/suilend/reserve/structs';
|
|
10
10
|
import * as bn_js from 'bn.js';
|
|
@@ -143,7 +143,6 @@ interface BorrowNotSuiParams {
|
|
|
143
143
|
is_long: boolean;
|
|
144
144
|
}
|
|
145
145
|
type PositionDepositParams = {
|
|
146
|
-
margin_trading_context: TransactionObjectArgument;
|
|
147
146
|
market_id: string;
|
|
148
147
|
is_long: boolean;
|
|
149
148
|
position_cap_id?: string;
|
|
@@ -184,7 +183,6 @@ type WithdrawParams = {
|
|
|
184
183
|
txb?: Transaction;
|
|
185
184
|
};
|
|
186
185
|
type RepayParams = {
|
|
187
|
-
margin_trading_context: TransactionObjectArgument;
|
|
188
186
|
txb?: Transaction;
|
|
189
187
|
position_cap_id: string;
|
|
190
188
|
repay_amount: string;
|
|
@@ -204,7 +202,6 @@ type CreateLeveragePositionParams = {
|
|
|
204
202
|
tx: Transaction;
|
|
205
203
|
};
|
|
206
204
|
type BorrowAssetParams = {
|
|
207
|
-
margin_trading_context: TransactionObjectArgument;
|
|
208
205
|
position_cap_id?: string;
|
|
209
206
|
position_cap?: any;
|
|
210
207
|
reserve_array_index: string;
|
|
@@ -216,7 +213,6 @@ type BorrowAssetParams = {
|
|
|
216
213
|
market_id: string;
|
|
217
214
|
};
|
|
218
215
|
type WithdrawAssetParams = {
|
|
219
|
-
margin_trading_context: TransactionObjectArgument;
|
|
220
216
|
market_id: string;
|
|
221
217
|
position_cap_id: string;
|
|
222
218
|
withdraw_amount: string;
|
|
@@ -224,7 +220,6 @@ type WithdrawAssetParams = {
|
|
|
224
220
|
withdraw_coin_type: string;
|
|
225
221
|
};
|
|
226
222
|
type PositionCloseParams = {
|
|
227
|
-
margin_trading_context: TransactionObjectArgument;
|
|
228
223
|
market_id: string;
|
|
229
224
|
position_cap_id: string;
|
|
230
225
|
};
|
|
@@ -472,8 +467,6 @@ declare class PositionModules {
|
|
|
472
467
|
* @returns Array of other token types
|
|
473
468
|
*/
|
|
474
469
|
private extractOtherTokenTypes;
|
|
475
|
-
createMarginTradingContext: (params: CreateMarginTradingContextParams, tx: Transaction) => _mysten_sui_dist_cjs_transactions.TransactionResult;
|
|
476
|
-
marginTradingContextConfirm: (marginTradingContext: TransactionObjectArgument, tx: Transaction) => Transaction;
|
|
477
470
|
/**
|
|
478
471
|
* Open position
|
|
479
472
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { CetusClmmSDK } from '@cetusprotocol/sui-clmm-sdk';
|
|
|
4
4
|
import * as _cetusprotocol_aggregator_sdk from '@cetusprotocol/aggregator-sdk';
|
|
5
5
|
import { AggregatorClient } from '@cetusprotocol/aggregator-sdk';
|
|
6
6
|
import { RewardSummary, ParsedObligation, SuilendClient, ParsedLendingMarket, ParsedReserve, Side, PerDayRewardSummary, AprRewardSummary } from '@suilend/sdk';
|
|
7
|
-
import {
|
|
7
|
+
import { Transaction, TransactionObjectArgument } from '@mysten/sui/transactions';
|
|
8
8
|
import * as _suilend_sdk__generated_suilend_reserve_structs from '@suilend/sdk/_generated/suilend/reserve/structs';
|
|
9
9
|
import { Reserve } from '@suilend/sdk/_generated/suilend/reserve/structs';
|
|
10
10
|
import * as bn_js from 'bn.js';
|
|
@@ -143,7 +143,6 @@ interface BorrowNotSuiParams {
|
|
|
143
143
|
is_long: boolean;
|
|
144
144
|
}
|
|
145
145
|
type PositionDepositParams = {
|
|
146
|
-
margin_trading_context: TransactionObjectArgument;
|
|
147
146
|
market_id: string;
|
|
148
147
|
is_long: boolean;
|
|
149
148
|
position_cap_id?: string;
|
|
@@ -184,7 +183,6 @@ type WithdrawParams = {
|
|
|
184
183
|
txb?: Transaction;
|
|
185
184
|
};
|
|
186
185
|
type RepayParams = {
|
|
187
|
-
margin_trading_context: TransactionObjectArgument;
|
|
188
186
|
txb?: Transaction;
|
|
189
187
|
position_cap_id: string;
|
|
190
188
|
repay_amount: string;
|
|
@@ -204,7 +202,6 @@ type CreateLeveragePositionParams = {
|
|
|
204
202
|
tx: Transaction;
|
|
205
203
|
};
|
|
206
204
|
type BorrowAssetParams = {
|
|
207
|
-
margin_trading_context: TransactionObjectArgument;
|
|
208
205
|
position_cap_id?: string;
|
|
209
206
|
position_cap?: any;
|
|
210
207
|
reserve_array_index: string;
|
|
@@ -216,7 +213,6 @@ type BorrowAssetParams = {
|
|
|
216
213
|
market_id: string;
|
|
217
214
|
};
|
|
218
215
|
type WithdrawAssetParams = {
|
|
219
|
-
margin_trading_context: TransactionObjectArgument;
|
|
220
216
|
market_id: string;
|
|
221
217
|
position_cap_id: string;
|
|
222
218
|
withdraw_amount: string;
|
|
@@ -224,7 +220,6 @@ type WithdrawAssetParams = {
|
|
|
224
220
|
withdraw_coin_type: string;
|
|
225
221
|
};
|
|
226
222
|
type PositionCloseParams = {
|
|
227
|
-
margin_trading_context: TransactionObjectArgument;
|
|
228
223
|
market_id: string;
|
|
229
224
|
position_cap_id: string;
|
|
230
225
|
};
|
|
@@ -472,8 +467,6 @@ declare class PositionModules {
|
|
|
472
467
|
* @returns Array of other token types
|
|
473
468
|
*/
|
|
474
469
|
private extractOtherTokenTypes;
|
|
475
|
-
createMarginTradingContext: (params: CreateMarginTradingContextParams, tx: Transaction) => _mysten_sui_dist_cjs_transactions.TransactionResult;
|
|
476
|
-
marginTradingContextConfirm: (marginTradingContext: TransactionObjectArgument, tx: Transaction) => Transaction;
|
|
477
470
|
/**
|
|
478
471
|
* Open position
|
|
479
472
|
*/
|