@nightlylabs/dex-sdk 0.3.41 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,29 +1,64 @@
1
1
  import * as _aptos_labs_ts_sdk from '@aptos-labs/ts-sdk';
2
- import { Aptos, Account, MultiAgentTransaction, AccountAuthenticator, SimpleTransaction, MoveModule, EntryFunctionABI } from '@aptos-labs/ts-sdk';
2
+ import { Aptos, Account, MultiAgentTransaction, AccountAuthenticator, AnyTransactionPayloadInstance, SimpleTransaction, MoveModule, EntryFunctionABI } from '@aptos-labs/ts-sdk';
3
3
 
4
+ /** Controls which deployment the SDK targets. */
4
5
  type NetworkMode = 'testnet' | 'mainnet';
6
+ /** Low-level connection details for a single network deployment. */
5
7
  interface NetworkConfig {
6
8
  mode: NetworkMode;
7
9
  fullnode: string;
8
10
  indexer: string;
11
+ /** Only present on testnet. */
9
12
  faucet?: string;
10
13
  chainId: number;
14
+ /** Base URL for the exchange REST API. */
11
15
  apiUrl: string;
12
16
  }
17
+ /** Pre-configured connection details for the testnet deployment. */
13
18
  declare const TESTNET_CONFIG: NetworkConfig;
19
+ /** Pre-configured connection details for the mainnet deployment. */
14
20
  declare const MAINNET_CONFIG: NetworkConfig;
21
+ /**
22
+ * Returns the {@link NetworkConfig} for the given network mode.
23
+ *
24
+ * @throws If `mode` is not `'testnet'` or `'mainnet'`.
25
+
26
+ * @param mode -
27
+ */
15
28
  declare function getNetworkConfig(mode: NetworkMode): NetworkConfig;
29
+ /**
30
+ * Reads the `NETWORK_MODE` environment variable and returns the corresponding
31
+ * {@link NetworkMode}. Defaults to `'testnet'` when the variable is unset.
32
+ *
33
+ * @throws If `NETWORK_MODE` is set to an unrecognised value.
34
+ */
16
35
  declare function getNetworkModeFromEnv(): NetworkMode;
36
+ /**
37
+ * Creates a pre-configured Aptos client pointed at the given network.
38
+ *
39
+ * @param mode - `'testnet'` or `'mainnet'`
40
+ * @returns A ready-to-use {@link Aptos} instance.
41
+ */
17
42
  declare function createAptosClient(mode: NetworkMode): Aptos;
43
+ /**
44
+ * Convenience wrapper that reads the network mode from the `NETWORK_MODE`
45
+ * environment variable and creates an Aptos client for it.
46
+ *
47
+ * @see {@link getNetworkModeFromEnv}
48
+ * @see {@link createAptosClient}
49
+ */
18
50
  declare function createAptosClientFromEnv(): Aptos;
19
51
 
20
52
  /**
21
- * Get ABIs for a specific network
22
- * This function allows users to explicitly choose testnet or mainnet ABIs at runtime
53
+ * Returns the ABI collection for a specific deployment network.
54
+ *
55
+ * Use this when you need explicit ABI selection for cross-network tooling or tests.
56
+
57
+ * @param networkMode -
23
58
  */
