@grvt/client 1.4.25 → 1.4.27
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/interfaces/codegen/data.interface.d.ts +30 -3
- package/interfaces/codegen/hex-string-map.js +5 -1
- package/interfaces/codegen/schema-maps/api_vault_investor_history.js +2 -2
- package/interfaces/codegen/schema-maps/api_vault_view_redemption_queue_response.js +2 -4
- package/interfaces/codegen/schema-maps/epoch_lp_point.d.ts +2 -0
- package/interfaces/codegen/schema-maps/epoch_lp_point.js +20 -0
- package/interfaces/codegen/schema-maps/index.d.ts +2 -0
- package/interfaces/codegen/schema-maps/index.js +2 -0
- package/interfaces/codegen/schema-maps/lp_sub_account_snapshot.d.ts +2 -0
- package/interfaces/codegen/schema-maps/lp_sub_account_snapshot.js +46 -0
- package/interfaces/codegen/schema-maps/vault_redemption_req_view.js +4 -2
- package/package.json +1 -1
|
@@ -958,7 +958,7 @@ export interface IApiVaultInvestRequest {
|
|
|
958
958
|
}
|
|
959
959
|
export interface IApiVaultInvestorHistory {
|
|
960
960
|
event_time?: string;
|
|
961
|
-
|
|
961
|
+
off_chain_account_id?: string;
|
|
962
962
|
vault_id?: string;
|
|
963
963
|
type?: ETransactionType;
|
|
964
964
|
price?: string;
|
|
@@ -1016,8 +1016,7 @@ export interface IApiVaultViewRedemptionQueueResponse {
|
|
|
1016
1016
|
redemption_queue?: IVaultRedemptionReqView[];
|
|
1017
1017
|
pending_redemption_token_count?: string;
|
|
1018
1018
|
urgent_redemption_token_count?: string;
|
|
1019
|
-
|
|
1020
|
-
currency?: string;
|
|
1019
|
+
auto_redeemable_balance?: string;
|
|
1021
1020
|
}
|
|
1022
1021
|
export interface IApiWithdrawalHistoryRequest {
|
|
1023
1022
|
currency?: string[];
|
|
@@ -1190,6 +1189,13 @@ export interface IEpochBadgePointDistribution {
|
|
|
1190
1189
|
total_point?: string;
|
|
1191
1190
|
count?: number;
|
|
1192
1191
|
}
|
|
1192
|
+
export interface IEpochLPPoint {
|
|
1193
|
+
epoch?: string;
|
|
1194
|
+
main_account_id?: string;
|
|
1195
|
+
lp_asset?: string;
|
|
1196
|
+
liquidity_score?: string;
|
|
1197
|
+
vault_liquidity_score?: string;
|
|
1198
|
+
}
|
|
1193
1199
|
export interface IError {
|
|
1194
1200
|
code?: number;
|
|
1195
1201
|
message?: string;
|
|
@@ -1310,6 +1316,26 @@ export interface ILPSnapshot {
|
|
|
1310
1316
|
liquidity_score?: string;
|
|
1311
1317
|
calculate_at?: string;
|
|
1312
1318
|
}
|
|
1319
|
+
export interface ILPSubAccountSnapshot {
|
|
1320
|
+
sub_account_id?: string;
|
|
1321
|
+
is_vault?: boolean;
|
|
1322
|
+
main_account_id?: string;
|
|
1323
|
+
lp_asset?: string;
|
|
1324
|
+
underlying_multiplier?: string;
|
|
1325
|
+
maker_trading_volume?: string;
|
|
1326
|
+
bid_fast_market_multiplier?: number;
|
|
1327
|
+
bid_prices?: string[];
|
|
1328
|
+
bid_sizes?: string[];
|
|
1329
|
+
bid_depth_scores?: string[];
|
|
1330
|
+
bid_spread_scores?: number[];
|
|
1331
|
+
ask_fast_market_multiplier?: number;
|
|
1332
|
+
ask_prices?: string[];
|
|
1333
|
+
ask_sizes?: string[];
|
|
1334
|
+
ask_depth_scores?: string[];
|
|
1335
|
+
ask_spread_scores?: number[];
|
|
1336
|
+
liquidity_score?: string;
|
|
1337
|
+
calculate_at?: string;
|
|
1338
|
+
}
|
|
1313
1339
|
export interface ILpInfoEntry {
|
|
1314
1340
|
lp_address?: string;
|
|
1315
1341
|
info?: IVaultLpInfo;
|
|
@@ -1780,6 +1806,7 @@ export interface IVaultRedemptionReqView {
|
|
|
1780
1806
|
num_lp_tokens?: string;
|
|
1781
1807
|
max_redemption_period_timestamp?: string;
|
|
1782
1808
|
age_category?: EVaultRedemptionReqAgeCategory;
|
|
1809
|
+
investor_id?: string;
|
|
1783
1810
|
}
|
|
1784
1811
|
export interface IVaultRiskMetric {
|
|
1785
1812
|
vault_id?: string;
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.HexStringMap = void 0;
|
|
4
4
|
// HexStringMap contains all bigints the should be encoded/decoded to/from hex strings
|
|
5
5
|
exports.HexStringMap = [
|
|
6
|
+
'ask_depth_scores',
|
|
7
|
+
'bid_depth_scores',
|
|
6
8
|
'brokered_trading_volume',
|
|
7
9
|
'direct_invite_trading_volume',
|
|
8
10
|
'from_account_id',
|
|
@@ -10,6 +12,7 @@ exports.HexStringMap = [
|
|
|
10
12
|
'group_id',
|
|
11
13
|
'indirect_invite_trading_volume',
|
|
12
14
|
'instrument_hash',
|
|
15
|
+
'investor_id',
|
|
13
16
|
'l_1_hash',
|
|
14
17
|
'l_2_hash',
|
|
15
18
|
'liquidity_score',
|
|
@@ -26,5 +29,6 @@ exports.HexStringMap = [
|
|
|
26
29
|
'to_eth_address',
|
|
27
30
|
'total_trade_volume',
|
|
28
31
|
'trading_volume',
|
|
29
|
-
'tx_hash'
|
|
32
|
+
'tx_hash',
|
|
33
|
+
'vault_liquidity_score'
|
|
30
34
|
];
|
|
@@ -5,7 +5,7 @@ exports.API_VAULT_INVESTOR_HISTORY_MAP = void 0;
|
|
|
5
5
|
exports.API_VAULT_INVESTOR_HISTORY_MAP = Object.freeze({
|
|
6
6
|
FULL_TO_LITE: {
|
|
7
7
|
event_time: 'et',
|
|
8
|
-
|
|
8
|
+
off_chain_account_id: 'oc',
|
|
9
9
|
vault_id: 'vi',
|
|
10
10
|
type: 't',
|
|
11
11
|
price: 'p',
|
|
@@ -15,7 +15,7 @@ exports.API_VAULT_INVESTOR_HISTORY_MAP = Object.freeze({
|
|
|
15
15
|
},
|
|
16
16
|
LITE_TO_FULL: {
|
|
17
17
|
et: 'event_time',
|
|
18
|
-
|
|
18
|
+
oc: 'off_chain_account_id',
|
|
19
19
|
vi: 'vault_id',
|
|
20
20
|
t: 'type',
|
|
21
21
|
p: 'price',
|
|
@@ -8,14 +8,12 @@ exports.API_VAULT_VIEW_REDEMPTION_QUEUE_RESPONSE_MAP = Object.freeze({
|
|
|
8
8
|
redemption_queue: ['rq', [vault_redemption_req_view_1.VAULT_REDEMPTION_REQ_VIEW_MAP.FULL_TO_LITE]],
|
|
9
9
|
pending_redemption_token_count: 'pr',
|
|
10
10
|
urgent_redemption_token_count: 'ur',
|
|
11
|
-
|
|
12
|
-
currency: 'c'
|
|
11
|
+
auto_redeemable_balance: 'ar'
|
|
13
12
|
},
|
|
14
13
|
LITE_TO_FULL: {
|
|
15
14
|
rq: ['redemption_queue', [vault_redemption_req_view_1.VAULT_REDEMPTION_REQ_VIEW_MAP.LITE_TO_FULL]],
|
|
16
15
|
pr: 'pending_redemption_token_count',
|
|
17
16
|
ur: 'urgent_redemption_token_count',
|
|
18
|
-
ar: '
|
|
19
|
-
c: 'currency'
|
|
17
|
+
ar: 'auto_redeemable_balance'
|
|
20
18
|
}
|
|
21
19
|
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EPOCH_LP_POINT_MAP = void 0;
|
|
4
|
+
// Schema map for the 'EPOCH_LP_POINT' struct.
|
|
5
|
+
exports.EPOCH_LP_POINT_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
epoch: 'e',
|
|
8
|
+
main_account_id: 'ma',
|
|
9
|
+
lp_asset: 'la',
|
|
10
|
+
liquidity_score: 'ls',
|
|
11
|
+
vault_liquidity_score: 'vl'
|
|
12
|
+
},
|
|
13
|
+
LITE_TO_FULL: {
|
|
14
|
+
e: 'epoch',
|
|
15
|
+
ma: 'main_account_id',
|
|
16
|
+
la: 'lp_asset',
|
|
17
|
+
ls: 'liquidity_score',
|
|
18
|
+
vl: 'vault_liquidity_score'
|
|
19
|
+
}
|
|
20
|
+
});
|
|
@@ -199,6 +199,7 @@ export * from './empty_request';
|
|
|
199
199
|
export * from './epoch';
|
|
200
200
|
export * from './epoch_badge';
|
|
201
201
|
export * from './epoch_badge_point_distribution';
|
|
202
|
+
export * from './epoch_lp_point';
|
|
202
203
|
export * from './error';
|
|
203
204
|
export * from './flat_private_trade';
|
|
204
205
|
export * from './flat_referral';
|
|
@@ -212,6 +213,7 @@ export * from './jsonrpc_request';
|
|
|
212
213
|
export * from './jsonrpc_response';
|
|
213
214
|
export * from './lp_point';
|
|
214
215
|
export * from './lp_snapshot';
|
|
216
|
+
export * from './lp_sub_account_snapshot';
|
|
215
217
|
export * from './lp_info_entry';
|
|
216
218
|
export * from './main_acc_id_request';
|
|
217
219
|
export * from './main_account_leaderboard_entry';
|
|
@@ -215,6 +215,7 @@ __exportStar(require("./empty_request"), exports);
|
|
|
215
215
|
__exportStar(require("./epoch"), exports);
|
|
216
216
|
__exportStar(require("./epoch_badge"), exports);
|
|
217
217
|
__exportStar(require("./epoch_badge_point_distribution"), exports);
|
|
218
|
+
__exportStar(require("./epoch_lp_point"), exports);
|
|
218
219
|
__exportStar(require("./error"), exports);
|
|
219
220
|
__exportStar(require("./flat_private_trade"), exports);
|
|
220
221
|
__exportStar(require("./flat_referral"), exports);
|
|
@@ -228,6 +229,7 @@ __exportStar(require("./jsonrpc_request"), exports);
|
|
|
228
229
|
__exportStar(require("./jsonrpc_response"), exports);
|
|
229
230
|
__exportStar(require("./lp_point"), exports);
|
|
230
231
|
__exportStar(require("./lp_snapshot"), exports);
|
|
232
|
+
__exportStar(require("./lp_sub_account_snapshot"), exports);
|
|
231
233
|
__exportStar(require("./lp_info_entry"), exports);
|
|
232
234
|
__exportStar(require("./main_acc_id_request"), exports);
|
|
233
235
|
__exportStar(require("./main_account_leaderboard_entry"), exports);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LP_SUB_ACCOUNT_SNAPSHOT_MAP = void 0;
|
|
4
|
+
// Schema map for the 'LP_SUB_ACCOUNT_SNAPSHOT' struct.
|
|
5
|
+
exports.LP_SUB_ACCOUNT_SNAPSHOT_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
sub_account_id: 'sa',
|
|
8
|
+
is_vault: 'iv',
|
|
9
|
+
main_account_id: 'ma',
|
|
10
|
+
lp_asset: 'la',
|
|
11
|
+
underlying_multiplier: 'um',
|
|
12
|
+
maker_trading_volume: 'mt',
|
|
13
|
+
bid_fast_market_multiplier: 'bf',
|
|
14
|
+
bid_prices: 'bp',
|
|
15
|
+
bid_sizes: 'bs',
|
|
16
|
+
bid_depth_scores: 'bd',
|
|
17
|
+
bid_spread_scores: 'bs1',
|
|
18
|
+
ask_fast_market_multiplier: 'af',
|
|
19
|
+
ask_prices: 'ap',
|
|
20
|
+
ask_sizes: 'as',
|
|
21
|
+
ask_depth_scores: 'ad',
|
|
22
|
+
ask_spread_scores: 'as1',
|
|
23
|
+
liquidity_score: 'ls',
|
|
24
|
+
calculate_at: 'ca'
|
|
25
|
+
},
|
|
26
|
+
LITE_TO_FULL: {
|
|
27
|
+
sa: 'sub_account_id',
|
|
28
|
+
iv: 'is_vault',
|
|
29
|
+
ma: 'main_account_id',
|
|
30
|
+
la: 'lp_asset',
|
|
31
|
+
um: 'underlying_multiplier',
|
|
32
|
+
mt: 'maker_trading_volume',
|
|
33
|
+
bf: 'bid_fast_market_multiplier',
|
|
34
|
+
bp: 'bid_prices',
|
|
35
|
+
bs: 'bid_sizes',
|
|
36
|
+
bd: 'bid_depth_scores',
|
|
37
|
+
bs1: 'bid_spread_scores',
|
|
38
|
+
af: 'ask_fast_market_multiplier',
|
|
39
|
+
ap: 'ask_prices',
|
|
40
|
+
as: 'ask_sizes',
|
|
41
|
+
ad: 'ask_depth_scores',
|
|
42
|
+
as1: 'ask_spread_scores',
|
|
43
|
+
ls: 'liquidity_score',
|
|
44
|
+
ca: 'calculate_at'
|
|
45
|
+
}
|
|
46
|
+
});
|
|
@@ -8,13 +8,15 @@ exports.VAULT_REDEMPTION_REQ_VIEW_MAP = Object.freeze({
|
|
|
8
8
|
currency: 'c',
|
|
9
9
|
num_lp_tokens: 'nl',
|
|
10
10
|
max_redemption_period_timestamp: 'mr',
|
|
11
|
-
age_category: 'ac'
|
|
11
|
+
age_category: 'ac',
|
|
12
|
+
investor_id: 'ii'
|
|
12
13
|
},
|
|
13
14
|
LITE_TO_FULL: {
|
|
14
15
|
rt: 'request_time',
|
|
15
16
|
c: 'currency',
|
|
16
17
|
nl: 'num_lp_tokens',
|
|
17
18
|
mr: 'max_redemption_period_timestamp',
|
|
18
|
-
ac: 'age_category'
|
|
19
|
+
ac: 'age_category',
|
|
20
|
+
ii: 'investor_id'
|
|
19
21
|
}
|
|
20
22
|
});
|