@nightlylabs/dex-sdk 0.1.73 → 0.1.75
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.cjs +28 -28
- package/dist/index.d.cts +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +28 -28
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -66,7 +66,7 @@ var import_uuid = require("uuid");
|
|
|
66
66
|
|
|
67
67
|
// generated_types/addApiKey.ts
|
|
68
68
|
var ABI = {
|
|
69
|
-
"address": "
|
|
69
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
70
70
|
"name": "add_api_key",
|
|
71
71
|
"friends": [],
|
|
72
72
|
"exposed_functions": [
|
|
@@ -91,7 +91,7 @@ var addApiKey_default = ABI;
|
|
|
91
91
|
|
|
92
92
|
// generated_types/cancelAllPerpOrders.ts
|
|
93
93
|
var ABI2 = {
|
|
94
|
-
"address": "
|
|
94
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
95
95
|
"name": "cancel_all_perp_orders",
|
|
96
96
|
"friends": [],
|
|
97
97
|
"exposed_functions": [
|
|
@@ -114,7 +114,7 @@ var cancelAllPerpOrders_default = ABI2;
|
|
|
114
114
|
|
|
115
115
|
// generated_types/cancelPerpOrders.ts
|
|
116
116
|
var ABI3 = {
|
|
117
|
-
"address": "
|
|
117
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
118
118
|
"name": "cancel_perp_orders",
|
|
119
119
|
"friends": [],
|
|
120
120
|
"exposed_functions": [
|
|
@@ -139,7 +139,7 @@ var cancelPerpOrders_default = ABI3;
|
|
|
139
139
|
|
|
140
140
|
// generated_types/createUser.ts
|
|
141
141
|
var ABI4 = {
|
|
142
|
-
"address": "
|
|
142
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
143
143
|
"name": "create_user",
|
|
144
144
|
"friends": [],
|
|
145
145
|
"exposed_functions": [
|
|
@@ -164,7 +164,7 @@ var createUser_default = ABI4;
|
|
|
164
164
|
|
|
165
165
|
// generated_types/depositToVault.ts
|
|
166
166
|
var ABI5 = {
|
|
167
|
-
"address": "
|
|
167
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
168
168
|
"name": "deposit_to_vault",
|
|
169
169
|
"friends": [],
|
|
170
170
|
"exposed_functions": [
|
|
@@ -189,7 +189,7 @@ var depositToVault_default = ABI5;
|
|
|
189
189
|
|
|
190
190
|
// generated_types/depositToken.ts
|
|
191
191
|
var ABI6 = {
|
|
192
|
-
"address": "
|
|
192
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
193
193
|
"name": "deposit_token",
|
|
194
194
|
"friends": [],
|
|
195
195
|
"exposed_functions": [
|
|
@@ -214,7 +214,7 @@ var depositToken_default = ABI6;
|
|
|
214
214
|
|
|
215
215
|
// generated_types/lendToken.ts
|
|
216
216
|
var ABI7 = {
|
|
217
|
-
"address": "
|
|
217
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
218
218
|
"name": "lend_token",
|
|
219
219
|
"friends": [],
|
|
220
220
|
"exposed_functions": [
|
|
@@ -240,7 +240,7 @@ var lendToken_default = ABI7;
|
|
|
240
240
|
|
|
241
241
|
// generated_types/placePerpLimitOrder.ts
|
|
242
242
|
var ABI8 = {
|
|
243
|
-
"address": "
|
|
243
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
244
244
|
"name": "place_perp_limit_order",
|
|
245
245
|
"friends": [],
|
|
246
246
|
"exposed_functions": [
|
|
@@ -269,7 +269,7 @@ var placePerpLimitOrder_default = ABI8;
|
|
|
269
269
|
|
|
270
270
|
// generated_types/changePerpOrderPrice.ts
|
|
271
271
|
var ABI9 = {
|
|
272
|
-
"address": "
|
|
272
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
273
273
|
"name": "change_perp_order_price",
|
|
274
274
|
"friends": [],
|
|
275
275
|
"exposed_functions": [
|
|
@@ -297,7 +297,7 @@ var changePerpOrderPrice_default = ABI9;
|
|
|
297
297
|
|
|
298
298
|
// generated_types/placePerpMarketOrder.ts
|
|
299
299
|
var ABI10 = {
|
|
300
|
-
"address": "
|
|
300
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
301
301
|
"name": "place_perp_market_order",
|
|
302
302
|
"friends": [],
|
|
303
303
|
"exposed_functions": [
|
|
@@ -325,7 +325,7 @@ var placePerpMarketOrder_default = ABI10;
|
|
|
325
325
|
|
|
326
326
|
// generated_types/redeemToken.ts
|
|
327
327
|
var ABI11 = {
|
|
328
|
-
"address": "
|
|
328
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
329
329
|
"name": "redeem_token",
|
|
330
330
|
"friends": [],
|
|
331
331
|
"exposed_functions": [
|
|
@@ -351,7 +351,7 @@ var redeemToken_default = ABI11;
|
|
|
351
351
|
|
|
352
352
|
// generated_types/removeApiKey.ts
|
|
353
353
|
var ABI12 = {
|
|
354
|
-
"address": "
|
|
354
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
355
355
|
"name": "remove_api_key",
|
|
356
356
|
"friends": [],
|
|
357
357
|
"exposed_functions": [
|
|
@@ -375,7 +375,7 @@ var removeApiKey_default = ABI12;
|
|
|
375
375
|
|
|
376
376
|
// generated_types/setAliasName.ts
|
|
377
377
|
var ABI13 = {
|
|
378
|
-
"address": "
|
|
378
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
379
379
|
"name": "set_alias_name",
|
|
380
380
|
"friends": [],
|
|
381
381
|
"exposed_functions": [
|
|
@@ -399,7 +399,7 @@ var setAliasName_default = ABI13;
|
|
|
399
399
|
|
|
400
400
|
// generated_types/setAutolend.ts
|
|
401
401
|
var ABI14 = {
|
|
402
|
-
"address": "
|
|
402
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
403
403
|
"name": "set_autolend",
|
|
404
404
|
"friends": [],
|
|
405
405
|
"exposed_functions": [
|
|
@@ -423,7 +423,7 @@ var setAutolend_default = ABI14;
|
|
|
423
423
|
|
|
424
424
|
// generated_types/claimReferralFees.ts
|
|
425
425
|
var ABI15 = {
|
|
426
|
-
"address": "
|
|
426
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
427
427
|
"name": "claim_referral_fees",
|
|
428
428
|
"friends": [],
|
|
429
429
|
"exposed_functions": [
|
|
@@ -447,7 +447,7 @@ var claimReferralFees_default = ABI15;
|
|
|
447
447
|
|
|
448
448
|
// generated_types/transferToUser.ts
|
|
449
449
|
var ABI16 = {
|
|
450
|
-
"address": "
|
|
450
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
451
451
|
"name": "transfer_to_user",
|
|
452
452
|
"friends": [],
|
|
453
453
|
"exposed_functions": [
|
|
@@ -475,7 +475,7 @@ var transferToUser_default = ABI16;
|
|
|
475
475
|
|
|
476
476
|
// generated_types/withdrawToken.ts
|
|
477
477
|
var ABI17 = {
|
|
478
|
-
"address": "
|
|
478
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
479
479
|
"name": "withdraw_token",
|
|
480
480
|
"friends": [],
|
|
481
481
|
"exposed_functions": [
|
|
@@ -503,7 +503,7 @@ var withdrawToken_default = ABI17;
|
|
|
503
503
|
|
|
504
504
|
// generated_types/placeMultiplePerpOrders.ts
|
|
505
505
|
var ABI18 = {
|
|
506
|
-
"address": "
|
|
506
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
507
507
|
"name": "place_multiple_perp_orders",
|
|
508
508
|
"friends": [],
|
|
509
509
|
"exposed_functions": [
|
|
@@ -532,7 +532,7 @@ var placeMultiplePerpOrders_default = ABI18;
|
|
|
532
532
|
|
|
533
533
|
// generated_types/claimKickbackFee.ts
|
|
534
534
|
var ABI19 = {
|
|
535
|
-
"address": "
|
|
535
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
536
536
|
"name": "claim_kickback_fee",
|
|
537
537
|
"friends": [],
|
|
538
538
|
"exposed_functions": [
|
|
@@ -555,7 +555,7 @@ var claimKickbackFee_default = ABI19;
|
|
|
555
555
|
|
|
556
556
|
// generated_types/replaceMultipleOrders.ts
|
|
557
557
|
var ABI20 = {
|
|
558
|
-
"address": "
|
|
558
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
559
559
|
"name": "replace_multiple_orders",
|
|
560
560
|
"friends": [],
|
|
561
561
|
"exposed_functions": [
|
|
@@ -583,7 +583,7 @@ var replaceMultipleOrders_default = ABI20;
|
|
|
583
583
|
|
|
584
584
|
// generated_types/claimDeposit.ts
|
|
585
585
|
var ABI21 = {
|
|
586
|
-
"address": "
|
|
586
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
587
587
|
"name": "claim_deposit",
|
|
588
588
|
"friends": [],
|
|
589
589
|
"exposed_functions": [
|
|
@@ -607,7 +607,7 @@ var claimDeposit_default = ABI21;
|
|
|
607
607
|
|
|
608
608
|
// generated_types/removeApiKeySigner.ts
|
|
609
609
|
var ABI22 = {
|
|
610
|
-
"address": "
|
|
610
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
611
611
|
"name": "remove_api_key_signer",
|
|
612
612
|
"friends": [],
|
|
613
613
|
"exposed_functions": [
|
|
@@ -631,7 +631,7 @@ var removeApiKeySigner_default = ABI22;
|
|
|
631
631
|
|
|
632
632
|
// generated_types/setReferralCode.ts
|
|
633
633
|
var ABI23 = {
|
|
634
|
-
"address": "
|
|
634
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
635
635
|
"name": "set_referral_code",
|
|
636
636
|
"friends": [],
|
|
637
637
|
"exposed_functions": [
|
|
@@ -655,7 +655,7 @@ var setReferralCode_default = ABI23;
|
|
|
655
655
|
|
|
656
656
|
// generated_types/tokenizeUserVaultInvestment.ts
|
|
657
657
|
var ABI24 = {
|
|
658
|
-
"address": "
|
|
658
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
659
659
|
"name": "tokenize_user_vault_investment",
|
|
660
660
|
"friends": [],
|
|
661
661
|
"exposed_functions": [
|
|
@@ -679,7 +679,7 @@ var tokenizeUserVaultInvestment_default = ABI24;
|
|
|
679
679
|
|
|
680
680
|
// generated_types/addCredits.ts
|
|
681
681
|
var ABI25 = {
|
|
682
|
-
"address": "
|
|
682
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
683
683
|
"name": "add_credits",
|
|
684
684
|
"friends": [],
|
|
685
685
|
"exposed_functions": [
|
|
@@ -703,7 +703,7 @@ var addCredits_default = ABI25;
|
|
|
703
703
|
|
|
704
704
|
// generated_types/placeTriggerOrder.ts
|
|
705
705
|
var ABI26 = {
|
|
706
|
-
"address": "
|
|
706
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
707
707
|
"name": "place_trigger_order",
|
|
708
708
|
"friends": [],
|
|
709
709
|
"exposed_functions": [
|
|
@@ -858,7 +858,7 @@ var UserStatus = /* @__PURE__ */ ((UserStatus2) => {
|
|
|
858
858
|
|
|
859
859
|
// generated_types/withdrawFromVault.ts
|
|
860
860
|
var ABI27 = {
|
|
861
|
-
"address": "
|
|
861
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
862
862
|
"name": "withdraw_from_vault",
|
|
863
863
|
"friends": [],
|
|
864
864
|
"exposed_functions": [
|
|
@@ -2410,7 +2410,7 @@ function parseEntryFunctionAbi(args) {
|
|
|
2410
2410
|
|
|
2411
2411
|
// generated_types/faucetEntrypoints.ts
|
|
2412
2412
|
var ABI28 = {
|
|
2413
|
-
"address": "
|
|
2413
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
2414
2414
|
"name": "faucet_entrypoints",
|
|
2415
2415
|
"friends": [],
|
|
2416
2416
|
"exposed_functions": [
|
package/dist/index.d.cts
CHANGED
|
@@ -700,6 +700,8 @@ interface GetUserDataResponse {
|
|
|
700
700
|
}
|
|
701
701
|
interface GetUserDepositsRequest {
|
|
702
702
|
userId: string;
|
|
703
|
+
olderTimestampMs?: string;
|
|
704
|
+
newerTimestampMs?: string;
|
|
703
705
|
paginationCursor?: PaginationCursor;
|
|
704
706
|
}
|
|
705
707
|
interface HistoricalDeposit {
|
|
@@ -898,6 +900,8 @@ interface GetUserVolumeForReferralResponse {
|
|
|
898
900
|
}
|
|
899
901
|
interface GetUserWithdrawalsRequest {
|
|
900
902
|
userId: string;
|
|
903
|
+
olderTimestampMs?: string;
|
|
904
|
+
newerTimestampMs?: string;
|
|
901
905
|
paginationCursor?: PaginationCursor;
|
|
902
906
|
}
|
|
903
907
|
interface HistoricalWithdraw {
|
|
@@ -1090,6 +1094,15 @@ interface SetReferralParamsRequest {
|
|
|
1090
1094
|
interface SetReferralParamsResponse {
|
|
1091
1095
|
txHash?: string;
|
|
1092
1096
|
}
|
|
1097
|
+
interface SpotMarketData {
|
|
1098
|
+
price: string;
|
|
1099
|
+
change24: string;
|
|
1100
|
+
high24: string;
|
|
1101
|
+
low24: string;
|
|
1102
|
+
baseVolume24: string;
|
|
1103
|
+
quoteVolume24: string;
|
|
1104
|
+
timestamp: string;
|
|
1105
|
+
}
|
|
1093
1106
|
interface StatusResponse {
|
|
1094
1107
|
status: string;
|
|
1095
1108
|
}
|
|
@@ -1890,4 +1903,4 @@ declare const generateApiKey: () => _aptos_labs_ts_sdk.Ed25519Account;
|
|
|
1890
1903
|
declare const getTopicFromCommand: (data: WsCommand) => string;
|
|
1891
1904
|
declare const getTopicFromMessage: (data: WsMessage) => string;
|
|
1892
1905
|
|
|
1893
|
-
export { type AddApiCreditsParams, type AddApiKey, type AddApiKeyParams, type Address, AdminEndpoints, type ApiCreditsChange, type ApiStatus, type BalanceChange, BaseEndpoints, type Borrow, type BorrowLendUpdate, type BorrowLending, type BorrowLendingAggregatedData, type BorrowLendingHistoricalData, type BoxOpeningEvent, type BoxReward, BoxRewardTier, type CancelAllPerpOrdersParams, type CancelPerpOrdersParams, type CanceledPerpOrders, type ChangePerpOrderPriceParams, type ChartCandle, ChartInterval, type CheckReferralCodeRequest, type CheckReferralCodeResponse, type ClaimDepositParams, type ClaimKickbackFeeParams, type ClaimReferralFee, type ClaimReferralFeesParams, type ClaimUserKickbackFee, type ClaimedKickback, type ClaimedReferralKickback, Client, type Content, type CreateUserParams, type Deposit, type DepositToVaultParams, type DepositTokenParams, EndpointsV1, type ErrorResponse, type ExchangeConfig, ExchangeProxies, type FeeData, type FeeTier, type Fees, type FundingCheckpoint, type FundingPayment, type FundingRate, GLOBAL_DENOMINATOR, type GetBorrowLendingAggregatedStatsRequest, type GetBorrowLendingAggregatedStatsResponse, type GetBorrowLendingDataResponse, type GetBorrowLendingHistoricalDataRequest, type GetBorrowLendingHistoricalDataResponse, type GetChartCandlesInRangeRequest, type GetChartCandlesInRangeResponse, type GetIndexPriceHistoryRequest, type GetIndexPriceHistoryResponse, type GetIndexerStatusResponse, type GetPerpMarketsDataRequest, type GetPerpMarketsDataResponse, type GetPerpOrderBookDataRequest, type GetPerpOrderBookDataResponse, type GetPerpRecentTradesRequest, type GetPerpRecentTradesResponse, type GetPerpUserFillsRequest, type GetPerpUserFillsResponse, type GetPerpUserOrdersRequest, type GetPerpUserOrdersResponse, type GetPerpUserTriggerOrdersRequest, type GetPerpUserTriggerOrdersResponse, type GetPerpetualMarketsConfigResponse, type GetPriceIndexesResponse, type GetServicesStatusResponse, type GetTokenAggregatedStatsRequest, type GetTokenAggregatedStatsResponse, type GetTokenStatsHistoryRequest, type GetTokenStatsHistoryResponse, type GetTokensConfigResponse, type GetUserAggregatedBoxRewardsStatsRequest, type GetUserAggregatedBoxRewardsStatsResponse, type GetUserAggregatedReferralStatsRequest, type GetUserAggregatedReferralStatsResponse, type GetUserAggregatedStatsRequest, type GetUserAggregatedStatsResponse, type GetUserAggregatedVaultStatsRequest, type GetUserAggregatedVaultStatsResponse, type GetUserBoxRewardsStatsHistoryRequest, type GetUserBoxRewardsStatsHistoryResponse, type GetUserBoxesHistoryRequest, type GetUserBoxesHistoryResponse, type GetUserClaimedKickbackHistoryRequest, type GetUserClaimedKickbackHistoryResponse, type GetUserClaimedReferralKickbackHistoryRequest, type GetUserClaimedReferralKickbackHistoryResponse, type GetUserDataRequest, type GetUserDataResponse, type GetUserDepositsRequest, type GetUserDepositsResponse, type GetUserFundingHistoryRequest, type GetUserFundingHistoryResponse, type GetUserLiquidationsHistoryRequest, type GetUserLiquidationsHistoryResponse, type GetUserPortfolioValueRequest, type GetUserPortfolioValueResponse, type GetUserReferralStatsHistoryRequest, type GetUserReferralStatsHistoryResponse, type GetUserRewardsValueRequest, type GetUserRewardsValueResponse, type GetUserTradeStatsHistoryRequest, type GetUserTradeStatsHistoryResponse, type GetUserTransferHistoryRequest, type GetUserTransferHistoryResponse, type GetUserVaultDepositsRequest, type GetUserVaultDepositsResponse, type GetUserVaultWithdrawsRequest, type GetUserVaultWithdrawsResponse, type GetUserVolumeForReferralRequest, type GetUserVolumeForReferralResponse, type GetUserWithdrawalsRequest, type GetUserWithdrawalsResponse, type GetUsersByAddressRequest, type GetUsersByAddressResponse, type GetVaultDepositsRequest, type GetVaultDepositsResponse, type GetVaultHistoricalDataRequest, type GetVaultHistoricalDataResponse, type GetVaultWithdrawalsRequest, type GetVaultWithdrawalsResponse, type HistoricBoxReward, type HistoricalBoxRewardsStats, type HistoricalDeposit, type HistoricalFunding, type HistoricalLiquidation, type HistoricalReferralStats, type HistoricalTokenStats, type HistoricalTradeStats, type HistoricalUserTransfer, type HistoricalVaultDeposit, type HistoricalVaultWithdraw, type HistoricalWithdraw, type IGetChartCandlesInRange, type IndexPriceHistory, type Lend, type LendTokenParams, type Liquidation, type MarginStep, type MarketStatusChange, Network, type NodeStatus, type OpenBoxesRequest, type OpenBoxesResponse, type OpenBoxesSignRequest, type OracleUpdate, type OracleUpdates, type Order, type OrderFills, OrderSide, OrderStatus, OrderType, type OrderbookUpdate, type PaginationCursor, type PerpFill, type PerpMarketData, type PerpOrder, type PerpOrderBookData, type PerpOrderData, type PerpOrderDataForMarket, type PerpPosition, type PerpTrade, type PerpTriggerOrder, type PerpetualMarketConfigEntry, type PerpetualMarketStatus, type PlaceMultiplePerpOrdersParams, type PlacePerpLimitOrder, type PlacePerpMarketOrder, type PlacePerpOrderParams, type PlacePerpTriggerOrder, type PlaceTriggerOrderParams, type PriceIndex, type RedeemTokenParams, type Referral, type ReferralUpdate, type RemoveApiKey, type RemoveApiKeyParams, type RemoveApiKeySignerParams, type RepayBorrow, type ReplaceMultipleOrdersParams, type SetAlias, type SetAliasNameParams, type SetAutoLend, type SetAutolendParams, type SetReferralCodeParams, type SetReferralParamsRequest, type SetReferralParamsResponse, SpotMarketStatus, Status, type StatusResponse, type SubServiceStatus, type SubmitSponsoredTransactionRequest, type SubmitSponsoredTransactionResponse, TestFaucet, type TimeResponse, type TokenAggregatedStats, type TokenConfigEntry, type TokenizeUserVaultInvestmentParams, type Topic, type Trade, TradeRole, type TradesUpdate, TransferAction, type TransferToUserParams, type TriggerOrder, type TxParams, type UpdateUserFeeTier, type User, type UserAggregatedBoxRewardsStats, type UserAggregatedReferralStats, type UserAggregatedStats, type UserAggregatedVaultStats, type UserBoxOpeningEvent, type UserPortfolioValue, type UserRewardsValue, UserStatus, type UserTransfer, type UtilizationCurve, type Vault, type VaultDeposit, type VaultHistoricalData, type VaultInvestment, type VaultWithdraw, type Withdraw, type WithdrawFromVaultParams, type WithdrawLend, type WithdrawTokenParams, type WsBorrowLendUpdate, type WsBoxOpeningUpdate, type WsCommand, type WsFill, type WsLiquidationUpdate, type WsMessage, type WsOracleUpdates, type WsPerpMarketUpdates, type WsUserUpdates, generateApiKey, getRandomId, getTopicFromCommand, getTopicFromMessage, nowInMiliseconds, parseEntryFunctionAbi, sleep, toSystemValue };
|
|
1906
|
+
export { type AddApiCreditsParams, type AddApiKey, type AddApiKeyParams, type Address, AdminEndpoints, type ApiCreditsChange, type ApiStatus, type BalanceChange, BaseEndpoints, type Borrow, type BorrowLendUpdate, type BorrowLending, type BorrowLendingAggregatedData, type BorrowLendingHistoricalData, type BoxOpeningEvent, type BoxReward, BoxRewardTier, type CancelAllPerpOrdersParams, type CancelPerpOrdersParams, type CanceledPerpOrders, type ChangePerpOrderPriceParams, type ChartCandle, ChartInterval, type CheckReferralCodeRequest, type CheckReferralCodeResponse, type ClaimDepositParams, type ClaimKickbackFeeParams, type ClaimReferralFee, type ClaimReferralFeesParams, type ClaimUserKickbackFee, type ClaimedKickback, type ClaimedReferralKickback, Client, type Content, type CreateUserParams, type Deposit, type DepositToVaultParams, type DepositTokenParams, EndpointsV1, type ErrorResponse, type ExchangeConfig, ExchangeProxies, type FeeData, type FeeTier, type Fees, type FundingCheckpoint, type FundingPayment, type FundingRate, GLOBAL_DENOMINATOR, type GetBorrowLendingAggregatedStatsRequest, type GetBorrowLendingAggregatedStatsResponse, type GetBorrowLendingDataResponse, type GetBorrowLendingHistoricalDataRequest, type GetBorrowLendingHistoricalDataResponse, type GetChartCandlesInRangeRequest, type GetChartCandlesInRangeResponse, type GetIndexPriceHistoryRequest, type GetIndexPriceHistoryResponse, type GetIndexerStatusResponse, type GetPerpMarketsDataRequest, type GetPerpMarketsDataResponse, type GetPerpOrderBookDataRequest, type GetPerpOrderBookDataResponse, type GetPerpRecentTradesRequest, type GetPerpRecentTradesResponse, type GetPerpUserFillsRequest, type GetPerpUserFillsResponse, type GetPerpUserOrdersRequest, type GetPerpUserOrdersResponse, type GetPerpUserTriggerOrdersRequest, type GetPerpUserTriggerOrdersResponse, type GetPerpetualMarketsConfigResponse, type GetPriceIndexesResponse, type GetServicesStatusResponse, type GetTokenAggregatedStatsRequest, type GetTokenAggregatedStatsResponse, type GetTokenStatsHistoryRequest, type GetTokenStatsHistoryResponse, type GetTokensConfigResponse, type GetUserAggregatedBoxRewardsStatsRequest, type GetUserAggregatedBoxRewardsStatsResponse, type GetUserAggregatedReferralStatsRequest, type GetUserAggregatedReferralStatsResponse, type GetUserAggregatedStatsRequest, type GetUserAggregatedStatsResponse, type GetUserAggregatedVaultStatsRequest, type GetUserAggregatedVaultStatsResponse, type GetUserBoxRewardsStatsHistoryRequest, type GetUserBoxRewardsStatsHistoryResponse, type GetUserBoxesHistoryRequest, type GetUserBoxesHistoryResponse, type GetUserClaimedKickbackHistoryRequest, type GetUserClaimedKickbackHistoryResponse, type GetUserClaimedReferralKickbackHistoryRequest, type GetUserClaimedReferralKickbackHistoryResponse, type GetUserDataRequest, type GetUserDataResponse, type GetUserDepositsRequest, type GetUserDepositsResponse, type GetUserFundingHistoryRequest, type GetUserFundingHistoryResponse, type GetUserLiquidationsHistoryRequest, type GetUserLiquidationsHistoryResponse, type GetUserPortfolioValueRequest, type GetUserPortfolioValueResponse, type GetUserReferralStatsHistoryRequest, type GetUserReferralStatsHistoryResponse, type GetUserRewardsValueRequest, type GetUserRewardsValueResponse, type GetUserTradeStatsHistoryRequest, type GetUserTradeStatsHistoryResponse, type GetUserTransferHistoryRequest, type GetUserTransferHistoryResponse, type GetUserVaultDepositsRequest, type GetUserVaultDepositsResponse, type GetUserVaultWithdrawsRequest, type GetUserVaultWithdrawsResponse, type GetUserVolumeForReferralRequest, type GetUserVolumeForReferralResponse, type GetUserWithdrawalsRequest, type GetUserWithdrawalsResponse, type GetUsersByAddressRequest, type GetUsersByAddressResponse, type GetVaultDepositsRequest, type GetVaultDepositsResponse, type GetVaultHistoricalDataRequest, type GetVaultHistoricalDataResponse, type GetVaultWithdrawalsRequest, type GetVaultWithdrawalsResponse, type HistoricBoxReward, type HistoricalBoxRewardsStats, type HistoricalDeposit, type HistoricalFunding, type HistoricalLiquidation, type HistoricalReferralStats, type HistoricalTokenStats, type HistoricalTradeStats, type HistoricalUserTransfer, type HistoricalVaultDeposit, type HistoricalVaultWithdraw, type HistoricalWithdraw, type IGetChartCandlesInRange, type IndexPriceHistory, type Lend, type LendTokenParams, type Liquidation, type MarginStep, type MarketStatusChange, Network, type NodeStatus, type OpenBoxesRequest, type OpenBoxesResponse, type OpenBoxesSignRequest, type OracleUpdate, type OracleUpdates, type Order, type OrderFills, OrderSide, OrderStatus, OrderType, type OrderbookUpdate, type PaginationCursor, type PerpFill, type PerpMarketData, type PerpOrder, type PerpOrderBookData, type PerpOrderData, type PerpOrderDataForMarket, type PerpPosition, type PerpTrade, type PerpTriggerOrder, type PerpetualMarketConfigEntry, type PerpetualMarketStatus, type PlaceMultiplePerpOrdersParams, type PlacePerpLimitOrder, type PlacePerpMarketOrder, type PlacePerpOrderParams, type PlacePerpTriggerOrder, type PlaceTriggerOrderParams, type PriceIndex, type RedeemTokenParams, type Referral, type ReferralUpdate, type RemoveApiKey, type RemoveApiKeyParams, type RemoveApiKeySignerParams, type RepayBorrow, type ReplaceMultipleOrdersParams, type SetAlias, type SetAliasNameParams, type SetAutoLend, type SetAutolendParams, type SetReferralCodeParams, type SetReferralParamsRequest, type SetReferralParamsResponse, type SpotMarketData, SpotMarketStatus, Status, type StatusResponse, type SubServiceStatus, type SubmitSponsoredTransactionRequest, type SubmitSponsoredTransactionResponse, TestFaucet, type TimeResponse, type TokenAggregatedStats, type TokenConfigEntry, type TokenizeUserVaultInvestmentParams, type Topic, type Trade, TradeRole, type TradesUpdate, TransferAction, type TransferToUserParams, type TriggerOrder, type TxParams, type UpdateUserFeeTier, type User, type UserAggregatedBoxRewardsStats, type UserAggregatedReferralStats, type UserAggregatedStats, type UserAggregatedVaultStats, type UserBoxOpeningEvent, type UserPortfolioValue, type UserRewardsValue, UserStatus, type UserTransfer, type UtilizationCurve, type Vault, type VaultDeposit, type VaultHistoricalData, type VaultInvestment, type VaultWithdraw, type Withdraw, type WithdrawFromVaultParams, type WithdrawLend, type WithdrawTokenParams, type WsBorrowLendUpdate, type WsBoxOpeningUpdate, type WsCommand, type WsFill, type WsLiquidationUpdate, type WsMessage, type WsOracleUpdates, type WsPerpMarketUpdates, type WsUserUpdates, generateApiKey, getRandomId, getTopicFromCommand, getTopicFromMessage, nowInMiliseconds, parseEntryFunctionAbi, sleep, toSystemValue };
|
package/dist/index.d.ts
CHANGED
|
@@ -700,6 +700,8 @@ interface GetUserDataResponse {
|
|
|
700
700
|
}
|
|
701
701
|
interface GetUserDepositsRequest {
|
|
702
702
|
userId: string;
|
|
703
|
+
olderTimestampMs?: string;
|
|
704
|
+
newerTimestampMs?: string;
|
|
703
705
|
paginationCursor?: PaginationCursor;
|
|
704
706
|
}
|
|
705
707
|
interface HistoricalDeposit {
|
|
@@ -898,6 +900,8 @@ interface GetUserVolumeForReferralResponse {
|
|
|
898
900
|
}
|
|
899
901
|
interface GetUserWithdrawalsRequest {
|
|
900
902
|
userId: string;
|
|
903
|
+
olderTimestampMs?: string;
|
|
904
|
+
newerTimestampMs?: string;
|
|
901
905
|
paginationCursor?: PaginationCursor;
|
|
902
906
|
}
|
|
903
907
|
interface HistoricalWithdraw {
|
|
@@ -1090,6 +1094,15 @@ interface SetReferralParamsRequest {
|
|
|
1090
1094
|
interface SetReferralParamsResponse {
|
|
1091
1095
|
txHash?: string;
|
|
1092
1096
|
}
|
|
1097
|
+
interface SpotMarketData {
|
|
1098
|
+
price: string;
|
|
1099
|
+
change24: string;
|
|
1100
|
+
high24: string;
|
|
1101
|
+
low24: string;
|
|
1102
|
+
baseVolume24: string;
|
|
1103
|
+
quoteVolume24: string;
|
|
1104
|
+
timestamp: string;
|
|
1105
|
+
}
|
|
1093
1106
|
interface StatusResponse {
|
|
1094
1107
|
status: string;
|
|
1095
1108
|
}
|
|
@@ -1890,4 +1903,4 @@ declare const generateApiKey: () => _aptos_labs_ts_sdk.Ed25519Account;
|
|
|
1890
1903
|
declare const getTopicFromCommand: (data: WsCommand) => string;
|
|
1891
1904
|
declare const getTopicFromMessage: (data: WsMessage) => string;
|
|
1892
1905
|
|
|
1893
|
-
export { type AddApiCreditsParams, type AddApiKey, type AddApiKeyParams, type Address, AdminEndpoints, type ApiCreditsChange, type ApiStatus, type BalanceChange, BaseEndpoints, type Borrow, type BorrowLendUpdate, type BorrowLending, type BorrowLendingAggregatedData, type BorrowLendingHistoricalData, type BoxOpeningEvent, type BoxReward, BoxRewardTier, type CancelAllPerpOrdersParams, type CancelPerpOrdersParams, type CanceledPerpOrders, type ChangePerpOrderPriceParams, type ChartCandle, ChartInterval, type CheckReferralCodeRequest, type CheckReferralCodeResponse, type ClaimDepositParams, type ClaimKickbackFeeParams, type ClaimReferralFee, type ClaimReferralFeesParams, type ClaimUserKickbackFee, type ClaimedKickback, type ClaimedReferralKickback, Client, type Content, type CreateUserParams, type Deposit, type DepositToVaultParams, type DepositTokenParams, EndpointsV1, type ErrorResponse, type ExchangeConfig, ExchangeProxies, type FeeData, type FeeTier, type Fees, type FundingCheckpoint, type FundingPayment, type FundingRate, GLOBAL_DENOMINATOR, type GetBorrowLendingAggregatedStatsRequest, type GetBorrowLendingAggregatedStatsResponse, type GetBorrowLendingDataResponse, type GetBorrowLendingHistoricalDataRequest, type GetBorrowLendingHistoricalDataResponse, type GetChartCandlesInRangeRequest, type GetChartCandlesInRangeResponse, type GetIndexPriceHistoryRequest, type GetIndexPriceHistoryResponse, type GetIndexerStatusResponse, type GetPerpMarketsDataRequest, type GetPerpMarketsDataResponse, type GetPerpOrderBookDataRequest, type GetPerpOrderBookDataResponse, type GetPerpRecentTradesRequest, type GetPerpRecentTradesResponse, type GetPerpUserFillsRequest, type GetPerpUserFillsResponse, type GetPerpUserOrdersRequest, type GetPerpUserOrdersResponse, type GetPerpUserTriggerOrdersRequest, type GetPerpUserTriggerOrdersResponse, type GetPerpetualMarketsConfigResponse, type GetPriceIndexesResponse, type GetServicesStatusResponse, type GetTokenAggregatedStatsRequest, type GetTokenAggregatedStatsResponse, type GetTokenStatsHistoryRequest, type GetTokenStatsHistoryResponse, type GetTokensConfigResponse, type GetUserAggregatedBoxRewardsStatsRequest, type GetUserAggregatedBoxRewardsStatsResponse, type GetUserAggregatedReferralStatsRequest, type GetUserAggregatedReferralStatsResponse, type GetUserAggregatedStatsRequest, type GetUserAggregatedStatsResponse, type GetUserAggregatedVaultStatsRequest, type GetUserAggregatedVaultStatsResponse, type GetUserBoxRewardsStatsHistoryRequest, type GetUserBoxRewardsStatsHistoryResponse, type GetUserBoxesHistoryRequest, type GetUserBoxesHistoryResponse, type GetUserClaimedKickbackHistoryRequest, type GetUserClaimedKickbackHistoryResponse, type GetUserClaimedReferralKickbackHistoryRequest, type GetUserClaimedReferralKickbackHistoryResponse, type GetUserDataRequest, type GetUserDataResponse, type GetUserDepositsRequest, type GetUserDepositsResponse, type GetUserFundingHistoryRequest, type GetUserFundingHistoryResponse, type GetUserLiquidationsHistoryRequest, type GetUserLiquidationsHistoryResponse, type GetUserPortfolioValueRequest, type GetUserPortfolioValueResponse, type GetUserReferralStatsHistoryRequest, type GetUserReferralStatsHistoryResponse, type GetUserRewardsValueRequest, type GetUserRewardsValueResponse, type GetUserTradeStatsHistoryRequest, type GetUserTradeStatsHistoryResponse, type GetUserTransferHistoryRequest, type GetUserTransferHistoryResponse, type GetUserVaultDepositsRequest, type GetUserVaultDepositsResponse, type GetUserVaultWithdrawsRequest, type GetUserVaultWithdrawsResponse, type GetUserVolumeForReferralRequest, type GetUserVolumeForReferralResponse, type GetUserWithdrawalsRequest, type GetUserWithdrawalsResponse, type GetUsersByAddressRequest, type GetUsersByAddressResponse, type GetVaultDepositsRequest, type GetVaultDepositsResponse, type GetVaultHistoricalDataRequest, type GetVaultHistoricalDataResponse, type GetVaultWithdrawalsRequest, type GetVaultWithdrawalsResponse, type HistoricBoxReward, type HistoricalBoxRewardsStats, type HistoricalDeposit, type HistoricalFunding, type HistoricalLiquidation, type HistoricalReferralStats, type HistoricalTokenStats, type HistoricalTradeStats, type HistoricalUserTransfer, type HistoricalVaultDeposit, type HistoricalVaultWithdraw, type HistoricalWithdraw, type IGetChartCandlesInRange, type IndexPriceHistory, type Lend, type LendTokenParams, type Liquidation, type MarginStep, type MarketStatusChange, Network, type NodeStatus, type OpenBoxesRequest, type OpenBoxesResponse, type OpenBoxesSignRequest, type OracleUpdate, type OracleUpdates, type Order, type OrderFills, OrderSide, OrderStatus, OrderType, type OrderbookUpdate, type PaginationCursor, type PerpFill, type PerpMarketData, type PerpOrder, type PerpOrderBookData, type PerpOrderData, type PerpOrderDataForMarket, type PerpPosition, type PerpTrade, type PerpTriggerOrder, type PerpetualMarketConfigEntry, type PerpetualMarketStatus, type PlaceMultiplePerpOrdersParams, type PlacePerpLimitOrder, type PlacePerpMarketOrder, type PlacePerpOrderParams, type PlacePerpTriggerOrder, type PlaceTriggerOrderParams, type PriceIndex, type RedeemTokenParams, type Referral, type ReferralUpdate, type RemoveApiKey, type RemoveApiKeyParams, type RemoveApiKeySignerParams, type RepayBorrow, type ReplaceMultipleOrdersParams, type SetAlias, type SetAliasNameParams, type SetAutoLend, type SetAutolendParams, type SetReferralCodeParams, type SetReferralParamsRequest, type SetReferralParamsResponse, SpotMarketStatus, Status, type StatusResponse, type SubServiceStatus, type SubmitSponsoredTransactionRequest, type SubmitSponsoredTransactionResponse, TestFaucet, type TimeResponse, type TokenAggregatedStats, type TokenConfigEntry, type TokenizeUserVaultInvestmentParams, type Topic, type Trade, TradeRole, type TradesUpdate, TransferAction, type TransferToUserParams, type TriggerOrder, type TxParams, type UpdateUserFeeTier, type User, type UserAggregatedBoxRewardsStats, type UserAggregatedReferralStats, type UserAggregatedStats, type UserAggregatedVaultStats, type UserBoxOpeningEvent, type UserPortfolioValue, type UserRewardsValue, UserStatus, type UserTransfer, type UtilizationCurve, type Vault, type VaultDeposit, type VaultHistoricalData, type VaultInvestment, type VaultWithdraw, type Withdraw, type WithdrawFromVaultParams, type WithdrawLend, type WithdrawTokenParams, type WsBorrowLendUpdate, type WsBoxOpeningUpdate, type WsCommand, type WsFill, type WsLiquidationUpdate, type WsMessage, type WsOracleUpdates, type WsPerpMarketUpdates, type WsUserUpdates, generateApiKey, getRandomId, getTopicFromCommand, getTopicFromMessage, nowInMiliseconds, parseEntryFunctionAbi, sleep, toSystemValue };
|
|
1906
|
+
export { type AddApiCreditsParams, type AddApiKey, type AddApiKeyParams, type Address, AdminEndpoints, type ApiCreditsChange, type ApiStatus, type BalanceChange, BaseEndpoints, type Borrow, type BorrowLendUpdate, type BorrowLending, type BorrowLendingAggregatedData, type BorrowLendingHistoricalData, type BoxOpeningEvent, type BoxReward, BoxRewardTier, type CancelAllPerpOrdersParams, type CancelPerpOrdersParams, type CanceledPerpOrders, type ChangePerpOrderPriceParams, type ChartCandle, ChartInterval, type CheckReferralCodeRequest, type CheckReferralCodeResponse, type ClaimDepositParams, type ClaimKickbackFeeParams, type ClaimReferralFee, type ClaimReferralFeesParams, type ClaimUserKickbackFee, type ClaimedKickback, type ClaimedReferralKickback, Client, type Content, type CreateUserParams, type Deposit, type DepositToVaultParams, type DepositTokenParams, EndpointsV1, type ErrorResponse, type ExchangeConfig, ExchangeProxies, type FeeData, type FeeTier, type Fees, type FundingCheckpoint, type FundingPayment, type FundingRate, GLOBAL_DENOMINATOR, type GetBorrowLendingAggregatedStatsRequest, type GetBorrowLendingAggregatedStatsResponse, type GetBorrowLendingDataResponse, type GetBorrowLendingHistoricalDataRequest, type GetBorrowLendingHistoricalDataResponse, type GetChartCandlesInRangeRequest, type GetChartCandlesInRangeResponse, type GetIndexPriceHistoryRequest, type GetIndexPriceHistoryResponse, type GetIndexerStatusResponse, type GetPerpMarketsDataRequest, type GetPerpMarketsDataResponse, type GetPerpOrderBookDataRequest, type GetPerpOrderBookDataResponse, type GetPerpRecentTradesRequest, type GetPerpRecentTradesResponse, type GetPerpUserFillsRequest, type GetPerpUserFillsResponse, type GetPerpUserOrdersRequest, type GetPerpUserOrdersResponse, type GetPerpUserTriggerOrdersRequest, type GetPerpUserTriggerOrdersResponse, type GetPerpetualMarketsConfigResponse, type GetPriceIndexesResponse, type GetServicesStatusResponse, type GetTokenAggregatedStatsRequest, type GetTokenAggregatedStatsResponse, type GetTokenStatsHistoryRequest, type GetTokenStatsHistoryResponse, type GetTokensConfigResponse, type GetUserAggregatedBoxRewardsStatsRequest, type GetUserAggregatedBoxRewardsStatsResponse, type GetUserAggregatedReferralStatsRequest, type GetUserAggregatedReferralStatsResponse, type GetUserAggregatedStatsRequest, type GetUserAggregatedStatsResponse, type GetUserAggregatedVaultStatsRequest, type GetUserAggregatedVaultStatsResponse, type GetUserBoxRewardsStatsHistoryRequest, type GetUserBoxRewardsStatsHistoryResponse, type GetUserBoxesHistoryRequest, type GetUserBoxesHistoryResponse, type GetUserClaimedKickbackHistoryRequest, type GetUserClaimedKickbackHistoryResponse, type GetUserClaimedReferralKickbackHistoryRequest, type GetUserClaimedReferralKickbackHistoryResponse, type GetUserDataRequest, type GetUserDataResponse, type GetUserDepositsRequest, type GetUserDepositsResponse, type GetUserFundingHistoryRequest, type GetUserFundingHistoryResponse, type GetUserLiquidationsHistoryRequest, type GetUserLiquidationsHistoryResponse, type GetUserPortfolioValueRequest, type GetUserPortfolioValueResponse, type GetUserReferralStatsHistoryRequest, type GetUserReferralStatsHistoryResponse, type GetUserRewardsValueRequest, type GetUserRewardsValueResponse, type GetUserTradeStatsHistoryRequest, type GetUserTradeStatsHistoryResponse, type GetUserTransferHistoryRequest, type GetUserTransferHistoryResponse, type GetUserVaultDepositsRequest, type GetUserVaultDepositsResponse, type GetUserVaultWithdrawsRequest, type GetUserVaultWithdrawsResponse, type GetUserVolumeForReferralRequest, type GetUserVolumeForReferralResponse, type GetUserWithdrawalsRequest, type GetUserWithdrawalsResponse, type GetUsersByAddressRequest, type GetUsersByAddressResponse, type GetVaultDepositsRequest, type GetVaultDepositsResponse, type GetVaultHistoricalDataRequest, type GetVaultHistoricalDataResponse, type GetVaultWithdrawalsRequest, type GetVaultWithdrawalsResponse, type HistoricBoxReward, type HistoricalBoxRewardsStats, type HistoricalDeposit, type HistoricalFunding, type HistoricalLiquidation, type HistoricalReferralStats, type HistoricalTokenStats, type HistoricalTradeStats, type HistoricalUserTransfer, type HistoricalVaultDeposit, type HistoricalVaultWithdraw, type HistoricalWithdraw, type IGetChartCandlesInRange, type IndexPriceHistory, type Lend, type LendTokenParams, type Liquidation, type MarginStep, type MarketStatusChange, Network, type NodeStatus, type OpenBoxesRequest, type OpenBoxesResponse, type OpenBoxesSignRequest, type OracleUpdate, type OracleUpdates, type Order, type OrderFills, OrderSide, OrderStatus, OrderType, type OrderbookUpdate, type PaginationCursor, type PerpFill, type PerpMarketData, type PerpOrder, type PerpOrderBookData, type PerpOrderData, type PerpOrderDataForMarket, type PerpPosition, type PerpTrade, type PerpTriggerOrder, type PerpetualMarketConfigEntry, type PerpetualMarketStatus, type PlaceMultiplePerpOrdersParams, type PlacePerpLimitOrder, type PlacePerpMarketOrder, type PlacePerpOrderParams, type PlacePerpTriggerOrder, type PlaceTriggerOrderParams, type PriceIndex, type RedeemTokenParams, type Referral, type ReferralUpdate, type RemoveApiKey, type RemoveApiKeyParams, type RemoveApiKeySignerParams, type RepayBorrow, type ReplaceMultipleOrdersParams, type SetAlias, type SetAliasNameParams, type SetAutoLend, type SetAutolendParams, type SetReferralCodeParams, type SetReferralParamsRequest, type SetReferralParamsResponse, type SpotMarketData, SpotMarketStatus, Status, type StatusResponse, type SubServiceStatus, type SubmitSponsoredTransactionRequest, type SubmitSponsoredTransactionResponse, TestFaucet, type TimeResponse, type TokenAggregatedStats, type TokenConfigEntry, type TokenizeUserVaultInvestmentParams, type Topic, type Trade, TradeRole, type TradesUpdate, TransferAction, type TransferToUserParams, type TriggerOrder, type TxParams, type UpdateUserFeeTier, type User, type UserAggregatedBoxRewardsStats, type UserAggregatedReferralStats, type UserAggregatedStats, type UserAggregatedVaultStats, type UserBoxOpeningEvent, type UserPortfolioValue, type UserRewardsValue, UserStatus, type UserTransfer, type UtilizationCurve, type Vault, type VaultDeposit, type VaultHistoricalData, type VaultInvestment, type VaultWithdraw, type Withdraw, type WithdrawFromVaultParams, type WithdrawLend, type WithdrawTokenParams, type WsBorrowLendUpdate, type WsBoxOpeningUpdate, type WsCommand, type WsFill, type WsLiquidationUpdate, type WsMessage, type WsOracleUpdates, type WsPerpMarketUpdates, type WsUserUpdates, generateApiKey, getRandomId, getTopicFromCommand, getTopicFromMessage, nowInMiliseconds, parseEntryFunctionAbi, sleep, toSystemValue };
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import { v4 as uuidv4 } from "uuid";
|
|
|
15
15
|
|
|
16
16
|
// generated_types/addApiKey.ts
|
|
17
17
|
var ABI = {
|
|
18
|
-
"address": "
|
|
18
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
19
19
|
"name": "add_api_key",
|
|
20
20
|
"friends": [],
|
|
21
21
|
"exposed_functions": [
|
|
@@ -40,7 +40,7 @@ var addApiKey_default = ABI;
|
|
|
40
40
|
|
|
41
41
|
// generated_types/cancelAllPerpOrders.ts
|
|
42
42
|
var ABI2 = {
|
|
43
|
-
"address": "
|
|
43
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
44
44
|
"name": "cancel_all_perp_orders",
|
|
45
45
|
"friends": [],
|
|
46
46
|
"exposed_functions": [
|
|
@@ -63,7 +63,7 @@ var cancelAllPerpOrders_default = ABI2;
|
|
|
63
63
|
|
|
64
64
|
// generated_types/cancelPerpOrders.ts
|
|
65
65
|
var ABI3 = {
|
|
66
|
-
"address": "
|
|
66
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
67
67
|
"name": "cancel_perp_orders",
|
|
68
68
|
"friends": [],
|
|
69
69
|
"exposed_functions": [
|
|
@@ -88,7 +88,7 @@ var cancelPerpOrders_default = ABI3;
|
|
|
88
88
|
|
|
89
89
|
// generated_types/createUser.ts
|
|
90
90
|
var ABI4 = {
|
|
91
|
-
"address": "
|
|
91
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
92
92
|
"name": "create_user",
|
|
93
93
|
"friends": [],
|
|
94
94
|
"exposed_functions": [
|
|
@@ -113,7 +113,7 @@ var createUser_default = ABI4;
|
|
|
113
113
|
|
|
114
114
|
// generated_types/depositToVault.ts
|
|
115
115
|
var ABI5 = {
|
|
116
|
-
"address": "
|
|
116
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
117
117
|
"name": "deposit_to_vault",
|
|
118
118
|
"friends": [],
|
|
119
119
|
"exposed_functions": [
|
|
@@ -138,7 +138,7 @@ var depositToVault_default = ABI5;
|
|
|
138
138
|
|
|
139
139
|
// generated_types/depositToken.ts
|
|
140
140
|
var ABI6 = {
|
|
141
|
-
"address": "
|
|
141
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
142
142
|
"name": "deposit_token",
|
|
143
143
|
"friends": [],
|
|
144
144
|
"exposed_functions": [
|
|
@@ -163,7 +163,7 @@ var depositToken_default = ABI6;
|
|
|
163
163
|
|
|
164
164
|
// generated_types/lendToken.ts
|
|
165
165
|
var ABI7 = {
|
|
166
|
-
"address": "
|
|
166
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
167
167
|
"name": "lend_token",
|
|
168
168
|
"friends": [],
|
|
169
169
|
"exposed_functions": [
|
|
@@ -189,7 +189,7 @@ var lendToken_default = ABI7;
|
|
|
189
189
|
|
|
190
190
|
// generated_types/placePerpLimitOrder.ts
|
|
191
191
|
var ABI8 = {
|
|
192
|
-
"address": "
|
|
192
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
193
193
|
"name": "place_perp_limit_order",
|
|
194
194
|
"friends": [],
|
|
195
195
|
"exposed_functions": [
|
|
@@ -218,7 +218,7 @@ var placePerpLimitOrder_default = ABI8;
|
|
|
218
218
|
|
|
219
219
|
// generated_types/changePerpOrderPrice.ts
|
|
220
220
|
var ABI9 = {
|
|
221
|
-
"address": "
|
|
221
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
222
222
|
"name": "change_perp_order_price",
|
|
223
223
|
"friends": [],
|
|
224
224
|
"exposed_functions": [
|
|
@@ -246,7 +246,7 @@ var changePerpOrderPrice_default = ABI9;
|
|
|
246
246
|
|
|
247
247
|
// generated_types/placePerpMarketOrder.ts
|
|
248
248
|
var ABI10 = {
|
|
249
|
-
"address": "
|
|
249
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
250
250
|
"name": "place_perp_market_order",
|
|
251
251
|
"friends": [],
|
|
252
252
|
"exposed_functions": [
|
|
@@ -274,7 +274,7 @@ var placePerpMarketOrder_default = ABI10;
|
|
|
274
274
|
|
|
275
275
|
// generated_types/redeemToken.ts
|
|
276
276
|
var ABI11 = {
|
|
277
|
-
"address": "
|
|
277
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
278
278
|
"name": "redeem_token",
|
|
279
279
|
"friends": [],
|
|
280
280
|
"exposed_functions": [
|
|
@@ -300,7 +300,7 @@ var redeemToken_default = ABI11;
|
|
|
300
300
|
|
|
301
301
|
// generated_types/removeApiKey.ts
|
|
302
302
|
var ABI12 = {
|
|
303
|
-
"address": "
|
|
303
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
304
304
|
"name": "remove_api_key",
|
|
305
305
|
"friends": [],
|
|
306
306
|
"exposed_functions": [
|
|
@@ -324,7 +324,7 @@ var removeApiKey_default = ABI12;
|
|
|
324
324
|
|
|
325
325
|
// generated_types/setAliasName.ts
|
|
326
326
|
var ABI13 = {
|
|
327
|
-
"address": "
|
|
327
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
328
328
|
"name": "set_alias_name",
|
|
329
329
|
"friends": [],
|
|
330
330
|
"exposed_functions": [
|
|
@@ -348,7 +348,7 @@ var setAliasName_default = ABI13;
|
|
|
348
348
|
|
|
349
349
|
// generated_types/setAutolend.ts
|
|
350
350
|
var ABI14 = {
|
|
351
|
-
"address": "
|
|
351
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
352
352
|
"name": "set_autolend",
|
|
353
353
|
"friends": [],
|
|
354
354
|
"exposed_functions": [
|
|
@@ -372,7 +372,7 @@ var setAutolend_default = ABI14;
|
|
|
372
372
|
|
|
373
373
|
// generated_types/claimReferralFees.ts
|
|
374
374
|
var ABI15 = {
|
|
375
|
-
"address": "
|
|
375
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
376
376
|
"name": "claim_referral_fees",
|
|
377
377
|
"friends": [],
|
|
378
378
|
"exposed_functions": [
|
|
@@ -396,7 +396,7 @@ var claimReferralFees_default = ABI15;
|
|
|
396
396
|
|
|
397
397
|
// generated_types/transferToUser.ts
|
|
398
398
|
var ABI16 = {
|
|
399
|
-
"address": "
|
|
399
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
400
400
|
"name": "transfer_to_user",
|
|
401
401
|
"friends": [],
|
|
402
402
|
"exposed_functions": [
|
|
@@ -424,7 +424,7 @@ var transferToUser_default = ABI16;
|
|
|
424
424
|
|
|
425
425
|
// generated_types/withdrawToken.ts
|
|
426
426
|
var ABI17 = {
|
|
427
|
-
"address": "
|
|
427
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
428
428
|
"name": "withdraw_token",
|
|
429
429
|
"friends": [],
|
|
430
430
|
"exposed_functions": [
|
|
@@ -452,7 +452,7 @@ var withdrawToken_default = ABI17;
|
|
|
452
452
|
|
|
453
453
|
// generated_types/placeMultiplePerpOrders.ts
|
|
454
454
|
var ABI18 = {
|
|
455
|
-
"address": "
|
|
455
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
456
456
|
"name": "place_multiple_perp_orders",
|
|
457
457
|
"friends": [],
|
|
458
458
|
"exposed_functions": [
|
|
@@ -481,7 +481,7 @@ var placeMultiplePerpOrders_default = ABI18;
|
|
|
481
481
|
|
|
482
482
|
// generated_types/claimKickbackFee.ts
|
|
483
483
|
var ABI19 = {
|
|
484
|
-
"address": "
|
|
484
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
485
485
|
"name": "claim_kickback_fee",
|
|
486
486
|
"friends": [],
|
|
487
487
|
"exposed_functions": [
|
|
@@ -504,7 +504,7 @@ var claimKickbackFee_default = ABI19;
|
|
|
504
504
|
|
|
505
505
|
// generated_types/replaceMultipleOrders.ts
|
|
506
506
|
var ABI20 = {
|
|
507
|
-
"address": "
|
|
507
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
508
508
|
"name": "replace_multiple_orders",
|
|
509
509
|
"friends": [],
|
|
510
510
|
"exposed_functions": [
|
|
@@ -532,7 +532,7 @@ var replaceMultipleOrders_default = ABI20;
|
|
|
532
532
|
|
|
533
533
|
// generated_types/claimDeposit.ts
|
|
534
534
|
var ABI21 = {
|
|
535
|
-
"address": "
|
|
535
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
536
536
|
"name": "claim_deposit",
|
|
537
537
|
"friends": [],
|
|
538
538
|
"exposed_functions": [
|
|
@@ -556,7 +556,7 @@ var claimDeposit_default = ABI21;
|
|
|
556
556
|
|
|
557
557
|
// generated_types/removeApiKeySigner.ts
|
|
558
558
|
var ABI22 = {
|
|
559
|
-
"address": "
|
|
559
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
560
560
|
"name": "remove_api_key_signer",
|
|
561
561
|
"friends": [],
|
|
562
562
|
"exposed_functions": [
|
|
@@ -580,7 +580,7 @@ var removeApiKeySigner_default = ABI22;
|
|
|
580
580
|
|
|
581
581
|
// generated_types/setReferralCode.ts
|
|
582
582
|
var ABI23 = {
|
|
583
|
-
"address": "
|
|
583
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
584
584
|
"name": "set_referral_code",
|
|
585
585
|
"friends": [],
|
|
586
586
|
"exposed_functions": [
|
|
@@ -604,7 +604,7 @@ var setReferralCode_default = ABI23;
|
|
|
604
604
|
|
|
605
605
|
// generated_types/tokenizeUserVaultInvestment.ts
|
|
606
606
|
var ABI24 = {
|
|
607
|
-
"address": "
|
|
607
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
608
608
|
"name": "tokenize_user_vault_investment",
|
|
609
609
|
"friends": [],
|
|
610
610
|
"exposed_functions": [
|
|
@@ -628,7 +628,7 @@ var tokenizeUserVaultInvestment_default = ABI24;
|
|
|
628
628
|
|
|
629
629
|
// generated_types/addCredits.ts
|
|
630
630
|
var ABI25 = {
|
|
631
|
-
"address": "
|
|
631
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
632
632
|
"name": "add_credits",
|
|
633
633
|
"friends": [],
|
|
634
634
|
"exposed_functions": [
|
|
@@ -652,7 +652,7 @@ var addCredits_default = ABI25;
|
|
|
652
652
|
|
|
653
653
|
// generated_types/placeTriggerOrder.ts
|
|
654
654
|
var ABI26 = {
|
|
655
|
-
"address": "
|
|
655
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
656
656
|
"name": "place_trigger_order",
|
|
657
657
|
"friends": [],
|
|
658
658
|
"exposed_functions": [
|
|
@@ -807,7 +807,7 @@ var UserStatus = /* @__PURE__ */ ((UserStatus2) => {
|
|
|
807
807
|
|
|
808
808
|
// generated_types/withdrawFromVault.ts
|
|
809
809
|
var ABI27 = {
|
|
810
|
-
"address": "
|
|
810
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
811
811
|
"name": "withdraw_from_vault",
|
|
812
812
|
"friends": [],
|
|
813
813
|
"exposed_functions": [
|
|
@@ -2359,7 +2359,7 @@ function parseEntryFunctionAbi(args) {
|
|
|
2359
2359
|
|
|
2360
2360
|
// generated_types/faucetEntrypoints.ts
|
|
2361
2361
|
var ABI28 = {
|
|
2362
|
-
"address": "
|
|
2362
|
+
"address": "0xc479e4ff13aa1aa8d1d2f0e87adf8fe7ea7c88c4e70f185c59813dfdad6ef6a0",
|
|
2363
2363
|
"name": "faucet_entrypoints",
|
|
2364
2364
|
"friends": [],
|
|
2365
2365
|
"exposed_functions": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nightlylabs/dex-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.75",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"keywords": [],
|
|
39
39
|
"author": "",
|
|
40
40
|
"license": "ISC",
|
|
41
|
-
"packageManager": "pnpm@
|
|
41
|
+
"packageManager": "pnpm@10.17.1",
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@aptos-labs/ts-sdk": "4.0.0",
|
|
44
44
|
"decimal.js": "^10.5.0",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"uuid": "^11.0.5"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@thalalabs/surf": "1.9.3",
|
|
50
49
|
"@changesets/cli": "^2.27.12",
|
|
50
|
+
"@thalalabs/surf": "1.9.3",
|
|
51
51
|
"@types/node": "^22.10.10",
|
|
52
52
|
"dotenv": "^16.4.7",
|
|
53
53
|
"tsup": "^8.3.6",
|