@nightlylabs/dex-sdk 0.1.50 → 0.1.52

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
@@ -65,7 +65,7 @@ var import_uuid = require("uuid");
65
65
 
66
66
  // generated_types/addApiKey.ts
67
67
  var ABI = {
68
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
68
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
69
69
  "name": "add_api_key",
70
70
  "friends": [],
71
71
  "exposed_functions": [
@@ -90,7 +90,7 @@ var addApiKey_default = ABI;
90
90
 
91
91
  // generated_types/cancelAllPerpOrders.ts
92
92
  var ABI2 = {
93
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
93
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
94
94
  "name": "cancel_all_perp_orders",
95
95
  "friends": [],
96
96
  "exposed_functions": [
@@ -113,7 +113,7 @@ var cancelAllPerpOrders_default = ABI2;
113
113
 
114
114
  // generated_types/cancelPerpOrders.ts
115
115
  var ABI3 = {
116
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
116
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
117
117
  "name": "cancel_perp_orders",
118
118
  "friends": [],
119
119
  "exposed_functions": [
@@ -138,7 +138,7 @@ var cancelPerpOrders_default = ABI3;
138
138
 
139
139
  // generated_types/createUser.ts
140
140
  var ABI4 = {
141
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
141
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
142
142
  "name": "create_user",
143
143
  "friends": [],
144
144
  "exposed_functions": [
@@ -163,7 +163,7 @@ var createUser_default = ABI4;
163
163
 
164
164
  // generated_types/depositToVault.ts
165
165
  var ABI5 = {
166
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
166
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
167
167
  "name": "deposit_to_vault",
168
168
  "friends": [],
169
169
  "exposed_functions": [
@@ -188,7 +188,7 @@ var depositToVault_default = ABI5;
188
188
 
189
189
  // generated_types/depositToken.ts
190
190
  var ABI6 = {
191
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
191
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
192
192
  "name": "deposit_token",
193
193
  "friends": [],
194
194
  "exposed_functions": [
@@ -213,7 +213,7 @@ var depositToken_default = ABI6;
213
213
 
214
214
  // generated_types/lendToken.ts
215
215
  var ABI7 = {
216
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
216
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
217
217
  "name": "lend_token",
218
218
  "friends": [],
219
219
  "exposed_functions": [
@@ -239,7 +239,7 @@ var lendToken_default = ABI7;
239
239
 
240
240
  // generated_types/placePerpLimitOrder.ts
241
241
  var ABI8 = {
242
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
242
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
243
243
  "name": "place_perp_limit_order",
244
244
  "friends": [],
245
245
  "exposed_functions": [
@@ -268,7 +268,7 @@ var placePerpLimitOrder_default = ABI8;
268
268
 
269
269
  // generated_types/changePerpOrderPrice.ts
270
270
  var ABI9 = {
271
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
271
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
272
272
  "name": "change_perp_order_price",
273
273
  "friends": [],
274
274
  "exposed_functions": [
@@ -295,7 +295,7 @@ var changePerpOrderPrice_default = ABI9;
295
295
 
296
296
  // generated_types/placePerpMarketOrder.ts
297
297
  var ABI10 = {
298
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
298
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
299
299
  "name": "place_perp_market_order",
300
300
  "friends": [],
301
301
  "exposed_functions": [
@@ -323,7 +323,7 @@ var placePerpMarketOrder_default = ABI10;
323
323
 
324
324
  // generated_types/redeemToken.ts
325
325
  var ABI11 = {
326
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
326
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
327
327
  "name": "redeem_token",
328
328
  "friends": [],
329
329
  "exposed_functions": [
@@ -349,7 +349,7 @@ var redeemToken_default = ABI11;
349
349
 
350
350
  // generated_types/removeApiKey.ts
351
351
  var ABI12 = {
352
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
352
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
353
353
  "name": "remove_api_key",
354
354
  "friends": [],
355
355
  "exposed_functions": [
@@ -373,7 +373,7 @@ var removeApiKey_default = ABI12;
373
373
 
374
374
  // generated_types/setAliasName.ts
375
375
  var ABI13 = {
376
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
376
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
377
377
  "name": "set_alias_name",
378
378
  "friends": [],
379
379
  "exposed_functions": [
@@ -397,7 +397,7 @@ var setAliasName_default = ABI13;
397
397
 
398
398
  // generated_types/setAutolend.ts
399
399
  var ABI14 = {
400
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
400
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
401
401
  "name": "set_autolend",
402
402
  "friends": [],
403
403
  "exposed_functions": [
@@ -421,7 +421,7 @@ var setAutolend_default = ABI14;
421
421
 
422
422
  // generated_types/claimReferralFees.ts
423
423
  var ABI15 = {
424
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
424
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
425
425
  "name": "claim_referral_fees",
426
426
  "friends": [],
427
427
  "exposed_functions": [
@@ -445,7 +445,7 @@ var claimReferralFees_default = ABI15;
445
445
 
446
446
  // generated_types/transferToUser.ts
447
447
  var ABI16 = {
448
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
448
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
449
449
  "name": "transfer_to_user",
450
450
  "friends": [],
451
451
  "exposed_functions": [
@@ -472,7 +472,7 @@ var transferToUser_default = ABI16;
472
472
 
473
473
  // generated_types/withdrawToken.ts
474
474
  var ABI17 = {
475
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
475
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
476
476
  "name": "withdraw_token",
477
477
  "friends": [],
478
478
  "exposed_functions": [
@@ -500,7 +500,7 @@ var withdrawToken_default = ABI17;
500
500
 
501
501
  // generated_types/placeMultiplePerpOrders.ts
502
502
  var ABI18 = {
503
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
503
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
504
504
  "name": "place_multiple_perp_orders",
505
505
  "friends": [],
506
506
  "exposed_functions": [
@@ -529,7 +529,7 @@ var placeMultiplePerpOrders_default = ABI18;
529
529
 
530
530
  // generated_types/claimKickbackFee.ts
531
531
  var ABI19 = {
532
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
532
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
533
533
  "name": "claim_kickback_fee",
534
534
  "friends": [],
535
535
  "exposed_functions": [
@@ -552,7 +552,7 @@ var claimKickbackFee_default = ABI19;
552
552
 
553
553
  // generated_types/replaceMultipleOrders.ts
554
554
  var ABI20 = {
555
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
555
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
556
556
  "name": "replace_multiple_orders",
557
557
  "friends": [],
558
558
  "exposed_functions": [
@@ -580,7 +580,7 @@ var replaceMultipleOrders_default = ABI20;
580
580
 
581
581
  // generated_types/claimDeposit.ts
582
582
  var ABI21 = {
583
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
583
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
584
584
  "name": "claim_deposit",
585
585
  "friends": [],
586
586
  "exposed_functions": [
@@ -604,7 +604,7 @@ var claimDeposit_default = ABI21;
604
604
 
605
605
  // generated_types/removeApiKeySigner.ts
606
606
  var ABI22 = {
607
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
607
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
608
608
  "name": "remove_api_key_signer",
609
609
  "friends": [],
610
610
  "exposed_functions": [
@@ -628,7 +628,7 @@ var removeApiKeySigner_default = ABI22;
628
628
 
629
629
  // generated_types/setReferralCode.ts
630
630
  var ABI23 = {
631
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
631
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
632
632
  "name": "set_referral_code",
633
633
  "friends": [],
634
634
  "exposed_functions": [
@@ -652,7 +652,7 @@ var setReferralCode_default = ABI23;
652
652
 
653
653
  // generated_types/tokenizeUserVaultInvestment.ts
654
654
  var ABI24 = {
655
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
655
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
656
656
  "name": "tokenize_user_vault_investment",
657
657
  "friends": [],
658
658
  "exposed_functions": [
@@ -676,7 +676,7 @@ var tokenizeUserVaultInvestment_default = ABI24;
676
676
 
677
677
  // generated_types/addCredits.ts
678
678
  var ABI25 = {
679
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
679
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
680
680
  "name": "add_credits",
681
681
  "friends": [],
682
682
  "exposed_functions": [
@@ -809,7 +809,7 @@ var UserStatus = /* @__PURE__ */ ((UserStatus2) => {
809
809
 
810
810
  // generated_types/withdrawFromVault.ts
811
811
  var ABI26 = {
812
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
812
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
813
813
  "name": "withdraw_from_vault",
814
814
  "friends": [],
815
815
  "exposed_functions": [
@@ -2237,7 +2237,7 @@ function parseEntryFunctionAbi(args) {
2237
2237
 
2238
2238
  // generated_types/faucetEntrypoints.ts
2239
2239
  var ABI27 = {
2240
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
2240
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
2241
2241
  "name": "faucet_entrypoints",
2242
2242
  "friends": [],
2243
2243
  "exposed_functions": [
package/dist/index.d.cts CHANGED
@@ -871,9 +871,8 @@ interface OrderFills {
871
871
  }
872
872
  interface OrderbookUpdate {
873
873
  market: string;
874
- isBid: boolean;
875
- price: string;
876
- size: string;
874
+ bidsUpdates: Record<string, string>;
875
+ asksUpdates: Record<string, string>;
877
876
  }
878
877
  interface PlacePerpLimitOrder {
879
878
  market: string;
@@ -950,14 +949,17 @@ interface SubmitSponsoredTransactionResponse {
950
949
  interface TimeResponse {
951
950
  time: string;
952
951
  }
953
- interface TradesUpdate {
954
- market: string;
952
+ interface Trade {
955
953
  tradeId: string;
956
954
  size: string;
957
955
  price: string;
958
956
  timestamp: string;
959
957
  isTakerBid: boolean;
960
958
  }
959
+ interface TradesUpdate {
960
+ market: string;
961
+ updates: Trade[];
962
+ }
961
963
  interface UpdateUserFeeTier {
962
964
  userId: string;
963
965
  newTierIndex: string;
@@ -1622,4 +1624,4 @@ declare const generateApiKey: () => _aptos_labs_ts_sdk.Ed25519Account;
1622
1624
  declare const getTopicFromCommand: (data: WsCommand) => string;
1623
1625
  declare const getTopicFromMessage: (data: WsMessage) => string;
1624
1626
 
1625
- 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 CancelAllPerpOrdersParams, type CancelPerpOrdersParams, type CanceledPerpOrder, 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 GetPerpetualMarketsConfigResponse, type GetPriceIndexesResponse, type GetServicesStatusResponse, type GetTokenAggregatedStatsRequest, type GetTokenAggregatedStatsResponse, type GetTokenStatsHistoryRequest, type GetTokenStatsHistoryResponse, type GetTokensConfigResponse, type GetUserAggregatedReferralStatsRequest, type GetUserAggregatedReferralStatsResponse, type GetUserAggregatedStatsRequest, type GetUserAggregatedStatsResponse, type GetUserAggregatedVaultStatsRequest, type GetUserAggregatedVaultStatsResponse, 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 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 MarginStep, type MarketStatusChange, Network, type NodeStatus, 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 PerpetualMarketConfigEntry, type PerpetualMarketStatus, type PlaceMultiplePerpOrdersParams, type PlacePerpLimitOrder, type PlacePerpMarketOrder, type PlacePerpOrderParams, 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, TradeRole, type TradesUpdate, TransferAction, type TransferToUserParams, type TxParams, type UpdateUserFeeTier, type User, type UserAggregatedReferralStats, type UserAggregatedStats, type UserAggregatedVaultStats, 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 WsCommand, type WsFill, type WsMessage, type WsOracleUpdates, type WsPerpMarketUpdates, type WsUserUpdates, generateApiKey, getRandomId, getTopicFromCommand, getTopicFromMessage, nowInMiliseconds, parseEntryFunctionAbi, sleep, toSystemValue };
1627
+ 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 CancelAllPerpOrdersParams, type CancelPerpOrdersParams, type CanceledPerpOrder, 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 GetPerpetualMarketsConfigResponse, type GetPriceIndexesResponse, type GetServicesStatusResponse, type GetTokenAggregatedStatsRequest, type GetTokenAggregatedStatsResponse, type GetTokenStatsHistoryRequest, type GetTokenStatsHistoryResponse, type GetTokensConfigResponse, type GetUserAggregatedReferralStatsRequest, type GetUserAggregatedReferralStatsResponse, type GetUserAggregatedStatsRequest, type GetUserAggregatedStatsResponse, type GetUserAggregatedVaultStatsRequest, type GetUserAggregatedVaultStatsResponse, 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 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 MarginStep, type MarketStatusChange, Network, type NodeStatus, 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 PerpetualMarketConfigEntry, type PerpetualMarketStatus, type PlaceMultiplePerpOrdersParams, type PlacePerpLimitOrder, type PlacePerpMarketOrder, type PlacePerpOrderParams, 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 TxParams, type UpdateUserFeeTier, type User, type UserAggregatedReferralStats, type UserAggregatedStats, type UserAggregatedVaultStats, 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 WsCommand, type WsFill, type WsMessage, type WsOracleUpdates, type WsPerpMarketUpdates, type WsUserUpdates, generateApiKey, getRandomId, getTopicFromCommand, getTopicFromMessage, nowInMiliseconds, parseEntryFunctionAbi, sleep, toSystemValue };
package/dist/index.d.ts CHANGED
@@ -871,9 +871,8 @@ interface OrderFills {
871
871
  }
872
872
  interface OrderbookUpdate {
873
873
  market: string;
874
- isBid: boolean;
875
- price: string;
876
- size: string;
874
+ bidsUpdates: Record<string, string>;
875
+ asksUpdates: Record<string, string>;
877
876
  }
878
877
  interface PlacePerpLimitOrder {
879
878
  market: string;
@@ -950,14 +949,17 @@ interface SubmitSponsoredTransactionResponse {
950
949
  interface TimeResponse {
951
950
  time: string;
952
951
  }
953
- interface TradesUpdate {
954
- market: string;
952
+ interface Trade {
955
953
  tradeId: string;
956
954
  size: string;
957
955
  price: string;
958
956
  timestamp: string;
959
957
  isTakerBid: boolean;
960
958
  }
959
+ interface TradesUpdate {
960
+ market: string;
961
+ updates: Trade[];
962
+ }
961
963
  interface UpdateUserFeeTier {
962
964
  userId: string;
963
965
  newTierIndex: string;
@@ -1622,4 +1624,4 @@ declare const generateApiKey: () => _aptos_labs_ts_sdk.Ed25519Account;
1622
1624
  declare const getTopicFromCommand: (data: WsCommand) => string;
1623
1625
  declare const getTopicFromMessage: (data: WsMessage) => string;
1624
1626
 
1625
- 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 CancelAllPerpOrdersParams, type CancelPerpOrdersParams, type CanceledPerpOrder, 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 GetPerpetualMarketsConfigResponse, type GetPriceIndexesResponse, type GetServicesStatusResponse, type GetTokenAggregatedStatsRequest, type GetTokenAggregatedStatsResponse, type GetTokenStatsHistoryRequest, type GetTokenStatsHistoryResponse, type GetTokensConfigResponse, type GetUserAggregatedReferralStatsRequest, type GetUserAggregatedReferralStatsResponse, type GetUserAggregatedStatsRequest, type GetUserAggregatedStatsResponse, type GetUserAggregatedVaultStatsRequest, type GetUserAggregatedVaultStatsResponse, 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 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 MarginStep, type MarketStatusChange, Network, type NodeStatus, 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 PerpetualMarketConfigEntry, type PerpetualMarketStatus, type PlaceMultiplePerpOrdersParams, type PlacePerpLimitOrder, type PlacePerpMarketOrder, type PlacePerpOrderParams, 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, TradeRole, type TradesUpdate, TransferAction, type TransferToUserParams, type TxParams, type UpdateUserFeeTier, type User, type UserAggregatedReferralStats, type UserAggregatedStats, type UserAggregatedVaultStats, 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 WsCommand, type WsFill, type WsMessage, type WsOracleUpdates, type WsPerpMarketUpdates, type WsUserUpdates, generateApiKey, getRandomId, getTopicFromCommand, getTopicFromMessage, nowInMiliseconds, parseEntryFunctionAbi, sleep, toSystemValue };
1627
+ 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 CancelAllPerpOrdersParams, type CancelPerpOrdersParams, type CanceledPerpOrder, 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 GetPerpetualMarketsConfigResponse, type GetPriceIndexesResponse, type GetServicesStatusResponse, type GetTokenAggregatedStatsRequest, type GetTokenAggregatedStatsResponse, type GetTokenStatsHistoryRequest, type GetTokenStatsHistoryResponse, type GetTokensConfigResponse, type GetUserAggregatedReferralStatsRequest, type GetUserAggregatedReferralStatsResponse, type GetUserAggregatedStatsRequest, type GetUserAggregatedStatsResponse, type GetUserAggregatedVaultStatsRequest, type GetUserAggregatedVaultStatsResponse, 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 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 MarginStep, type MarketStatusChange, Network, type NodeStatus, 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 PerpetualMarketConfigEntry, type PerpetualMarketStatus, type PlaceMultiplePerpOrdersParams, type PlacePerpLimitOrder, type PlacePerpMarketOrder, type PlacePerpOrderParams, 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 TxParams, type UpdateUserFeeTier, type User, type UserAggregatedReferralStats, type UserAggregatedStats, type UserAggregatedVaultStats, 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 WsCommand, type WsFill, 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": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
18
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
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": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
43
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
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": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
66
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
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": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
91
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
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": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
116
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
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": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
141
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
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": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
166
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
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": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
192
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
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": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
221
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
222
222
  "name": "change_perp_order_price",
223
223
  "friends": [],
224
224
  "exposed_functions": [
@@ -245,7 +245,7 @@ var changePerpOrderPrice_default = ABI9;
245
245
 
246
246
  // generated_types/placePerpMarketOrder.ts
247
247
  var ABI10 = {
248
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
248
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
249
249
  "name": "place_perp_market_order",
250
250
  "friends": [],
251
251
  "exposed_functions": [
@@ -273,7 +273,7 @@ var placePerpMarketOrder_default = ABI10;
273
273
 
274
274
  // generated_types/redeemToken.ts
275
275
  var ABI11 = {
276
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
276
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
277
277
  "name": "redeem_token",
278
278
  "friends": [],
279
279
  "exposed_functions": [
@@ -299,7 +299,7 @@ var redeemToken_default = ABI11;
299
299
 
300
300
  // generated_types/removeApiKey.ts
301
301
  var ABI12 = {
302
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
302
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
303
303
  "name": "remove_api_key",
304
304
  "friends": [],
305
305
  "exposed_functions": [
@@ -323,7 +323,7 @@ var removeApiKey_default = ABI12;
323
323
 
324
324
  // generated_types/setAliasName.ts
325
325
  var ABI13 = {
326
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
326
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
327
327
  "name": "set_alias_name",
328
328
  "friends": [],
329
329
  "exposed_functions": [
@@ -347,7 +347,7 @@ var setAliasName_default = ABI13;
347
347
 
348
348
  // generated_types/setAutolend.ts
349
349
  var ABI14 = {
350
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
350
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
351
351
  "name": "set_autolend",
352
352
  "friends": [],
353
353
  "exposed_functions": [
@@ -371,7 +371,7 @@ var setAutolend_default = ABI14;
371
371
 
372
372
  // generated_types/claimReferralFees.ts
373
373
  var ABI15 = {
374
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
374
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
375
375
  "name": "claim_referral_fees",
376
376
  "friends": [],
377
377
  "exposed_functions": [
@@ -395,7 +395,7 @@ var claimReferralFees_default = ABI15;
395
395
 
396
396
  // generated_types/transferToUser.ts
397
397
  var ABI16 = {
398
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
398
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
399
399
  "name": "transfer_to_user",
400
400
  "friends": [],
401
401
  "exposed_functions": [
@@ -422,7 +422,7 @@ var transferToUser_default = ABI16;
422
422
 
423
423
  // generated_types/withdrawToken.ts
424
424
  var ABI17 = {
425
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
425
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
426
426
  "name": "withdraw_token",
427
427
  "friends": [],
428
428
  "exposed_functions": [
@@ -450,7 +450,7 @@ var withdrawToken_default = ABI17;
450
450
 
451
451
  // generated_types/placeMultiplePerpOrders.ts
452
452
  var ABI18 = {
453
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
453
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
454
454
  "name": "place_multiple_perp_orders",
455
455
  "friends": [],
456
456
  "exposed_functions": [
@@ -479,7 +479,7 @@ var placeMultiplePerpOrders_default = ABI18;
479
479
 
480
480
  // generated_types/claimKickbackFee.ts
481
481
  var ABI19 = {
482
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
482
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
483
483
  "name": "claim_kickback_fee",
484
484
  "friends": [],
485
485
  "exposed_functions": [
@@ -502,7 +502,7 @@ var claimKickbackFee_default = ABI19;
502
502
 
503
503
  // generated_types/replaceMultipleOrders.ts
504
504
  var ABI20 = {
505
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
505
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
506
506
  "name": "replace_multiple_orders",
507
507
  "friends": [],
508
508
  "exposed_functions": [
@@ -530,7 +530,7 @@ var replaceMultipleOrders_default = ABI20;
530
530
 
531
531
  // generated_types/claimDeposit.ts
532
532
  var ABI21 = {
533
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
533
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
534
534
  "name": "claim_deposit",
535
535
  "friends": [],
536
536
  "exposed_functions": [
@@ -554,7 +554,7 @@ var claimDeposit_default = ABI21;
554
554
 
555
555
  // generated_types/removeApiKeySigner.ts
556
556
  var ABI22 = {
557
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
557
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
558
558
  "name": "remove_api_key_signer",
559
559
  "friends": [],
560
560
  "exposed_functions": [
@@ -578,7 +578,7 @@ var removeApiKeySigner_default = ABI22;
578
578
 
579
579
  // generated_types/setReferralCode.ts
580
580
  var ABI23 = {
581
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
581
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
582
582
  "name": "set_referral_code",
583
583
  "friends": [],
584
584
  "exposed_functions": [
@@ -602,7 +602,7 @@ var setReferralCode_default = ABI23;
602
602
 
603
603
  // generated_types/tokenizeUserVaultInvestment.ts
604
604
  var ABI24 = {
605
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
605
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
606
606
  "name": "tokenize_user_vault_investment",
607
607
  "friends": [],
608
608
  "exposed_functions": [
@@ -626,7 +626,7 @@ var tokenizeUserVaultInvestment_default = ABI24;
626
626
 
627
627
  // generated_types/addCredits.ts
628
628
  var ABI25 = {
629
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
629
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
630
630
  "name": "add_credits",
631
631
  "friends": [],
632
632
  "exposed_functions": [
@@ -759,7 +759,7 @@ var UserStatus = /* @__PURE__ */ ((UserStatus2) => {
759
759
 
760
760
  // generated_types/withdrawFromVault.ts
761
761
  var ABI26 = {
762
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
762
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
763
763
  "name": "withdraw_from_vault",
764
764
  "friends": [],
765
765
  "exposed_functions": [
@@ -2187,7 +2187,7 @@ function parseEntryFunctionAbi(args) {
2187
2187
 
2188
2188
  // generated_types/faucetEntrypoints.ts
2189
2189
  var ABI27 = {
2190
- "address": "0xf16e621303808bc913c92dc7ad7881d68b1c3f31504c74b3e4f89bc0f3d40fba",
2190
+ "address": "0xea02ab5dd22f2d2163fd3bac09d50dc446ff37935c2a6814ac3a8623b15ff071",
2191
2191
  "name": "faucet_entrypoints",
2192
2192
  "friends": [],
2193
2193
  "exposed_functions": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nightlylabs/dex-sdk",
3
- "version": "0.1.50",
3
+ "version": "0.1.52",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {