@nightlylabs/dex-sdk 0.0.84 → 0.0.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +35 -36
- package/dist/index.d.cts +28 -8
- package/dist/index.d.ts +28 -8
- package/dist/index.js +34 -35
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -41,7 +41,7 @@ __export(index_exports, {
|
|
|
41
41
|
OrderSide: () => OrderSide,
|
|
42
42
|
OrderStatus: () => OrderStatus,
|
|
43
43
|
OrderType: () => OrderType,
|
|
44
|
-
|
|
44
|
+
SpotMarketStatus: () => SpotMarketStatus,
|
|
45
45
|
Status: () => Status,
|
|
46
46
|
TestFaucet: () => TestFaucet,
|
|
47
47
|
TradeRole: () => TradeRole,
|
|
@@ -65,7 +65,7 @@ var import_uuid = require("uuid");
|
|
|
65
65
|
|
|
66
66
|
// generated_types/addApiKey.ts
|
|
67
67
|
var ABI = {
|
|
68
|
-
"address": "
|
|
68
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
69
69
|
"name": "add_api_key",
|
|
70
70
|
"friends": [],
|
|
71
71
|
"exposed_functions": [
|
|
@@ -90,7 +90,7 @@ var addApiKey_default = ABI;
|
|
|
90
90
|
|
|
91
91
|
// generated_types/cancelAllPerpOrders.ts
|
|
92
92
|
var ABI2 = {
|
|
93
|
-
"address": "
|
|
93
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
94
94
|
"name": "cancel_all_perp_orders",
|
|
95
95
|
"friends": [],
|
|
96
96
|
"exposed_functions": [
|
|
@@ -113,7 +113,7 @@ var cancelAllPerpOrders_default = ABI2;
|
|
|
113
113
|
|
|
114
114
|
// generated_types/cancelPerpOrders.ts
|
|
115
115
|
var ABI3 = {
|
|
116
|
-
"address": "
|
|
116
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
117
117
|
"name": "cancel_perp_orders",
|
|
118
118
|
"friends": [],
|
|
119
119
|
"exposed_functions": [
|
|
@@ -138,7 +138,7 @@ var cancelPerpOrders_default = ABI3;
|
|
|
138
138
|
|
|
139
139
|
// generated_types/createUser.ts
|
|
140
140
|
var ABI4 = {
|
|
141
|
-
"address": "
|
|
141
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
142
142
|
"name": "create_user",
|
|
143
143
|
"friends": [],
|
|
144
144
|
"exposed_functions": [
|
|
@@ -163,7 +163,7 @@ var createUser_default = ABI4;
|
|
|
163
163
|
|
|
164
164
|
// generated_types/depositToVault.ts
|
|
165
165
|
var ABI5 = {
|
|
166
|
-
"address": "
|
|
166
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
167
167
|
"name": "deposit_to_vault",
|
|
168
168
|
"friends": [],
|
|
169
169
|
"exposed_functions": [
|
|
@@ -188,7 +188,7 @@ var depositToVault_default = ABI5;
|
|
|
188
188
|
|
|
189
189
|
// generated_types/depositToken.ts
|
|
190
190
|
var ABI6 = {
|
|
191
|
-
"address": "
|
|
191
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
192
192
|
"name": "deposit_token",
|
|
193
193
|
"friends": [],
|
|
194
194
|
"exposed_functions": [
|
|
@@ -213,7 +213,7 @@ var depositToken_default = ABI6;
|
|
|
213
213
|
|
|
214
214
|
// generated_types/lendToken.ts
|
|
215
215
|
var ABI7 = {
|
|
216
|
-
"address": "
|
|
216
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
217
217
|
"name": "lend_token",
|
|
218
218
|
"friends": [],
|
|
219
219
|
"exposed_functions": [
|
|
@@ -239,7 +239,7 @@ var lendToken_default = ABI7;
|
|
|
239
239
|
|
|
240
240
|
// generated_types/placePerpLimitOrder.ts
|
|
241
241
|
var ABI8 = {
|
|
242
|
-
"address": "
|
|
242
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
243
243
|
"name": "place_perp_limit_order",
|
|
244
244
|
"friends": [],
|
|
245
245
|
"exposed_functions": [
|
|
@@ -268,7 +268,7 @@ var placePerpLimitOrder_default = ABI8;
|
|
|
268
268
|
|
|
269
269
|
// generated_types/changePerpOrderPrice.ts
|
|
270
270
|
var ABI9 = {
|
|
271
|
-
"address": "
|
|
271
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
272
272
|
"name": "change_perp_order_price",
|
|
273
273
|
"friends": [],
|
|
274
274
|
"exposed_functions": [
|
|
@@ -295,7 +295,7 @@ var changePerpOrderPrice_default = ABI9;
|
|
|
295
295
|
|
|
296
296
|
// generated_types/placePerpMarketOrder.ts
|
|
297
297
|
var ABI10 = {
|
|
298
|
-
"address": "
|
|
298
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
299
299
|
"name": "place_perp_market_order",
|
|
300
300
|
"friends": [],
|
|
301
301
|
"exposed_functions": [
|
|
@@ -323,7 +323,7 @@ var placePerpMarketOrder_default = ABI10;
|
|
|
323
323
|
|
|
324
324
|
// generated_types/redeemToken.ts
|
|
325
325
|
var ABI11 = {
|
|
326
|
-
"address": "
|
|
326
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
327
327
|
"name": "redeem_token",
|
|
328
328
|
"friends": [],
|
|
329
329
|
"exposed_functions": [
|
|
@@ -349,7 +349,7 @@ var redeemToken_default = ABI11;
|
|
|
349
349
|
|
|
350
350
|
// generated_types/removeApiKey.ts
|
|
351
351
|
var ABI12 = {
|
|
352
|
-
"address": "
|
|
352
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
353
353
|
"name": "remove_api_key",
|
|
354
354
|
"friends": [],
|
|
355
355
|
"exposed_functions": [
|
|
@@ -373,7 +373,7 @@ var removeApiKey_default = ABI12;
|
|
|
373
373
|
|
|
374
374
|
// generated_types/setAliasName.ts
|
|
375
375
|
var ABI13 = {
|
|
376
|
-
"address": "
|
|
376
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
377
377
|
"name": "set_alias_name",
|
|
378
378
|
"friends": [],
|
|
379
379
|
"exposed_functions": [
|
|
@@ -397,7 +397,7 @@ var setAliasName_default = ABI13;
|
|
|
397
397
|
|
|
398
398
|
// generated_types/setAutolend.ts
|
|
399
399
|
var ABI14 = {
|
|
400
|
-
"address": "
|
|
400
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
401
401
|
"name": "set_autolend",
|
|
402
402
|
"friends": [],
|
|
403
403
|
"exposed_functions": [
|
|
@@ -421,7 +421,7 @@ var setAutolend_default = ABI14;
|
|
|
421
421
|
|
|
422
422
|
// generated_types/claimReferralFees.ts
|
|
423
423
|
var ABI15 = {
|
|
424
|
-
"address": "
|
|
424
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
425
425
|
"name": "claim_referral_fees",
|
|
426
426
|
"friends": [],
|
|
427
427
|
"exposed_functions": [
|
|
@@ -445,7 +445,7 @@ var claimReferralFees_default = ABI15;
|
|
|
445
445
|
|
|
446
446
|
// generated_types/transferToUser.ts
|
|
447
447
|
var ABI16 = {
|
|
448
|
-
"address": "
|
|
448
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
449
449
|
"name": "transfer_to_user",
|
|
450
450
|
"friends": [],
|
|
451
451
|
"exposed_functions": [
|
|
@@ -472,7 +472,7 @@ var transferToUser_default = ABI16;
|
|
|
472
472
|
|
|
473
473
|
// generated_types/placeMultiplePerpOrders.ts
|
|
474
474
|
var ABI17 = {
|
|
475
|
-
"address": "
|
|
475
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
476
476
|
"name": "place_multiple_perp_orders",
|
|
477
477
|
"friends": [],
|
|
478
478
|
"exposed_functions": [
|
|
@@ -501,7 +501,7 @@ var placeMultiplePerpOrders_default = ABI17;
|
|
|
501
501
|
|
|
502
502
|
// generated_types/claimKickbackFee.ts
|
|
503
503
|
var ABI18 = {
|
|
504
|
-
"address": "
|
|
504
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
505
505
|
"name": "claim_kickback_fee",
|
|
506
506
|
"friends": [],
|
|
507
507
|
"exposed_functions": [
|
|
@@ -524,7 +524,7 @@ var claimKickbackFee_default = ABI18;
|
|
|
524
524
|
|
|
525
525
|
// generated_types/replaceMultipleOrders.ts
|
|
526
526
|
var ABI19 = {
|
|
527
|
-
"address": "
|
|
527
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
528
528
|
"name": "replace_multiple_orders",
|
|
529
529
|
"friends": [],
|
|
530
530
|
"exposed_functions": [
|
|
@@ -552,7 +552,7 @@ var replaceMultipleOrders_default = ABI19;
|
|
|
552
552
|
|
|
553
553
|
// generated_types/claimDeposit.ts
|
|
554
554
|
var ABI20 = {
|
|
555
|
-
"address": "
|
|
555
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
556
556
|
"name": "claim_deposit",
|
|
557
557
|
"friends": [],
|
|
558
558
|
"exposed_functions": [
|
|
@@ -575,14 +575,6 @@ var ABI20 = {
|
|
|
575
575
|
var claimDeposit_default = ABI20;
|
|
576
576
|
|
|
577
577
|
// generated_types/typeshareTypes.ts
|
|
578
|
-
var PerpetualMarketStatus = /* @__PURE__ */ ((PerpetualMarketStatus2) => {
|
|
579
|
-
PerpetualMarketStatus2["Halted"] = "halted";
|
|
580
|
-
PerpetualMarketStatus2["ReduceOnly"] = "reduceOnly";
|
|
581
|
-
PerpetualMarketStatus2["PostOnly"] = "postOnly";
|
|
582
|
-
PerpetualMarketStatus2["Live"] = "live";
|
|
583
|
-
PerpetualMarketStatus2["Settled"] = "settled";
|
|
584
|
-
return PerpetualMarketStatus2;
|
|
585
|
-
})(PerpetualMarketStatus || {});
|
|
586
578
|
var ChartInterval = /* @__PURE__ */ ((ChartInterval2) => {
|
|
587
579
|
ChartInterval2["OneMinute"] = "OneMinute";
|
|
588
580
|
ChartInterval2["FiveMinutes"] = "FiveMinutes";
|
|
@@ -652,6 +644,13 @@ var EndpointsV1 = /* @__PURE__ */ ((EndpointsV12) => {
|
|
|
652
644
|
EndpointsV12["GetUserTradeStats"] = "/v1/get_user_trade_stats";
|
|
653
645
|
return EndpointsV12;
|
|
654
646
|
})(EndpointsV1 || {});
|
|
647
|
+
var SpotMarketStatus = /* @__PURE__ */ ((SpotMarketStatus2) => {
|
|
648
|
+
SpotMarketStatus2["Halted"] = "halted";
|
|
649
|
+
SpotMarketStatus2["ReduceOnly"] = "reduceOnly";
|
|
650
|
+
SpotMarketStatus2["PostOnly"] = "postOnly";
|
|
651
|
+
SpotMarketStatus2["Live"] = "live";
|
|
652
|
+
return SpotMarketStatus2;
|
|
653
|
+
})(SpotMarketStatus || {});
|
|
655
654
|
var UserStatus = /* @__PURE__ */ ((UserStatus2) => {
|
|
656
655
|
UserStatus2["Active"] = "Active";
|
|
657
656
|
UserStatus2["Locked"] = "Locked";
|
|
@@ -660,7 +659,7 @@ var UserStatus = /* @__PURE__ */ ((UserStatus2) => {
|
|
|
660
659
|
|
|
661
660
|
// generated_types/withdrawFromVault.ts
|
|
662
661
|
var ABI21 = {
|
|
663
|
-
"address": "
|
|
662
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
664
663
|
"name": "withdraw_from_vault",
|
|
665
664
|
"friends": [],
|
|
666
665
|
"exposed_functions": [
|
|
@@ -1833,7 +1832,7 @@ var import_surf2 = require("@thalalabs/surf");
|
|
|
1833
1832
|
|
|
1834
1833
|
// generated_types/faucetEntrypoints.ts
|
|
1835
1834
|
var ABI22 = {
|
|
1836
|
-
"address": "
|
|
1835
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
1837
1836
|
"name": "faucet_entrypoints",
|
|
1838
1837
|
"friends": [],
|
|
1839
1838
|
"exposed_functions": [
|
|
@@ -1868,7 +1867,7 @@ var faucetEntrypoints_default = ABI22;
|
|
|
1868
1867
|
|
|
1869
1868
|
// generated_types/testFaucet.ts
|
|
1870
1869
|
var ABI23 = {
|
|
1871
|
-
"address": "
|
|
1870
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
1872
1871
|
"name": "test_faucet",
|
|
1873
1872
|
"friends": [],
|
|
1874
1873
|
"exposed_functions": [
|
|
@@ -1905,7 +1904,7 @@ var ABI23 = {
|
|
|
1905
1904
|
],
|
|
1906
1905
|
"return": [
|
|
1907
1906
|
"0x1::object::ConstructorRef",
|
|
1908
|
-
"0x1::object::Object<
|
|
1907
|
+
"0x1::object::Object<0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea::test_faucet::Token>"
|
|
1909
1908
|
]
|
|
1910
1909
|
},
|
|
1911
1910
|
{
|
|
@@ -2056,7 +2055,7 @@ var ABI23 = {
|
|
|
2056
2055
|
"0x1::object::Object<0x1::fungible_asset::Metadata>"
|
|
2057
2056
|
],
|
|
2058
2057
|
"return": [
|
|
2059
|
-
"
|
|
2058
|
+
"0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea::test_faucet::FaucetToken"
|
|
2060
2059
|
]
|
|
2061
2060
|
}
|
|
2062
2061
|
],
|
|
@@ -2088,7 +2087,7 @@ var ABI23 = {
|
|
|
2088
2087
|
"fields": [
|
|
2089
2088
|
{
|
|
2090
2089
|
"name": "tokens",
|
|
2091
|
-
"type": "0x1::smart_table::SmartTable<vector<u8>,
|
|
2090
|
+
"type": "0x1::smart_table::SmartTable<vector<u8>, 0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea::test_faucet::FaucetToken>"
|
|
2092
2091
|
}
|
|
2093
2092
|
]
|
|
2094
2093
|
},
|
|
@@ -2184,7 +2183,7 @@ var TestFaucet = class _TestFaucet extends client_default {
|
|
|
2184
2183
|
OrderSide,
|
|
2185
2184
|
OrderStatus,
|
|
2186
2185
|
OrderType,
|
|
2187
|
-
|
|
2186
|
+
SpotMarketStatus,
|
|
2188
2187
|
Status,
|
|
2189
2188
|
TestFaucet,
|
|
2190
2189
|
TradeRole,
|
package/dist/index.d.cts
CHANGED
|
@@ -107,13 +107,22 @@ interface MarginStep {
|
|
|
107
107
|
maintenanceAmount: string;
|
|
108
108
|
maxPositionInUsd: string;
|
|
109
109
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
110
|
+
type PerpetualMarketStatus = {
|
|
111
|
+
type: "halted";
|
|
112
|
+
content?: undefined;
|
|
113
|
+
} | {
|
|
114
|
+
type: "reduceOnly";
|
|
115
|
+
content?: undefined;
|
|
116
|
+
} | {
|
|
117
|
+
type: "postOnly";
|
|
118
|
+
content?: undefined;
|
|
119
|
+
} | {
|
|
120
|
+
type: "live";
|
|
121
|
+
content?: undefined;
|
|
122
|
+
} | {
|
|
123
|
+
type: "settled";
|
|
124
|
+
content: string;
|
|
125
|
+
};
|
|
117
126
|
interface FundingRate {
|
|
118
127
|
enabled: boolean;
|
|
119
128
|
interestRateHourly: string;
|
|
@@ -319,6 +328,8 @@ interface GetUserAggregatedReferralStatsRequest {
|
|
|
319
328
|
interface UserAggregatedReferralStats {
|
|
320
329
|
referralOwnerId: string;
|
|
321
330
|
referralUserId: string;
|
|
331
|
+
referralUserAlias: string;
|
|
332
|
+
referralUserRegistrationTimestamp: string;
|
|
322
333
|
accReferralValue: string;
|
|
323
334
|
referredUserVolume: string;
|
|
324
335
|
}
|
|
@@ -343,6 +354,7 @@ interface UserAggregatedStats {
|
|
|
343
354
|
spotTradesCountTaker: string;
|
|
344
355
|
perpTradesCountMaker: string;
|
|
345
356
|
perpTradesCountTaker: string;
|
|
357
|
+
earnedFee: string;
|
|
346
358
|
}
|
|
347
359
|
interface GetUserAggregatedStatsResponse {
|
|
348
360
|
userAggregatedStats: UserAggregatedStats;
|
|
@@ -373,6 +385,7 @@ interface Vault {
|
|
|
373
385
|
interface User {
|
|
374
386
|
userId: string;
|
|
375
387
|
alias: string;
|
|
388
|
+
registrationTimestamp: string;
|
|
376
389
|
autolendEnabled: boolean;
|
|
377
390
|
ownerAddress: string;
|
|
378
391
|
userSignerAddress: string;
|
|
@@ -475,6 +488,7 @@ interface HistoricalTradeStats {
|
|
|
475
488
|
tradeCountPerpTaker: string;
|
|
476
489
|
paidFeeMaker: string;
|
|
477
490
|
paidFeeTaker: string;
|
|
491
|
+
earnedFee: string;
|
|
478
492
|
timestampOpen: string;
|
|
479
493
|
timestampClose: string;
|
|
480
494
|
}
|
|
@@ -676,6 +690,12 @@ declare enum EndpointsV1 {
|
|
|
676
690
|
GetUserReferralStats = "/v1/get_user_referral_stats",
|
|
677
691
|
GetUserTradeStats = "/v1/get_user_trade_stats"
|
|
678
692
|
}
|
|
693
|
+
declare enum SpotMarketStatus {
|
|
694
|
+
Halted = "halted",
|
|
695
|
+
ReduceOnly = "reduceOnly",
|
|
696
|
+
PostOnly = "postOnly",
|
|
697
|
+
Live = "live"
|
|
698
|
+
}
|
|
679
699
|
type Topic = {
|
|
680
700
|
type: "Market";
|
|
681
701
|
content: string;
|
|
@@ -1171,4 +1191,4 @@ declare const generateApiKey: () => _aptos_labs_ts_sdk.Ed25519Account;
|
|
|
1171
1191
|
declare const getTopicFromCommand: (data: WsCommand) => string;
|
|
1172
1192
|
declare const getTopicFromMessage: (data: WsMessage) => string;
|
|
1173
1193
|
|
|
1174
|
-
export { type AddApiKey, type AddApiKeyParams, type Address, AdminEndpoints, type ApiStatus, type BalanceChange, BaseEndpoints, type Borrow, type BorrowLendUpdate, type BorrowLending, type CancelAllPerpOrdersParams, type CancelPerpOrdersParams, type CanceledPerpOrders, type ChangePerpOrderPriceParams, type ChartCandle, ChartInterval, type ClaimDepositParams, type ClaimKickbackFeeParams, type ClaimReferralFee, type ClaimReferralFeesParams, type ClaimUserKickbackFee, Client, type Content, type CreateUserParams, type Deposit, type DepositToVaultParams, type DepositTokenParams, EndpointsV1, type ErrorResponse, type ExchangeConfig, ExchangeProxies, type FeeTier, type Fees, type FundingCheckpoint, type FundingPayment, type FundingRate, GLOBAL_DENOMINATOR, type GetBorrowLendingDataResponse, type GetChartCandlesInRangeRequest, type GetChartCandlesInRangeResponse, type GetPerpMarketsDataRequest, type GetPerpMarketsDataResponse, type GetPerpOrderBookDataRequest, type GetPerpOrderBookDataResponse, type GetPerpRecentTradesRequest, type GetPerpRecentTradesResponse, type GetPerpUserFillsRequest, type GetPerpUserFillsResponse, type GetPerpUserOrdersRequest, type GetPerpUserOrdersResponse, type GetPerpetualMarketsConfigResponse, type GetPriceIndexesResponse, type GetTokensConfigResponse, type GetUserAggregatedReferralStatsRequest, type GetUserAggregatedReferralStatsResponse, type GetUserAggregatedStatsRequest, type GetUserAggregatedStatsResponse, type GetUserDataRequest, type GetUserDataResponse, type GetUserDepositsRequest, type GetUserDepositsResponse, type GetUserFundingHistoryRequest, type GetUserFundingHistoryResponse, type GetUserPortfolioValueRequest, type GetUserPortfolioValueResponse, type GetUserReferralStatsHistoryRequest, type GetUserReferralStatsHistoryResponse, type GetUserTradeStatsHistoryRequest, type GetUserTradeStatsHistoryResponse, type GetUserWithdrawalsRequest, type GetUserWithdrawalsResponse, type GetUsersByAddressRequest, type GetUsersByAddressResponse, type HistoricalDeposit, type HistoricalFunding, type HistoricalReferralStats, type HistoricalTradeStats, type HistoricalWithdraw, type IGetChartCandlesInRange, type Lend, type LendTokenParams, type MarginStep, type MarketStatusChange, Network, type OracleUpdate, type OracleUpdates, type Order, type OrderFills, OrderSide, OrderStatus, OrderType, type OrderbookUpdate, type PaginationCursor, type PerpFill, type PerpMarketData, type PerpOrder, type PerpOrderBookData, type PerpOrderData, type PerpOrderDataForMarket, type PerpPosition, type PerpTrade, type PerpetualMarketConfigEntry, PerpetualMarketStatus, type PlaceMultiplePerpOrdersParams, type PlacePerpLimitOrder, type PlacePerpMarketOrder, type PlacePerpOrderParams, type PriceIndex, type RedeemTokenParams, type Referral, type ReferralUpdate, type RemoveApiKey, type RemoveApiKeyParams, type RepayBorrow, type ReplaceMultipleOrdersParams, type SetAlias, type SetAliasNameParams, type SetAutoLend, type SetAutolendParams, Status, type StatusResponse, type SubmitSponsoredTransactionRequest, type SubmitSponsoredTransactionResponse, TestFaucet, type TimeResponse, type TokenConfigEntry, type Topic, type Trade, TradeRole, type TradesUpdate, type TransferToUserParams, type UpdateUserFeeTier, type User, type UserAggregatedReferralStats, type UserAggregatedStats, type UserPortfolioValue, UserStatus, type UserTransfer, type UtilizationCurve, type Vault, type VaultInvestment, type Withdraw, type WithdrawFromVaultParams, type WithdrawLend, type WsBorrowLendUpdate, type WsCommand, type WsFill, type WsMessage, type WsOracleUpdates, type WsPerpMarketUpdates, type WsUserUpdates, generateApiKey, getRandomId, getTopicFromCommand, getTopicFromMessage, nowInMiliseconds, parseEntryFunctionAbi, sleep, toSystemValue };
|
|
1194
|
+
export { type AddApiKey, type AddApiKeyParams, type Address, AdminEndpoints, type ApiStatus, type BalanceChange, BaseEndpoints, type Borrow, type BorrowLendUpdate, type BorrowLending, type CancelAllPerpOrdersParams, type CancelPerpOrdersParams, type CanceledPerpOrders, type ChangePerpOrderPriceParams, type ChartCandle, ChartInterval, type ClaimDepositParams, type ClaimKickbackFeeParams, type ClaimReferralFee, type ClaimReferralFeesParams, type ClaimUserKickbackFee, Client, type Content, type CreateUserParams, type Deposit, type DepositToVaultParams, type DepositTokenParams, EndpointsV1, type ErrorResponse, type ExchangeConfig, ExchangeProxies, type FeeTier, type Fees, type FundingCheckpoint, type FundingPayment, type FundingRate, GLOBAL_DENOMINATOR, type GetBorrowLendingDataResponse, type GetChartCandlesInRangeRequest, type GetChartCandlesInRangeResponse, type GetPerpMarketsDataRequest, type GetPerpMarketsDataResponse, type GetPerpOrderBookDataRequest, type GetPerpOrderBookDataResponse, type GetPerpRecentTradesRequest, type GetPerpRecentTradesResponse, type GetPerpUserFillsRequest, type GetPerpUserFillsResponse, type GetPerpUserOrdersRequest, type GetPerpUserOrdersResponse, type GetPerpetualMarketsConfigResponse, type GetPriceIndexesResponse, type GetTokensConfigResponse, type GetUserAggregatedReferralStatsRequest, type GetUserAggregatedReferralStatsResponse, type GetUserAggregatedStatsRequest, type GetUserAggregatedStatsResponse, type GetUserDataRequest, type GetUserDataResponse, type GetUserDepositsRequest, type GetUserDepositsResponse, type GetUserFundingHistoryRequest, type GetUserFundingHistoryResponse, type GetUserPortfolioValueRequest, type GetUserPortfolioValueResponse, type GetUserReferralStatsHistoryRequest, type GetUserReferralStatsHistoryResponse, type GetUserTradeStatsHistoryRequest, type GetUserTradeStatsHistoryResponse, type GetUserWithdrawalsRequest, type GetUserWithdrawalsResponse, type GetUsersByAddressRequest, type GetUsersByAddressResponse, type HistoricalDeposit, type HistoricalFunding, type HistoricalReferralStats, type HistoricalTradeStats, type HistoricalWithdraw, type IGetChartCandlesInRange, type Lend, type LendTokenParams, type MarginStep, type MarketStatusChange, Network, type OracleUpdate, type OracleUpdates, type Order, type OrderFills, OrderSide, OrderStatus, OrderType, type OrderbookUpdate, type PaginationCursor, type PerpFill, type PerpMarketData, type PerpOrder, type PerpOrderBookData, type PerpOrderData, type PerpOrderDataForMarket, type PerpPosition, type PerpTrade, type PerpetualMarketConfigEntry, type PerpetualMarketStatus, type PlaceMultiplePerpOrdersParams, type PlacePerpLimitOrder, type PlacePerpMarketOrder, type PlacePerpOrderParams, type PriceIndex, type RedeemTokenParams, type Referral, type ReferralUpdate, type RemoveApiKey, type RemoveApiKeyParams, type RepayBorrow, type ReplaceMultipleOrdersParams, type SetAlias, type SetAliasNameParams, type SetAutoLend, type SetAutolendParams, SpotMarketStatus, Status, type StatusResponse, type SubmitSponsoredTransactionRequest, type SubmitSponsoredTransactionResponse, TestFaucet, type TimeResponse, type TokenConfigEntry, type Topic, type Trade, TradeRole, type TradesUpdate, type TransferToUserParams, type UpdateUserFeeTier, type User, type UserAggregatedReferralStats, type UserAggregatedStats, type UserPortfolioValue, UserStatus, type UserTransfer, type UtilizationCurve, type Vault, type VaultInvestment, type Withdraw, type WithdrawFromVaultParams, type WithdrawLend, type WsBorrowLendUpdate, type WsCommand, type WsFill, type WsMessage, type WsOracleUpdates, type WsPerpMarketUpdates, type WsUserUpdates, generateApiKey, getRandomId, getTopicFromCommand, getTopicFromMessage, nowInMiliseconds, parseEntryFunctionAbi, sleep, toSystemValue };
|
package/dist/index.d.ts
CHANGED
|
@@ -107,13 +107,22 @@ interface MarginStep {
|
|
|
107
107
|
maintenanceAmount: string;
|
|
108
108
|
maxPositionInUsd: string;
|
|
109
109
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
110
|
+
type PerpetualMarketStatus = {
|
|
111
|
+
type: "halted";
|
|
112
|
+
content?: undefined;
|
|
113
|
+
} | {
|
|
114
|
+
type: "reduceOnly";
|
|
115
|
+
content?: undefined;
|
|
116
|
+
} | {
|
|
117
|
+
type: "postOnly";
|
|
118
|
+
content?: undefined;
|
|
119
|
+
} | {
|
|
120
|
+
type: "live";
|
|
121
|
+
content?: undefined;
|
|
122
|
+
} | {
|
|
123
|
+
type: "settled";
|
|
124
|
+
content: string;
|
|
125
|
+
};
|
|
117
126
|
interface FundingRate {
|
|
118
127
|
enabled: boolean;
|
|
119
128
|
interestRateHourly: string;
|
|
@@ -319,6 +328,8 @@ interface GetUserAggregatedReferralStatsRequest {
|
|
|
319
328
|
interface UserAggregatedReferralStats {
|
|
320
329
|
referralOwnerId: string;
|
|
321
330
|
referralUserId: string;
|
|
331
|
+
referralUserAlias: string;
|
|
332
|
+
referralUserRegistrationTimestamp: string;
|
|
322
333
|
accReferralValue: string;
|
|
323
334
|
referredUserVolume: string;
|
|
324
335
|
}
|
|
@@ -343,6 +354,7 @@ interface UserAggregatedStats {
|
|
|
343
354
|
spotTradesCountTaker: string;
|
|
344
355
|
perpTradesCountMaker: string;
|
|
345
356
|
perpTradesCountTaker: string;
|
|
357
|
+
earnedFee: string;
|
|
346
358
|
}
|
|
347
359
|
interface GetUserAggregatedStatsResponse {
|
|
348
360
|
userAggregatedStats: UserAggregatedStats;
|
|
@@ -373,6 +385,7 @@ interface Vault {
|
|
|
373
385
|
interface User {
|
|
374
386
|
userId: string;
|
|
375
387
|
alias: string;
|
|
388
|
+
registrationTimestamp: string;
|
|
376
389
|
autolendEnabled: boolean;
|
|
377
390
|
ownerAddress: string;
|
|
378
391
|
userSignerAddress: string;
|
|
@@ -475,6 +488,7 @@ interface HistoricalTradeStats {
|
|
|
475
488
|
tradeCountPerpTaker: string;
|
|
476
489
|
paidFeeMaker: string;
|
|
477
490
|
paidFeeTaker: string;
|
|
491
|
+
earnedFee: string;
|
|
478
492
|
timestampOpen: string;
|
|
479
493
|
timestampClose: string;
|
|
480
494
|
}
|
|
@@ -676,6 +690,12 @@ declare enum EndpointsV1 {
|
|
|
676
690
|
GetUserReferralStats = "/v1/get_user_referral_stats",
|
|
677
691
|
GetUserTradeStats = "/v1/get_user_trade_stats"
|
|
678
692
|
}
|
|
693
|
+
declare enum SpotMarketStatus {
|
|
694
|
+
Halted = "halted",
|
|
695
|
+
ReduceOnly = "reduceOnly",
|
|
696
|
+
PostOnly = "postOnly",
|
|
697
|
+
Live = "live"
|
|
698
|
+
}
|
|
679
699
|
type Topic = {
|
|
680
700
|
type: "Market";
|
|
681
701
|
content: string;
|
|
@@ -1171,4 +1191,4 @@ declare const generateApiKey: () => _aptos_labs_ts_sdk.Ed25519Account;
|
|
|
1171
1191
|
declare const getTopicFromCommand: (data: WsCommand) => string;
|
|
1172
1192
|
declare const getTopicFromMessage: (data: WsMessage) => string;
|
|
1173
1193
|
|
|
1174
|
-
export { type AddApiKey, type AddApiKeyParams, type Address, AdminEndpoints, type ApiStatus, type BalanceChange, BaseEndpoints, type Borrow, type BorrowLendUpdate, type BorrowLending, type CancelAllPerpOrdersParams, type CancelPerpOrdersParams, type CanceledPerpOrders, type ChangePerpOrderPriceParams, type ChartCandle, ChartInterval, type ClaimDepositParams, type ClaimKickbackFeeParams, type ClaimReferralFee, type ClaimReferralFeesParams, type ClaimUserKickbackFee, Client, type Content, type CreateUserParams, type Deposit, type DepositToVaultParams, type DepositTokenParams, EndpointsV1, type ErrorResponse, type ExchangeConfig, ExchangeProxies, type FeeTier, type Fees, type FundingCheckpoint, type FundingPayment, type FundingRate, GLOBAL_DENOMINATOR, type GetBorrowLendingDataResponse, type GetChartCandlesInRangeRequest, type GetChartCandlesInRangeResponse, type GetPerpMarketsDataRequest, type GetPerpMarketsDataResponse, type GetPerpOrderBookDataRequest, type GetPerpOrderBookDataResponse, type GetPerpRecentTradesRequest, type GetPerpRecentTradesResponse, type GetPerpUserFillsRequest, type GetPerpUserFillsResponse, type GetPerpUserOrdersRequest, type GetPerpUserOrdersResponse, type GetPerpetualMarketsConfigResponse, type GetPriceIndexesResponse, type GetTokensConfigResponse, type GetUserAggregatedReferralStatsRequest, type GetUserAggregatedReferralStatsResponse, type GetUserAggregatedStatsRequest, type GetUserAggregatedStatsResponse, type GetUserDataRequest, type GetUserDataResponse, type GetUserDepositsRequest, type GetUserDepositsResponse, type GetUserFundingHistoryRequest, type GetUserFundingHistoryResponse, type GetUserPortfolioValueRequest, type GetUserPortfolioValueResponse, type GetUserReferralStatsHistoryRequest, type GetUserReferralStatsHistoryResponse, type GetUserTradeStatsHistoryRequest, type GetUserTradeStatsHistoryResponse, type GetUserWithdrawalsRequest, type GetUserWithdrawalsResponse, type GetUsersByAddressRequest, type GetUsersByAddressResponse, type HistoricalDeposit, type HistoricalFunding, type HistoricalReferralStats, type HistoricalTradeStats, type HistoricalWithdraw, type IGetChartCandlesInRange, type Lend, type LendTokenParams, type MarginStep, type MarketStatusChange, Network, type OracleUpdate, type OracleUpdates, type Order, type OrderFills, OrderSide, OrderStatus, OrderType, type OrderbookUpdate, type PaginationCursor, type PerpFill, type PerpMarketData, type PerpOrder, type PerpOrderBookData, type PerpOrderData, type PerpOrderDataForMarket, type PerpPosition, type PerpTrade, type PerpetualMarketConfigEntry, PerpetualMarketStatus, type PlaceMultiplePerpOrdersParams, type PlacePerpLimitOrder, type PlacePerpMarketOrder, type PlacePerpOrderParams, type PriceIndex, type RedeemTokenParams, type Referral, type ReferralUpdate, type RemoveApiKey, type RemoveApiKeyParams, type RepayBorrow, type ReplaceMultipleOrdersParams, type SetAlias, type SetAliasNameParams, type SetAutoLend, type SetAutolendParams, Status, type StatusResponse, type SubmitSponsoredTransactionRequest, type SubmitSponsoredTransactionResponse, TestFaucet, type TimeResponse, type TokenConfigEntry, type Topic, type Trade, TradeRole, type TradesUpdate, type TransferToUserParams, type UpdateUserFeeTier, type User, type UserAggregatedReferralStats, type UserAggregatedStats, type UserPortfolioValue, UserStatus, type UserTransfer, type UtilizationCurve, type Vault, type VaultInvestment, type Withdraw, type WithdrawFromVaultParams, type WithdrawLend, type WsBorrowLendUpdate, type WsCommand, type WsFill, type WsMessage, type WsOracleUpdates, type WsPerpMarketUpdates, type WsUserUpdates, generateApiKey, getRandomId, getTopicFromCommand, getTopicFromMessage, nowInMiliseconds, parseEntryFunctionAbi, sleep, toSystemValue };
|
|
1194
|
+
export { type AddApiKey, type AddApiKeyParams, type Address, AdminEndpoints, type ApiStatus, type BalanceChange, BaseEndpoints, type Borrow, type BorrowLendUpdate, type BorrowLending, type CancelAllPerpOrdersParams, type CancelPerpOrdersParams, type CanceledPerpOrders, type ChangePerpOrderPriceParams, type ChartCandle, ChartInterval, type ClaimDepositParams, type ClaimKickbackFeeParams, type ClaimReferralFee, type ClaimReferralFeesParams, type ClaimUserKickbackFee, Client, type Content, type CreateUserParams, type Deposit, type DepositToVaultParams, type DepositTokenParams, EndpointsV1, type ErrorResponse, type ExchangeConfig, ExchangeProxies, type FeeTier, type Fees, type FundingCheckpoint, type FundingPayment, type FundingRate, GLOBAL_DENOMINATOR, type GetBorrowLendingDataResponse, type GetChartCandlesInRangeRequest, type GetChartCandlesInRangeResponse, type GetPerpMarketsDataRequest, type GetPerpMarketsDataResponse, type GetPerpOrderBookDataRequest, type GetPerpOrderBookDataResponse, type GetPerpRecentTradesRequest, type GetPerpRecentTradesResponse, type GetPerpUserFillsRequest, type GetPerpUserFillsResponse, type GetPerpUserOrdersRequest, type GetPerpUserOrdersResponse, type GetPerpetualMarketsConfigResponse, type GetPriceIndexesResponse, type GetTokensConfigResponse, type GetUserAggregatedReferralStatsRequest, type GetUserAggregatedReferralStatsResponse, type GetUserAggregatedStatsRequest, type GetUserAggregatedStatsResponse, type GetUserDataRequest, type GetUserDataResponse, type GetUserDepositsRequest, type GetUserDepositsResponse, type GetUserFundingHistoryRequest, type GetUserFundingHistoryResponse, type GetUserPortfolioValueRequest, type GetUserPortfolioValueResponse, type GetUserReferralStatsHistoryRequest, type GetUserReferralStatsHistoryResponse, type GetUserTradeStatsHistoryRequest, type GetUserTradeStatsHistoryResponse, type GetUserWithdrawalsRequest, type GetUserWithdrawalsResponse, type GetUsersByAddressRequest, type GetUsersByAddressResponse, type HistoricalDeposit, type HistoricalFunding, type HistoricalReferralStats, type HistoricalTradeStats, type HistoricalWithdraw, type IGetChartCandlesInRange, type Lend, type LendTokenParams, type MarginStep, type MarketStatusChange, Network, type OracleUpdate, type OracleUpdates, type Order, type OrderFills, OrderSide, OrderStatus, OrderType, type OrderbookUpdate, type PaginationCursor, type PerpFill, type PerpMarketData, type PerpOrder, type PerpOrderBookData, type PerpOrderData, type PerpOrderDataForMarket, type PerpPosition, type PerpTrade, type PerpetualMarketConfigEntry, type PerpetualMarketStatus, type PlaceMultiplePerpOrdersParams, type PlacePerpLimitOrder, type PlacePerpMarketOrder, type PlacePerpOrderParams, type PriceIndex, type RedeemTokenParams, type Referral, type ReferralUpdate, type RemoveApiKey, type RemoveApiKeyParams, type RepayBorrow, type ReplaceMultipleOrdersParams, type SetAlias, type SetAliasNameParams, type SetAutoLend, type SetAutolendParams, SpotMarketStatus, Status, type StatusResponse, type SubmitSponsoredTransactionRequest, type SubmitSponsoredTransactionResponse, TestFaucet, type TimeResponse, type TokenConfigEntry, type Topic, type Trade, TradeRole, type TradesUpdate, type TransferToUserParams, type UpdateUserFeeTier, type User, type UserAggregatedReferralStats, type UserAggregatedStats, type UserPortfolioValue, UserStatus, type UserTransfer, type UtilizationCurve, type Vault, type VaultInvestment, type Withdraw, type WithdrawFromVaultParams, type WithdrawLend, type WsBorrowLendUpdate, type WsCommand, type WsFill, type WsMessage, type WsOracleUpdates, type WsPerpMarketUpdates, type WsUserUpdates, generateApiKey, getRandomId, getTopicFromCommand, getTopicFromMessage, nowInMiliseconds, parseEntryFunctionAbi, sleep, toSystemValue };
|
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import { v4 as uuidv4 } from "uuid";
|
|
|
16
16
|
|
|
17
17
|
// generated_types/addApiKey.ts
|
|
18
18
|
var ABI = {
|
|
19
|
-
"address": "
|
|
19
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
20
20
|
"name": "add_api_key",
|
|
21
21
|
"friends": [],
|
|
22
22
|
"exposed_functions": [
|
|
@@ -41,7 +41,7 @@ var addApiKey_default = ABI;
|
|
|
41
41
|
|
|
42
42
|
// generated_types/cancelAllPerpOrders.ts
|
|
43
43
|
var ABI2 = {
|
|
44
|
-
"address": "
|
|
44
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
45
45
|
"name": "cancel_all_perp_orders",
|
|
46
46
|
"friends": [],
|
|
47
47
|
"exposed_functions": [
|
|
@@ -64,7 +64,7 @@ var cancelAllPerpOrders_default = ABI2;
|
|
|
64
64
|
|
|
65
65
|
// generated_types/cancelPerpOrders.ts
|
|
66
66
|
var ABI3 = {
|
|
67
|
-
"address": "
|
|
67
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
68
68
|
"name": "cancel_perp_orders",
|
|
69
69
|
"friends": [],
|
|
70
70
|
"exposed_functions": [
|
|
@@ -89,7 +89,7 @@ var cancelPerpOrders_default = ABI3;
|
|
|
89
89
|
|
|
90
90
|
// generated_types/createUser.ts
|
|
91
91
|
var ABI4 = {
|
|
92
|
-
"address": "
|
|
92
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
93
93
|
"name": "create_user",
|
|
94
94
|
"friends": [],
|
|
95
95
|
"exposed_functions": [
|
|
@@ -114,7 +114,7 @@ var createUser_default = ABI4;
|
|
|
114
114
|
|
|
115
115
|
// generated_types/depositToVault.ts
|
|
116
116
|
var ABI5 = {
|
|
117
|
-
"address": "
|
|
117
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
118
118
|
"name": "deposit_to_vault",
|
|
119
119
|
"friends": [],
|
|
120
120
|
"exposed_functions": [
|
|
@@ -139,7 +139,7 @@ var depositToVault_default = ABI5;
|
|
|
139
139
|
|
|
140
140
|
// generated_types/depositToken.ts
|
|
141
141
|
var ABI6 = {
|
|
142
|
-
"address": "
|
|
142
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
143
143
|
"name": "deposit_token",
|
|
144
144
|
"friends": [],
|
|
145
145
|
"exposed_functions": [
|
|
@@ -164,7 +164,7 @@ var depositToken_default = ABI6;
|
|
|
164
164
|
|
|
165
165
|
// generated_types/lendToken.ts
|
|
166
166
|
var ABI7 = {
|
|
167
|
-
"address": "
|
|
167
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
168
168
|
"name": "lend_token",
|
|
169
169
|
"friends": [],
|
|
170
170
|
"exposed_functions": [
|
|
@@ -190,7 +190,7 @@ var lendToken_default = ABI7;
|
|
|
190
190
|
|
|
191
191
|
// generated_types/placePerpLimitOrder.ts
|
|
192
192
|
var ABI8 = {
|
|
193
|
-
"address": "
|
|
193
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
194
194
|
"name": "place_perp_limit_order",
|
|
195
195
|
"friends": [],
|
|
196
196
|
"exposed_functions": [
|
|
@@ -219,7 +219,7 @@ var placePerpLimitOrder_default = ABI8;
|
|
|
219
219
|
|
|
220
220
|
// generated_types/changePerpOrderPrice.ts
|
|
221
221
|
var ABI9 = {
|
|
222
|
-
"address": "
|
|
222
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
223
223
|
"name": "change_perp_order_price",
|
|
224
224
|
"friends": [],
|
|
225
225
|
"exposed_functions": [
|
|
@@ -246,7 +246,7 @@ var changePerpOrderPrice_default = ABI9;
|
|
|
246
246
|
|
|
247
247
|
// generated_types/placePerpMarketOrder.ts
|
|
248
248
|
var ABI10 = {
|
|
249
|
-
"address": "
|
|
249
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
250
250
|
"name": "place_perp_market_order",
|
|
251
251
|
"friends": [],
|
|
252
252
|
"exposed_functions": [
|
|
@@ -274,7 +274,7 @@ var placePerpMarketOrder_default = ABI10;
|
|
|
274
274
|
|
|
275
275
|
// generated_types/redeemToken.ts
|
|
276
276
|
var ABI11 = {
|
|
277
|
-
"address": "
|
|
277
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
278
278
|
"name": "redeem_token",
|
|
279
279
|
"friends": [],
|
|
280
280
|
"exposed_functions": [
|
|
@@ -300,7 +300,7 @@ var redeemToken_default = ABI11;
|
|
|
300
300
|
|
|
301
301
|
// generated_types/removeApiKey.ts
|
|
302
302
|
var ABI12 = {
|
|
303
|
-
"address": "
|
|
303
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
304
304
|
"name": "remove_api_key",
|
|
305
305
|
"friends": [],
|
|
306
306
|
"exposed_functions": [
|
|
@@ -324,7 +324,7 @@ var removeApiKey_default = ABI12;
|
|
|
324
324
|
|
|
325
325
|
// generated_types/setAliasName.ts
|
|
326
326
|
var ABI13 = {
|
|
327
|
-
"address": "
|
|
327
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
328
328
|
"name": "set_alias_name",
|
|
329
329
|
"friends": [],
|
|
330
330
|
"exposed_functions": [
|
|
@@ -348,7 +348,7 @@ var setAliasName_default = ABI13;
|
|
|
348
348
|
|
|
349
349
|
// generated_types/setAutolend.ts
|
|
350
350
|
var ABI14 = {
|
|
351
|
-
"address": "
|
|
351
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
352
352
|
"name": "set_autolend",
|
|
353
353
|
"friends": [],
|
|
354
354
|
"exposed_functions": [
|
|
@@ -372,7 +372,7 @@ var setAutolend_default = ABI14;
|
|
|
372
372
|
|
|
373
373
|
// generated_types/claimReferralFees.ts
|
|
374
374
|
var ABI15 = {
|
|
375
|
-
"address": "
|
|
375
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
376
376
|
"name": "claim_referral_fees",
|
|
377
377
|
"friends": [],
|
|
378
378
|
"exposed_functions": [
|
|
@@ -396,7 +396,7 @@ var claimReferralFees_default = ABI15;
|
|
|
396
396
|
|
|
397
397
|
// generated_types/transferToUser.ts
|
|
398
398
|
var ABI16 = {
|
|
399
|
-
"address": "
|
|
399
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
400
400
|
"name": "transfer_to_user",
|
|
401
401
|
"friends": [],
|
|
402
402
|
"exposed_functions": [
|
|
@@ -423,7 +423,7 @@ var transferToUser_default = ABI16;
|
|
|
423
423
|
|
|
424
424
|
// generated_types/placeMultiplePerpOrders.ts
|
|
425
425
|
var ABI17 = {
|
|
426
|
-
"address": "
|
|
426
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
427
427
|
"name": "place_multiple_perp_orders",
|
|
428
428
|
"friends": [],
|
|
429
429
|
"exposed_functions": [
|
|
@@ -452,7 +452,7 @@ var placeMultiplePerpOrders_default = ABI17;
|
|
|
452
452
|
|
|
453
453
|
// generated_types/claimKickbackFee.ts
|
|
454
454
|
var ABI18 = {
|
|
455
|
-
"address": "
|
|
455
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
456
456
|
"name": "claim_kickback_fee",
|
|
457
457
|
"friends": [],
|
|
458
458
|
"exposed_functions": [
|
|
@@ -475,7 +475,7 @@ var claimKickbackFee_default = ABI18;
|
|
|
475
475
|
|
|
476
476
|
// generated_types/replaceMultipleOrders.ts
|
|
477
477
|
var ABI19 = {
|
|
478
|
-
"address": "
|
|
478
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
479
479
|
"name": "replace_multiple_orders",
|
|
480
480
|
"friends": [],
|
|
481
481
|
"exposed_functions": [
|
|
@@ -503,7 +503,7 @@ var replaceMultipleOrders_default = ABI19;
|
|
|
503
503
|
|
|
504
504
|
// generated_types/claimDeposit.ts
|
|
505
505
|
var ABI20 = {
|
|
506
|
-
"address": "
|
|
506
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
507
507
|
"name": "claim_deposit",
|
|
508
508
|
"friends": [],
|
|
509
509
|
"exposed_functions": [
|
|
@@ -526,14 +526,6 @@ var ABI20 = {
|
|
|
526
526
|
var claimDeposit_default = ABI20;
|
|
527
527
|
|
|
528
528
|
// generated_types/typeshareTypes.ts
|
|
529
|
-
var PerpetualMarketStatus = /* @__PURE__ */ ((PerpetualMarketStatus2) => {
|
|
530
|
-
PerpetualMarketStatus2["Halted"] = "halted";
|
|
531
|
-
PerpetualMarketStatus2["ReduceOnly"] = "reduceOnly";
|
|
532
|
-
PerpetualMarketStatus2["PostOnly"] = "postOnly";
|
|
533
|
-
PerpetualMarketStatus2["Live"] = "live";
|
|
534
|
-
PerpetualMarketStatus2["Settled"] = "settled";
|
|
535
|
-
return PerpetualMarketStatus2;
|
|
536
|
-
})(PerpetualMarketStatus || {});
|
|
537
529
|
var ChartInterval = /* @__PURE__ */ ((ChartInterval2) => {
|
|
538
530
|
ChartInterval2["OneMinute"] = "OneMinute";
|
|
539
531
|
ChartInterval2["FiveMinutes"] = "FiveMinutes";
|
|
@@ -603,6 +595,13 @@ var EndpointsV1 = /* @__PURE__ */ ((EndpointsV12) => {
|
|
|
603
595
|
EndpointsV12["GetUserTradeStats"] = "/v1/get_user_trade_stats";
|
|
604
596
|
return EndpointsV12;
|
|
605
597
|
})(EndpointsV1 || {});
|
|
598
|
+
var SpotMarketStatus = /* @__PURE__ */ ((SpotMarketStatus2) => {
|
|
599
|
+
SpotMarketStatus2["Halted"] = "halted";
|
|
600
|
+
SpotMarketStatus2["ReduceOnly"] = "reduceOnly";
|
|
601
|
+
SpotMarketStatus2["PostOnly"] = "postOnly";
|
|
602
|
+
SpotMarketStatus2["Live"] = "live";
|
|
603
|
+
return SpotMarketStatus2;
|
|
604
|
+
})(SpotMarketStatus || {});
|
|
606
605
|
var UserStatus = /* @__PURE__ */ ((UserStatus2) => {
|
|
607
606
|
UserStatus2["Active"] = "Active";
|
|
608
607
|
UserStatus2["Locked"] = "Locked";
|
|
@@ -611,7 +610,7 @@ var UserStatus = /* @__PURE__ */ ((UserStatus2) => {
|
|
|
611
610
|
|
|
612
611
|
// generated_types/withdrawFromVault.ts
|
|
613
612
|
var ABI21 = {
|
|
614
|
-
"address": "
|
|
613
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
615
614
|
"name": "withdraw_from_vault",
|
|
616
615
|
"friends": [],
|
|
617
616
|
"exposed_functions": [
|
|
@@ -1784,7 +1783,7 @@ import { createEntryPayload } from "@thalalabs/surf";
|
|
|
1784
1783
|
|
|
1785
1784
|
// generated_types/faucetEntrypoints.ts
|
|
1786
1785
|
var ABI22 = {
|
|
1787
|
-
"address": "
|
|
1786
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
1788
1787
|
"name": "faucet_entrypoints",
|
|
1789
1788
|
"friends": [],
|
|
1790
1789
|
"exposed_functions": [
|
|
@@ -1819,7 +1818,7 @@ var faucetEntrypoints_default = ABI22;
|
|
|
1819
1818
|
|
|
1820
1819
|
// generated_types/testFaucet.ts
|
|
1821
1820
|
var ABI23 = {
|
|
1822
|
-
"address": "
|
|
1821
|
+
"address": "0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea",
|
|
1823
1822
|
"name": "test_faucet",
|
|
1824
1823
|
"friends": [],
|
|
1825
1824
|
"exposed_functions": [
|
|
@@ -1856,7 +1855,7 @@ var ABI23 = {
|
|
|
1856
1855
|
],
|
|
1857
1856
|
"return": [
|
|
1858
1857
|
"0x1::object::ConstructorRef",
|
|
1859
|
-
"0x1::object::Object<
|
|
1858
|
+
"0x1::object::Object<0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea::test_faucet::Token>"
|
|
1860
1859
|
]
|
|
1861
1860
|
},
|
|
1862
1861
|
{
|
|
@@ -2007,7 +2006,7 @@ var ABI23 = {
|
|
|
2007
2006
|
"0x1::object::Object<0x1::fungible_asset::Metadata>"
|
|
2008
2007
|
],
|
|
2009
2008
|
"return": [
|
|
2010
|
-
"
|
|
2009
|
+
"0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea::test_faucet::FaucetToken"
|
|
2011
2010
|
]
|
|
2012
2011
|
}
|
|
2013
2012
|
],
|
|
@@ -2039,7 +2038,7 @@ var ABI23 = {
|
|
|
2039
2038
|
"fields": [
|
|
2040
2039
|
{
|
|
2041
2040
|
"name": "tokens",
|
|
2042
|
-
"type": "0x1::smart_table::SmartTable<vector<u8>,
|
|
2041
|
+
"type": "0x1::smart_table::SmartTable<vector<u8>, 0x2bd334b9c16a218d96d0623815426b1431111c83f4884a7f66d81fce46176fea::test_faucet::FaucetToken>"
|
|
2043
2042
|
}
|
|
2044
2043
|
]
|
|
2045
2044
|
},
|
|
@@ -2134,7 +2133,7 @@ export {
|
|
|
2134
2133
|
OrderSide,
|
|
2135
2134
|
OrderStatus,
|
|
2136
2135
|
OrderType,
|
|
2137
|
-
|
|
2136
|
+
SpotMarketStatus,
|
|
2138
2137
|
Status,
|
|
2139
2138
|
TestFaucet,
|
|
2140
2139
|
TradeRole,
|