24
59
  declare function getABIsForNetwork(networkMode: NetworkMode): {
25
60
  FaucetEntrypointsABI?: {
26
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
61
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
27
62
  readonly name: "faucet_entrypoints";
28
63
  readonly friends: readonly [];
29
64
  readonly exposed_functions: readonly [{
@@ -62,7 +97,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
62
97
  readonly structs: readonly [];
63
98
  } | undefined;
64
99
  TestMockOraclePricesABI?: {
65
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
100
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
66
101
  readonly name: "test_mock_oracle_prices";
67
102
  readonly friends: readonly [];
68
103
  readonly exposed_functions: readonly [{
@@ -77,7 +112,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
77
112
  readonly structs: readonly [];
78
113
  } | undefined;
79
114
  TestFaucetABI?: {
80
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
115
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
81
116
  readonly name: "test_faucet";
82
117
  readonly friends: readonly [];
83
118
  readonly exposed_functions: readonly [{
@@ -103,7 +138,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
103
138
  readonly is_view: false;
104
139
  readonly generic_type_params: readonly [];
105
140
  readonly params: readonly ["&signer", "vector<u8>"];
106
- readonly return: readonly ["0x1::object::ConstructorRef", "0x1::object::Object<0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e::test_faucet::Token>"];
141
+ readonly return: readonly ["0x1::object::ConstructorRef", "0x1::object::Object<0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31::test_faucet::Token>"];
107
142
  }, {
108
143
  readonly name: "get_faucet_data";
109
144
  readonly visibility: "public";
@@ -183,7 +218,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
183
218
  readonly is_view: false;
184
219
  readonly generic_type_params: readonly [];
185
220
  readonly params: readonly ["0x1::fungible_asset::MintRef", "0x1::object::Object<0x1::fungible_asset::Metadata>"];
186
- readonly return: readonly ["0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e::test_faucet::FaucetToken"];
221
+ readonly return: readonly ["0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31::test_faucet::FaucetToken"];
187
222
  }, {
188
223
  readonly name: "remove_token";
189
224
  readonly visibility: "public";
@@ -213,7 +248,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
213
248
  readonly generic_type_params: readonly [];
214
249
  readonly fields: readonly [{
215
250
  readonly name: "tokens";
216
- readonly type: "0x1::smart_table::SmartTable<vector<u8>, 0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e::test_faucet::FaucetToken>";
251
+ readonly type: "0x1::smart_table::SmartTable<vector<u8>, 0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31::test_faucet::FaucetToken>";
217
252
  }];
218
253
  }, {
219
254
  readonly name: "FaucetToken";
@@ -232,7 +267,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
232
267
  }];
233
268
  } | undefined;
234
269
  AddApiKeyABI: {
235
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
270
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
236
271
  readonly name: "add_api_key";
237
272
  readonly friends: readonly [];
238
273
  readonly exposed_functions: readonly [{
@@ -261,7 +296,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
261
296
  readonly structs: readonly [];
262
297
  };
263
298
  AddCreditsABI: {
264
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
299
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
265
300
  readonly name: "add_credits";
266
301
  readonly friends: readonly [];
267
302
  readonly exposed_functions: readonly [{
@@ -290,7 +325,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
290
325
  readonly structs: readonly [];
291
326
  };
292
327
  CancelAllPerpOrdersABI: {
293
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
328
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
294
329
  readonly name: "cancel_all_perp_orders";
295
330
  readonly friends: readonly [];
296
331
  readonly exposed_functions: readonly [{
@@ -319,7 +354,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
319
354
  readonly structs: readonly [];
320
355
  };
321
356
  CancelAllSpotOrdersABI: {
322
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
357
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
323
358
  readonly name: "cancel_all_spot_orders";
324
359
  readonly friends: readonly [];
325
360
  readonly exposed_functions: readonly [{
@@ -348,7 +383,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
348
383
  readonly structs: readonly [];
349
384
  };
350
385
  CancelPerpOrdersABI: {
351
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
386
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
352
387
  readonly name: "cancel_perp_orders";
353
388
  readonly friends: readonly [];
354
389
  readonly exposed_functions: readonly [{
@@ -377,7 +412,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
377
412
  readonly structs: readonly [];
378
413
  };
379
414
  CancelSpotOrdersABI: {
380
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
415
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
381
416
  readonly name: "cancel_spot_orders";
382
417
  readonly friends: readonly [];
383
418
  readonly exposed_functions: readonly [{
@@ -406,7 +441,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
406
441
  readonly structs: readonly [];
407
442
  };
408
443
  ChangePerpOrderABI: {
409
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
444
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
410
445
  readonly name: "change_perp_order";
411
446
  readonly friends: readonly [];
412
447
  readonly exposed_functions: readonly [{
@@ -435,7 +470,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
435
470
  readonly structs: readonly [];
436
471
  };
437
472
  ChangeSpotOrderABI: {
438
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
473
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
439
474
  readonly name: "change_spot_order";
440
475
  readonly friends: readonly [];
441
476
  readonly exposed_functions: readonly [{
@@ -464,7 +499,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
464
499
  readonly structs: readonly [];
465
500
  };
466
501
  ClaimDepositABI: {
467
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
502
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
468
503
  readonly name: "claim_deposit";
469
504
  readonly friends: readonly [];
470
505
  readonly exposed_functions: readonly [{
@@ -493,7 +528,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
493
528
  readonly structs: readonly [];
494
529
  };
495
530
  ClaimKickbackFeeABI: {
496
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
531
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
497
532
  readonly name: "claim_kickback_fee";
498
533
  readonly friends: readonly [];
499
534
  readonly exposed_functions: readonly [{
@@ -522,7 +557,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
522
557
  readonly structs: readonly [];
523
558
  };
524
559
  ClaimReferralFeesABI: {
525
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
560
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
526
561
  readonly name: "claim_referral_fees";
527
562
  readonly friends: readonly [];
528
563
  readonly exposed_functions: readonly [{
@@ -551,7 +586,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
551
586
  readonly structs: readonly [];
552
587
  };
553
588
  CreateUserABI: {
554
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
589
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
555
590
  readonly name: "create_user";
556
591
  readonly friends: readonly [];
557
592
  readonly exposed_functions: readonly [{
@@ -580,7 +615,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
580
615
  readonly structs: readonly [];
581
616
  };
582
617
  DepositTokenABI: {
583
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
618
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
584
619
  readonly name: "deposit_token";
585
620
  readonly friends: readonly [];
586
621
  readonly exposed_functions: readonly [{
@@ -609,7 +644,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
609
644
  readonly structs: readonly [];
610
645
  };
611
646
  DepositToVaultABI: {
612
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
647
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
613
648
  readonly name: "deposit_to_vault";
614
649
  readonly friends: readonly [];
615
650
  readonly exposed_functions: readonly [{
@@ -638,7 +673,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
638
673
  readonly structs: readonly [];
639
674
  };
640
675
  LendTokenABI: {
641
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
676
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
642
677
  readonly name: "lend_token";
643
678
  readonly friends: readonly [];
644
679
  readonly exposed_functions: readonly [{
@@ -667,7 +702,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
667
702
  readonly structs: readonly [];
668
703
  };
669
704
  OpenBoxesABI: {
670
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
705
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
671
706
  readonly name: "open_boxes";
672
707
  readonly friends: readonly [];
673
708
  readonly exposed_functions: readonly [{
@@ -696,7 +731,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
696
731
  readonly structs: readonly [];
697
732
  };
698
733
  PlaceMultiplePerpOrdersABI: {
699
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
734
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
700
735
  readonly name: "place_multiple_perp_orders";
701
736
  readonly friends: readonly [];
702
737
  readonly exposed_functions: readonly [{
@@ -725,7 +760,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
725
760
  readonly structs: readonly [];
726
761
  };
727
762
  PlaceMultipleSpotOrdersABI: {
728
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
763
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
729
764
  readonly name: "place_multiple_spot_orders";
730
765
  readonly friends: readonly [];
731
766
  readonly exposed_functions: readonly [{
@@ -754,7 +789,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
754
789
  readonly structs: readonly [];
755
790
  };
756
791
  PlacePerpLimitOrderABI: {
757
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
792
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
758
793
  readonly name: "place_perp_limit_order";
759
794
  readonly friends: readonly [];
760
795
  readonly exposed_functions: readonly [{
@@ -783,7 +818,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
783
818
  readonly structs: readonly [];
784
819
  };
785
820
  PlacePerpMarketOrderABI: {
786
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
821
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
787
822
  readonly name: "place_perp_market_order";
788
823
  readonly friends: readonly [];
789
824
  readonly exposed_functions: readonly [{
@@ -812,7 +847,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
812
847
  readonly structs: readonly [];
813
848
  };
814
849
  PlacePerpTriggerOrderABI: {
815
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
850
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
816
851
  readonly name: "place_perp_trigger_order";
817
852
  readonly friends: readonly [];
818
853
  readonly exposed_functions: readonly [{
@@ -841,7 +876,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
841
876
  readonly structs: readonly [];
842
877
  };
843
878
  PlaceSpotLimitOrderABI: {
844
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
879
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
845
880
  readonly name: "place_spot_limit_order";
846
881
  readonly friends: readonly [];
847
882
  readonly exposed_functions: readonly [{
@@ -870,7 +905,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
870
905
  readonly structs: readonly [];
871
906
  };
872
907
  PlaceSpotMarketOrderABI: {
873
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
908
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
874
909
  readonly name: "place_spot_market_order";
875
910
  readonly friends: readonly [];
876
911
  readonly exposed_functions: readonly [{
@@ -899,7 +934,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
899
934
  readonly structs: readonly [];
900
935
  };
901
936
  RedeemTokenABI: {
902
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
937
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
903
938
  readonly name: "redeem_token";
904
939
  readonly friends: readonly [];
905
940
  readonly exposed_functions: readonly [{
@@ -928,7 +963,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
928
963
  readonly structs: readonly [];
929
964
  };
930
965
  RemoveApiKeyABI: {
931
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
966
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
932
967
  readonly name: "remove_api_key";
933
968
  readonly friends: readonly [];
934
969
  readonly exposed_functions: readonly [{
@@ -957,7 +992,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
957
992
  readonly structs: readonly [];
958
993
  };
959
994
  RemoveApiKeySignerABI: {
960
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
995
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
961
996
  readonly name: "remove_api_key_signer";
962
997
  readonly friends: readonly [];
963
998
  readonly exposed_functions: readonly [{
@@ -986,7 +1021,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
986
1021
  readonly structs: readonly [];
987
1022
  };
988
1023
  ReplaceMultipleOrdersABI: {
989
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1024
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
990
1025
  readonly name: "replace_multiple_orders";
991
1026
  readonly friends: readonly [];
992
1027
  readonly exposed_functions: readonly [{
@@ -1015,7 +1050,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
1015
1050
  readonly structs: readonly [];
1016
1051
  };
1017
1052
  ReplaceMultipleSpotOrdersABI: {
1018
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1053
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1019
1054
  readonly name: "replace_multiple_spot_orders";
1020
1055
  readonly friends: readonly [];
1021
1056
  readonly exposed_functions: readonly [{
@@ -1044,7 +1079,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
1044
1079
  readonly structs: readonly [];
1045
1080
  };
1046
1081
  SetAliasNameABI: {
1047
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1082
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1048
1083
  readonly name: "set_alias_name";
1049
1084
  readonly friends: readonly [];
1050
1085
  readonly exposed_functions: readonly [{
@@ -1073,7 +1108,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
1073
1108
  readonly structs: readonly [];
1074
1109
  };
1075
1110
  SetAutolendABI: {
1076
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1111
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1077
1112
  readonly name: "set_autolend";
1078
1113
  readonly friends: readonly [];
1079
1114
  readonly exposed_functions: readonly [{
@@ -1102,7 +1137,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
1102
1137
  readonly structs: readonly [];
1103
1138
  };
1104
1139
  SetReferralCodeABI: {
1105
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1140
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1106
1141
  readonly name: "set_referral_code";
1107
1142
  readonly friends: readonly [];
1108
1143
  readonly exposed_functions: readonly [{
@@ -1131,7 +1166,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
1131
1166
  readonly structs: readonly [];
1132
1167
  };
1133
1168
  TokenizeUserVaultInvestmentABI: {
1134
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1169
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1135
1170
  readonly name: "tokenize_user_vault_investment";
1136
1171
  readonly friends: readonly [];
1137
1172
  readonly exposed_functions: readonly [{
@@ -1160,7 +1195,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
1160
1195
  readonly structs: readonly [];
1161
1196
  };
1162
1197
  TransferToUserABI: {
1163
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1198
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1164
1199
  readonly name: "transfer_to_user";
1165
1200
  readonly friends: readonly [];
1166
1201
  readonly exposed_functions: readonly [{
@@ -1189,7 +1224,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
1189
1224
  readonly structs: readonly [];
1190
1225
  };
1191
1226
  WithdrawFromVaultABI: {
1192
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1227
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1193
1228
  readonly name: "withdraw_from_vault";
1194
1229
  readonly friends: readonly [];
1195
1230
  readonly exposed_functions: readonly [{
@@ -1218,7 +1253,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
1218
1253
  readonly structs: readonly [];
1219
1254
  };
1220
1255
  WithdrawTokenABI: {
1221
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1256
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1222
1257
  readonly name: "withdraw_token";
1223
1258
  readonly friends: readonly [];
1224
1259
  readonly exposed_functions: readonly [{
@@ -1247,7 +1282,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
1247
1282
  readonly structs: readonly [];
1248
1283
  };
1249
1284
  InitExchangeABI: {
1250
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1285
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1251
1286
  readonly name: "init_exchange";
1252
1287
  readonly friends: readonly [];
1253
1288
  readonly exposed_functions: readonly [{
@@ -1276,7 +1311,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
1276
1311
  readonly structs: readonly [];
1277
1312
  };
1278
1313
  AddDevAddressABI: {
1279
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1314
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1280
1315
  readonly name: "add_dev_address";
1281
1316
  readonly friends: readonly [];
1282
1317
  readonly exposed_functions: readonly [{
@@ -1305,7 +1340,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
1305
1340
  readonly structs: readonly [];
1306
1341
  };
1307
1342
  RemoveDevAddressABI: {
1308
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1343
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1309
1344
  readonly name: "remove_dev_address";
1310
1345
  readonly friends: readonly [];
1311
1346
  readonly exposed_functions: readonly [{
@@ -1334,7 +1369,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
1334
1369
  readonly structs: readonly [];
1335
1370
  };
1336
1371
  AddTokenToOracleABI: {
1337
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1372
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1338
1373
  readonly name: "add_token_to_oracle";
1339
1374
  readonly friends: readonly [];
1340
1375
  readonly exposed_functions: readonly [{
@@ -1363,7 +1398,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
1363
1398
  readonly structs: readonly [];
1364
1399
  };
1365
1400
  AddNewTokenABI: {
1366
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1401
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1367
1402
  readonly name: "add_new_token";
1368
1403
  readonly friends: readonly [];
1369
1404
  readonly exposed_functions: readonly [{
@@ -1392,7 +1427,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
1392
1427
  readonly structs: readonly [];
1393
1428
  };
1394
1429
  UpdateOraclePricesABI: {
1395
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1430
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1396
1431
  readonly name: "update_oracle_prices";
1397
1432
  readonly friends: readonly [];
1398
1433
  readonly exposed_functions: readonly [{
@@ -1421,7 +1456,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
1421
1456
  readonly structs: readonly [];
1422
1457
  };
1423
1458
  AddNewPerpMarketABI: {
1424
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1459
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1425
1460
  readonly name: "add_new_perp_market";
1426
1461
  readonly friends: readonly [];
1427
1462
  readonly exposed_functions: readonly [{
@@ -1450,7 +1485,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
1450
1485
  readonly structs: readonly [];
1451
1486
  };
1452
1487
  AddNewSpotMarketABI: {
1453
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1488
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1454
1489
  readonly name: "add_new_spot_market";
1455
1490
  readonly friends: readonly [];
1456
1491
  readonly exposed_functions: readonly [{
@@ -1479,7 +1514,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
1479
1514
  readonly structs: readonly [];
1480
1515
  };
1481
1516
  UpdateFeeTiersABI: {
1482
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1517
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1483
1518
  readonly name: "update_fee_tiers";
1484
1519
  readonly friends: readonly [];
1485
1520
  readonly exposed_functions: readonly [{
@@ -1508,7 +1543,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
1508
1543
  readonly structs: readonly [];
1509
1544
  };
1510
1545
  SettleMarketABI: {
1511
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1546
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1512
1547
  readonly name: "settle_market";
1513
1548
  readonly friends: readonly [];
1514
1549
  readonly exposed_functions: readonly [{
@@ -1537,7 +1572,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
1537
1572
  readonly structs: readonly [];
1538
1573
  };
1539
1574
  AddNewLpTokenABI: {
1540
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1575
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1541
1576
  readonly name: "add_new_lp_token";
1542
1577
  readonly friends: readonly [];
1543
1578
  readonly exposed_functions: readonly [{
@@ -1566,7 +1601,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
1566
1601
  readonly structs: readonly [];
1567
1602
  };
1568
1603
  SetSystemHaircutABI: {
1569
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1604
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1570
1605
  readonly name: "set_system_haircut";
1571
1606
  readonly friends: readonly [];
1572
1607
  readonly exposed_functions: readonly [{
@@ -1595,7 +1630,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
1595
1630
  readonly structs: readonly [];
1596
1631
  };
1597
1632
  SetFeeDataABI: {
1598
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1633
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1599
1634
  readonly name: "set_fee_data";
1600
1635
  readonly friends: readonly [];
1601
1636
  readonly exposed_functions: readonly [{
@@ -1624,7 +1659,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
1624
1659
  readonly structs: readonly [];
1625
1660
  };
1626
1661
  ChangePerpMarketDataABI: {
1627
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1662
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1628
1663
  readonly name: "change_perp_market_data";
1629
1664
  readonly friends: readonly [];
1630
1665
  readonly exposed_functions: readonly [{
@@ -1653,7 +1688,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
1653
1688
  readonly structs: readonly [];
1654
1689
  };
1655
1690
  ChangeSpotMarketDataABI: {
1656
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1691
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1657
1692
  readonly name: "change_spot_market_data";
1658
1693
  readonly friends: readonly [];
1659
1694
  readonly exposed_functions: readonly [{
@@ -1682,7 +1717,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
1682
1717
  readonly structs: readonly [];
1683
1718
  };
1684
1719
  ChangeTokenDataABI: {
1685
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1720
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1686
1721
  readonly name: "change_token_data";
1687
1722
  readonly friends: readonly [];
1688
1723
  readonly exposed_functions: readonly [{
@@ -1711,7 +1746,7 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
1711
1746
  readonly structs: readonly [];
1712
1747
  };
1713
1748
  PredepositToVaultABI: {
1714
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1749
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1715
1750
  readonly name: "predeposit_to_vault";
1716
1751
  readonly friends: readonly [];
1717
1752
  readonly exposed_functions: readonly [{
@@ -1741,12 +1776,14 @@ declare function getABIsForNetwork(networkMode: NetworkMode): {
1741
1776
  };
1742
1777
  };
1743
1778
  /**
1744
- * Default ABIs - uses NETWORK_MODE environment variable for scripts
1745
- * For SDK users, use getABIsForNetwork() instead and pass the network mode explicitly
1779
+ * Default ABIs selected from the `NETWORK_MODE` environment variable.
1780
+ *
1781
+ * For SDK clients, passing an explicit `networkMode` to `getABIsForNetwork`
1782
+ * is preferred.
1746
1783
  */
1747
1784
  declare const ABIs: {
1748
1785
  FaucetEntrypointsABI?: {
1749
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1786
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1750
1787
  readonly name: "faucet_entrypoints";
1751
1788
  readonly friends: readonly [];
1752
1789
  readonly exposed_functions: readonly [{
@@ -1785,7 +1822,7 @@ declare const ABIs: {
1785
1822
  readonly structs: readonly [];
1786
1823
  } | undefined;
1787
1824
  TestMockOraclePricesABI?: {
1788
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1825
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1789
1826
  readonly name: "test_mock_oracle_prices";
1790
1827
  readonly friends: readonly [];
1791
1828
  readonly exposed_functions: readonly [{
@@ -1800,7 +1837,7 @@ declare const ABIs: {
1800
1837
  readonly structs: readonly [];
1801
1838
  } | undefined;
1802
1839
  TestFaucetABI?: {
1803
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1840
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1804
1841
  readonly name: "test_faucet";
1805
1842
  readonly friends: readonly [];
1806
1843
  readonly exposed_functions: readonly [{
@@ -1826,7 +1863,7 @@ declare const ABIs: {
1826
1863
  readonly is_view: false;
1827
1864
  readonly generic_type_params: readonly [];
1828
1865
  readonly params: readonly ["&signer", "vector<u8>"];
1829
- readonly return: readonly ["0x1::object::ConstructorRef", "0x1::object::Object<0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e::test_faucet::Token>"];
1866
+ readonly return: readonly ["0x1::object::ConstructorRef", "0x1::object::Object<0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31::test_faucet::Token>"];
1830
1867
  }, {
1831
1868
  readonly name: "get_faucet_data";
1832
1869
  readonly visibility: "public";
@@ -1906,7 +1943,7 @@ declare const ABIs: {
1906
1943
  readonly is_view: false;
1907
1944
  readonly generic_type_params: readonly [];
1908
1945
  readonly params: readonly ["0x1::fungible_asset::MintRef", "0x1::object::Object<0x1::fungible_asset::Metadata>"];
1909
- readonly return: readonly ["0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e::test_faucet::FaucetToken"];
1946
+ readonly return: readonly ["0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31::test_faucet::FaucetToken"];
1910
1947
  }, {
1911
1948
  readonly name: "remove_token";
1912
1949
  readonly visibility: "public";
@@ -1936,7 +1973,7 @@ declare const ABIs: {
1936
1973
  readonly generic_type_params: readonly [];
1937
1974
  readonly fields: readonly [{
1938
1975
  readonly name: "tokens";
1939
- readonly type: "0x1::smart_table::SmartTable<vector<u8>, 0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e::test_faucet::FaucetToken>";
1976
+ readonly type: "0x1::smart_table::SmartTable<vector<u8>, 0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31::test_faucet::FaucetToken>";
1940
1977
  }];
1941
1978
  }, {
1942
1979
  readonly name: "FaucetToken";
@@ -1955,7 +1992,7 @@ declare const ABIs: {
1955
1992
  }];
1956
1993
  } | undefined;
1957
1994
  AddApiKeyABI: {
1958
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
1995
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1959
1996
  readonly name: "add_api_key";
1960
1997
  readonly friends: readonly [];
1961
1998
  readonly exposed_functions: readonly [{
@@ -1984,7 +2021,7 @@ declare const ABIs: {
1984
2021
  readonly structs: readonly [];
1985
2022
  };
1986
2023
  AddCreditsABI: {
1987
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2024
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
1988
2025
  readonly name: "add_credits";
1989
2026
  readonly friends: readonly [];
1990
2027
  readonly exposed_functions: readonly [{
@@ -2013,7 +2050,7 @@ declare const ABIs: {
2013
2050
  readonly structs: readonly [];
2014
2051
  };
2015
2052
  CancelAllPerpOrdersABI: {
2016
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2053
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2017
2054
  readonly name: "cancel_all_perp_orders";
2018
2055
  readonly friends: readonly [];
2019
2056
  readonly exposed_functions: readonly [{
@@ -2042,7 +2079,7 @@ declare const ABIs: {
2042
2079
  readonly structs: readonly [];
2043
2080
  };
2044
2081
  CancelAllSpotOrdersABI: {
2045
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2082
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2046
2083
  readonly name: "cancel_all_spot_orders";
2047
2084
  readonly friends: readonly [];
2048
2085
  readonly exposed_functions: readonly [{
@@ -2071,7 +2108,7 @@ declare const ABIs: {
2071
2108
  readonly structs: readonly [];
2072
2109
  };
2073
2110
  CancelPerpOrdersABI: {
2074
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2111
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2075
2112
  readonly name: "cancel_perp_orders";
2076
2113
  readonly friends: readonly [];
2077
2114
  readonly exposed_functions: readonly [{
@@ -2100,7 +2137,7 @@ declare const ABIs: {
2100
2137
  readonly structs: readonly [];
2101
2138
  };
2102
2139
  CancelSpotOrdersABI: {
2103
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2140
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2104
2141
  readonly name: "cancel_spot_orders";
2105
2142
  readonly friends: readonly [];
2106
2143
  readonly exposed_functions: readonly [{
@@ -2129,7 +2166,7 @@ declare const ABIs: {
2129
2166
  readonly structs: readonly [];
2130
2167
  };
2131
2168
  ChangePerpOrderABI: {
2132
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2169
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2133
2170
  readonly name: "change_perp_order";
2134
2171
  readonly friends: readonly [];
2135
2172
  readonly exposed_functions: readonly [{
@@ -2158,7 +2195,7 @@ declare const ABIs: {
2158
2195
  readonly structs: readonly [];
2159
2196
  };
2160
2197
  ChangeSpotOrderABI: {
2161
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2198
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2162
2199
  readonly name: "change_spot_order";
2163
2200
  readonly friends: readonly [];
2164
2201
  readonly exposed_functions: readonly [{
@@ -2187,7 +2224,7 @@ declare const ABIs: {
2187
2224
  readonly structs: readonly [];
2188
2225
  };
2189
2226
  ClaimDepositABI: {
2190
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2227
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2191
2228
  readonly name: "claim_deposit";
2192
2229
  readonly friends: readonly [];
2193
2230
  readonly exposed_functions: readonly [{
@@ -2216,7 +2253,7 @@ declare const ABIs: {
2216
2253
  readonly structs: readonly [];
2217
2254
  };
2218
2255
  ClaimKickbackFeeABI: {
2219
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2256
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2220
2257
  readonly name: "claim_kickback_fee";
2221
2258
  readonly friends: readonly [];
2222
2259
  readonly exposed_functions: readonly [{
@@ -2245,7 +2282,7 @@ declare const ABIs: {
2245
2282
  readonly structs: readonly [];
2246
2283
  };
2247
2284
  ClaimReferralFeesABI: {
2248
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2285
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2249
2286
  readonly name: "claim_referral_fees";
2250
2287
  readonly friends: readonly [];
2251
2288
  readonly exposed_functions: readonly [{
@@ -2274,7 +2311,7 @@ declare const ABIs: {
2274
2311
  readonly structs: readonly [];
2275
2312
  };
2276
2313
  CreateUserABI: {
2277
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2314
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2278
2315
  readonly name: "create_user";
2279
2316
  readonly friends: readonly [];
2280
2317
  readonly exposed_functions: readonly [{
@@ -2303,7 +2340,7 @@ declare const ABIs: {
2303
2340
  readonly structs: readonly [];
2304
2341
  };
2305
2342
  DepositTokenABI: {
2306
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2343
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2307
2344
  readonly name: "deposit_token";
2308
2345
  readonly friends: readonly [];
2309
2346
  readonly exposed_functions: readonly [{
@@ -2332,7 +2369,7 @@ declare const ABIs: {
2332
2369
  readonly structs: readonly [];
2333
2370
  };
2334
2371
  DepositToVaultABI: {
2335
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2372
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2336
2373
  readonly name: "deposit_to_vault";
2337
2374
  readonly friends: readonly [];
2338
2375
  readonly exposed_functions: readonly [{
@@ -2361,7 +2398,7 @@ declare const ABIs: {
2361
2398
  readonly structs: readonly [];
2362
2399
  };
2363
2400
  LendTokenABI: {
2364
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2401
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2365
2402
  readonly name: "lend_token";
2366
2403
  readonly friends: readonly [];
2367
2404
  readonly exposed_functions: readonly [{
@@ -2390,7 +2427,7 @@ declare const ABIs: {
2390
2427
  readonly structs: readonly [];
2391
2428
  };
2392
2429
  OpenBoxesABI: {
2393
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2430
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2394
2431
  readonly name: "open_boxes";
2395
2432
  readonly friends: readonly [];
2396
2433
  readonly exposed_functions: readonly [{
@@ -2419,7 +2456,7 @@ declare const ABIs: {
2419
2456
  readonly structs: readonly [];
2420
2457
  };
2421
2458
  PlaceMultiplePerpOrdersABI: {
2422
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2459
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2423
2460
  readonly name: "place_multiple_perp_orders";
2424
2461
  readonly friends: readonly [];
2425
2462
  readonly exposed_functions: readonly [{
@@ -2448,7 +2485,7 @@ declare const ABIs: {
2448
2485
  readonly structs: readonly [];
2449
2486
  };
2450
2487
  PlaceMultipleSpotOrdersABI: {
2451
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2488
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2452
2489
  readonly name: "place_multiple_spot_orders";
2453
2490
  readonly friends: readonly [];
2454
2491
  readonly exposed_functions: readonly [{
@@ -2477,7 +2514,7 @@ declare const ABIs: {
2477
2514
  readonly structs: readonly [];
2478
2515
  };
2479
2516
  PlacePerpLimitOrderABI: {
2480
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2517
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2481
2518
  readonly name: "place_perp_limit_order";
2482
2519
  readonly friends: readonly [];
2483
2520
  readonly exposed_functions: readonly [{
@@ -2506,7 +2543,7 @@ declare const ABIs: {
2506
2543
  readonly structs: readonly [];
2507
2544
  };
2508
2545
  PlacePerpMarketOrderABI: {
2509
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2546
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2510
2547
  readonly name: "place_perp_market_order";
2511
2548
  readonly friends: readonly [];
2512
2549
  readonly exposed_functions: readonly [{
@@ -2535,7 +2572,7 @@ declare const ABIs: {
2535
2572
  readonly structs: readonly [];
2536
2573
  };
2537
2574
  PlacePerpTriggerOrderABI: {
2538
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2575
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2539
2576
  readonly name: "place_perp_trigger_order";
2540
2577
  readonly friends: readonly [];
2541
2578
  readonly exposed_functions: readonly [{
@@ -2564,7 +2601,7 @@ declare const ABIs: {
2564
2601
  readonly structs: readonly [];
2565
2602
  };
2566
2603
  PlaceSpotLimitOrderABI: {
2567
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2604
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2568
2605
  readonly name: "place_spot_limit_order";
2569
2606
  readonly friends: readonly [];
2570
2607
  readonly exposed_functions: readonly [{
@@ -2593,7 +2630,7 @@ declare const ABIs: {
2593
2630
  readonly structs: readonly [];
2594
2631
  };
2595
2632
  PlaceSpotMarketOrderABI: {
2596
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2633
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2597
2634
  readonly name: "place_spot_market_order";
2598
2635
  readonly friends: readonly [];
2599
2636
  readonly exposed_functions: readonly [{
@@ -2622,7 +2659,7 @@ declare const ABIs: {
2622
2659
  readonly structs: readonly [];
2623
2660
  };
2624
2661
  RedeemTokenABI: {
2625
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2662
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2626
2663
  readonly name: "redeem_token";
2627
2664
  readonly friends: readonly [];
2628
2665
  readonly exposed_functions: readonly [{
@@ -2651,7 +2688,7 @@ declare const ABIs: {
2651
2688
  readonly structs: readonly [];
2652
2689
  };
2653
2690
  RemoveApiKeyABI: {
2654
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2691
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2655
2692
  readonly name: "remove_api_key";
2656
2693
  readonly friends: readonly [];
2657
2694
  readonly exposed_functions: readonly [{
@@ -2680,7 +2717,7 @@ declare const ABIs: {
2680
2717
  readonly structs: readonly [];
2681
2718
  };
2682
2719
  RemoveApiKeySignerABI: {
2683
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2720
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2684
2721
  readonly name: "remove_api_key_signer";
2685
2722
  readonly friends: readonly [];
2686
2723
  readonly exposed_functions: readonly [{
@@ -2709,7 +2746,7 @@ declare const ABIs: {
2709
2746
  readonly structs: readonly [];
2710
2747
  };
2711
2748
  ReplaceMultipleOrdersABI: {
2712
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2749
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2713
2750
  readonly name: "replace_multiple_orders";
2714
2751
  readonly friends: readonly [];
2715
2752
  readonly exposed_functions: readonly [{
@@ -2738,7 +2775,7 @@ declare const ABIs: {
2738
2775
  readonly structs: readonly [];
2739
2776
  };
2740
2777
  ReplaceMultipleSpotOrdersABI: {
2741
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2778
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2742
2779
  readonly name: "replace_multiple_spot_orders";
2743
2780
  readonly friends: readonly [];
2744
2781
  readonly exposed_functions: readonly [{
@@ -2767,7 +2804,7 @@ declare const ABIs: {
2767
2804
  readonly structs: readonly [];
2768
2805
  };
2769
2806
  SetAliasNameABI: {
2770
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2807
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2771
2808
  readonly name: "set_alias_name";
2772
2809
  readonly friends: readonly [];
2773
2810
  readonly exposed_functions: readonly [{
@@ -2796,7 +2833,7 @@ declare const ABIs: {
2796
2833
  readonly structs: readonly [];
2797
2834
  };
2798
2835
  SetAutolendABI: {
2799
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2836
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2800
2837
  readonly name: "set_autolend";
2801
2838
  readonly friends: readonly [];
2802
2839
  readonly exposed_functions: readonly [{
@@ -2825,7 +2862,7 @@ declare const ABIs: {
2825
2862
  readonly structs: readonly [];
2826
2863
  };
2827
2864
  SetReferralCodeABI: {
2828
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2865
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2829
2866
  readonly name: "set_referral_code";
2830
2867
  readonly friends: readonly [];
2831
2868
  readonly exposed_functions: readonly [{
@@ -2854,7 +2891,7 @@ declare const ABIs: {
2854
2891
  readonly structs: readonly [];
2855
2892
  };
2856
2893
  TokenizeUserVaultInvestmentABI: {
2857
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2894
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2858
2895
  readonly name: "tokenize_user_vault_investment";
2859
2896
  readonly friends: readonly [];
2860
2897
  readonly exposed_functions: readonly [{
@@ -2883,7 +2920,7 @@ declare const ABIs: {
2883
2920
  readonly structs: readonly [];
2884
2921
  };
2885
2922
  TransferToUserABI: {
2886
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2923
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2887
2924
  readonly name: "transfer_to_user";
2888
2925
  readonly friends: readonly [];
2889
2926
  readonly exposed_functions: readonly [{
@@ -2912,7 +2949,7 @@ declare const ABIs: {
2912
2949
  readonly structs: readonly [];
2913
2950
  };
2914
2951
  WithdrawFromVaultABI: {
2915
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2952
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2916
2953
  readonly name: "withdraw_from_vault";
2917
2954
  readonly friends: readonly [];
2918
2955
  readonly exposed_functions: readonly [{
@@ -2941,7 +2978,7 @@ declare const ABIs: {
2941
2978
  readonly structs: readonly [];
2942
2979
  };
2943
2980
  WithdrawTokenABI: {
2944
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
2981
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2945
2982
  readonly name: "withdraw_token";
2946
2983
  readonly friends: readonly [];
2947
2984
  readonly exposed_functions: readonly [{
@@ -2970,7 +3007,7 @@ declare const ABIs: {
2970
3007
  readonly structs: readonly [];
2971
3008
  };
2972
3009
  InitExchangeABI: {
2973
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
3010
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
2974
3011
  readonly name: "init_exchange";
2975
3012
  readonly friends: readonly [];
2976
3013
  readonly exposed_functions: readonly [{
@@ -2999,7 +3036,7 @@ declare const ABIs: {
2999
3036
  readonly structs: readonly [];
3000
3037
  };
3001
3038
  AddDevAddressABI: {
3002
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
3039
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
3003
3040
  readonly name: "add_dev_address";
3004
3041
  readonly friends: readonly [];
3005
3042
  readonly exposed_functions: readonly [{
@@ -3028,7 +3065,7 @@ declare const ABIs: {
3028
3065
  readonly structs: readonly [];
3029
3066
  };
3030
3067
  RemoveDevAddressABI: {
3031
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
3068
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
3032
3069
  readonly name: "remove_dev_address";
3033
3070
  readonly friends: readonly [];
3034
3071
  readonly exposed_functions: readonly [{
@@ -3057,7 +3094,7 @@ declare const ABIs: {
3057
3094
  readonly structs: readonly [];
3058
3095
  };
3059
3096
  AddTokenToOracleABI: {
3060
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
3097
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
3061
3098
  readonly name: "add_token_to_oracle";
3062
3099
  readonly friends: readonly [];
3063
3100
  readonly exposed_functions: readonly [{
@@ -3086,7 +3123,7 @@ declare const ABIs: {
3086
3123
  readonly structs: readonly [];
3087
3124
  };
3088
3125
  AddNewTokenABI: {
3089
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
3126
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
3090
3127
  readonly name: "add_new_token";
3091
3128
  readonly friends: readonly [];
3092
3129
  readonly exposed_functions: readonly [{
@@ -3115,7 +3152,7 @@ declare const ABIs: {
3115
3152
  readonly structs: readonly [];
3116
3153
  };
3117
3154
  UpdateOraclePricesABI: {
3118
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
3155
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
3119
3156
  readonly name: "update_oracle_prices";
3120
3157
  readonly friends: readonly [];
3121
3158
  readonly exposed_functions: readonly [{
@@ -3144,7 +3181,7 @@ declare const ABIs: {
3144
3181
  readonly structs: readonly [];
3145
3182
  };
3146
3183
  AddNewPerpMarketABI: {
3147
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
3184
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
3148
3185
  readonly name: "add_new_perp_market";
3149
3186
  readonly friends: readonly [];
3150
3187
  readonly exposed_functions: readonly [{
@@ -3173,7 +3210,7 @@ declare const ABIs: {
3173
3210
  readonly structs: readonly [];
3174
3211
  };
3175
3212
  AddNewSpotMarketABI: {
3176
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
3213
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
3177
3214
  readonly name: "add_new_spot_market";
3178
3215
  readonly friends: readonly [];
3179
3216
  readonly exposed_functions: readonly [{
@@ -3202,7 +3239,7 @@ declare const ABIs: {
3202
3239
  readonly structs: readonly [];
3203
3240
  };
3204
3241
  UpdateFeeTiersABI: {
3205
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
3242
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
3206
3243
  readonly name: "update_fee_tiers";
3207
3244
  readonly friends: readonly [];
3208
3245
  readonly exposed_functions: readonly [{
@@ -3231,7 +3268,7 @@ declare const ABIs: {
3231
3268
  readonly structs: readonly [];
3232
3269
  };
3233
3270
  SettleMarketABI: {
3234
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
3271
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
3235
3272
  readonly name: "settle_market";
3236
3273
  readonly friends: readonly [];
3237
3274
  readonly exposed_functions: readonly [{
@@ -3260,7 +3297,7 @@ declare const ABIs: {
3260
3297
  readonly structs: readonly [];
3261
3298
  };
3262
3299
  AddNewLpTokenABI: {
3263
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
3300
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
3264
3301
  readonly name: "add_new_lp_token";
3265
3302
  readonly friends: readonly [];
3266
3303
  readonly exposed_functions: readonly [{
@@ -3289,7 +3326,7 @@ declare const ABIs: {
3289
3326
  readonly structs: readonly [];
3290
3327
  };
3291
3328
  SetSystemHaircutABI: {
3292
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
3329
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
3293
3330
  readonly name: "set_system_haircut";
3294
3331
  readonly friends: readonly [];
3295
3332
  readonly exposed_functions: readonly [{
@@ -3318,7 +3355,7 @@ declare const ABIs: {
3318
3355
  readonly structs: readonly [];
3319
3356
  };
3320
3357
  SetFeeDataABI: {
3321
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
3358
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
3322
3359
  readonly name: "set_fee_data";
3323
3360
  readonly friends: readonly [];
3324
3361
  readonly exposed_functions: readonly [{
@@ -3347,7 +3384,7 @@ declare const ABIs: {
3347
3384
  readonly structs: readonly [];
3348
3385
  };
3349
3386
  ChangePerpMarketDataABI: {
3350
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
3387
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
3351
3388
  readonly name: "change_perp_market_data";
3352
3389
  readonly friends: readonly [];
3353
3390
  readonly exposed_functions: readonly [{
@@ -3376,7 +3413,7 @@ declare const ABIs: {
3376
3413
  readonly structs: readonly [];
3377
3414
  };
3378
3415
  ChangeSpotMarketDataABI: {
3379
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
3416
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
3380
3417
  readonly name: "change_spot_market_data";
3381
3418
  readonly friends: readonly [];
3382
3419
  readonly exposed_functions: readonly [{
@@ -3405,7 +3442,7 @@ declare const ABIs: {
3405
3442
  readonly structs: readonly [];
3406
3443
  };
3407
3444
  ChangeTokenDataABI: {
3408
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
3445
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
3409
3446
  readonly name: "change_token_data";
3410
3447
  readonly friends: readonly [];
3411
3448
  readonly exposed_functions: readonly [{
@@ -3434,7 +3471,7 @@ declare const ABIs: {
3434
3471
  readonly structs: readonly [];
3435
3472
  };
3436
3473
  PredepositToVaultABI: {
3437
- readonly address: "0x5be18290d145c6cf66678aa33fcdd91d2f225c8f66e7827e9fbb2748d795e68e";
3474
+ readonly address: "0x195dc8fd90dc72792e68d1bc3b8f5f11a5f34d68452a49ee7114be593b9e5d31";
3438
3475
  readonly name: "predeposit_to_vault";
3439
3476
  readonly friends: readonly [];
3440
3477
  readonly exposed_functions: readonly [{
@@ -5443,224 +5480,430 @@ type WsMessage = {
5443
5480
  content: GlobalPartialLiquidation;
5444
5481
  };
5445
5482
 
5483
+ /** Aptos on-chain address in `0x…` hex format. */
5446
5484
  type Address = `0x${string}`;
5447
- declare enum Status {
5448
- Halted = 0,
5449
- ReduceOnly = 1,
5450
- PostOnly = 2,
5451
- Live = 3
5452
- }
5453
- declare enum Network {
5454
- Devnet = "Devnet"
5455
- }
5485
+ /** Gas / expiry overrides applied to every sponsored transaction the SDK submits. */
5456
5486
  interface TxParams {
5487
+ /** Maximum gas units the transaction may consume. */
5457
5488
  maxGas: number;
5489
+ /** Price per gas unit in octas. */
5458
5490
  gasUnitPrice: number;
5491
+ /** Seconds from now before the transaction expires. */
5459
5492
  expirationTimestampSecs: number;
5460
5493
  }
5494
+ /**
5495
+ * Configuration passed to {@link Client.create} / {@link Client.init}.
5496
+ * All fields are optional; sensible defaults are applied per `networkMode`.
5497
+ */
5461
5498
  interface ClientConfig {
5499
+ /** Open a WebSocket connection on init. Defaults to `true`. */
5462
5500
  enableWs?: boolean;
5501
+ /** Override the exchange API base URL. Defaults to the URL for `networkMode`. */
5463
5502
  url?: string;
5503
+ /** Pre-existing API key account. A new keypair is generated if omitted. */
5464
5504
  apiKey?: Account;
5505
+ /** Aptos chain ID. Detected from the node if omitted. */
5465
5506
  chainId?: number;
5507
+ /** Gas / expiry overrides for sponsored transactions. */
5466
5508
  params?: TxParams;
5509
+ /** Target network. Defaults to `'testnet'`. */
5467
5510
  networkMode?: NetworkMode;
5511
+ /** Log verbose WebSocket messages to the console. Defaults to `false`. */
5468
5512
  wsDebug?: boolean;
5513
+ /** Timeout in ms for WebSocket connection and per-message ack. Defaults to `5000`. */
5469
5514
  timeout?: number;
5515
+ /** Interval in ms between WebSocket keep-alive pings. Defaults to `30_000`. */
5470
5516
  pingIntervalMs?: number;
5471
5517
  }
5518
+ /** Parameters for modifying an existing perpetual limit order. */
5472
5519
  interface ChangePerpOrderParams {
5520
+ /** Exchange user ID that owns the order. */
5473
5521
  userId: string;
5522
+ /** Market name, e.g. `'BTC-PERP'`. */
5474
5523
  market: string;
5524
+ /** ID of the order to change. */
5475
5525
  orderId: string;
5526
+ /** New limit price as a string (human-readable units). */
5476
5527
  newPrice: string;
5528
+ /** New order size as a string (human-readable units). */
5477
5529
  newSize: string;
5530
+ /** Whether the updated order should be reduce-only. */
5478
5531
  reduceOnly: boolean;
5532
+ /** New trigger price (used for stop/take-profit orders). */
5479
5533
  triggerPrice: string;
5480
5534
  }
5535
+ /** Parameters for modifying an existing spot limit order. */
5481
5536
  interface ChangeSpotOrderParams {
5537
+ /** Exchange user ID that owns the order. */
5482
5538
  userId: string;
5539
+ /** Market name, e.g. `'BTC-USDC'`. */
5483
5540
  marketName: string;
5541
+ /** ID of the order to change. */
5484
5542
  orderId: string;
5543
+ /** New limit price as a string (human-readable units). */
5485
5544
  newPrice: string;
5545
+ /** New order size as a string (human-readable units). */
5486
5546
  newSize: string;
5547
+ /** If `true`, the updated order will only be placed as a maker (post-only). */
5487
5548
  postOnly: boolean;
5488
5549
  }
5550
+ /** Core fields for a single spot order. */
5489
5551
  interface SpotOrderData {
5552
+ /** Market name, e.g. `'BTC-USDC'`. */
5490
5553
  marketName: string;
5554
+ /** `true` = buy, `false` = sell. */
5491
5555
  isBid: boolean;
5556
+ /** Limit price as a string (human-readable units). */
5492
5557
  price: string;
5558
+ /** Order size as a string (human-readable units). */
5493
5559
  size: string;
5560
+ /** If `true`, order is cancelled instead of crossing the book. */
5494
5561
  postOnly?: boolean;
5495
5562
  }
5563
+ /** Parameters for placing a single spot limit or market order. */
5496
5564
  interface PlaceSpotOrderParams {
5565
+ /** Exchange user ID placing the order. */
5497
5566
  userId: string;
5567
+ /** Order details. */
5498
5568
  orderData: SpotOrderData;
5499
5569
  }
5570
+ /** Parameters for cancelling one or more spot orders. */
5500
5571
  interface CancelSpotOrdersParams {
5572
+ /** Exchange user ID that owns the orders. */
5501
5573
  userId: string;
5574
+ /** List of market names corresponding to each inner `orderIds` array. */
5502
5575
  marketNames: string[];
5576
+ /** Parallel array of order-ID arrays, one per market in `marketNames`. */
5503
5577
  orderIds: string[][];
5504
5578
  }
5579
+ /** Parameters for placing a single perpetual limit or market order. */
5505
5580
  interface PlacePerpOrderParams {
5581
+ /** Exchange user ID placing the order. */
5506
5582
  userId: string;
5583
+ /** Order details. */
5507
5584
  orderData: PerpOrderData;
5508
5585
  }
5586
+ /**
5587
+ * Parameters for placing a conditional (trigger) perpetual order.
5588
+ *
5589
+ * The order is submitted to the book when the index price crosses `triggerPrice`
5590
+ * in the direction specified by `priceAbove`.
5591
+ */
5509
5592
  interface PlacePerpTriggerOrderParams {
5593
+ /** Exchange user ID placing the order. */
5510
5594
  userId: string;
5595
+ /** Market name, e.g. `'BTC-PERP'`. */
5511
5596
  market: string;
5597
+ /** If `true`, the triggered order is a market order; otherwise a limit order at `price`. */
5512
5598
  marketOrder: boolean;
5599
+ /** If `true`, the trigger fires when the index price rises above `triggerPrice`; otherwise below. */
5513
5600
  priceAbove: boolean;
5601
+ /** Price level at which the trigger activates (human-readable units). */
5514
5602
  triggerPrice: string;
5603
+ /**
5604
+ * If `true`, the order is only valid while the user holds an open position in the same
5605
+ * direction — it is automatically cancelled when the position is closed.
5606
+ */
5515
5607
  positionDependent?: boolean;
5608
+ /** `true` = buy, `false` = sell. */
5516
5609
  isBid: boolean;
5610
+ /** Limit price for the triggered order (ignored when `marketOrder` is `true`). */
5517
5611
  price: string;
5612
+ /** Order size (human-readable units). */
5518
5613
  size: string;
5614
+ /** Whether the triggered order should be reduce-only. */
5519
5615
  reduceOnly: boolean;
5616
+ /** Whether the triggered order should be post-only. */
5520
5617
  postOnly: boolean;
5521
5618
  }
5619
+ /** Parameters for cancelling all open perpetual orders for a user. */
5522
5620
  interface CancelAllPerpOrdersParams {
5621
+ /** Exchange user ID. */
5523
5622
  userId: string;
5524
5623
  }
5624
+ /** Parameters for cancelling all open spot orders for a user. */
5525
5625
  interface CancelAllSpotOrdersParams {
5626
+ /** Exchange user ID. */
5526
5627
  userId: string;
5527
5628
  }
5629
+ /** Parameters for cancelling one or more perpetual orders. */
5528
5630
  interface CancelPerpOrdersParams {
5631
+ /** Exchange user ID that owns the orders. */
5529
5632
  userId: string;
5633
+ /** List of market names corresponding to each inner `orderIds` array. */
5530
5634
  markets: string[];
5635
+ /** Parallel array of order-ID arrays, one per market in `markets`. */
5531
5636
  orderIds: string[][];
5532
5637
  }
5638
+ /** Parameters for adding an API key to an existing user account. */
5533
5639
  interface AddApiKeyParams {
5640
+ /** Address of the new API key to authorise. */
5534
5641
  apiKey: Address;
5642
+ /** Exchange user ID to attach the key to. */
5535
5643
  userId: string;
5644
+ /** Expiry timestamp string for the key. */
5536
5645
  expiration: string;
5537
5646
  }
5647
+ /** Parameters for revoking a single API key via a sponsored transaction. */
5538
5648
  interface RemoveApiKeyParams {
5649
+ /** Address of the API key to revoke. */
5539
5650
  apiKey: Address;
5651
+ /** Exchange user ID that owns the key. */
5540
5652
  userId: string;
5541
5653
  }
5654
+ /** Parameters for revoking one or more API keys by their signer addresses. */
5542
5655
  interface RemoveApiKeySignerParams {
5656
+ /** Addresses of the API keys to revoke. */
5543
5657
  apiKeys: Address[];
5658
+ /** Exchange user ID that owns the keys. */
5544
5659
  userId: string;
5545
5660
  }
5661
+ /** Parameters for adding credits to a user's API key balance. */
5546
5662
  interface AddApiCreditsParams {
5663
+ /** Exchange user ID to credit. */
5547
5664
  userId: string;
5665
+ /** Amount of credits to add. */
5548
5666
  amount: number;
5549
5667
  }
5668
+ /**
5669
+ * Parameters for registering a new exchange user.
5670
+ *
5671
+ * Uses a multi-agent transaction: `sender` is the user's wallet, and the SDK
5672
+ * generates a fresh API keypair that co-signs the transaction.
5673
+ */
5550
5674
  interface CreateUserParams {
5675
+ /** On-chain address of the account that will sign and pay for the transaction. */
5551
5676
  sender: Address;
5677
+ /** Display name for the user. */
5552
5678
  name: string;
5679
+ /** Referral code to apply at registration (pass an empty string for none). */
5553
5680
  referralCode: string;
5554
5681
  }
5682
+ /** Parameters for setting a user's display alias. */
5555
5683
  interface SetAliasNameParams {
5684
+ /** Exchange user ID. */
5556
5685
  userId: string;
5686
+ /** New alias / display name. */
5557
5687
  alias: string;
5558
5688
  }
5689
+ /** Parameters for toggling automatic lending of idle collateral. */
5559
5690
  interface SetAutolendParams {
5691
+ /** Exchange user ID. */
5560
5692
  userId: string;
5693
+ /** `true` to enable autolend, `false` to disable. */
5561
5694
  enabled: boolean;
5562
5695
  }
5696
+ /** Parameters for depositing collateral into a vault. */
5563
5697
  interface DepositToVaultParams {
5698
+ /** Exchange user ID making the deposit. */
5564
5699
  userId: string;
5700
+ /** Target vault ID. */
5565
5701
  vaultId: string;
5702
+ /** Deposit amount (human-readable units). */
5566
5703
  amount: string;
5567
5704
  }
5705
+ /**
5706
+ * Parameters for depositing tokens into the exchange.
5707
+ *
5708
+ * This transaction must be signed by the user's wallet (not an API key) because
5709
+ * it moves tokens from the user's on-chain account.
5710
+ */
5568
5711
  interface DepositTokenParams {
5712
+ /** Exchange user ID receiving the deposit. */
5569
5713
  userId: string;
5714
+ /** Amount to deposit (in token's native units, not system value). */
5570
5715
  amount: string;
5716
+ /** On-chain address of the token to deposit. */
5571
5717
  tokenAddress: Address;
5572
5718
  }
5719
+ /**
5720
+ * Parameters for withdrawing collateral from a vault.
5721
+ *
5722
+ * Set `max` to `true` to withdraw the entire available balance; in that case
5723
+ * `amount` is ignored.
5724
+ */
5573
5725
  interface WithdrawFromVaultParams {
5726
+ /** Exchange user ID initiating the withdrawal. */
5574
5727
  userId: string;
5728
+ /** Vault ID to withdraw from. */
5575
5729
  vaultId: string;
5730
+ /** Amount to withdraw (human-readable units). Ignored when `max` is `true`. */
5576
5731
  amount: string;
5732
+ /** If `true`, withdraw the full available balance. */
5577
5733
  max: boolean;
5578
5734
  }
5735
+ /**
5736
+ * Parameters for redeeming (withdrawing) a token from the exchange balance.
5737
+ *
5738
+ * Set `max` to `true` to redeem the full available balance; `amount` is ignored
5739
+ * in that case.
5740
+ */
5579
5741
  interface RedeemTokenParams {
5742
+ /** Exchange user ID. */
5580
5743
  userId: string;
5744
+ /** On-chain address of the token to redeem. */
5581
5745
  token: Address;
5746
+ /** Amount to redeem (human-readable units). Ignored when `max` is `true`. */
5582
5747
  amount: string;
5748
+ /** If `true`, redeem the full available balance. */
5583
5749
  max: boolean;
5584
5750
  }
5751
+ /**
5752
+ * Parameters for lending a token to earn yield.
5753
+ *
5754
+ * Set `max` to `true` to lend the full available balance; `amount` is ignored in
5755
+ * that case.
5756
+ */
5585
5757
  interface LendTokenParams {
5758
+ /** Exchange user ID. */
5586
5759
  userId: string;
5760
+ /** On-chain address of the token to lend. */
5587
5761
  token: Address;
5762
+ /** Amount to lend (human-readable units). Ignored when `max` is `true`. */
5588
5763
  amount: string;
5764
+ /** If `true`, lend the full available balance. */
5589
5765
  max: boolean;
5590
5766
  }
5767
+ /** Parameters for claiming accumulated referral fees. */
5591
5768
  interface ClaimReferralFeesParams {
5769
+ /** Exchange user ID claiming the fees. */
5592
5770
  userId: string;
5771
+ /** List of referred user IDs whose fees should be claimed. */
5593
5772
  referrals: string[];
5594
5773
  }
5774
+ /** Parameters for transferring collateral to another exchange user. */
5595
5775
  interface TransferToUserParams {
5776
+ /** Exchange user ID sending the transfer. */
5596
5777
  userId: string;
5778
+ /** On-chain address of the token to transfer. */
5597
5779
  tokenAddress: Address;
5780
+ /** Amount to transfer (human-readable units). Ignored when `max` is `true`. */
5598
5781
  amount: string;
5782
+ /** If `true`, the transfer is funded by a borrow against the sender's collateral. */
5599
5783
  borrow: boolean;
5784
+ /** Recipient's exchange user ID. */
5600
5785
  recipient: string;
5786
+ /** If `true`, transfer the full available balance. */
5601
5787
  max: boolean;
5602
5788
  }
5789
+ /**
5790
+ * Parameters for withdrawing a token from the exchange to an on-chain address.
5791
+ *
5792
+ * Set `max` to `true` to withdraw the full balance; `amount` is ignored.
5793
+ * Set `borrow` to `true` to fund the withdrawal via a collateral borrow.
5794
+ */
5603
5795
  interface WithdrawTokenParams {
5796
+ /** Exchange user ID initiating the withdrawal. */
5604
5797
  userId: string;
5798
+ /** On-chain address of the token to withdraw. */
5605
5799
  tokenAddress: Address;
5800
+ /** Amount to withdraw (in token's native units). Ignored when `max` is `true`. */
5606
5801
  amount: string;
5802
+ /** If `true`, fund the withdrawal by borrowing against collateral. */
5607
5803
  borrow: boolean;
5804
+ /** If `true`, withdraw the full available balance. */
5608
5805
  max: boolean;
5806
+ /** Destination on-chain address to receive the withdrawn tokens. */
5609
5807
  recipient: Address;
5610
5808
  }
5809
+ /** Parameters for placing multiple perpetual orders in a single transaction. */
5611
5810
  interface PlaceMultiplePerpOrdersParams {
5811
+ /** Exchange user ID placing the orders. */
5612
5812
  userId: string;
5813
+ /** List of orders to place (can span multiple markets). */
5613
5814
  perpOrders: PerpOrderData[];
5614
5815
  }
5816
+ /**
5817
+ * Parameters for placing multiple spot orders in a single transaction.
5818
+ *
5819
+ * All orders must target the same market; the SDK throws if they differ.
5820
+ */
5615
5821
  interface PlaceMultipleSpotOrdersParams {
5822
+ /** Exchange user ID placing the orders. */
5616
5823
  userId: string;
5824
+ /** List of orders to place. All orders must have the same `marketName`. */
5617
5825
  spotOrders: SpotOrderData[];
5618
5826
  }
5827
+ /** Core fields for a single perpetual order. */
5619
5828
  interface PerpOrderData {
5829
+ /** Market name, e.g. `'BTC-PERP'`. */
5620
5830
  market: string;
5831
+ /** `true` = buy, `false` = sell. */
5621
5832
  isBid: boolean;
5833
+ /** Limit price as a string (human-readable units). */
5622
5834
  price: string;
5835
+ /** Order size as a string (human-readable units). */
5623
5836
  size: string;
5837
+ /** If `true`, order is cancelled instead of crossing the book. */
5624
5838
  postOnly?: boolean;
5839
+ /** If `true`, order can only reduce an existing position. */
5625
5840
  reduceOnly?: boolean;
5626
5841
  }
5842
+ /** Parameters for claiming the kickback fee owed to an API key holder. */
5627
5843
  interface ClaimKickbackFeeParams {
5844
+ /** Exchange user ID claiming the fee. */
5628
5845
  userId: string;
5629
5846
  }
5847
+ /** Perpetual order data used in batch replace operations (all fields required). */
5630
5848
  interface PerpOrderDataForMarket {
5631
5849
  isBid: boolean;
5632
5850
  price: string;
5633
5851
  size: string;
5634
5852
  postOnly: boolean;
5635
5853
  }
5854
+ /** Spot order data used in batch replace operations (all fields required). */
5636
5855
  interface SpotOrderDataForMarket {
5637
5856
  isBid: boolean;
5638
5857
  price: string;
5639
5858
  size: string;
5640
5859
  postOnly: boolean;
5641
5860
  }
5861
+ /**
5862
+ * Parameters for atomically replacing all perpetual orders on a market.
5863
+ * Existing orders are cancelled and the new ones are placed in a single transaction.
5864
+ */
5642
5865
  interface ReplaceMultipleOrdersParams {
5866
+ /** Exchange user ID. */
5643
5867
  userId: string;
5868
+ /** Market name, e.g. `'BTC-PERP'`. */
5644
5869
  market: string;
5870
+ /** Replacement orders. */
5645
5871
  orders: PerpOrderDataForMarket[];
5646
5872
  }
5873
+ /**
5874
+ * Parameters for atomically replacing all spot orders on a market.
5875
+ * Existing orders are cancelled and the new ones are placed in a single transaction.
5876
+ */
5647
5877
  interface ReplaceMultipleSpotOrdersParams {
5878
+ /** Exchange user ID. */
5648
5879
  userId: string;
5880
+ /** Market name, e.g. `'BTC-USDC'`. */
5649
5881
  market: string;
5882
+ /** Replacement orders. */
5650
5883
  orders: SpotOrderDataForMarket[];
5651
5884
  }
5885
+ /** Parameters for claiming a pending token deposit that was bridged on-chain. */
5652
5886
  interface ClaimDepositParams {
5887
+ /** Exchange user ID claiming the deposit. */
5653
5888
  userId: string;
5889
+ /** On-chain address of the token being claimed. */
5654
5890
  tokenAddress: Address;
5655
5891
  }
5892
+ /** Parameters for setting or changing a user's referral code. */
5656
5893
  interface SetReferralCodeParams {
5894
+ /** Exchange user ID. */
5657
5895
  userId: string;
5896
+ /** Referral code to apply. */
5658
5897
  referralCode: string;
5659
5898
  }
5899
+ /** Parameters for tokenising a user's share of a vault investment. */
5660
5900
  interface TokenizeUserVaultInvestmentParams {
5901
+ /** Exchange user ID. */
5661
5902
  userId: string;
5903
+ /** Vault ID to tokenise. */
5662
5904
  vaultId: string;
5663
5905
  }
5906
+ /** Internal request body sent when signing an open-boxes request off-chain. */
5664
5907
  interface OpenBoxesSignRequest {
5665
5908
  userId: string;
5666
5909
  boxId: string;
@@ -5668,24 +5911,60 @@ interface OpenBoxesSignRequest {
5668
5911
  apiKey: string;
5669
5912
  signature: string;
5670
5913
  }
5914
+ /** WebSocket message type for index (oracle) price updates across all markets. */
5671
5915
  type WsOracleUpdates = Extract<WsMessage, {
5672
5916
  type: 'OracleUpdates';
5673
5917
  }>;
5918
+ /**
5919
+ * Union of all user-specific WebSocket event types.
5920
+ *
5921
+ * Subscribe via {@link Client.subscribeUserUpdates}.
5922
+ * Covers balance changes, deposits/withdrawals, order placements/cancellations,
5923
+ * fills, liquidations, referral events, vault activity, and more.
5924
+ */
5674
5925
  type WsUserUpdates = Extract<WsMessage, {
5675
5926
  type: 'BalanceChange' | 'Deposit' | 'Withdraw' | 'WithdrawLend' | 'Lend' | 'Borrow' | 'RepayBorrow' | 'PlacePerpLimitOrder' | 'PlacePerpMarketOrder' | 'PlacePerpTriggerOrder' | 'PlaceSpotLimitOrder' | 'PlaceSpotMarketOrder' | 'CanceledPerpOrders' | 'CanceledSpotOrders' | 'PerpOrderFills' | 'SpotOrderFills' | 'SetAutoLend' | 'SetAlias' | 'AddApiKey' | 'RemoveApiKey' | 'ClaimReferralFee' | 'ClaimUserKickbackFee' | 'UpdateUserFeeTier' | 'UserTransferSent' | 'UserTransferReceived' | 'ReferralUpdate' | 'ApiCreditsChange' | 'VaultDeposit' | 'VaultWithdraw' | 'UserBoxOpening' | 'Liquidation' | 'PartialLiquidation' | 'PerpTriggerOrderTriggered' | 'CanceledPerpTriggerOrders';
5676
5927
  }>;
5928
+ /**
5929
+ * WebSocket message type for perpetual market updates.
5930
+ *
5931
+ * Subscribe via {@link Client.subscribePerpMarketUpdates}.
5932
+ * Covers orderbook deltas, full orderbook snapshots, and trade feed updates.
5933
+ */
5677
5934
  type WsPerpMarketUpdates = Extract<WsMessage, {
5678
5935
  type: 'PerpOrderbookUpdate' | 'PerpTradesUpdate' | 'PerpOrderbookState';
5679
5936
  }>;
5937
+ /**
5938
+ * WebSocket message type for spot market updates.
5939
+ *
5940
+ * Subscribe via {@link Client.subscribeSpotMarketUpdates}.
5941
+ * Covers orderbook deltas, full orderbook snapshots, and trade feed updates.
5942
+ */
5680
5943
  type WsSpotMarketUpdates = Extract<WsMessage, {
5681
5944
  type: 'SpotOrderbookUpdate' | 'SpotTradesUpdate' | 'SpotOrderbookState';
5682
5945
  }>;
5946
+ /**
5947
+ * WebSocket message type for borrow/lending pool updates.
5948
+ *
5949
+ * Subscribe via {@link Client.subscribeBorrowLendingUpdates}.
5950
+ */
5683
5951
  type WsBorrowLendUpdate = Extract<WsMessage, {
5684
5952
  type: 'BorrowLendUpdate';
5685
5953
  }>;
5954
+ /**
5955
+ * WebSocket message type for mystery box opening results.
5956
+ *
5957
+ * Subscribe via {@link Client.subscribeBoxOpeningUpdates}.
5958
+ */
5686
5959
  type WsBoxOpeningUpdate = Extract<WsMessage, {
5687
5960
  type: 'BoxOpening';
5688
5961
  }>;
5962
+ /**
5963
+ * WebSocket message type for global liquidation events.
5964
+ *
5965
+ * Subscribe via {@link Client.subscribeLiquidationUpdates}.
5966
+ * Covers both full and partial liquidations across all users.
5967
+ */
5689
5968
  type WsLiquidationUpdate = Extract<WsMessage, {
5690
5969
  type: 'GlobalLiquidation' | 'GlobalPartialLiquidation';
5691
5970
  }>;
@@ -5776,7 +6055,7 @@ declare class Client {
5776
6055
  _aptos: Aptos;
5777
6056
  _chainId: number;
5778
6057
  _apiKey: Account;
5779
- _apiKeySequenceNumber: number;
6058
+ _apiKeySequenceNumber: bigint;
5780
6059
  _ws: WebSocket | undefined;
5781
6060
  _pingInterval: ReturnType<typeof setInterval> | undefined;
5782
6061
  _pingIntervalMs: number;
@@ -5792,14 +6071,29 @@ declare class Client {
5792
6071
  onWsClose: ((event: CloseEvent) => void) | undefined;
5793
6072
  _abis: ReturnType<typeof getABIsForNetwork>;
5794
6073
  _contractAddress: string;
6074
+ /**
6075
+ * init.
6076
+ *
6077
+ * @param connection - Aptos connection instance. See {@link Aptos}.
6078
+ * @param config - Client configuration options. See {@link ClientConfig}.
6079
+
6080
+ * @returns A promise that resolves to {@link Client}.
6081
+ */
5795
6082
  static init(connection: Aptos, config?: ClientConfig): Promise<Client>;
6083
+ /**
6084
+ * constructor.
6085
+ *
6086
+ * @param connection - Aptos connection instance. See {@link Aptos}.
6087
+ * @param config - Client configuration options. See {@link ClientConfig}.
6088
+ */
5796
6089
  constructor(connection: Aptos, config?: ClientConfig);
5797
6090
  /**
5798
6091
  * Create a new Client instance
5799
6092
  *
5800
- * @param connection - Aptos connection instance
5801
- * @param config - Client configuration options
5802
- * @returns Promise<Client>
6093
+ * @param connection - Aptos connection instance. See {@link Aptos}.
6094
+ * @param config - Optional client config object. See {@link ClientConfig}.
6095
+ *
6096
+ * @returns A promise that resolves to {@link Client}.
5803
6097
  *
5804
6098
  * @example
5805
6099
  * // Create a testnet client (default)
@@ -5824,146 +6118,882 @@ declare class Client {
5824
6118
  * })
5825
6119
  */
5826
6120
  static create(connection: Aptos, config?: ClientConfig): Promise<Client>;
6121
+ /**
6122
+ * setApiKey.
6123
+ *
6124
+ * @param apiKey - See {@link Account}.
6125
+ */
5827
6126
  setApiKey(apiKey: Account): Promise<void>;
6127
+ /**
6128
+ * getContractAddress.
6129
+ *
6130
+ * @returns The configured contract address.
6131
+ */
5828
6132
  getContractAddress(): string;
6133
+ /**
6134
+ * getApiKeySequenceNumber.
6135
+ *
6136
+ * @returns The next API key sequence number or null when unavailable.
6137
+ */
5829
6138
  getApiKeySequenceNumber(): Promise<bigint | null>;
5830
- fetchApiKeySequenceNumber(): Promise<number>;
6139
+ /**
6140
+ * fetchApiKeySequenceNumber.
6141
+ *
6142
+ * @returns The on-chain API key sequence number.
6143
+ */
6144
+ fetchApiKeySequenceNumber(): Promise<bigint>;
6145
+ /**
6146
+ * setTxParams.
6147
+ *
6148
+ * @param params - See {@link TxParams}.
6149
+ */
5831
6150
  setTxParams(params: TxParams): void;
6151
+ /**
6152
+ * _wsLog.
6153
+ *
6154
+ * @param args -
6155
+ */
5832
6156
  private _wsLog;
6157
+ /**
6158
+ * setWsDebugActive.
6159
+ *
6160
+ * @param active - See boolean.
6161
+ */
5833
6162
  setWsDebugActive(active: boolean): void;
6163
+ /**
6164
+ * connectWebSocket.
6165
+ *
6166
+ * @returns A promise that resolves when WebSocket initialization is complete.
6167
+ */
5834
6168
  connectWebSocket(): Promise<void>;
6169
+ /**
6170
+ * _initWebSocket.
6171
+ *
6172
+ * @param url -
6173
+ * @param timeout -
6174
+ */
5835
6175
  private _initWebSocket;
5836
6176
  private _setupWebSocketHandlers;
6177
+ /**
6178
+ * disconnectWebSocket.
6179
+ *
6180
+ * @returns A promise that resolves when cleanup and close actions are finished.
6181
+ */
5837
6182
  disconnectWebSocket(): Promise<void>;
5838
6183
  isWebSocketConnected(): boolean;
6184
+ /**
6185
+ * sendWsMessage.
6186
+ *
6187
+ * @param message - See {@link WsCommand}.
6188
+
6189
+ * @returns A promise that resolves to {@link WsMessage}.
6190
+ */
5839
6191
  sendWsMessage(message: WsCommand): Promise<WsMessage>;
6192
+ /**
6193
+ * subscribeIndexPricesUpdates.
6194
+ *
6195
+ * @param callback - Callback invoked for oracle updates. See {@link WsOracleUpdates}.
6196
+
6197
+ * @returns A promise that resolves to an unsubscribe function.
6198
+ */
5840
6199
  subscribeIndexPricesUpdates(callback: (data: WsOracleUpdates) => void): Promise<() => Promise<void>>;
6200
+ /**
6201
+ * unsubscribeIndexPricesUpdates.
6202
+ *
6203
+ * @returns A promise that resolves to a completed unsubscribe flow.
6204
+ */
5841
6205
  unsubscribeIndexPricesUpdates(): Promise<void>;
6206
+ /**
6207
+ * subscribeBorrowLendingUpdates.
6208
+ *
6209
+ * @param callback - Callback invoked for borrow-lending updates. See {@link WsBorrowLendUpdate}.
6210
+
6211
+ * @returns A promise that resolves to an unsubscribe function.
6212
+ */
5842
6213
  subscribeBorrowLendingUpdates(callback: (data: WsBorrowLendUpdate) => void): Promise<() => Promise<void>>;
6214
+ /**
6215
+ * unsubscribeBorrowLendingUpdates.
6216
+ *
6217
+ * @returns A promise that resolves to a completed unsubscribe flow.
6218
+ */
5843
6219
  unsubscribeBorrowLendingUpdates(): Promise<void>;
6220
+ /**
6221
+ * subscribeBoxOpeningUpdates.
6222
+ *
6223
+ * @param callback - Callback invoked for box-opening updates. See {@link WsBoxOpeningUpdate}.
6224
+
6225
+ * @returns A promise that resolves to an unsubscribe function.
6226
+ */
5844
6227
  subscribeBoxOpeningUpdates(callback: (data: WsBoxOpeningUpdate) => void): Promise<() => Promise<void>>;
6228
+ /**
6229
+ * unsubscribeBoxOpeningUpdates.
6230
+ *
6231
+ * @returns A promise that resolves to a completed unsubscribe flow.
6232
+ */
5845
6233
  unsubscribeBoxOpeningUpdates(): Promise<void>;
6234
+ /**
6235
+ * subscribeLiquidationUpdates.
6236
+ *
6237
+ * @param callback - Callback invoked for liquidation updates. See {@link WsLiquidationUpdate}.
6238
+
6239
+ * @returns A promise that resolves to an unsubscribe function.
6240
+ */
5846
6241
  subscribeLiquidationUpdates(callback: (data: WsLiquidationUpdate) => void): Promise<() => Promise<void>>;
6242
+ /**
6243
+ * unsubscribeLiquidationUpdates.
6244
+ *
6245
+ * @returns A promise that resolves to a completed unsubscribe flow.
6246
+ */
5847
6247
  unsubscribeLiquidationUpdates(): Promise<void>;
6248
+ /**
6249
+ * subscribeUserUpdates.
6250
+ *
6251
+ * @param userId - See string.
6252
+ * @param callback - Callback invoked for user updates. See {@link WsUserUpdates}.
6253
+
6254
+ * @returns A promise that resolves to an unsubscribe function.
6255
+ */
5848
6256
  subscribeUserUpdates(userId: string, callback: (data: WsUserUpdates) => void): Promise<() => Promise<void>>;
6257
+ /**
6258
+ * unsubscribeUserUpdates.
6259
+ *
6260
+ * @param userId - See string.
6261
+ */
5849
6262
  unsubscribeUserUpdates(userId: string): Promise<void>;
6263
+ /**
6264
+ * subscribePerpMarketUpdates.
6265
+ *
6266
+ * @param market - See string.
6267
+ * @param callback - Callback invoked for perpetual market updates. See {@link WsPerpMarketUpdates}.
6268
+
6269
+ * @returns A promise that resolves to an unsubscribe function.
6270
+ */
5850
6271
  subscribePerpMarketUpdates(market: string, callback: (data: WsPerpMarketUpdates) => void): Promise<() => Promise<void>>;
6272
+ /**
6273
+ * unsubscribePerpMarketUpdates.
6274
+ *
6275
+ * @param market - See string.
6276
+ */
5851
6277
  unsubscribePerpMarketUpdates(market: string): Promise<void>;
6278
+ /**
6279
+ * subscribeSpotMarketUpdates.
6280
+ *
6281
+ * @param market - See string.
6282
+ * @param callback - Callback invoked for spot market updates. See {@link WsSpotMarketUpdates}.
6283
+
6284
+ * @returns A promise that resolves to an unsubscribe function.
6285
+ */
5852
6286
  subscribeSpotMarketUpdates(market: string, callback: (data: WsSpotMarketUpdates) => void): Promise<() => Promise<void>>;
6287
+ /**
6288
+ * unsubscribeSpotMarketUpdates.
6289
+ *
6290
+ * @param market - See string.
6291
+ */
5853
6292
  unsubscribeSpotMarketUpdates(market: string): Promise<void>;
6293
+ /**
6294
+ * createUser.
6295
+ *
6296
+ * @param params - See {@link CreateUserParams}.
6297
+ * @returns A promise that resolves to the user creation payload bundle.
6298
+ */
5854
6299
  createUser(params: CreateUserParams): Promise<{
5855
6300
  tx: MultiAgentTransaction;
5856
6301
  signature: AccountAuthenticator;
5857
- apiKey: _aptos_labs_ts_sdk.Ed25519Account;
6302
+ apiKey: Account;
5858
6303
  }>;
6304
+ /**
6305
+ * createUserPayload.
6306
+ *
6307
+ * @param params - See {@link CreateUserParams}.
6308
+ * @returns A promise that resolves to an object with the unsigned payload and generated API key. See {@link AnyTransactionPayloadInstance}.
6309
+ */
5859
6310
  createUserPayload(params: CreateUserParams): Promise<{
5860
- payload: _aptos_labs_ts_sdk.TransactionPayloadEntryFunction;
5861
- apiKey: _aptos_labs_ts_sdk.Ed25519Account;
6311
+ payload: AnyTransactionPayloadInstance;
6312
+ apiKey: Account;
5862
6313
  }>;
6314
+ /**
6315
+ * addApiKey.
6316
+ *
6317
+ * @param params - See {@link AddApiKeyParams}.
6318
+ */
5863
6319
  addApiKey(params: AddApiKeyParams): Promise<_aptos_labs_ts_sdk.TransactionPayloadEntryFunction>;
6320
+ /**
6321
+ * depositTokenPayload.
6322
+ *
6323
+ * @param params - See {@link DepositTokenParams}.
6324
+ */
5864
6325
  depositTokenPayload(params: DepositTokenParams): Promise<_aptos_labs_ts_sdk.TransactionPayloadEntryFunction>;
6326
+ /**
6327
+ * Creates the transaction payload for withdrawing a token.
6328
+ *
6329
+ * @param params - Withdraw request parameters.
6330
+ * See {@link WithdrawTokenParams}.
6331
+ * @returns The generated transaction payload. See
6332
+ * {@link AnyTransactionPayloadInstance}.
6333
+ */
5865
6334
  withdrawTokenPayload(params: WithdrawTokenParams): Promise<_aptos_labs_ts_sdk.TransactionPayloadEntryFunction>;
6335
+ /**
6336
+ * removeApiKeySigner.
6337
+ *
6338
+ * @param params - See {@link RemoveApiKeySignerParams}.
6339
+ */
5866
6340
  removeApiKeySigner(params: RemoveApiKeySignerParams): Promise<_aptos_labs_ts_sdk.TransactionPayloadEntryFunction>;
6341
+ /**
6342
+ * addApiCredits.
6343
+ *
6344
+ * @param params - See {@link AddApiCreditsParams}.
6345
+ */
5867
6346
  addApiCredits(params: AddApiCreditsParams): Promise<_aptos_labs_ts_sdk.TransactionPayloadEntryFunction>;
6347
+ /**
6348
+ * submitSponsoredTransaction.
6349
+ *
6350
+ * @param tx - See {@link SimpleTransaction}.
6351
+ * @param signature - See {@link AccountAuthenticator}.
6352
+ *
6353
+ * @returns A promise that resolves to {@link SubmitSponsoredTransactionResponse}.
6354
+ */
5868
6355
  submitSponsoredTransaction: (tx: SimpleTransaction, signature: AccountAuthenticator) => Promise<SubmitSponsoredTransactionResponse>;
6356
+ /**
6357
+ * submitSponsoredMultiAgentTransaction.
6358
+ *
6359
+ * @param tx - See {@link MultiAgentTransaction}.
6360
+ * @param signature - See {@link AccountAuthenticator}.
6361
+ * @param secondarySignersAuthenticators - See {@link AccountAuthenticator[]}.
6362
+ *
6363
+ * @returns A promise that resolves to {@link SubmitSponsoredTransactionResponse}.
6364
+ */
5869
6365
  submitSponsoredMultiAgentTransaction: (tx: MultiAgentTransaction, signature: AccountAuthenticator, secondarySignersAuthenticators: AccountAuthenticator[]) => Promise<SubmitSponsoredTransactionResponse>;
5870
- createAndSubmitTransaction(aptosPayload: any): Promise<SubmitSponsoredTransactionResponse>;
6366
+ /**
6367
+ * createAndSubmitTransaction.
6368
+ *
6369
+ * @param aptosPayload - See {@link AnyTransactionPayloadInstance}.
6370
+
6371
+ * @returns A promise that resolves to {@link SubmitSponsoredTransactionResponse}.
6372
+ */
6373
+ createAndSubmitTransaction(aptosPayload: AnyTransactionPayloadInstance): Promise<SubmitSponsoredTransactionResponse>;
6374
+ /**
6375
+ * createOpenBoxesMessage.
6376
+ *
6377
+ * @param boxId - See string.
6378
+ * @param amount - See string.
6379
+ * @param userId - See string.
6380
+ * @param apiKey - See string.
6381
+
6382
+ * @returns The generated box-open message.
6383
+ */
5871
6384
  createOpenBoxesMessage(boxId: string, amount: string, userId: string, apiKey: string): string;
6385
+ /**
6386
+ * openBoxes.
6387
+ *
6388
+ * @param params - See {@link OpenBoxesRequest}.
6389
+
6390
+ * @returns A promise that resolves to {@link OpenBoxesResponse}.
6391
+ */
5872
6392
  openBoxes(params: OpenBoxesRequest): Promise<OpenBoxesResponse>;
6393
+ /**
6394
+ * removeApiKey.
6395
+ *
6396
+ * @param params - See {@link RemoveApiKeyParams}.
6397
+
6398
+ * @returns A promise that resolves to {@link SubmitSponsoredTransactionResponse}.
6399
+ */
5873
6400
  removeApiKey(params: RemoveApiKeyParams): Promise<SubmitSponsoredTransactionResponse>;
6401
+ /**
6402
+ * setAliasName.
6403
+ *
6404
+ * @param params - See {@link SetAliasNameParams}.
6405
+ */
5874
6406
  setAliasName(params: SetAliasNameParams): Promise<SubmitSponsoredTransactionResponse>;
6407
+ /**
6408
+ * placePerpLimitOrder.
6409
+ *
6410
+ * @param params - See {@link PlacePerpOrderParams}.
6411
+ */
5875
6412
  placePerpLimitOrder(params: PlacePerpOrderParams): Promise<SubmitSponsoredTransactionResponse>;
6413
+ /**
6414
+ * placePerpMarketOrder.
6415
+ *
6416
+ * @param params - See {@link PlacePerpOrderParams}.
6417
+ */
5876
6418
  placePerpMarketOrder(params: PlacePerpOrderParams): Promise<SubmitSponsoredTransactionResponse>;
6419
+ /**
6420
+ * placeSpotLimitOrder.
6421
+ *
6422
+ * @param params - See {@link PlaceSpotOrderParams}.
6423
+ */
5877
6424
  placeSpotLimitOrder(params: PlaceSpotOrderParams): Promise<SubmitSponsoredTransactionResponse>;
6425
+ /**
6426
+ * placeSpotMarketOrder.
6427
+ *
6428
+ * @param params - See {@link PlaceSpotOrderParams}.
6429
+ */
5878
6430
  placeSpotMarketOrder(params: PlaceSpotOrderParams): Promise<SubmitSponsoredTransactionResponse>;
6431
+ /**
6432
+ * changeSpotOrderPrice.
6433
+ *
6434
+ * @param params - See {@link ChangeSpotOrderParams}.
6435
+ */
5879
6436
  changeSpotOrderPrice(params: ChangeSpotOrderParams): Promise<SubmitSponsoredTransactionResponse>;
6437
+ /**
6438
+ * cancelSpotOrders.
6439
+ *
6440
+ * @param params - See {@link CancelSpotOrdersParams}.
6441
+ */
5880
6442
  cancelSpotOrders(params: CancelSpotOrdersParams): Promise<SubmitSponsoredTransactionResponse>;
6443
+ /**
6444
+ * placeTriggerOrder.
6445
+ *
6446
+ * @param params - See {@link PlacePerpTriggerOrderParams}.
6447
+ */
5881
6448
  placeTriggerOrder(params: PlacePerpTriggerOrderParams): Promise<SubmitSponsoredTransactionResponse>;
6449
+ /**
6450
+ * changePerpOrderPrice.
6451
+ *
6452
+ * @param params - See {@link ChangePerpOrderParams}.
6453
+ */
5882
6454
  changePerpOrderPrice(params: ChangePerpOrderParams): Promise<SubmitSponsoredTransactionResponse>;
6455
+ /**
6456
+ * cancelPerpOrders.
6457
+ *
6458
+ * @param params - See {@link CancelPerpOrdersParams}.
6459
+ */
5883
6460
  cancelPerpOrders(params: CancelPerpOrdersParams): Promise<SubmitSponsoredTransactionResponse>;
6461
+ /**
6462
+ * cancelAllPerpOrders.
6463
+ *
6464
+ * @param params - See {@link CancelAllPerpOrdersParams}.
6465
+ */
5884
6466
  cancelAllPerpOrders(params: CancelAllPerpOrdersParams): Promise<SubmitSponsoredTransactionResponse>;
6467
+ /**
6468
+ * cancelAllSpotOrders.
6469
+ *
6470
+ * @param params - See {@link CancelAllSpotOrdersParams}.
6471
+ */
5885
6472
  cancelAllSpotOrders(params: CancelAllSpotOrdersParams): Promise<SubmitSponsoredTransactionResponse>;
6473
+ /**
6474
+ * setAutolend.
6475
+ *
6476
+ * @param params - See {@link SetAutolendParams}.
6477
+ */
5886
6478
  setAutolend(params: SetAutolendParams): Promise<SubmitSponsoredTransactionResponse>;
6479
+ /**
6480
+ * depositToVault.
6481
+ *
6482
+ * @param params - See {@link DepositToVaultParams}.
6483
+ */
5887
6484
  depositToVault(params: DepositToVaultParams): Promise<SubmitSponsoredTransactionResponse>;
6485
+ /**
6486
+ * withdrawFromVault.
6487
+ *
6488
+ * @param params - See {@link WithdrawFromVaultParams}.
6489
+ */
5888
6490
  withdrawFromVault(params: WithdrawFromVaultParams): Promise<SubmitSponsoredTransactionResponse>;
6491
+ /**
6492
+ * redeemToken.
6493
+ *
6494
+ * @param params - See {@link RedeemTokenParams}.
6495
+ */
5889
6496
  redeemToken(params: RedeemTokenParams): Promise<SubmitSponsoredTransactionResponse>;
6497
+ /**
6498
+ * lendToken.
6499
+ *
6500
+ * @param params - See {@link LendTokenParams}.
6501
+ */
5890
6502
  lendToken(params: LendTokenParams): Promise<SubmitSponsoredTransactionResponse>;
6503
+ /**
6504
+ * claimReferralFees.
6505
+ *
6506
+ * @param params - See {@link ClaimReferralFeesParams}.
6507
+ */
5891
6508
  claimReferralFees(params: ClaimReferralFeesParams): Promise<SubmitSponsoredTransactionResponse>;
6509
+ /**
6510
+ * claimKickbackFee.
6511
+ *
6512
+ * @param params - See {@link ClaimKickbackFeeParams}.
6513
+ */
5892
6514
  claimKickbackFee(params: ClaimKickbackFeeParams): Promise<SubmitSponsoredTransactionResponse>;
6515
+ /**
6516
+ * transferToUser.
6517
+ *
6518
+ * @param params - See {@link TransferToUserParams}.
6519
+ */
5893
6520
  transferToUser(params: TransferToUserParams): Promise<SubmitSponsoredTransactionResponse>;
6521
+ /**
6522
+ * withdrawToken.
6523
+ *
6524
+ * @param params - See {@link WithdrawTokenParams}.
6525
+ */
5894
6526
  withdrawToken(params: WithdrawTokenParams): Promise<SubmitSponsoredTransactionResponse>;
6527
+ /**
6528
+ * replaceMultipleOrders.
6529
+ *
6530
+ * @param params - See {@link ReplaceMultipleOrdersParams}.
6531
+ */
5895
6532
  replaceMultipleOrders(params: ReplaceMultipleOrdersParams): Promise<SubmitSponsoredTransactionResponse>;
6533
+ /**
6534
+ * replaceMultipleSpotOrders.
6535
+ *
6536
+ * @param params - See {@link ReplaceMultipleSpotOrdersParams}.
6537
+ */
5896
6538
  replaceMultipleSpotOrders(params: ReplaceMultipleSpotOrdersParams): Promise<SubmitSponsoredTransactionResponse>;
6539
+ /**
6540
+ * placeMultiplePerpOrders.
6541
+ *
6542
+ * @param params - See {@link PlaceMultiplePerpOrdersParams}.
6543
+ */
5897
6544
  placeMultiplePerpOrders(params: PlaceMultiplePerpOrdersParams): Promise<SubmitSponsoredTransactionResponse>;
6545
+ /**
6546
+ * placeMultipleSpotOrders.
6547
+ *
6548
+ * @param params - See {@link PlaceMultipleSpotOrdersParams}.
6549
+ */
5898
6550
  placeMultipleSpotOrders(params: PlaceMultipleSpotOrdersParams): Promise<SubmitSponsoredTransactionResponse>;
6551
+ /**
6552
+ * claimDeposit.
6553
+ *
6554
+ * @param params - See {@link ClaimDepositParams}.
6555
+ */
5899
6556
  claimDeposit(params: ClaimDepositParams): Promise<SubmitSponsoredTransactionResponse>;
6557
+ /**
6558
+ * setReferralCode.
6559
+ *
6560
+ * @param params - See {@link SetReferralCodeParams}.
6561
+ */
5900
6562
  setReferralCode(params: SetReferralCodeParams): Promise<SubmitSponsoredTransactionResponse>;
6563
+ /**
6564
+ * tokenizeUserVaultInvestment.
6565
+ *
6566
+ * @param params - See {@link TokenizeUserVaultInvestmentParams}.
6567
+ */
5901
6568
  tokenizeUserVaultInvestment(params: TokenizeUserVaultInvestmentParams): Promise<SubmitSponsoredTransactionResponse>;
6569
+ /**
6570
+ * setReferralParams.
6571
+ *
6572
+ * @param request - See {@link SetReferralParamsRequest}.
6573
+ *
6574
+ * @returns A promise that resolves to {@link SetReferralParamsResponse}.
6575
+ */
5902
6576
  setReferralParams: (request: SetReferralParamsRequest) => Promise<SetReferralParamsResponse>;
6577
+ /**
6578
+ * sendGetJson.
6579
+ *
6580
+ * @param endpoint - See string.
6581
+ * @param message - See { [key: string]: any }.
6582
+ *
6583
+ * @returns A promise that resolves to any.
6584
+ */
5903
6585
  sendGetJson: (endpoint: string, message?: {
5904
6586
  [key: string]: any;
5905
6587
  }) => Promise<any>;
6588
+ /**
6589
+ * sendPostJson.
6590
+ *
6591
+ * @param message - See object.
6592
+ * @param endpoint - See string.
6593
+ *
6594
+ * @returns A promise that resolves to any.
6595
+ */
5906
6596
  sendPostJson: (message: object, endpoint: string) => Promise<any>;
6597
+ /**
6598
+ * getConfig.
6599
+ *
6600
+ * @returns Current exchange configuration. See {@link ExchangeConfig}.
6601
+ */
5907
6602
  getConfig: () => Promise<ExchangeConfig>;
6603
+ /**
6604
+ * getTokensConfig.
6605
+ *
6606
+ * @returns Token configuration map. See {@link GetTokensConfigResponse}.
6607
+ */
5908
6608
  getTokensConfig: () => Promise<GetTokensConfigResponse>;
6609
+ /**
6610
+ * getPerpMarketsConfig.
6611
+ *
6612
+ * @returns Perpetual markets configuration. See {@link GetPerpMarketsConfigResponse}.
6613
+ */
5909
6614
  getPerpMarketsConfig: () => Promise<GetPerpMarketsConfigResponse>;
6615
+ /**
6616
+ * getSpotMarketsConfig.
6617
+ *
6618
+ * @returns Spot markets configuration. See {@link GetSpotMarketsConfigResponse}.
6619
+ */
5910
6620
  getSpotMarketsConfig: () => Promise<GetSpotMarketsConfigResponse>;
6621
+ /**
6622
+ * getUserData.
6623
+ *
6624
+ * @param userId - See string.
6625
+ *
6626
+ * @returns A promise that resolves to {@link GetUserDataResponse}.
6627
+ */
5911
6628
  getUserData: (userId: string) => Promise<GetUserDataResponse>;
6629
+ /**
6630
+ * getOrderBookData.
6631
+ *
6632
+ * @param marketName - See string.
6633
+ *
6634
+ * @returns A promise that resolves to {@link GetOrderBookDataResponse}.
6635
+ */
5912
6636
  getOrderBookData: (marketName: string) => Promise<GetOrderBookDataResponse>;
6637
+ /**
6638
+ * getPerpMarketsData.
6639
+ *
6640
+ * @param markets - See string[].
6641
+ *
6642
+ * @returns A promise that resolves to {@link GetPerpMarketsDataResponse}.
6643
+ */
5913
6644
  getPerpMarketsData: (markets: string[]) => Promise<GetPerpMarketsDataResponse>;
6645
+ /**
6646
+ * getSpotMarketsData.
6647
+ *
6648
+ * @param markets - See string[].
6649
+ *
6650
+ * @returns A promise that resolves to {@link GetSpotMarketsDataResponse}.
6651
+ */
5914
6652
  getSpotMarketsData: (markets: string[]) => Promise<GetSpotMarketsDataResponse>;
6653
+ /**
6654
+ * getBorrowLendingData.
6655
+ *
6656
+ * @returns Borrow/lending-related market data. See {@link GetBorrowLendingDataResponse}.
6657
+ */
5915
6658
  getBorrowLendingData: () => Promise<GetBorrowLendingDataResponse>;
6659
+ /**
6660
+ * getChartCandlesInRange.
6661
+ *
6662
+ * @param request - See {@link GetChartCandlesInRangeRequest}.
6663
+ * @returns A promise that resolves to {@link GetChartCandlesInRangeResponse}.
6664
+ */
5916
6665
  getChartCandlesInRange: (request: GetChartCandlesInRangeRequest) => Promise<GetChartCandlesInRangeResponse>;
6666
+ /**
6667
+ * getPriceIndexes.
6668
+ *
6669
+ * @returns Current price index values. See {@link GetPriceIndexesResponse}.
6670
+ */
5917
6671
  getPriceIndexes: () => Promise<GetPriceIndexesResponse>;
6672
+ /**
6673
+ * getUsersByAddress.
6674
+ *
6675
+ * @param payload - See {@link GetUsersByAddressRequest}.
6676
+ *
6677
+ * @returns A promise that resolves to {@link GetUsersByAddressResponse}.
6678
+ */
5918
6679
  getUsersByAddress: (payload: GetUsersByAddressRequest) => Promise<GetUsersByAddressResponse>;
6680
+ /**
6681
+ * getPerpRecentTrades.
6682
+ *
6683
+ * @param request - See {@link GetPerpRecentTradesRequest}.
6684
+ */
5919
6685
  getPerpRecentTrades: (request: GetPerpRecentTradesRequest) => Promise<GetPerpRecentTradesResponse>;
6686
+ /**
6687
+ * getSpotRecentTrades.
6688
+ *
6689
+ * @param request - See {@link GetSpotRecentTradesRequest}.
6690
+ */
5920
6691
  getSpotRecentTrades: (request: GetSpotRecentTradesRequest) => Promise<GetSpotRecentTradesResponse>;
6692
+ /**
6693
+ * getUserPerpFills.
6694
+ *
6695
+ * @param request - See {@link GetPerpUserFillsRequest}.
6696
+ */
5921
6697
  getUserPerpFills: (request: GetPerpUserFillsRequest) => Promise<GetPerpUserFillsResponse>;
6698
+ /**
6699
+ * getUserSpotFills.
6700
+ *
6701
+ * @param request - See {@link GetSpotUserFillsRequest}.
6702
+ */
5922
6703
  getUserSpotFills: (request: GetSpotUserFillsRequest) => Promise<GetSpotUserFillsResponse>;
6704
+ /**
6705
+ * getUserPerpOrders.
6706
+ *
6707
+ * @param request - See {@link GetPerpUserOrdersRequest}.
6708
+ */
5923
6709
  getUserPerpOrders: (request: GetPerpUserOrdersRequest) => Promise<GetPerpUserOrdersResponse>;
6710
+ /**
6711
+ * getUserSpotOrders.
6712
+ *
6713
+ * @param request - See {@link GetSpotUserOrdersRequest}.
6714
+ */
5924
6715
  getUserSpotOrders: (request: GetSpotUserOrdersRequest) => Promise<GetSpotUserOrdersResponse>;
6716
+ /**
6717
+ * getUserPerpTriggerOrders.
6718
+ *
6719
+ * @param request - See {@link GetPerpUserTriggerOrdersRequest}.
6720
+ */
5925
6721
  getUserPerpTriggerOrders: (request: GetPerpUserTriggerOrdersRequest) => Promise<GetPerpUserTriggerOrdersResponse>;
6722
+ /**
6723
+ * getUserFundingHistory.
6724
+ *
6725
+ * @param request - See {@link GetUserFundingHistoryRequest}.
6726
+ */
5926
6727
  getUserFundingHistory: (request: GetUserFundingHistoryRequest) => Promise<GetUserFundingHistoryResponse>;
6728
+ /**
6729
+ * getUserHistoricalDeposits.
6730
+ *
6731
+ * @param request - See {@link GetUserDepositsRequest}.
6732
+ */
5927
6733
  getUserHistoricalDeposits: (request: GetUserDepositsRequest) => Promise<GetUserDepositsResponse>;
6734
+ /**
6735
+ * getUserWithdrawalsHistory.
6736
+ *
6737
+ * @param request - See {@link GetUserWithdrawalsRequest}.
6738
+ */
5928
6739
  getUserWithdrawalsHistory: (request: GetUserWithdrawalsRequest) => Promise<GetUserWithdrawalsResponse>;
6740
+ /**
6741
+ * getUserPortfolioValueHistory.
6742
+ *
6743
+ * @param request - See {@link GetUserPortfolioValueRequest}.
6744
+ */
5929
6745
  getUserPortfolioValueHistory: (request: GetUserPortfolioValueRequest) => Promise<GetUserPortfolioValueResponse>;
6746
+ /**
6747
+ * getUserRewardsValueHistory.
6748
+ *
6749
+ * @param request - See {@link GetUserRewardsValueRequest}.
6750
+ */
5930
6751
  getUserRewardsValueHistory: (request: GetUserRewardsValueRequest) => Promise<GetUserRewardsValueResponse>;
6752
+ /**
6753
+ * getUserTradeStatsHistory.
6754
+ *
6755
+ * @param request - See {@link GetUserTradeStatsHistoryRequest}.
6756
+ */
5931
6757
  getUserTradeStatsHistory: (request: GetUserTradeStatsHistoryRequest) => Promise<GetUserTradeStatsHistoryResponse>;
6758
+ /**
6759
+ * getUserAggregatedStats.
6760
+ *
6761
+ * @param request - See {@link GetUserAggregatedStatsRequest}.
6762
+ */
5932
6763
  getUserAggregatedStats: (request: GetUserAggregatedStatsRequest) => Promise<GetUserAggregatedStatsResponse>;
6764
+ /**
6765
+ * getUserBoxRewardsStatsHistory.
6766
+ *
6767
+ * @param request - See {@link GetUserBoxRewardsStatsHistoryRequest}.
6768
+ */
5933
6769
  getUserBoxRewardsStatsHistory: (request: GetUserBoxRewardsStatsHistoryRequest) => Promise<GetUserBoxRewardsStatsHistoryResponse>;
6770
+ /**
6771
+ * getUserAggregatedBoxRewardsStats.
6772
+ *
6773
+ * @param request - See {@link GetUserAggregatedBoxRewardsStatsRequest}.
6774
+ */
5934
6775
  getUserAggregatedBoxRewardsStats: (request: GetUserAggregatedBoxRewardsStatsRequest) => Promise<GetUserAggregatedBoxRewardsStatsResponse>;
6776
+ /**
6777
+ * getUserReferralStatsHistory.
6778
+ *
6779
+ * @param request - See {@link GetUserReferralStatsHistoryRequest}.
6780
+ */
5935
6781
  getUserReferralStatsHistory: (request: GetUserReferralStatsHistoryRequest) => Promise<GetUserReferralStatsHistoryResponse>;
6782
+ /**
6783
+ * getUserAggregatedReferralStats.
6784
+ *
6785
+ * @param request - See {@link GetUserAggregatedReferralStatsRequest}.
6786
+ */
5936
6787
  getUserAggregatedReferralStats: (request: GetUserAggregatedReferralStatsRequest) => Promise<GetUserAggregatedReferralStatsResponse>;
6788
+ /**
6789
+ * getUserClaimedKickbackHistory.
6790
+ *
6791
+ * @param request - See {@link GetUserClaimedKickbackHistoryRequest}.
6792
+ */
5937
6793
  getUserClaimedKickbackHistory: (request: GetUserClaimedKickbackHistoryRequest) => Promise<GetUserClaimedKickbackHistoryResponse>;
6794
+ /**
6795
+ * getUserClaimedReferralKickbackHistory.
6796
+ *
6797
+ * @param request - See {@link GetUserClaimedReferralKickbackHistoryRequest}.
6798
+ */
5938
6799
  getUserClaimedReferralKickbackHistory: (request: GetUserClaimedReferralKickbackHistoryRequest) => Promise<GetUserClaimedReferralKickbackHistoryResponse>;
6800
+ /**
6801
+ * getUserTransfersHistory.
6802
+ *
6803
+ * @param request - See {@link GetUserTransferHistoryRequest}.
6804
+ */
5939
6805
  getUserTransfersHistory: (request: GetUserTransferHistoryRequest) => Promise<GetUserTransferHistoryResponse>;
6806
+ /**
6807
+ * getUserLiquidations.
6808
+ *
6809
+ * @param request - See {@link GetUserFullLiquidationsHistoryRequest}.
6810
+ */
5940
6811
  getUserLiquidations: (request: GetUserFullLiquidationsHistoryRequest) => Promise<GetUserLiquidationsHistoryResponse>;
6812
+ /**
6813
+ * getUserPartialLiquidations.
6814
+ *
6815
+ * @param request - See {@link GetUserPartialLiquidationsHistoryRequest}.
6816
+ */
5941
6817
  getUserPartialLiquidations: (request: GetUserPartialLiquidationsHistoryRequest) => Promise<GetUserPartialLiquidationsHistoryResponse>;
6818
+ /**
6819
+ * getBorrowLendHistoricalState.
6820
+ *
6821
+ * @param request - See {@link GetBorrowLendingHistoricalDataRequest}.
6822
+ */
5942
6823
  getBorrowLendHistoricalState: (request: GetBorrowLendingHistoricalDataRequest) => Promise<GetBorrowLendingHistoricalDataResponse>;
6824
+ /**
6825
+ * getBorrowLendAggregatedStats.
6826
+ *
6827
+ * @param request - See {@link GetBorrowLendingAggregatedStatsRequest}.
6828
+ */
5943
6829
  getBorrowLendAggregatedStats: (request: GetBorrowLendingAggregatedStatsRequest) => Promise<GetBorrowLendingAggregatedStatsResponse>;
6830
+ /**
6831
+ * getTokenStats.
6832
+ *
6833
+ * @param request - See {@link GetTokenStatsHistoryRequest}.
6834
+ *
6835
+ * @returns A promise that resolves to {@link GetTokenStatsHistoryResponse}.
6836
+ */
5944
6837
  getTokenStats: (request: GetTokenStatsHistoryRequest) => Promise<GetTokenStatsHistoryResponse>;
6838
+ /**
6839
+ * getTokenAggregatedStats.
6840
+ *
6841
+ * @param request - See {@link GetTokenAggregatedStatsRequest}.
6842
+ *
6843
+ * @returns A promise that resolves to {@link GetTokenAggregatedStatsResponse}.
6844
+ */
5945
6845
  getTokenAggregatedStats: (request: GetTokenAggregatedStatsRequest) => Promise<GetTokenAggregatedStatsResponse>;
6846
+ /**
6847
+ * checkReferralCode.
6848
+ *
6849
+ * @param request - See {@link CheckReferralCodeRequest}.
6850
+ *
6851
+ * @returns A promise that resolves to {@link CheckReferralCodeResponse}.
6852
+ */
5946
6853
  checkReferralCode: (request: CheckReferralCodeRequest) => Promise<CheckReferralCodeResponse>;
6854
+ /**
6855
+ * getServicesStatus.
6856
+ *
6857
+ * @returns Service health status data. See {@link GetServicesStatusResponse}.
6858
+ */
5947
6859
  getServicesStatus: () => Promise<GetServicesStatusResponse>;
6860
+ /**
6861
+ * getUserVaultDeposits.
6862
+ *
6863
+ * @param request - See {@link GetUserDepositsRequest}.
6864
+ */
5948
6865
  getUserVaultDeposits: (request: GetUserDepositsRequest) => Promise<GetUserVaultDepositsResponse>;
6866
+ /**
6867
+ * getUserVaultWithdraws.
6868
+ *
6869
+ * @param request - See {@link GetUserWithdrawalsRequest}.
6870
+ */
5949
6871
  getUserVaultWithdraws: (request: GetUserWithdrawalsRequest) => Promise<GetUserWithdrawalsResponse>;
6872
+ /**
6873
+ * getVaultHistoricalData.
6874
+ *
6875
+ * @param request - See {@link GetVaultHistoricalDataRequest}.
6876
+ *
6877
+ * @returns A promise that resolves to {@link GetVaultHistoricalDataResponse}.
6878
+ */
5950
6879
  getVaultHistoricalData: (request: GetVaultHistoricalDataRequest) => Promise<GetVaultHistoricalDataResponse>;
6880
+ /**
6881
+ * getHistoricalIndexPrices.
6882
+ *
6883
+ * @param request - See {@link GetIndexPriceHistoryRequest}.
6884
+ *
6885
+ * @returns A promise that resolves to {@link GetIndexPriceHistoryResponse}.
6886
+ */
5951
6887
  getHistoricalIndexPrices: (request: GetIndexPriceHistoryRequest) => Promise<GetIndexPriceHistoryResponse>;
6888
+ /**
6889
+ * getUserAggregatedVaultStats.
6890
+ *
6891
+ * @param request - See {@link GetUserAggregatedVaultStatsRequest}.
6892
+ *
6893
+ * @returns A promise that resolves to {@link GetUserAggregatedVaultStatsResponse}.
6894
+ */
5952
6895
  getUserAggregatedVaultStats: (request: GetUserAggregatedVaultStatsRequest) => Promise<GetUserAggregatedVaultStatsResponse>;
6896
+ /**
6897
+ * getIndexerStatus.
6898
+ *
6899
+ * @returns Indexer status payload. See {@link GetIndexerStatusResponse}.
6900
+ */
5953
6901
  getIndexerStatus: () => Promise<GetIndexerStatusResponse>;
6902
+ /**
6903
+ * getVaultHistoricalDeposits.
6904
+ *
6905
+ * @param request - See {@link GetVaultDepositsRequest}.
6906
+ *
6907
+ * @returns A promise that resolves to {@link GetVaultDepositsResponse}.
6908
+ */
5954
6909
  getVaultHistoricalDeposits: (request: GetVaultDepositsRequest) => Promise<GetVaultDepositsResponse>;
6910
+ /**
6911
+ * getVaultWithdrawals.
6912
+ *
6913
+ * @param request - See {@link GetVaultWithdrawalsRequest}.
6914
+ *
6915
+ * @returns A promise that resolves to {@link GetVaultWithdrawalsResponse}.
6916
+ */
5955
6917
  getVaultWithdrawals: (request: GetVaultWithdrawalsRequest) => Promise<GetVaultWithdrawalsResponse>;
6918
+ /**
6919
+ * getUserBoxesHistory.
6920
+ *
6921
+ * @param request - See {@link GetUserBoxesHistoryRequest}.
6922
+ *
6923
+ * @returns A promise that resolves to {@link GetUserBoxesHistoryResponse}.
6924
+ */
5956
6925
  getUserBoxesHistory: (request: GetUserBoxesHistoryRequest) => Promise<GetUserBoxesHistoryResponse>;
6926
+ /**
6927
+ * getUserRequiredVolumeForReferral.
6928
+ *
6929
+ * @param request - See {@link GetUserVolumeForReferralRequest}.
6930
+ *
6931
+ * @returns A promise that resolves to {@link GetUserVolumeForReferralResponse}.
6932
+ */
5957
6933
  getUserRequiredVolumeForReferral: (request: GetUserVolumeForReferralRequest) => Promise<GetUserVolumeForReferralResponse>;
6934
+ /**
6935
+ * getUserPointsHistory.
6936
+ *
6937
+ * @param request - See {@link GetUserPointsHistoryRequest}.
6938
+ *
6939
+ * @returns A promise that resolves to {@link GetUserPointsHistoryResponse}.
6940
+ */
5958
6941
  getUserPointsHistory: (request: GetUserPointsHistoryRequest) => Promise<GetUserPointsHistoryResponse>;
6942
+ /**
6943
+ * getAllVaultsIds.
6944
+ *
6945
+ * @returns All vault identifiers available from the API. See {@link GetAllVaultsIdsResponse}.
6946
+ */
5959
6947
  getAllVaultsIds: () => Promise<GetAllVaultsIdsResponse>;
6948
+ /**
6949
+ * getUserPersonalPointsRanking.
6950
+ *
6951
+ * @param request - See {@link GetUserPersonalPointsRankingRequest}.
6952
+ *
6953
+ * @returns A promise that resolves to {@link GetUserPersonalPointsRankingResponse}.
6954
+ */
5960
6955
  getUserPersonalPointsRanking: (request: GetUserPersonalPointsRankingRequest) => Promise<GetUserPersonalPointsRankingResponse>;
6956
+ /**
6957
+ * getTopPointsRanking.
6958
+ *
6959
+ * @returns Leaderboard data ordered by points. See {@link GetTopPointsRankingResponse}.
6960
+ */
5961
6961
  getTopPointsRanking: () => Promise<GetTopPointsRankingResponse>;
6962
+ /**
6963
+ * getAccountValueRanking.
6964
+ *
6965
+ * @param request - See {@link GetAccountValueRankingRequest}.
6966
+ *
6967
+ * @returns A promise that resolves to {@link GetAccountValueRankingResponse}.
6968
+ */
5962
6969
  getAccountValueRanking: (request: GetAccountValueRankingRequest) => Promise<GetAccountValueRankingResponse>;
6970
+ /**
6971
+ * getUserAccountValueRanking.
6972
+ *
6973
+ * @param request - See {@link GetUserAccountValueRankingRequest}.
6974
+ *
6975
+ * @returns A promise that resolves to {@link GetUserAccountValueRankingResponse}.
6976
+ */
5963
6977
  getUserAccountValueRanking: (request: GetUserAccountValueRankingRequest) => Promise<GetUserAccountValueRankingResponse>;
6978
+ /**
6979
+ * getTime.
6980
+ *
6981
+ * @returns Current server time string.
6982
+ */
5964
6983
  getTime: () => Promise<string>;
5965
6984
  }
5966
6985
 
6986
+ /**
6987
+ * parseEntryFunctionAbi.
6988
+ *
6989
+ * @param args - Entry function ABI lookup arguments.
6990
+ * @param args.moduleAbi - See {@link MoveModule}.
6991
+ * @param args.moduleAddress - Module address.
6992
+ * @param args.moduleName - Module name.
6993
+ * @param args.functionName - Function name.
6994
+
6995
+ * @returns The parsed entry function ABI. See {@link EntryFunctionABI}.
6996
+ */
5967
6997
  declare function parseEntryFunctionAbi(args: {
5968
6998
  moduleAbi: MoveModule;
5969
6999
  moduleAddress: string;
@@ -5971,25 +7001,82 @@ declare function parseEntryFunctionAbi(args: {
5971
7001
  functionName: string;
5972
7002
  }): EntryFunctionABI;
5973
7003
 
7004
+ /** Network-specific proxy addresses for exchange module entrypoints. */
5974
7005
  declare const ExchangeProxies: {
5975
- [key in Network]: string[];
7006
+ [key in NetworkMode]: string[];
5976
7007
  };
5977
7008
  declare const GLOBAL_DENOMINATOR = 100000000;
5978
7009
 
5979
7010
  declare class TestFaucet extends Client {
7011
+ /** Creates a `TestFaucet` instance.
7012
+ * @param connection -
7013
+ * @param config -
7014
+ */
5980
7015
  constructor(connection: Aptos, config?: ClientConfig);
7016
+ /**
7017
+ * Creates and initializes a faucet helper with websocket disabled by default.
7018
+ *
7019
+ * @param connection - Aptos client connected to the target network.
7020
+ * @param config - Optional client config.
7021
+
7022
+ * @param configOrNetworkMode -
7023
+ * @param enableWs -
7024
+ */
5981
7025
  static create(connection: Aptos, config?: ClientConfig): Promise<TestFaucet>;
7026
+ /** Builds the initialize-faucet payload (testnet only). */
5982
7027
  initFaucetPayload(): Promise<_aptos_labs_ts_sdk.TransactionPayloadEntryFunction>;
7028
+ /** Submits the faucet initialization transaction. */
5983
7029
  initFaucet(): Promise<SubmitSponsoredTransactionResponse>;
7030
+ /** Builds the mint payload for test tokens (testnet only).
7031
+ * @param receiver -
7032
+ * @param token -
7033
+ * @param amount -
7034
+ */
5984
7035
  mintTokenPayload(receiver: Address, token: string, amount: number): Promise<_aptos_labs_ts_sdk.TransactionPayloadEntryFunction>;
7036
+ /**
7037
+ * Mints testnet tokens to an on-chain recipient.
7038
+ *
7039
+ * @param receiver - Recipient address.
7040
+ * @param token - Token symbol.
7041
+ * @param amount - Mint amount.
7042
+ */
5985
7043
  mintToken(receiver: Address, token: string, amount: number): Promise<SubmitSponsoredTransactionResponse>;
5986
7044
  }
5987
7045
 
7046
+ /** Resolves after `ms` milliseconds. */
5988
7047
  declare const sleep: (ms: number) => Promise<unknown>;
7048
+ /** Returns the current Unix timestamp in milliseconds. */
5989
7049
  declare const nowInMiliseconds: () => number;
7050
+ /** Backward-compatible alias for {@link nowInMiliseconds}. */
7051
+ declare const nowInMilliseconds: () => number;
7052
+ /**
7053
+ * Converts a human-readable token amount to the on-chain system value by
7054
+ * multiplying by `GLOBAL_DENOMINATOR` (100,000,000).
7055
+ *
7056
+ * @example toSystemValue('1.5') // '150000000'
7057
+ */
5990
7058
  declare const toSystemValue: (value: string | number) => string;
7059
+ /**
7060
+ * Generates a fresh Ed25519 keypair to use as an API key account.
7061
+ * The returned {@link Account} holds both the public and private key.
7062
+ */
5991
7063
  declare const generateApiKey: () => _aptos_labs_ts_sdk.Ed25519Account;
7064
+ /**
7065
+ * Maps outgoing websocket subscription commands to the corresponding local topic key.
7066
+ *
7067
+ * @param data - WebSocket command being sent.
7068
+ * @throws If the command type is unknown.
7069
+ */
5992
7070
  declare const getTopicFromCommand: (data: WsCommand) => string;
7071
+ /**
7072
+ * Maps incoming websocket messages to the topic key used for local callback dispatch.
7073
+ *
7074
+ * Unknown message types throw an error so unsupported payloads can be surfaced
7075
+ * and handled explicitly by callers.
7076
+ *
7077
+ * @param data - Decoded websocket message.
7078
+ * @throws If the message type is not recognized.
7079
+ */
5993
7080
  declare const getTopicFromMessage: (data: WsMessage) => string;
5994
7081
 
5995
- 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 ClientConfig, type Content, type CreateUserParams, type Deposit, type DepositToVaultParams, type DepositTokenParams, EndpointsV1, type ErrorResponse, type ExchangeConfig, ExchangeProxies, type ExchangeStatsEntry, 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 GetExchangeStatsHistoryRequest, type GetExchangeStatsHistoryResponse, 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 GetUserAccountValueRankingRequest, type GetUserAccountValueRankingResponse, 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 GlobalLiquidation, type GlobalPartialLiquidation, type HistoricBoxReward, type HistoricalBoxRewardsStats, type HistoricalDeposit, type HistoricalFullLiquidation, type HistoricalFunding, type HistoricalLiquidatedBorrow, type HistoricalLiquidatedCollateral, type HistoricalLiquidatedLend, type HistoricalLiquidatedPosition, type HistoricalLiquidationCancelOrders, type HistoricalPartialLiquidatedPosition, type HistoricalPartialLiquidation, type HistoricalPerpOrder, type HistoricalPoints, type HistoricalReferralStats, type HistoricalSpotOrder, type HistoricalTokenStats, type HistoricalTradeStats, type HistoricalUserTransfer, type HistoricalVaultDeposit, type HistoricalVaultWithdraw, type HistoricalWithdraw, 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 PartialLiquidation, 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 TvlTokenEntry, 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 WsLiquidatedBorrow, type WsLiquidatedCollateral, type WsLiquidatedLend, type WsLiquidatedPosition, type WsLiquidationUpdate, type WsMessage, type WsOracleUpdates, type WsPartialLiquidatedPosition, type WsPerpMarketUpdates, type WsSpotMarketUpdates, type WsUserUpdates, createAptosClient, createAptosClientFromEnv, generateApiKey, getABIsForNetwork, getNetworkConfig, getNetworkModeFromEnv, getRandomId, getTopicFromCommand, getTopicFromMessage, nowInMiliseconds, parseEntryFunctionAbi, sleep, toSystemValue };
7082
+ 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 ClientConfig, type Content, type CreateUserParams, type Deposit, type DepositToVaultParams, type DepositTokenParams, EndpointsV1, type ErrorResponse, type ExchangeConfig, ExchangeProxies, type ExchangeStatsEntry, 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 GetExchangeStatsHistoryRequest, type GetExchangeStatsHistoryResponse, 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 GetUserAccountValueRankingRequest, type GetUserAccountValueRankingResponse, 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 GlobalLiquidation, type GlobalPartialLiquidation, type HistoricBoxReward, type HistoricalBoxRewardsStats, type HistoricalDeposit, type HistoricalFullLiquidation, type HistoricalFunding, type HistoricalLiquidatedBorrow, type HistoricalLiquidatedCollateral, type HistoricalLiquidatedLend, type HistoricalLiquidatedPosition, type HistoricalLiquidationCancelOrders, type HistoricalPartialLiquidatedPosition, type HistoricalPartialLiquidation, type HistoricalPerpOrder, type HistoricalPoints, type HistoricalReferralStats, type HistoricalSpotOrder, type HistoricalTokenStats, type HistoricalTradeStats, type HistoricalUserTransfer, type HistoricalVaultDeposit, type HistoricalVaultWithdraw, type HistoricalWithdraw, type IndexPriceHistory, type IndexPriceLive, type Lend, type LendTokenParams, type Liquidation, type LiquidationCancelledOrderData, type LiquidationCancelledTriggerOrderData, MAINNET_CONFIG, type MarginStep, type NetworkConfig, type NetworkMode, type NodeStatus, type OpenBoxesRequest, type OpenBoxesResponse, type OpenBoxesSignRequest, type OracleUpdate, type OracleUpdates, type OrderBookData, OrderSide, OrderStatus, OrderType, type PaginationCursor, type PartialLiquidation, 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, 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 TvlTokenEntry, 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 WsLiquidatedBorrow, type WsLiquidatedCollateral, type WsLiquidatedLend, type WsLiquidatedPosition, type WsLiquidationUpdate, type WsMessage, type WsOracleUpdates, type WsPartialLiquidatedPosition, type WsPerpMarketUpdates, type WsSpotMarketUpdates, type WsUserUpdates, createAptosClient, createAptosClientFromEnv, generateApiKey, getABIsForNetwork, getNetworkConfig, getNetworkModeFromEnv, getRandomId, getTopicFromCommand, getTopicFromMessage, nowInMiliseconds, nowInMilliseconds, parseEntryFunctionAbi, sleep, toSystemValue };