@nightlylabs/dex-sdk 0.3.11 → 0.3.12

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 CHANGED
@@ -14626,50 +14626,41 @@ var openBoxes_default2 = ABI104;
14626
14626
 
14627
14627
  // generated_types_mainnet/addApiKey.ts
14628
14628
  var ABI105 = {
14629
- "address": "0x41ddb53dd0d9252f69127e708bfea22532ff21b6960eb4f29aca237d54e3b20f",
14630
- "name": "add_api_key",
14631
- "friends": [],
14632
- "exposed_functions": [
14633
- {
14634
- "name": "add_api_key",
14635
- "visibility": "public",
14636
- "is_entry": true,
14637
- "is_view": false,
14638
- "generic_type_params": [],
14639
- "params": [
14640
- "&signer",
14641
- "&signer",
14642
- "u64",
14643
- "u64"
14644
- ],
14645
- "return": []
14629
+ address: "0x41ddb53dd0d9252f69127e708bfea22532ff21b6960eb4f29aca237d54e3b20f",
14630
+ name: "add_api_key",
14631
+ friends: [],
14632
+ exposed_functions: [
14633
+ {
14634
+ name: "add_api_key",
14635
+ visibility: "public",
14636
+ is_entry: true,
14637
+ is_view: false,
14638
+ generic_type_params: [],
14639
+ params: ["&signer", "&signer", "u64", "u64"],
14640
+ return: []
14646
14641
  }
14647
14642
  ],
14648
- "structs": []
14643
+ structs: []
14649
14644
  };
14650
14645
  var addApiKey_default2 = ABI105;
14651
14646
 
14652
14647
  // generated_types_mainnet/addCredits.ts
14653
14648
  var ABI106 = {
14654
- "address": "0x41ddb53dd0d9252f69127e708bfea22532ff21b6960eb4f29aca237d54e3b20f",
14655
- "name": "add_credits",
14656
- "friends": [],
14657
- "exposed_functions": [
14658
- {
14659
- "name": "add_credits",
14660
- "visibility": "public",
14661
- "is_entry": true,
14662
- "is_view": false,
14663
- "generic_type_params": [],
14664
- "params": [
14665
- "&signer",
14666
- "u64",
14667
- "u64"
14668
- ],
14669
- "return": []
14649
+ address: "0x41ddb53dd0d9252f69127e708bfea22532ff21b6960eb4f29aca237d54e3b20f",
14650
+ name: "add_credits",
14651
+ friends: [],
14652
+ exposed_functions: [
14653
+ {
14654
+ name: "add_credits",
14655
+ visibility: "public",
14656
+ is_entry: true,
14657
+ is_view: false,
14658
+ generic_type_params: [],
14659
+ params: ["&signer", "u64", "u64"],
14660
+ return: []
14670
14661
  }
14671
14662
  ],
14672
- "structs": []
14663
+ structs: []
14673
14664
  };
14674
14665
  var addCredits_default2 = ABI106;
14675
14666
 
@@ -19429,24 +19420,21 @@ var withdrawToken_default2 = ABI134;
19429
19420
 
19430
19421
  // generated_types_mainnet/addDevAddress.ts
19431
19422
  var ABI135 = {
19432
- "address": "0x41ddb53dd0d9252f69127e708bfea22532ff21b6960eb4f29aca237d54e3b20f",
19433
- "name": "add_dev_address",
19434
- "friends": [],
19435
- "exposed_functions": [
19436
- {
19437
- "name": "add_dev_address",
19438
- "visibility": "public",
19439
- "is_entry": true,
19440
- "is_view": false,
19441
- "generic_type_params": [],
19442
- "params": [
19443
- "&signer",
19444
- "address"
19445
- ],
19446
- "return": []
19423
+ address: "0x41ddb53dd0d9252f69127e708bfea22532ff21b6960eb4f29aca237d54e3b20f",
19424
+ name: "add_dev_address",
19425
+ friends: [],
19426
+ exposed_functions: [
19427
+ {
19428
+ name: "add_dev_address",
19429
+ visibility: "public",
19430
+ is_entry: true,
19431
+ is_view: false,
19432
+ generic_type_params: [],
19433
+ params: ["&signer", "address"],
19434
+ return: []
19447
19435
  }
19448
19436
  ],
19449
- "structs": []
19437
+ structs: []
19450
19438
  };
19451
19439
  var addDevAddress_default2 = ABI135;
19452
19440
 
@@ -19476,17 +19464,17 @@ var addSystemUser_default2 = ABI136;
19476
19464
 
19477
19465
  // generated_types_mainnet/addNewLpToken.ts
19478
19466
  var ABI137 = {
19479
- "address": "0x41ddb53dd0d9252f69127e708bfea22532ff21b6960eb4f29aca237d54e3b20f",
19480
- "name": "add_new_lp_token",
19481
- "friends": [],
19482
- "exposed_functions": [
19483
- {
19484
- "name": "add_new_lp_token",
19485
- "visibility": "public",
19486
- "is_entry": true,
19487
- "is_view": false,
19488
- "generic_type_params": [],
19489
- "params": [
19467
+ address: "0x41ddb53dd0d9252f69127e708bfea22532ff21b6960eb4f29aca237d54e3b20f",
19468
+ name: "add_new_lp_token",
19469
+ friends: [],
19470
+ exposed_functions: [
19471
+ {
19472
+ name: "add_new_lp_token",
19473
+ visibility: "public",
19474
+ is_entry: true,
19475
+ is_view: false,
19476
+ generic_type_params: [],
19477
+ params: [
19490
19478
  "&signer",
19491
19479
  "u64",
19492
19480
  "vector<u8>",
@@ -19505,10 +19493,10 @@ var ABI137 = {
19505
19493
  "vector<u8>",
19506
19494
  "u8"
19507
19495
  ],
19508
- "return": []
19496
+ return: []
19509
19497
  }
19510
19498
  ],
19511
- "structs": []
19499
+ structs: []
19512
19500
  };
19513
19501
  var addNewLpToken_default2 = ABI137;
19514
19502
 
@@ -21631,17 +21619,17 @@ var spotOrdersEvents_default2 = ABI156;
21631
21619
 
21632
21620
  // generated_types_mainnet/addNewPerpMarket.ts
21633
21621
  var ABI157 = {
21634
- "address": "0x41ddb53dd0d9252f69127e708bfea22532ff21b6960eb4f29aca237d54e3b20f",
21635
- "name": "add_new_perp_market",
21636
- "friends": [],
21637
- "exposed_functions": [
21638
- {
21639
- "name": "add_new_perp_market",
21640
- "visibility": "public",
21641
- "is_entry": true,
21642
- "is_view": false,
21643
- "generic_type_params": [],
21644
- "params": [
21622
+ address: "0x41ddb53dd0d9252f69127e708bfea22532ff21b6960eb4f29aca237d54e3b20f",
21623
+ name: "add_new_perp_market",
21624
+ friends: [],
21625
+ exposed_functions: [
21626
+ {
21627
+ name: "add_new_perp_market",
21628
+ visibility: "public",
21629
+ is_entry: true,
21630
+ is_view: false,
21631
+ generic_type_params: [],
21632
+ params: [
21645
21633
  "&signer",
21646
21634
  "vector<u8>",
21647
21635
  "vector<u8>",
@@ -21658,39 +21646,30 @@ var ABI157 = {
21658
21646
  "u64",
21659
21647
  "u64"
21660
21648
  ],
21661
- "return": []
21649
+ return: []
21662
21650
  }
21663
21651
  ],
21664
- "structs": []
21652
+ structs: []
21665
21653
  };
21666
21654
  var addNewPerpMarket_default2 = ABI157;
21667
21655
 
21668
21656
  // generated_types_mainnet/addNewSpotMarket.ts
21669
21657
  var ABI158 = {
21670
- "address": "0x41ddb53dd0d9252f69127e708bfea22532ff21b6960eb4f29aca237d54e3b20f",
21671
- "name": "add_new_spot_market",
21672
- "friends": [],
21673
- "exposed_functions": [
21674
- {
21675
- "name": "add_new_spot_market",
21676
- "visibility": "public",
21677
- "is_entry": true,
21678
- "is_view": false,
21679
- "generic_type_params": [],
21680
- "params": [
21681
- "&signer",
21682
- "vector<u8>",
21683
- "address",
21684
- "address",
21685
- "u64",
21686
- "u64",
21687
- "u64",
21688
- "u64"
21689
- ],
21690
- "return": []
21658
+ address: "0x41ddb53dd0d9252f69127e708bfea22532ff21b6960eb4f29aca237d54e3b20f",
21659
+ name: "add_new_spot_market",
21660
+ friends: [],
21661
+ exposed_functions: [
21662
+ {
21663
+ name: "add_new_spot_market",
21664
+ visibility: "public",
21665
+ is_entry: true,
21666
+ is_view: false,
21667
+ generic_type_params: [],
21668
+ params: ["&signer", "vector<u8>", "address", "address", "u64", "u64", "u64", "u64"],
21669
+ return: []
21691
21670
  }
21692
21671
  ],
21693
- "structs": []
21672
+ structs: []
21694
21673
  };
21695
21674
  var addNewSpotMarket_default2 = ABI158;
21696
21675
 
@@ -23413,9 +23392,10 @@ var EndpointsV1 = /* @__PURE__ */ ((EndpointsV12) => {
23413
23392
  EndpointsV12["GetSpotMarketsData"] = "/v1/get_spot_markets_data";
23414
23393
  EndpointsV12["GetSpotRecentTrades"] = "/v1/get_spot_recent_trades";
23415
23394
  EndpointsV12["GetAllVaultsIds"] = "/v1/get_all_vaults_ids";
23416
- EndpointsV12["GetTopRanking"] = "/v1/get_top_ranking";
23417
- EndpointsV12["GetUserPersonalRanking"] = "/v1/get_user_personal_ranking";
23395
+ EndpointsV12["GetTopPointsRanking"] = "/v1/get_top_points_ranking";
23396
+ EndpointsV12["GetUserPersonalPointsRanking"] = "/v1/get_user_personal_points_ranking";
23418
23397
  EndpointsV12["GetIndexPrices"] = "/v1/get_index_prices";
23398
+ EndpointsV12["GetAccountValueRanking"] = "/v1/get_account_value_ranking";
23419
23399
  return EndpointsV12;
23420
23400
  })(EndpointsV1 || {});
23421
23401
  var UserStatus = /* @__PURE__ */ ((UserStatus2) => {
@@ -24201,12 +24181,16 @@ var Client = class _Client {
24201
24181
  );
24202
24182
  return response;
24203
24183
  };
24204
- this.getUserPersonalRanking = async (request) => {
24205
- const response = await this.sendGetJson("/v1/get_user_personal_ranking" /* GetUserPersonalRanking */, request);
24184
+ this.getUserPersonalPointsRanking = async (request) => {
24185
+ const response = await this.sendGetJson("/v1/get_user_personal_points_ranking" /* GetUserPersonalPointsRanking */, request);
24186
+ return response;
24187
+ };
24188
+ this.getTopPointsRanking = async () => {
24189
+ const response = await this.sendGetJson("/v1/get_top_points_ranking" /* GetTopPointsRanking */);
24206
24190
  return response;
24207
24191
  };
24208
- this.getTopRanking = async () => {
24209
- const response = await this.sendGetJson("/v1/get_top_ranking" /* GetTopRanking */);
24192
+ this.getAccountValueRanking = async (request) => {
24193
+ const response = await this.sendGetJson("/v1/get_account_value_ranking" /* GetAccountValueRanking */, request);
24210
24194
  return response;
24211
24195
  };
24212
24196
  // Meta
package/dist/index.d.cts CHANGED
@@ -3436,6 +3436,26 @@ declare const ABIs: {
3436
3436
  };
3437
3437
 
3438
3438
  type PaginationCursor = string;
3439
+ interface AccountValueRankingEntry {
3440
+ userId: string;
3441
+ alias: string;
3442
+ address: string;
3443
+ rank: string;
3444
+ totalAccountValue: string;
3445
+ pnl24h: string;
3446
+ roi24h: string;
3447
+ volume24h: string;
3448
+ pnl7d: string;
3449
+ roi7d: string;
3450
+ volume7d: string;
3451
+ pnl30d: string;
3452
+ roi30d: string;
3453
+ volume30d: string;
3454
+ pnlAllTime: string;
3455
+ roiAllTime: string;
3456
+ volumeAllTime: string;
3457
+ lastUpdatedTimestampMs: string;
3458
+ }
3439
3459
  interface AddApiKey {
3440
3460
  userId: string;
3441
3461
  apiKey: string;
@@ -3706,6 +3726,13 @@ interface FundingPayment {
3706
3726
  positionValue: string;
3707
3727
  fundingRate: string;
3708
3728
  }
3729
+ interface GetAccountValueRankingRequest {
3730
+ paginationCursor?: PaginationCursor;
3731
+ }
3732
+ interface GetAccountValueRankingResponse {
3733
+ usersRanking: AccountValueRankingEntry[];
3734
+ paginationCursor?: PaginationCursor;
3735
+ }
3709
3736
  interface GetAllVaultsIdsResponse {
3710
3737
  vaultsIds: string[];
3711
3738
  }
@@ -4074,7 +4101,7 @@ interface GetTokensConfigResponse {
4074
4101
  tokens: Record<string, TokenConfigEntry>;
4075
4102
  usdAddress?: string;
4076
4103
  }
4077
- interface RankingEntry {
4104
+ interface PointsRankingEntry {
4078
4105
  userId: string;
4079
4106
  alias: string;
4080
4107
  address: string;
@@ -4088,8 +4115,8 @@ interface RankingEntry {
4088
4115
  vaultPoints: string;
4089
4116
  referralPoints: string;
4090
4117
  }
4091
- interface GetTopRankingResponse {
4092
- usersRanking: RankingEntry[];
4118
+ interface GetTopPointsRankingResponse {
4119
+ usersRanking: PointsRankingEntry[];
4093
4120
  }
4094
4121
  interface GetUserAggregatedBoxRewardsStatsRequest {
4095
4122
  userId: string;
@@ -4382,11 +4409,11 @@ interface GetUserPartialLiquidationsHistoryResponse {
4382
4409
  liquidations: HistoricalPartialLiquidation[];
4383
4410
  paginationCursor?: PaginationCursor;
4384
4411
  }
4385
- interface GetUserPersonalRankingRequest {
4412
+ interface GetUserPersonalPointsRankingRequest {
4386
4413
  userId: string;
4387
4414
  }
4388
- interface GetUserPersonalRankingResponse {
4389
- userRanking: RankingEntry;
4415
+ interface GetUserPersonalPointsRankingResponse {
4416
+ userRanking: PointsRankingEntry;
4390
4417
  }
4391
4418
  interface GetUserPointsHistoryRequest {
4392
4419
  userId: string;
@@ -4990,9 +5017,10 @@ declare enum EndpointsV1 {
4990
5017
  GetSpotMarketsData = "/v1/get_spot_markets_data",
4991
5018
  GetSpotRecentTrades = "/v1/get_spot_recent_trades",
4992
5019
  GetAllVaultsIds = "/v1/get_all_vaults_ids",
4993
- GetTopRanking = "/v1/get_top_ranking",
4994
- GetUserPersonalRanking = "/v1/get_user_personal_ranking",
4995
- GetIndexPrices = "/v1/get_index_prices"
5020
+ GetTopPointsRanking = "/v1/get_top_points_ranking",
5021
+ GetUserPersonalPointsRanking = "/v1/get_user_personal_points_ranking",
5022
+ GetIndexPrices = "/v1/get_index_prices",
5023
+ GetAccountValueRanking = "/v1/get_account_value_ranking"
4996
5024
  }
4997
5025
  type Topic = {
4998
5026
  type: "PerpMarket";
@@ -5741,8 +5769,9 @@ declare class Client {
5741
5769
  getUserRequiredVolumeForReferral: (request: GetUserVolumeForReferralRequest) => Promise<GetUserVolumeForReferralResponse>;
5742
5770
  getUserPointsHistory: (request: GetUserPointsHistoryRequest) => Promise<GetUserPointsHistoryResponse>;
5743
5771
  getAllVaultsIds: () => Promise<GetAllVaultsIdsResponse>;
5744
- getUserPersonalRanking: (request: GetUserPersonalRankingRequest) => Promise<GetUserPersonalRankingResponse>;
5745
- getTopRanking: () => Promise<GetTopRankingResponse>;
5772
+ getUserPersonalPointsRanking: (request: GetUserPersonalPointsRankingRequest) => Promise<GetUserPersonalPointsRankingResponse>;
5773
+ getTopPointsRanking: () => Promise<GetTopPointsRankingResponse>;
5774
+ getAccountValueRanking: (request: GetAccountValueRankingRequest) => Promise<GetAccountValueRankingResponse>;
5746
5775
  getTime: () => Promise<string>;
5747
5776
  }
5748
5777
 
@@ -5774,4 +5803,4 @@ declare const generateApiKey: () => _aptos_labs_ts_sdk.Ed25519Account;
5774
5803
  declare const getTopicFromCommand: (data: WsCommand) => string;
5775
5804
  declare const getTopicFromMessage: (data: WsMessage) => string;
5776
5805
 
5777
- export { ABIs, 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 CancelAllSpotOrdersParams, type CancelPerpOrdersParams, type CancelSpotOrdersParams, type CanceledPerpOrderData, type CanceledPerpOrders, type CanceledPerpTriggerOrderData, type CanceledPerpTriggerOrders, type CanceledSpotOrderData, type CanceledSpotOrders, type ChangePerpOrderParams, type ChangeSpotOrderParams, 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 GetAllVaultsIdsResponse, type GetBorrowLendingAggregatedStatsRequest, type GetBorrowLendingAggregatedStatsResponse, type GetBorrowLendingDataResponse, type GetBorrowLendingHistoricalDataRequest, type GetBorrowLendingHistoricalDataResponse, type GetChartCandlesInRangeRequest, type GetChartCandlesInRangeResponse, type GetIndexPriceHistoryRequest, type GetIndexPriceHistoryResponse, type GetIndexPricesResponse, type GetIndexerStatusResponse, type GetOrderBookDataRequest, type GetOrderBookDataResponse, type GetPerpMarketsConfigResponse, type GetPerpMarketsDataRequest, type GetPerpMarketsDataResponse, type GetPerpRecentTradesRequest, type GetPerpRecentTradesResponse, type GetPerpUserFillsRequest, type GetPerpUserFillsResponse, type GetPerpUserOrdersRequest, type GetPerpUserOrdersResponse, type GetPerpUserTriggerOrdersRequest, type GetPerpUserTriggerOrdersResponse, type GetPriceIndexesResponse, type GetServicesStatusResponse, type GetSpotMarketsConfigResponse, type GetSpotMarketsDataRequest, type GetSpotMarketsDataResponse, type GetSpotRecentTradesRequest, type GetSpotRecentTradesResponse, type GetSpotUserFillsRequest, type GetSpotUserFillsResponse, type GetSpotUserOrdersRequest, type GetSpotUserOrdersResponse, type GetTokenAggregatedStatsRequest, type GetTokenAggregatedStatsResponse, type GetTokenStatsHistoryRequest, type GetTokenStatsHistoryResponse, type GetTokensConfigResponse, type GetTopRankingResponse, 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 GetUserFullLiquidationsHistoryRequest, type GetUserFundingHistoryRequest, type GetUserFundingHistoryResponse, type GetUserLiquidationsCancelHistoryResponse, type GetUserLiquidationsCancelOrdersHistoryRequest, type GetUserLiquidationsHistoryResponse, type GetUserPartialLiquidationsHistoryRequest, type GetUserPartialLiquidationsHistoryResponse, type GetUserPersonalRankingRequest, type GetUserPersonalRankingResponse, type GetUserPointsHistoryRequest, type GetUserPointsHistoryResponse, 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 HistoricalFullLiquidation, type HistoricalFunding, type HistoricalLiquidationCancelOrders, type HistoricalPartialLiquidation, type HistoricalPerpOrder, type HistoricalPoints, type HistoricalReferralStats, type HistoricalSpotOrder, type HistoricalTokenStats, type HistoricalTradeStats, type HistoricalUserTransfer, type HistoricalVaultDeposit, type HistoricalVaultWithdraw, type HistoricalWithdraw, type IGetChartCandlesInRange, type IndexPriceHistory, type IndexPriceLive, type Lend, type LendTokenParams, type Liquidation, type LiquidationCancelledOrderData, type LiquidationCancelledTriggerOrderData, MAINNET_CONFIG, type MarginStep, Network, type NetworkConfig, type NetworkMode, type NodeStatus, type OpenBoxesRequest, type OpenBoxesResponse, type OpenBoxesSignRequest, type OracleUpdate, type OracleUpdates, type OrderBookData, OrderSide, OrderStatus, OrderType, type PaginationCursor, type PerpFill, type PerpMarketConfigEntry, type PerpMarketData, type PerpOrder, type PerpOrderData, type PerpOrderDataForMarket, type PerpOrderFills, type PerpOrderbookState, type PerpOrderbookUpdate, type PerpPosition, type PerpTrade, type PerpTradesUpdate, type PerpTriggerOrder, type PerpTriggerOrderTriggered, type PlaceMultiplePerpOrdersParams, type PlaceMultipleSpotOrdersParams, type PlacePerpLimitOrder, type PlacePerpMarketOrder, type PlacePerpOrderParams, type PlacePerpTriggerOrder, type PlacePerpTriggerOrderParams, type PlaceSpotLimitOrder, type PlaceSpotMarketOrder, type PlaceSpotOrderParams, type PriceIndex, type RankingEntry, type RedeemTokenParams, type Referral, type ReferralUpdate, type RemoveApiKey, type RemoveApiKeyParams, type RemoveApiKeySignerParams, type RepayBorrow, type ReplaceMultipleOrdersParams, type ReplaceMultipleSpotOrdersParams, type SetAlias, type SetAliasNameParams, type SetAutoLend, type SetAutolendParams, type SetReferralCodeParams, type SetReferralParamsRequest, type SetReferralParamsResponse, type SpotFill, type SpotMarketConfigEntry, type SpotMarketData, type SpotOrder, type SpotOrderData, type SpotOrderDataForMarket, type SpotOrderFills, type SpotOrderbookState, type SpotOrderbookUpdate, type SpotTrade, type SpotTradesUpdate, Status, type StatusResponse, type SubServiceStatus, type SubmitSponsoredTransactionRequest, type SubmitSponsoredTransactionResponse, TESTNET_CONFIG, TestFaucet, type TimeResponse, type TokenAggregatedStats, type TokenConfigEntry, type TokenizeUserVaultInvestmentParams, type Topic, type Trade, TradeRole, TransferAction, type TransferToUserParams, type TriggerOrder, type TxParams, type UpdateUserFeeTier, type User, type UserAggregatedBoxRewardsStats, type UserAggregatedReferralStats, type UserAggregatedStats, type UserAggregatedVaultStats, type UserBoxOpeningEvent, type UserPointsBreakdown, 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 WsSpotMarketUpdates, type WsUserUpdates, createAptosClient, createAptosClientFromEnv, generateApiKey, getABIsForNetwork, getNetworkConfig, getNetworkModeFromEnv, getRandomId, getTopicFromCommand, getTopicFromMessage, nowInMiliseconds, parseEntryFunctionAbi, sleep, toSystemValue };
5806
+ export { ABIs, type AccountValueRankingEntry, 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 CancelAllSpotOrdersParams, type CancelPerpOrdersParams, type CancelSpotOrdersParams, type CanceledPerpOrderData, type CanceledPerpOrders, type CanceledPerpTriggerOrderData, type CanceledPerpTriggerOrders, type CanceledSpotOrderData, type CanceledSpotOrders, type ChangePerpOrderParams, type ChangeSpotOrderParams, 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 GetAccountValueRankingRequest, type GetAccountValueRankingResponse, type GetAllVaultsIdsResponse, type GetBorrowLendingAggregatedStatsRequest, type GetBorrowLendingAggregatedStatsResponse, type GetBorrowLendingDataResponse, type GetBorrowLendingHistoricalDataRequest, type GetBorrowLendingHistoricalDataResponse, type GetChartCandlesInRangeRequest, type GetChartCandlesInRangeResponse, type GetIndexPriceHistoryRequest, type GetIndexPriceHistoryResponse, type GetIndexPricesResponse, type GetIndexerStatusResponse, type GetOrderBookDataRequest, type GetOrderBookDataResponse, type GetPerpMarketsConfigResponse, type GetPerpMarketsDataRequest, type GetPerpMarketsDataResponse, type GetPerpRecentTradesRequest, type GetPerpRecentTradesResponse, type GetPerpUserFillsRequest, type GetPerpUserFillsResponse, type GetPerpUserOrdersRequest, type GetPerpUserOrdersResponse, type GetPerpUserTriggerOrdersRequest, type GetPerpUserTriggerOrdersResponse, type GetPriceIndexesResponse, type GetServicesStatusResponse, type GetSpotMarketsConfigResponse, type GetSpotMarketsDataRequest, type GetSpotMarketsDataResponse, type GetSpotRecentTradesRequest, type GetSpotRecentTradesResponse, type GetSpotUserFillsRequest, type GetSpotUserFillsResponse, type GetSpotUserOrdersRequest, type GetSpotUserOrdersResponse, type GetTokenAggregatedStatsRequest, type GetTokenAggregatedStatsResponse, type GetTokenStatsHistoryRequest, type GetTokenStatsHistoryResponse, type GetTokensConfigResponse, type GetTopPointsRankingResponse, 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 GetUserFullLiquidationsHistoryRequest, type GetUserFundingHistoryRequest, type GetUserFundingHistoryResponse, type GetUserLiquidationsCancelHistoryResponse, type GetUserLiquidationsCancelOrdersHistoryRequest, type GetUserLiquidationsHistoryResponse, type GetUserPartialLiquidationsHistoryRequest, type GetUserPartialLiquidationsHistoryResponse, type GetUserPersonalPointsRankingRequest, type GetUserPersonalPointsRankingResponse, type GetUserPointsHistoryRequest, type GetUserPointsHistoryResponse, 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 HistoricalFullLiquidation, type HistoricalFunding, type HistoricalLiquidationCancelOrders, type HistoricalPartialLiquidation, type HistoricalPerpOrder, type HistoricalPoints, type HistoricalReferralStats, type HistoricalSpotOrder, type HistoricalTokenStats, type HistoricalTradeStats, type HistoricalUserTransfer, type HistoricalVaultDeposit, type HistoricalVaultWithdraw, type HistoricalWithdraw, type IGetChartCandlesInRange, type IndexPriceHistory, type IndexPriceLive, type Lend, type LendTokenParams, type Liquidation, type LiquidationCancelledOrderData, type LiquidationCancelledTriggerOrderData, MAINNET_CONFIG, type MarginStep, Network, type NetworkConfig, type NetworkMode, type NodeStatus, type OpenBoxesRequest, type OpenBoxesResponse, type OpenBoxesSignRequest, type OracleUpdate, type OracleUpdates, type OrderBookData, OrderSide, OrderStatus, OrderType, type PaginationCursor, type PerpFill, type PerpMarketConfigEntry, type PerpMarketData, type PerpOrder, type PerpOrderData, type PerpOrderDataForMarket, type PerpOrderFills, type PerpOrderbookState, type PerpOrderbookUpdate, type PerpPosition, type PerpTrade, type PerpTradesUpdate, type PerpTriggerOrder, type PerpTriggerOrderTriggered, type PlaceMultiplePerpOrdersParams, type PlaceMultipleSpotOrdersParams, type PlacePerpLimitOrder, type PlacePerpMarketOrder, type PlacePerpOrderParams, type PlacePerpTriggerOrder, type PlacePerpTriggerOrderParams, type PlaceSpotLimitOrder, type PlaceSpotMarketOrder, type PlaceSpotOrderParams, type PointsRankingEntry, type PriceIndex, type RedeemTokenParams, type Referral, type ReferralUpdate, type RemoveApiKey, type RemoveApiKeyParams, type RemoveApiKeySignerParams, type RepayBorrow, type ReplaceMultipleOrdersParams, type ReplaceMultipleSpotOrdersParams, type SetAlias, type SetAliasNameParams, type SetAutoLend, type SetAutolendParams, type SetReferralCodeParams, type SetReferralParamsRequest, type SetReferralParamsResponse, type SpotFill, type SpotMarketConfigEntry, type SpotMarketData, type SpotOrder, type SpotOrderData, type SpotOrderDataForMarket, type SpotOrderFills, type SpotOrderbookState, type SpotOrderbookUpdate, type SpotTrade, type SpotTradesUpdate, Status, type StatusResponse, type SubServiceStatus, type SubmitSponsoredTransactionRequest, type SubmitSponsoredTransactionResponse, TESTNET_CONFIG, TestFaucet, type TimeResponse, type TokenAggregatedStats, type TokenConfigEntry, type TokenizeUserVaultInvestmentParams, type Topic, type Trade, TradeRole, TransferAction, type TransferToUserParams, type TriggerOrder, type TxParams, type UpdateUserFeeTier, type User, type UserAggregatedBoxRewardsStats, type UserAggregatedReferralStats, type UserAggregatedStats, type UserAggregatedVaultStats, type UserBoxOpeningEvent, type UserPointsBreakdown, 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 WsSpotMarketUpdates, type WsUserUpdates, createAptosClient, createAptosClientFromEnv, generateApiKey, getABIsForNetwork, getNetworkConfig, getNetworkModeFromEnv, getRandomId, getTopicFromCommand, getTopicFromMessage, nowInMiliseconds, parseEntryFunctionAbi, sleep, toSystemValue };
package/dist/index.d.ts CHANGED
@@ -3436,6 +3436,26 @@ declare const ABIs: {
3436
3436
  };
3437
3437
 
3438
3438
  type PaginationCursor = string;
3439
+ interface AccountValueRankingEntry {
3440
+ userId: string;
3441
+ alias: string;
3442
+ address: string;
3443
+ rank: string;
3444
+ totalAccountValue: string;
3445
+ pnl24h: string;
3446
+ roi24h: string;
3447
+ volume24h: string;
3448
+ pnl7d: string;
3449
+ roi7d: string;
3450
+ volume7d: string;
3451
+ pnl30d: string;
3452
+ roi30d: string;
3453
+ volume30d: string;
3454
+ pnlAllTime: string;
3455
+ roiAllTime: string;
3456
+ volumeAllTime: string;
3457
+ lastUpdatedTimestampMs: string;
3458
+ }
3439
3459
  interface AddApiKey {
3440
3460
  userId: string;
3441
3461
  apiKey: string;
@@ -3706,6 +3726,13 @@ interface FundingPayment {
3706
3726
  positionValue: string;
3707
3727
  fundingRate: string;
3708
3728
  }
3729
+ interface GetAccountValueRankingRequest {
3730
+ paginationCursor?: PaginationCursor;
3731
+ }
3732
+ interface GetAccountValueRankingResponse {
3733
+ usersRanking: AccountValueRankingEntry[];
3734
+ paginationCursor?: PaginationCursor;
3735
+ }
3709
3736
  interface GetAllVaultsIdsResponse {
3710
3737
  vaultsIds: string[];
3711
3738
  }
@@ -4074,7 +4101,7 @@ interface GetTokensConfigResponse {
4074
4101
  tokens: Record<string, TokenConfigEntry>;
4075
4102
  usdAddress?: string;
4076
4103
  }
4077
- interface RankingEntry {
4104
+ interface PointsRankingEntry {
4078
4105
  userId: string;
4079
4106
  alias: string;
4080
4107
  address: string;
@@ -4088,8 +4115,8 @@ interface RankingEntry {
4088
4115
  vaultPoints: string;
4089
4116
  referralPoints: string;
4090
4117
  }
4091
- interface GetTopRankingResponse {
4092
- usersRanking: RankingEntry[];
4118
+ interface GetTopPointsRankingResponse {
4119
+ usersRanking: PointsRankingEntry[];
4093
4120
  }
4094
4121
  interface GetUserAggregatedBoxRewardsStatsRequest {
4095
4122
  userId: string;
@@ -4382,11 +4409,11 @@ interface GetUserPartialLiquidationsHistoryResponse {
4382
4409
  liquidations: HistoricalPartialLiquidation[];
4383
4410
  paginationCursor?: PaginationCursor;
4384
4411
  }
4385
- interface GetUserPersonalRankingRequest {
4412
+ interface GetUserPersonalPointsRankingRequest {
4386
4413
  userId: string;
4387
4414
  }
4388
- interface GetUserPersonalRankingResponse {
4389
- userRanking: RankingEntry;
4415
+ interface GetUserPersonalPointsRankingResponse {
4416
+ userRanking: PointsRankingEntry;
4390
4417
  }
4391
4418
  interface GetUserPointsHistoryRequest {
4392
4419
  userId: string;
@@ -4990,9 +5017,10 @@ declare enum EndpointsV1 {
4990
5017
  GetSpotMarketsData = "/v1/get_spot_markets_data",
4991
5018
  GetSpotRecentTrades = "/v1/get_spot_recent_trades",
4992
5019
  GetAllVaultsIds = "/v1/get_all_vaults_ids",
4993
- GetTopRanking = "/v1/get_top_ranking",
4994
- GetUserPersonalRanking = "/v1/get_user_personal_ranking",
4995
- GetIndexPrices = "/v1/get_index_prices"
5020
+ GetTopPointsRanking = "/v1/get_top_points_ranking",
5021
+ GetUserPersonalPointsRanking = "/v1/get_user_personal_points_ranking",
5022
+ GetIndexPrices = "/v1/get_index_prices",
5023
+ GetAccountValueRanking = "/v1/get_account_value_ranking"
4996
5024
  }
4997
5025
  type Topic = {
4998
5026
  type: "PerpMarket";
@@ -5741,8 +5769,9 @@ declare class Client {
5741
5769
  getUserRequiredVolumeForReferral: (request: GetUserVolumeForReferralRequest) => Promise<GetUserVolumeForReferralResponse>;
5742
5770
  getUserPointsHistory: (request: GetUserPointsHistoryRequest) => Promise<GetUserPointsHistoryResponse>;
5743
5771
  getAllVaultsIds: () => Promise<GetAllVaultsIdsResponse>;
5744
- getUserPersonalRanking: (request: GetUserPersonalRankingRequest) => Promise<GetUserPersonalRankingResponse>;
5745
- getTopRanking: () => Promise<GetTopRankingResponse>;
5772
+ getUserPersonalPointsRanking: (request: GetUserPersonalPointsRankingRequest) => Promise<GetUserPersonalPointsRankingResponse>;
5773
+ getTopPointsRanking: () => Promise<GetTopPointsRankingResponse>;
5774
+ getAccountValueRanking: (request: GetAccountValueRankingRequest) => Promise<GetAccountValueRankingResponse>;
5746
5775
  getTime: () => Promise<string>;
5747
5776
  }
5748
5777
 
@@ -5774,4 +5803,4 @@ declare const generateApiKey: () => _aptos_labs_ts_sdk.Ed25519Account;
5774
5803
  declare const getTopicFromCommand: (data: WsCommand) => string;
5775
5804
  declare const getTopicFromMessage: (data: WsMessage) => string;
5776
5805
 
5777
- export { ABIs, 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 CancelAllSpotOrdersParams, type CancelPerpOrdersParams, type CancelSpotOrdersParams, type CanceledPerpOrderData, type CanceledPerpOrders, type CanceledPerpTriggerOrderData, type CanceledPerpTriggerOrders, type CanceledSpotOrderData, type CanceledSpotOrders, type ChangePerpOrderParams, type ChangeSpotOrderParams, 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 GetAllVaultsIdsResponse, type GetBorrowLendingAggregatedStatsRequest, type GetBorrowLendingAggregatedStatsResponse, type GetBorrowLendingDataResponse, type GetBorrowLendingHistoricalDataRequest, type GetBorrowLendingHistoricalDataResponse, type GetChartCandlesInRangeRequest, type GetChartCandlesInRangeResponse, type GetIndexPriceHistoryRequest, type GetIndexPriceHistoryResponse, type GetIndexPricesResponse, type GetIndexerStatusResponse, type GetOrderBookDataRequest, type GetOrderBookDataResponse, type GetPerpMarketsConfigResponse, type GetPerpMarketsDataRequest, type GetPerpMarketsDataResponse, type GetPerpRecentTradesRequest, type GetPerpRecentTradesResponse, type GetPerpUserFillsRequest, type GetPerpUserFillsResponse, type GetPerpUserOrdersRequest, type GetPerpUserOrdersResponse, type GetPerpUserTriggerOrdersRequest, type GetPerpUserTriggerOrdersResponse, type GetPriceIndexesResponse, type GetServicesStatusResponse, type GetSpotMarketsConfigResponse, type GetSpotMarketsDataRequest, type GetSpotMarketsDataResponse, type GetSpotRecentTradesRequest, type GetSpotRecentTradesResponse, type GetSpotUserFillsRequest, type GetSpotUserFillsResponse, type GetSpotUserOrdersRequest, type GetSpotUserOrdersResponse, type GetTokenAggregatedStatsRequest, type GetTokenAggregatedStatsResponse, type GetTokenStatsHistoryRequest, type GetTokenStatsHistoryResponse, type GetTokensConfigResponse, type GetTopRankingResponse, 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 GetUserFullLiquidationsHistoryRequest, type GetUserFundingHistoryRequest, type GetUserFundingHistoryResponse, type GetUserLiquidationsCancelHistoryResponse, type GetUserLiquidationsCancelOrdersHistoryRequest, type GetUserLiquidationsHistoryResponse, type GetUserPartialLiquidationsHistoryRequest, type GetUserPartialLiquidationsHistoryResponse, type GetUserPersonalRankingRequest, type GetUserPersonalRankingResponse, type GetUserPointsHistoryRequest, type GetUserPointsHistoryResponse, 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 HistoricalFullLiquidation, type HistoricalFunding, type HistoricalLiquidationCancelOrders, type HistoricalPartialLiquidation, type HistoricalPerpOrder, type HistoricalPoints, type HistoricalReferralStats, type HistoricalSpotOrder, type HistoricalTokenStats, type HistoricalTradeStats, type HistoricalUserTransfer, type HistoricalVaultDeposit, type HistoricalVaultWithdraw, type HistoricalWithdraw, type IGetChartCandlesInRange, type IndexPriceHistory, type IndexPriceLive, type Lend, type LendTokenParams, type Liquidation, type LiquidationCancelledOrderData, type LiquidationCancelledTriggerOrderData, MAINNET_CONFIG, type MarginStep, Network, type NetworkConfig, type NetworkMode, type NodeStatus, type OpenBoxesRequest, type OpenBoxesResponse, type OpenBoxesSignRequest, type OracleUpdate, type OracleUpdates, type OrderBookData, OrderSide, OrderStatus, OrderType, type PaginationCursor, type PerpFill, type PerpMarketConfigEntry, type PerpMarketData, type PerpOrder, type PerpOrderData, type PerpOrderDataForMarket, type PerpOrderFills, type PerpOrderbookState, type PerpOrderbookUpdate, type PerpPosition, type PerpTrade, type PerpTradesUpdate, type PerpTriggerOrder, type PerpTriggerOrderTriggered, type PlaceMultiplePerpOrdersParams, type PlaceMultipleSpotOrdersParams, type PlacePerpLimitOrder, type PlacePerpMarketOrder, type PlacePerpOrderParams, type PlacePerpTriggerOrder, type PlacePerpTriggerOrderParams, type PlaceSpotLimitOrder, type PlaceSpotMarketOrder, type PlaceSpotOrderParams, type PriceIndex, type RankingEntry, type RedeemTokenParams, type Referral, type ReferralUpdate, type RemoveApiKey, type RemoveApiKeyParams, type RemoveApiKeySignerParams, type RepayBorrow, type ReplaceMultipleOrdersParams, type ReplaceMultipleSpotOrdersParams, type SetAlias, type SetAliasNameParams, type SetAutoLend, type SetAutolendParams, type SetReferralCodeParams, type SetReferralParamsRequest, type SetReferralParamsResponse, type SpotFill, type SpotMarketConfigEntry, type SpotMarketData, type SpotOrder, type SpotOrderData, type SpotOrderDataForMarket, type SpotOrderFills, type SpotOrderbookState, type SpotOrderbookUpdate, type SpotTrade, type SpotTradesUpdate, Status, type StatusResponse, type SubServiceStatus, type SubmitSponsoredTransactionRequest, type SubmitSponsoredTransactionResponse, TESTNET_CONFIG, TestFaucet, type TimeResponse, type TokenAggregatedStats, type TokenConfigEntry, type TokenizeUserVaultInvestmentParams, type Topic, type Trade, TradeRole, TransferAction, type TransferToUserParams, type TriggerOrder, type TxParams, type UpdateUserFeeTier, type User, type UserAggregatedBoxRewardsStats, type UserAggregatedReferralStats, type UserAggregatedStats, type UserAggregatedVaultStats, type UserBoxOpeningEvent, type UserPointsBreakdown, 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 WsSpotMarketUpdates, type WsUserUpdates, createAptosClient, createAptosClientFromEnv, generateApiKey, getABIsForNetwork, getNetworkConfig, getNetworkModeFromEnv, getRandomId, getTopicFromCommand, getTopicFromMessage, nowInMiliseconds, parseEntryFunctionAbi, sleep, toSystemValue };
5806
+ export { ABIs, type AccountValueRankingEntry, 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 CancelAllSpotOrdersParams, type CancelPerpOrdersParams, type CancelSpotOrdersParams, type CanceledPerpOrderData, type CanceledPerpOrders, type CanceledPerpTriggerOrderData, type CanceledPerpTriggerOrders, type CanceledSpotOrderData, type CanceledSpotOrders, type ChangePerpOrderParams, type ChangeSpotOrderParams, 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 GetAccountValueRankingRequest, type GetAccountValueRankingResponse, type GetAllVaultsIdsResponse, type GetBorrowLendingAggregatedStatsRequest, type GetBorrowLendingAggregatedStatsResponse, type GetBorrowLendingDataResponse, type GetBorrowLendingHistoricalDataRequest, type GetBorrowLendingHistoricalDataResponse, type GetChartCandlesInRangeRequest, type GetChartCandlesInRangeResponse, type GetIndexPriceHistoryRequest, type GetIndexPriceHistoryResponse, type GetIndexPricesResponse, type GetIndexerStatusResponse, type GetOrderBookDataRequest, type GetOrderBookDataResponse, type GetPerpMarketsConfigResponse, type GetPerpMarketsDataRequest, type GetPerpMarketsDataResponse, type GetPerpRecentTradesRequest, type GetPerpRecentTradesResponse, type GetPerpUserFillsRequest, type GetPerpUserFillsResponse, type GetPerpUserOrdersRequest, type GetPerpUserOrdersResponse, type GetPerpUserTriggerOrdersRequest, type GetPerpUserTriggerOrdersResponse, type GetPriceIndexesResponse, type GetServicesStatusResponse, type GetSpotMarketsConfigResponse, type GetSpotMarketsDataRequest, type GetSpotMarketsDataResponse, type GetSpotRecentTradesRequest, type GetSpotRecentTradesResponse, type GetSpotUserFillsRequest, type GetSpotUserFillsResponse, type GetSpotUserOrdersRequest, type GetSpotUserOrdersResponse, type GetTokenAggregatedStatsRequest, type GetTokenAggregatedStatsResponse, type GetTokenStatsHistoryRequest, type GetTokenStatsHistoryResponse, type GetTokensConfigResponse, type GetTopPointsRankingResponse, 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 GetUserFullLiquidationsHistoryRequest, type GetUserFundingHistoryRequest, type GetUserFundingHistoryResponse, type GetUserLiquidationsCancelHistoryResponse, type GetUserLiquidationsCancelOrdersHistoryRequest, type GetUserLiquidationsHistoryResponse, type GetUserPartialLiquidationsHistoryRequest, type GetUserPartialLiquidationsHistoryResponse, type GetUserPersonalPointsRankingRequest, type GetUserPersonalPointsRankingResponse, type GetUserPointsHistoryRequest, type GetUserPointsHistoryResponse, 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 HistoricalFullLiquidation, type HistoricalFunding, type HistoricalLiquidationCancelOrders, type HistoricalPartialLiquidation, type HistoricalPerpOrder, type HistoricalPoints, type HistoricalReferralStats, type HistoricalSpotOrder, type HistoricalTokenStats, type HistoricalTradeStats, type HistoricalUserTransfer, type HistoricalVaultDeposit, type HistoricalVaultWithdraw, type HistoricalWithdraw, type IGetChartCandlesInRange, type IndexPriceHistory, type IndexPriceLive, type Lend, type LendTokenParams, type Liquidation, type LiquidationCancelledOrderData, type LiquidationCancelledTriggerOrderData, MAINNET_CONFIG, type MarginStep, Network, type NetworkConfig, type NetworkMode, type NodeStatus, type OpenBoxesRequest, type OpenBoxesResponse, type OpenBoxesSignRequest, type OracleUpdate, type OracleUpdates, type OrderBookData, OrderSide, OrderStatus, OrderType, type PaginationCursor, type PerpFill, type PerpMarketConfigEntry, type PerpMarketData, type PerpOrder, type PerpOrderData, type PerpOrderDataForMarket, type PerpOrderFills, type PerpOrderbookState, type PerpOrderbookUpdate, type PerpPosition, type PerpTrade, type PerpTradesUpdate, type PerpTriggerOrder, type PerpTriggerOrderTriggered, type PlaceMultiplePerpOrdersParams, type PlaceMultipleSpotOrdersParams, type PlacePerpLimitOrder, type PlacePerpMarketOrder, type PlacePerpOrderParams, type PlacePerpTriggerOrder, type PlacePerpTriggerOrderParams, type PlaceSpotLimitOrder, type PlaceSpotMarketOrder, type PlaceSpotOrderParams, type PointsRankingEntry, type PriceIndex, type RedeemTokenParams, type Referral, type ReferralUpdate, type RemoveApiKey, type RemoveApiKeyParams, type RemoveApiKeySignerParams, type RepayBorrow, type ReplaceMultipleOrdersParams, type ReplaceMultipleSpotOrdersParams, type SetAlias, type SetAliasNameParams, type SetAutoLend, type SetAutolendParams, type SetReferralCodeParams, type SetReferralParamsRequest, type SetReferralParamsResponse, type SpotFill, type SpotMarketConfigEntry, type SpotMarketData, type SpotOrder, type SpotOrderData, type SpotOrderDataForMarket, type SpotOrderFills, type SpotOrderbookState, type SpotOrderbookUpdate, type SpotTrade, type SpotTradesUpdate, Status, type StatusResponse, type SubServiceStatus, type SubmitSponsoredTransactionRequest, type SubmitSponsoredTransactionResponse, TESTNET_CONFIG, TestFaucet, type TimeResponse, type TokenAggregatedStats, type TokenConfigEntry, type TokenizeUserVaultInvestmentParams, type Topic, type Trade, TradeRole, TransferAction, type TransferToUserParams, type TriggerOrder, type TxParams, type UpdateUserFeeTier, type User, type UserAggregatedBoxRewardsStats, type UserAggregatedReferralStats, type UserAggregatedStats, type UserAggregatedVaultStats, type UserBoxOpeningEvent, type UserPointsBreakdown, 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 WsSpotMarketUpdates, type WsUserUpdates, createAptosClient, createAptosClientFromEnv, generateApiKey, getABIsForNetwork, getNetworkConfig, getNetworkModeFromEnv, getRandomId, getTopicFromCommand, getTopicFromMessage, nowInMiliseconds, parseEntryFunctionAbi, sleep, toSystemValue };
package/dist/index.js CHANGED
@@ -14574,50 +14574,41 @@ var openBoxes_default2 = ABI104;
14574
14574
 
14575
14575
  // generated_types_mainnet/addApiKey.ts
14576
14576
  var ABI105 = {
14577
- "address": "0x41ddb53dd0d9252f69127e708bfea22532ff21b6960eb4f29aca237d54e3b20f",
14578
- "name": "add_api_key",
14579
- "friends": [],
14580
- "exposed_functions": [
14581
- {
14582
- "name": "add_api_key",
14583
- "visibility": "public",
14584
- "is_entry": true,
14585
- "is_view": false,
14586
- "generic_type_params": [],
14587
- "params": [
14588
- "&signer",
14589
- "&signer",
14590
- "u64",
14591
- "u64"
14592
- ],
14593
- "return": []
14577
+ address: "0x41ddb53dd0d9252f69127e708bfea22532ff21b6960eb4f29aca237d54e3b20f",
14578
+ name: "add_api_key",
14579
+ friends: [],
14580
+ exposed_functions: [
14581
+ {
14582
+ name: "add_api_key",
14583
+ visibility: "public",
14584
+ is_entry: true,
14585
+ is_view: false,
14586
+ generic_type_params: [],
14587
+ params: ["&signer", "&signer", "u64", "u64"],
14588
+ return: []
14594
14589
  }
14595
14590
  ],
14596
- "structs": []
14591
+ structs: []
14597
14592
  };
14598
14593
  var addApiKey_default2 = ABI105;
14599
14594
 
14600
14595
  // generated_types_mainnet/addCredits.ts
14601
14596
  var ABI106 = {
14602
- "address": "0x41ddb53dd0d9252f69127e708bfea22532ff21b6960eb4f29aca237d54e3b20f",
14603
- "name": "add_credits",
14604
- "friends": [],
14605
- "exposed_functions": [
14606
- {
14607
- "name": "add_credits",
14608
- "visibility": "public",
14609
- "is_entry": true,
14610
- "is_view": false,
14611
- "generic_type_params": [],
14612
- "params": [
14613
- "&signer",
14614
- "u64",
14615
- "u64"
14616
- ],
14617
- "return": []
14597
+ address: "0x41ddb53dd0d9252f69127e708bfea22532ff21b6960eb4f29aca237d54e3b20f",
14598
+ name: "add_credits",
14599
+ friends: [],
14600
+ exposed_functions: [
14601
+ {
14602
+ name: "add_credits",
14603
+ visibility: "public",
14604
+ is_entry: true,
14605
+ is_view: false,
14606
+ generic_type_params: [],
14607
+ params: ["&signer", "u64", "u64"],
14608
+ return: []
14618
14609
  }
14619
14610
  ],
14620
- "structs": []
14611
+ structs: []
14621
14612
  };
14622
14613
  var addCredits_default2 = ABI106;
14623
14614
 
@@ -19377,24 +19368,21 @@ var withdrawToken_default2 = ABI134;
19377
19368
 
19378
19369
  // generated_types_mainnet/addDevAddress.ts
19379
19370
  var ABI135 = {
19380
- "address": "0x41ddb53dd0d9252f69127e708bfea22532ff21b6960eb4f29aca237d54e3b20f",
19381
- "name": "add_dev_address",
19382
- "friends": [],
19383
- "exposed_functions": [
19384
- {
19385
- "name": "add_dev_address",
19386
- "visibility": "public",
19387
- "is_entry": true,
19388
- "is_view": false,
19389
- "generic_type_params": [],
19390
- "params": [
19391
- "&signer",
19392
- "address"
19393
- ],
19394
- "return": []
19371
+ address: "0x41ddb53dd0d9252f69127e708bfea22532ff21b6960eb4f29aca237d54e3b20f",
19372
+ name: "add_dev_address",
19373
+ friends: [],
19374
+ exposed_functions: [
19375
+ {
19376
+ name: "add_dev_address",
19377
+ visibility: "public",
19378
+ is_entry: true,
19379
+ is_view: false,
19380
+ generic_type_params: [],
19381
+ params: ["&signer", "address"],
19382
+ return: []
19395
19383
  }
19396
19384
  ],
19397
- "structs": []
19385
+ structs: []
19398
19386
  };
19399
19387
  var addDevAddress_default2 = ABI135;
19400
19388
 
@@ -19424,17 +19412,17 @@ var addSystemUser_default2 = ABI136;
19424
19412
 
19425
19413
  // generated_types_mainnet/addNewLpToken.ts
19426
19414
  var ABI137 = {
19427
- "address": "0x41ddb53dd0d9252f69127e708bfea22532ff21b6960eb4f29aca237d54e3b20f",
19428
- "name": "add_new_lp_token",
19429
- "friends": [],
19430
- "exposed_functions": [
19431
- {
19432
- "name": "add_new_lp_token",
19433
- "visibility": "public",
19434
- "is_entry": true,
19435
- "is_view": false,
19436
- "generic_type_params": [],
19437
- "params": [
19415
+ address: "0x41ddb53dd0d9252f69127e708bfea22532ff21b6960eb4f29aca237d54e3b20f",
19416
+ name: "add_new_lp_token",
19417
+ friends: [],
19418
+ exposed_functions: [
19419
+ {
19420
+ name: "add_new_lp_token",
19421
+ visibility: "public",
19422
+ is_entry: true,
19423
+ is_view: false,
19424
+ generic_type_params: [],
19425
+ params: [
19438
19426
  "&signer",
19439
19427
  "u64",
19440
19428
  "vector<u8>",
@@ -19453,10 +19441,10 @@ var ABI137 = {
19453
19441
  "vector<u8>",
19454
19442
  "u8"
19455
19443
  ],
19456
- "return": []
19444
+ return: []
19457
19445
  }
19458
19446
  ],
19459
- "structs": []
19447
+ structs: []
19460
19448
  };
19461
19449
  var addNewLpToken_default2 = ABI137;
19462
19450
 
@@ -21579,17 +21567,17 @@ var spotOrdersEvents_default2 = ABI156;
21579
21567
 
21580
21568
  // generated_types_mainnet/addNewPerpMarket.ts
21581
21569
  var ABI157 = {
21582
- "address": "0x41ddb53dd0d9252f69127e708bfea22532ff21b6960eb4f29aca237d54e3b20f",
21583
- "name": "add_new_perp_market",
21584
- "friends": [],
21585
- "exposed_functions": [
21586
- {
21587
- "name": "add_new_perp_market",
21588
- "visibility": "public",
21589
- "is_entry": true,
21590
- "is_view": false,
21591
- "generic_type_params": [],
21592
- "params": [
21570
+ address: "0x41ddb53dd0d9252f69127e708bfea22532ff21b6960eb4f29aca237d54e3b20f",
21571
+ name: "add_new_perp_market",
21572
+ friends: [],
21573
+ exposed_functions: [
21574
+ {
21575
+ name: "add_new_perp_market",
21576
+ visibility: "public",
21577
+ is_entry: true,
21578
+ is_view: false,
21579
+ generic_type_params: [],
21580
+ params: [
21593
21581
  "&signer",
21594
21582
  "vector<u8>",
21595
21583
  "vector<u8>",
@@ -21606,39 +21594,30 @@ var ABI157 = {
21606
21594
  "u64",
21607
21595
  "u64"
21608
21596
  ],
21609
- "return": []
21597
+ return: []
21610
21598
  }
21611
21599
  ],
21612
- "structs": []
21600
+ structs: []
21613
21601
  };
21614
21602
  var addNewPerpMarket_default2 = ABI157;
21615
21603
 
21616
21604
  // generated_types_mainnet/addNewSpotMarket.ts
21617
21605
  var ABI158 = {
21618
- "address": "0x41ddb53dd0d9252f69127e708bfea22532ff21b6960eb4f29aca237d54e3b20f",
21619
- "name": "add_new_spot_market",
21620
- "friends": [],
21621
- "exposed_functions": [
21622
- {
21623
- "name": "add_new_spot_market",
21624
- "visibility": "public",
21625
- "is_entry": true,
21626
- "is_view": false,
21627
- "generic_type_params": [],
21628
- "params": [
21629
- "&signer",
21630
- "vector<u8>",
21631
- "address",
21632
- "address",
21633
- "u64",
21634
- "u64",
21635
- "u64",
21636
- "u64"
21637
- ],
21638
- "return": []
21606
+ address: "0x41ddb53dd0d9252f69127e708bfea22532ff21b6960eb4f29aca237d54e3b20f",
21607
+ name: "add_new_spot_market",
21608
+ friends: [],
21609
+ exposed_functions: [
21610
+ {
21611
+ name: "add_new_spot_market",
21612
+ visibility: "public",
21613
+ is_entry: true,
21614
+ is_view: false,
21615
+ generic_type_params: [],
21616
+ params: ["&signer", "vector<u8>", "address", "address", "u64", "u64", "u64", "u64"],
21617
+ return: []
21639
21618
  }
21640
21619
  ],
21641
- "structs": []
21620
+ structs: []
21642
21621
  };
21643
21622
  var addNewSpotMarket_default2 = ABI158;
21644
21623
 
@@ -23361,9 +23340,10 @@ var EndpointsV1 = /* @__PURE__ */ ((EndpointsV12) => {
23361
23340
  EndpointsV12["GetSpotMarketsData"] = "/v1/get_spot_markets_data";
23362
23341
  EndpointsV12["GetSpotRecentTrades"] = "/v1/get_spot_recent_trades";
23363
23342
  EndpointsV12["GetAllVaultsIds"] = "/v1/get_all_vaults_ids";
23364
- EndpointsV12["GetTopRanking"] = "/v1/get_top_ranking";
23365
- EndpointsV12["GetUserPersonalRanking"] = "/v1/get_user_personal_ranking";
23343
+ EndpointsV12["GetTopPointsRanking"] = "/v1/get_top_points_ranking";
23344
+ EndpointsV12["GetUserPersonalPointsRanking"] = "/v1/get_user_personal_points_ranking";
23366
23345
  EndpointsV12["GetIndexPrices"] = "/v1/get_index_prices";
23346
+ EndpointsV12["GetAccountValueRanking"] = "/v1/get_account_value_ranking";
23367
23347
  return EndpointsV12;
23368
23348
  })(EndpointsV1 || {});
23369
23349
  var UserStatus = /* @__PURE__ */ ((UserStatus2) => {
@@ -24149,12 +24129,16 @@ var Client = class _Client {
24149
24129
  );
24150
24130
  return response;
24151
24131
  };
24152
- this.getUserPersonalRanking = async (request) => {
24153
- const response = await this.sendGetJson("/v1/get_user_personal_ranking" /* GetUserPersonalRanking */, request);
24132
+ this.getUserPersonalPointsRanking = async (request) => {
24133
+ const response = await this.sendGetJson("/v1/get_user_personal_points_ranking" /* GetUserPersonalPointsRanking */, request);
24134
+ return response;
24135
+ };
24136
+ this.getTopPointsRanking = async () => {
24137
+ const response = await this.sendGetJson("/v1/get_top_points_ranking" /* GetTopPointsRanking */);
24154
24138
  return response;
24155
24139
  };
24156
- this.getTopRanking = async () => {
24157
- const response = await this.sendGetJson("/v1/get_top_ranking" /* GetTopRanking */);
24140
+ this.getAccountValueRanking = async (request) => {
24141
+ const response = await this.sendGetJson("/v1/get_account_value_ranking" /* GetAccountValueRanking */, request);
24158
24142
  return response;
24159
24143
  };
24160
24144
  // Meta
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nightlylabs/dex-sdk",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -21,24 +21,41 @@
21
21
  "test": "vitest run",
22
22
  "test:watch": "vitest",
23
23
  "generate-types": "tsx scripts/generate-types.ts",
24
- "init-exchange": " tsx scripts/admin/initExchange.ts",
25
- "init-exchange-mn": " tsx scripts/admin/initExchange-mainnet.ts",
26
- "add-dev": "tsx scripts/admin/addDev.ts",
27
- "remove-dev": "tsx scripts/admin/removeDev.ts",
28
- "add-token-to-oracle": "tsx scripts/admin/addTokenToOracle.ts",
29
- "add-token": "tsx scripts/admin/addToken.ts",
30
- "test-indexer": "tsx scripts/admin/testIndexer.ts",
31
- "update-oracle-prices": "tsx scripts/admin/updateOraclePrices.ts",
32
- "add-perp-market": "tsx scripts/admin/addPerpMarket.ts",
33
- "redeploy": "tsx scripts/redeploy.ts",
34
- "redeploy-mainnet": "tsx scripts/redeploy-mainnet.ts",
35
- "teste": "tsx scripts/test-script.ts",
36
- "setup-exchange": "tsx scripts/setupExchange.ts > deploy.txt",
37
- "setup-exchange-mainnet": "tsx scripts/setupExchange-mainnet.ts",
38
- "settle-user": "tsx scripts/admin/settleUser.ts",
24
+ "typecheck": "tsc --noEmit",
39
25
  "typeshare": "typeshare ../backend --lang=typescript --output-file=./typeshareTypes.ts",
40
26
  "test:client": "vitest run src/client.test.ts",
41
- "lpm": "tsx scripts/large_packages_module.ts"
27
+ "testnet:init-exchange": "tsx scripts/testnet/testnet-initExchange.ts",
28
+ "testnet:setup-exchange": "tsx scripts/testnet/testnet-setupExchange.ts",
29
+ "testnet:redeploy": "tsx scripts/testnet/testnet-redeploy.ts",
30
+ "testnet:add-dev": "tsx scripts/testnet/testnet-addDev.ts",
31
+ "testnet:remove-dev": "tsx scripts/testnet/testnet-removeDev.ts",
32
+ "testnet:add-token-to-oracle": "tsx scripts/testnet/testnet-addTokenToOracle.ts",
33
+ "testnet:add-token": "tsx scripts/testnet/testnet-addToken.ts",
34
+ "testnet:add-perp-market": "tsx scripts/testnet/testnet-addPerpMarket.ts",
35
+ "testnet:test-indexer": "tsx scripts/testnet/testnet-testIndexer.ts",
36
+ "testnet:update-oracle-prices": "tsx scripts/testnet/testnet-updateOraclePrices.ts",
37
+ "testnet:settle-user": "tsx scripts/testnet/testnet-settleUser.ts",
38
+ "testnet:settle-market": "tsx scripts/testnet/testnet-settleMarket.ts",
39
+ "testnet:set-fee-data": "tsx scripts/testnet/testnet-setFeeData.ts",
40
+ "testnet:set-system-haircut": "tsx scripts/testnet/testnet-setSystemHaircut.ts",
41
+ "testnet:update-fee-tiers": "tsx scripts/testnet/testnet-updateFeeTiers.ts",
42
+ "testnet:predeposit-to-vault": "tsx scripts/testnet/testnet-predepositToVault.ts",
43
+ "mainnet:setup-exchange": "tsx scripts/mainnet/mainnet-setupExchange.ts",
44
+ "mainnet:init-exchange": "tsx scripts/mainnet/mainnet-initExchange.ts",
45
+ "mainnet:add-dev": "tsx scripts/mainnet/mainnet-addDev.ts",
46
+ "mainnet:remove-dev": "tsx scripts/mainnet/mainnet-removeDev.ts",
47
+ "mainnet:add-token-to-oracle": "tsx scripts/mainnet/mainnet-addTokenToOracle.ts",
48
+ "mainnet:add-token": "tsx scripts/mainnet/mainnet-addToken.ts",
49
+ "mainnet:add-perp-market": "tsx scripts/mainnet/mainnet-addPerpMarket.ts",
50
+ "mainnet:settle-user": "tsx scripts/mainnet/mainnet-settleUser.ts",
51
+ "mainnet:settle-market": "tsx scripts/mainnet/mainnet-settleMarket.ts",
52
+ "mainnet:set-fee-data": "tsx scripts/mainnet/mainnet-setFeeData.ts",
53
+ "mainnet:set-system-haircut": "tsx scripts/mainnet/mainnet-setSystemHaircut.ts",
54
+ "mainnet:update-fee-tiers": "tsx scripts/mainnet/mainnet-updateFeeTiers.ts",
55
+ "mainnet:predeposit-to-vault": "tsx scripts/mainnet/mainnet-predepositToVault.ts",
56
+ "mainnet:redeploy:start": "tsx scripts/mainnet/mainnet-redeploy-start.ts",
57
+ "mainnet:redeploy:finish": "tsx scripts/mainnet/mainnet-redeploy-finish.ts",
58
+ "mainnet:large-packages": "tsx scripts/mainnet/large_packages_module.ts"
42
59
  },
43
60
  "keywords": [],
44
61
  "author": "",
@@ -54,6 +71,8 @@
54
71
  },
55
72
  "devDependencies": {
56
73
  "@changesets/cli": "^2.27.12",
74
+ "@ledgerhq/hw-app-aptos": "^6.35.0",
75
+ "@ledgerhq/hw-transport-node-hid": "^6.30.0",
57
76
  "@thalalabs/surf": "1.9.3",
58
77
  "@types/node": "^22.10.10",
59
78
  "dotenv": "^16.4.7",