@grvt/client 1.6.1 → 1.6.2
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/TDG/index.d.ts +13 -1
- package/TDG/index.js +43 -0
- package/interfaces/codegen/data.interface.d.ts +262 -6
- package/interfaces/codegen/enums/account-multiplier-status.d.ts +5 -0
- package/interfaces/codegen/enums/account-multiplier-status.js +14 -0
- package/interfaces/codegen/enums/account-type.d.ts +6 -0
- package/interfaces/codegen/enums/account-type.js +17 -0
- package/interfaces/codegen/enums/cluster-config-type.d.ts +8 -1
- package/interfaces/codegen/enums/cluster-config-type.js +22 -1
- package/interfaces/codegen/enums/epoch-band-status.d.ts +5 -0
- package/interfaces/codegen/enums/epoch-band-status.js +14 -0
- package/interfaces/codegen/enums/metric-type.d.ts +10 -0
- package/interfaces/codegen/enums/metric-type.js +29 -0
- package/interfaces/codegen/enums/reward-session.d.ts +5 -0
- package/interfaces/codegen/enums/reward-session.js +14 -0
- package/interfaces/codegen/enums/transaction-type.d.ts +2 -1
- package/interfaces/codegen/enums/transaction-type.js +3 -1
- package/interfaces/codegen/hex-string-map.js +2 -1
- package/interfaces/codegen/schema-maps/api_cross_exch_vault_attest_equity_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_cross_exch_vault_attest_equity_request.js +23 -0
- package/interfaces/codegen/schema-maps/api_cross_exch_vault_get_investor_allocation_stats_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_cross_exch_vault_get_investor_allocation_stats_response.js +18 -0
- package/interfaces/codegen/schema-maps/api_cross_exch_vault_invest_cancel_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_cross_exch_vault_invest_cancel_request.js +14 -0
- package/interfaces/codegen/schema-maps/api_cross_exch_vault_lock_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_cross_exch_vault_lock_request.js +12 -0
- package/interfaces/codegen/schema-maps/api_cross_exch_vault_trigger_redemption_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_cross_exch_vault_trigger_redemption_request.js +16 -0
- package/interfaces/codegen/schema-maps/api_cross_exch_vault_unlock_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_cross_exch_vault_unlock_request.js +12 -0
- package/interfaces/codegen/schema-maps/api_cross_exch_vault_view_investment_queue_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_cross_exch_vault_view_investment_queue_request.js +14 -0
- package/interfaces/codegen/schema-maps/api_cross_exch_vault_view_investment_queue_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_cross_exch_vault_view_investment_queue_response.js +15 -0
- package/interfaces/codegen/schema-maps/api_cross_exch_vault_view_pending_investment_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_cross_exch_vault_view_pending_investment_request.js +14 -0
- package/interfaces/codegen/schema-maps/api_cross_exch_vault_view_pending_investment_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_cross_exch_vault_view_pending_investment_response.js +15 -0
- package/interfaces/codegen/schema-maps/api_end_effect_account_multiplier_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_end_effect_account_multiplier_request.js +14 -0
- package/interfaces/codegen/schema-maps/api_end_effect_account_multiplier_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_end_effect_account_multiplier_response.js +12 -0
- package/interfaces/codegen/schema-maps/api_end_effect_epoch_band_parameter_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_end_effect_epoch_band_parameter_request.js +14 -0
- package/interfaces/codegen/schema-maps/api_end_effect_epoch_band_parameter_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_end_effect_epoch_band_parameter_response.js +12 -0
- package/interfaces/codegen/schema-maps/api_find_account_multiplier_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_find_account_multiplier_request.js +22 -0
- package/interfaces/codegen/schema-maps/api_find_account_multiplier_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_find_account_multiplier_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_find_epoch_band_parameter_filter.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_find_epoch_band_parameter_filter.js +16 -0
- package/interfaces/codegen/schema-maps/api_find_epoch_band_parameter_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_find_epoch_band_parameter_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_first_session_reward_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_first_session_reward_response.js +14 -0
- package/interfaces/codegen/schema-maps/api_get_active_account_multiplier_value_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_get_active_account_multiplier_value_request.js +20 -0
- package/interfaces/codegen/schema-maps/api_get_active_account_multiplier_value_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_get_active_account_multiplier_value_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_get_active_epoch_band_parameter_value_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_get_active_epoch_band_parameter_value_request.js +14 -0
- package/interfaces/codegen/schema-maps/api_get_active_epoch_band_parameter_value_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_get_active_epoch_band_parameter_value_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_get_epoch_point_stats_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_get_epoch_point_stats_response.js +18 -0
- package/interfaces/codegen/schema-maps/api_get_reward_leaderboard_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_get_reward_leaderboard_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_get_user_epoch_point_stats_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_get_user_epoch_point_stats_response.js +24 -0
- package/interfaces/codegen/schema-maps/api_inactive_account_multiplier_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_inactive_account_multiplier_request.js +12 -0
- package/interfaces/codegen/schema-maps/api_inactive_account_multiplier_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_inactive_account_multiplier_response.js +12 -0
- package/interfaces/codegen/schema-maps/api_inactive_epoch_band_parameter_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_inactive_epoch_band_parameter_request.js +12 -0
- package/interfaces/codegen/schema-maps/api_inactive_epoch_band_parameter_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_inactive_epoch_band_parameter_response.js +12 -0
- package/interfaces/codegen/schema-maps/api_position.js +6 -2
- package/interfaces/codegen/schema-maps/api_reward_leaderboard_item.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_reward_leaderboard_item.js +18 -0
- package/interfaces/codegen/schema-maps/api_sub_account_trade_aggregation_request.js +4 -2
- package/interfaces/codegen/schema-maps/api_trading_performance_trend.js +4 -2
- package/interfaces/codegen/schema-maps/api_vault_detail.js +10 -2
- package/interfaces/codegen/schema-maps/api_vault_detail_response.js +10 -2
- package/interfaces/codegen/schema-maps/api_vault_performance.js +4 -2
- package/interfaces/codegen/schema-maps/cev_alloc_stats_acc_overview.d.ts +2 -0
- package/interfaces/codegen/schema-maps/cev_alloc_stats_acc_overview.js +22 -0
- package/interfaces/codegen/schema-maps/cev_alloc_stats_vault_level.d.ts +2 -0
- package/interfaces/codegen/schema-maps/cev_alloc_stats_vault_level.js +16 -0
- package/interfaces/codegen/schema-maps/cross_exch_vault_pending_investment_view.d.ts +2 -0
- package/interfaces/codegen/schema-maps/cross_exch_vault_pending_investment_view.js +18 -0
- package/interfaces/codegen/schema-maps/epoch.js +4 -2
- package/interfaces/codegen/schema-maps/epoch_metric_point.d.ts +2 -0
- package/interfaces/codegen/schema-maps/epoch_metric_point.js +25 -0
- package/interfaces/codegen/schema-maps/epoch_metric_point_calculator_metadata.d.ts +2 -0
- package/interfaces/codegen/schema-maps/epoch_metric_point_calculator_metadata.js +24 -0
- package/interfaces/codegen/schema-maps/epoch_point.d.ts +2 -0
- package/interfaces/codegen/schema-maps/epoch_point.js +16 -0
- package/interfaces/codegen/schema-maps/epoch_point_stats.d.ts +2 -0
- package/interfaces/codegen/schema-maps/epoch_point_stats.js +14 -0
- package/interfaces/codegen/schema-maps/query_epoch_point_stats_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/query_epoch_point_stats_request.js +12 -0
- package/interfaces/codegen/schema-maps/query_epoch_point_stats_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/query_epoch_point_stats_response.js +13 -0
- package/interfaces/codegen/schema-maps/query_reward_referral_point_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/query_reward_referral_point_request.js +16 -0
- package/interfaces/codegen/schema-maps/query_reward_referral_point_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/query_reward_referral_point_response.js +15 -0
- package/interfaces/codegen/schema-maps/reward_account_multiplier.d.ts +2 -0
- package/interfaces/codegen/schema-maps/reward_account_multiplier.js +32 -0
- package/interfaces/codegen/schema-maps/reward_epoch_band_parameter.d.ts +2 -0
- package/interfaces/codegen/schema-maps/reward_epoch_band_parameter.js +30 -0
- package/interfaces/codegen/schema-maps/reward_metric_point_metadata.d.ts +2 -0
- package/interfaces/codegen/schema-maps/reward_metric_point_metadata.js +14 -0
- package/interfaces/codegen/schema-maps/reward_referral_point.d.ts +2 -0
- package/interfaces/codegen/schema-maps/reward_referral_point.js +16 -0
- package/interfaces/codegen/schema-maps/sub_account_trading_performance.d.ts +2 -0
- package/interfaces/codegen/schema-maps/sub_account_trading_performance.js +30 -0
- package/interfaces/codegen/schema-maps/withdrawal_history.js +6 -2
- package/package.json +3 -3
- package/interfaces/codegen/schema-maps/trading_performance_point.d.ts +0 -2
- package/interfaces/codegen/schema-maps/trading_performance_point.js +0 -18
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_GET_REWARD_LEADERBOARD_RESPONSE_MAP = void 0;
|
|
4
|
+
const api_reward_leaderboard_item_1 = require("./api_reward_leaderboard_item");
|
|
5
|
+
// Schema map for the 'API_GET_REWARD_LEADERBOARD_RESPONSE' struct.
|
|
6
|
+
exports.API_GET_REWARD_LEADERBOARD_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
result: ['r', [api_reward_leaderboard_item_1.API_REWARD_LEADERBOARD_ITEM_MAP.FULL_TO_LITE]]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
r: ['result', [api_reward_leaderboard_item_1.API_REWARD_LEADERBOARD_ITEM_MAP.LITE_TO_FULL]]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_GET_USER_EPOCH_POINT_STATS_RESPONSE_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_GET_USER_EPOCH_POINT_STATS_RESPONSE' struct.
|
|
5
|
+
exports.API_GET_USER_EPOCH_POINT_STATS_RESPONSE_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
epoch: 'e',
|
|
8
|
+
epoch_point: 'ep',
|
|
9
|
+
cumulative_point: 'cp',
|
|
10
|
+
epoch_rank: 'er',
|
|
11
|
+
cumulative_rank: 'cr',
|
|
12
|
+
cumulative_rank_change: 'cr1',
|
|
13
|
+
last_calculated_time: 'lc'
|
|
14
|
+
},
|
|
15
|
+
LITE_TO_FULL: {
|
|
16
|
+
e: 'epoch',
|
|
17
|
+
ep: 'epoch_point',
|
|
18
|
+
cp: 'cumulative_point',
|
|
19
|
+
er: 'epoch_rank',
|
|
20
|
+
cr: 'cumulative_rank',
|
|
21
|
+
cr1: 'cumulative_rank_change',
|
|
22
|
+
lc: 'last_calculated_time'
|
|
23
|
+
}
|
|
24
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_INACTIVE_ACCOUNT_MULTIPLIER_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_INACTIVE_ACCOUNT_MULTIPLIER_REQUEST' struct.
|
|
5
|
+
exports.API_INACTIVE_ACCOUNT_MULTIPLIER_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
ids: 'i'
|
|
8
|
+
},
|
|
9
|
+
LITE_TO_FULL: {
|
|
10
|
+
i: 'ids'
|
|
11
|
+
}
|
|
12
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_INACTIVE_ACCOUNT_MULTIPLIER_RESPONSE_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_INACTIVE_ACCOUNT_MULTIPLIER_RESPONSE' struct.
|
|
5
|
+
exports.API_INACTIVE_ACCOUNT_MULTIPLIER_RESPONSE_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
ids: 'i'
|
|
8
|
+
},
|
|
9
|
+
LITE_TO_FULL: {
|
|
10
|
+
i: 'ids'
|
|
11
|
+
}
|
|
12
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_INACTIVE_EPOCH_BAND_PARAMETER_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_INACTIVE_EPOCH_BAND_PARAMETER_REQUEST' struct.
|
|
5
|
+
exports.API_INACTIVE_EPOCH_BAND_PARAMETER_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
ids: 'i'
|
|
8
|
+
},
|
|
9
|
+
LITE_TO_FULL: {
|
|
10
|
+
i: 'ids'
|
|
11
|
+
}
|
|
12
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_INACTIVE_EPOCH_BAND_PARAMETER_RESPONSE_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_INACTIVE_EPOCH_BAND_PARAMETER_RESPONSE' struct.
|
|
5
|
+
exports.API_INACTIVE_EPOCH_BAND_PARAMETER_RESPONSE_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
ids: 'i'
|
|
8
|
+
},
|
|
9
|
+
LITE_TO_FULL: {
|
|
10
|
+
i: 'ids'
|
|
11
|
+
}
|
|
12
|
+
});
|
|
@@ -18,7 +18,9 @@ exports.POSITIONS_MAP = Object.freeze({
|
|
|
18
18
|
roi: 'r',
|
|
19
19
|
quote_index_price: 'qi',
|
|
20
20
|
est_liquidation_price: 'el',
|
|
21
|
-
leverage: 'l'
|
|
21
|
+
leverage: 'l',
|
|
22
|
+
cumulative_fee: 'cf',
|
|
23
|
+
cumulative_realized_funding_payment: 'cr'
|
|
22
24
|
},
|
|
23
25
|
LITE_TO_FULL: {
|
|
24
26
|
et: 'event_time',
|
|
@@ -35,6 +37,8 @@ exports.POSITIONS_MAP = Object.freeze({
|
|
|
35
37
|
r: 'roi',
|
|
36
38
|
qi: 'quote_index_price',
|
|
37
39
|
el: 'est_liquidation_price',
|
|
38
|
-
l: 'leverage'
|
|
40
|
+
l: 'leverage',
|
|
41
|
+
cf: 'cumulative_fee',
|
|
42
|
+
cr: 'cumulative_realized_funding_payment'
|
|
39
43
|
}
|
|
40
44
|
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.API_REWARD_LEADERBOARD_ITEM_MAP = void 0;
|
|
4
|
+
// Schema map for the 'API_REWARD_LEADERBOARD_ITEM' struct.
|
|
5
|
+
exports.API_REWARD_LEADERBOARD_ITEM_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
off_chain_account_id: 'oc',
|
|
8
|
+
twitter_username: 'tu',
|
|
9
|
+
rank: 'r',
|
|
10
|
+
point: 'p'
|
|
11
|
+
},
|
|
12
|
+
LITE_TO_FULL: {
|
|
13
|
+
oc: 'off_chain_account_id',
|
|
14
|
+
tu: 'twitter_username',
|
|
15
|
+
r: 'rank',
|
|
16
|
+
p: 'point'
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -14,7 +14,8 @@ exports.API_SUB_ACCOUNT_TRADE_AGGREGATION_REQUEST_MAP = Object.freeze({
|
|
|
14
14
|
is_taker: 'it',
|
|
15
15
|
cursor: 'c',
|
|
16
16
|
group_by_signer: 'gb',
|
|
17
|
-
sources: 's'
|
|
17
|
+
sources: 's',
|
|
18
|
+
is_liquidation: 'il'
|
|
18
19
|
},
|
|
19
20
|
LITE_TO_FULL: {
|
|
20
21
|
l: 'limit',
|
|
@@ -27,6 +28,7 @@ exports.API_SUB_ACCOUNT_TRADE_AGGREGATION_REQUEST_MAP = Object.freeze({
|
|
|
27
28
|
it: 'is_taker',
|
|
28
29
|
c: 'cursor',
|
|
29
30
|
gb: 'group_by_signer',
|
|
30
|
-
s: 'sources'
|
|
31
|
+
s: 'sources',
|
|
32
|
+
il: 'is_liquidation'
|
|
31
33
|
}
|
|
32
34
|
});
|
|
@@ -8,13 +8,15 @@ exports.API_TRADING_PERFORMANCE_TREND_MAP = Object.freeze({
|
|
|
8
8
|
end_interval: 'ei',
|
|
9
9
|
trading_volume: 'tv',
|
|
10
10
|
realized_pnl: 'rp',
|
|
11
|
-
pnl: 'p'
|
|
11
|
+
pnl: 'p',
|
|
12
|
+
cumulative_pnl: 'cp'
|
|
12
13
|
},
|
|
13
14
|
LITE_TO_FULL: {
|
|
14
15
|
si: 'start_interval',
|
|
15
16
|
ei: 'end_interval',
|
|
16
17
|
tv: 'trading_volume',
|
|
17
18
|
rp: 'realized_pnl',
|
|
18
|
-
p: 'pnl'
|
|
19
|
+
p: 'pnl',
|
|
20
|
+
cp: 'cumulative_pnl'
|
|
19
21
|
}
|
|
20
22
|
});
|
|
@@ -8,13 +8,21 @@ exports.API_VAULT_DETAIL_MAP = Object.freeze({
|
|
|
8
8
|
share_price: 'sp',
|
|
9
9
|
total_equity: 'te',
|
|
10
10
|
valuation_cap: 'vc',
|
|
11
|
-
unrealized_pnl: 'up'
|
|
11
|
+
unrealized_pnl: 'up',
|
|
12
|
+
total_supply_lp_tokens: 'ts',
|
|
13
|
+
last_cross_exchange_equity_attest_timestamp: 'lc',
|
|
14
|
+
is_vault_locked: 'iv',
|
|
15
|
+
is_cross_exchange: 'ic'
|
|
12
16
|
},
|
|
13
17
|
LITE_TO_FULL: {
|
|
14
18
|
vi: 'vault_id',
|
|
15
19
|
sp: 'share_price',
|
|
16
20
|
te: 'total_equity',
|
|
17
21
|
vc: 'valuation_cap',
|
|
18
|
-
up: 'unrealized_pnl'
|
|
22
|
+
up: 'unrealized_pnl',
|
|
23
|
+
ts: 'total_supply_lp_tokens',
|
|
24
|
+
lc: 'last_cross_exchange_equity_attest_timestamp',
|
|
25
|
+
iv: 'is_vault_locked',
|
|
26
|
+
ic: 'is_cross_exchange'
|
|
19
27
|
}
|
|
20
28
|
});
|
|
@@ -9,7 +9,11 @@ exports.API_VAULT_DETAIL_RESPONSE_MAP = Object.freeze({
|
|
|
9
9
|
valuation_cap: 'vc',
|
|
10
10
|
unrealized_pnl: 'up',
|
|
11
11
|
initial_margin: 'im',
|
|
12
|
-
maintenance_margin: 'mm'
|
|
12
|
+
maintenance_margin: 'mm',
|
|
13
|
+
total_supply_lp_tokens: 'ts',
|
|
14
|
+
last_cross_exchange_equity_attest_timestamp: 'lc',
|
|
15
|
+
is_vault_locked: 'iv',
|
|
16
|
+
is_cross_exchange: 'ic'
|
|
13
17
|
},
|
|
14
18
|
LITE_TO_FULL: {
|
|
15
19
|
sp: 'share_price',
|
|
@@ -17,6 +21,10 @@ exports.API_VAULT_DETAIL_RESPONSE_MAP = Object.freeze({
|
|
|
17
21
|
vc: 'valuation_cap',
|
|
18
22
|
up: 'unrealized_pnl',
|
|
19
23
|
im: 'initial_margin',
|
|
20
|
-
mm: 'maintenance_margin'
|
|
24
|
+
mm: 'maintenance_margin',
|
|
25
|
+
ts: 'total_supply_lp_tokens',
|
|
26
|
+
lc: 'last_cross_exchange_equity_attest_timestamp',
|
|
27
|
+
iv: 'is_vault_locked',
|
|
28
|
+
ic: 'is_cross_exchange'
|
|
21
29
|
}
|
|
22
30
|
});
|
|
@@ -8,13 +8,15 @@ exports.API_VAULT_PERFORMANCE_MAP = Object.freeze({
|
|
|
8
8
|
trading_volume: 'tv',
|
|
9
9
|
apr: 'a',
|
|
10
10
|
realized_pnl: 'rp',
|
|
11
|
-
pnl: 'p'
|
|
11
|
+
pnl: 'p',
|
|
12
|
+
cumulative_pnl: 'cp'
|
|
12
13
|
},
|
|
13
14
|
LITE_TO_FULL: {
|
|
14
15
|
vi: 'vault_id',
|
|
15
16
|
tv: 'trading_volume',
|
|
16
17
|
a: 'apr',
|
|
17
18
|
rp: 'realized_pnl',
|
|
18
|
-
p: 'pnl'
|
|
19
|
+
p: 'pnl',
|
|
20
|
+
cp: 'cumulative_pnl'
|
|
19
21
|
}
|
|
20
22
|
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CEV_ALLOC_STATS_ACC_OVERVIEW_MAP = void 0;
|
|
4
|
+
// Schema map for the 'CEV_ALLOC_STATS_ACC_OVERVIEW' struct.
|
|
5
|
+
exports.CEV_ALLOC_STATS_ACC_OVERVIEW_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
total_allocation: 'ta',
|
|
8
|
+
total_invested: 'ti',
|
|
9
|
+
allowance: 'a',
|
|
10
|
+
lifetime_trading_volume: 'lt',
|
|
11
|
+
allocation_percent_centi_beeps: 'ap',
|
|
12
|
+
allocation_max_cap: 'am'
|
|
13
|
+
},
|
|
14
|
+
LITE_TO_FULL: {
|
|
15
|
+
ta: 'total_allocation',
|
|
16
|
+
ti: 'total_invested',
|
|
17
|
+
a: 'allowance',
|
|
18
|
+
lt: 'lifetime_trading_volume',
|
|
19
|
+
ap: 'allocation_percent_centi_beeps',
|
|
20
|
+
am: 'allocation_max_cap'
|
|
21
|
+
}
|
|
22
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CEV_ALLOC_STATS_VAULT_LEVEL_MAP = void 0;
|
|
4
|
+
// Schema map for the 'CEV_ALLOC_STATS_VAULT_LEVEL' struct.
|
|
5
|
+
exports.CEV_ALLOC_STATS_VAULT_LEVEL_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
vault_id: 'vi',
|
|
8
|
+
invested_size: 'is',
|
|
9
|
+
pending_invest_size: 'pi'
|
|
10
|
+
},
|
|
11
|
+
LITE_TO_FULL: {
|
|
12
|
+
vi: 'vault_id',
|
|
13
|
+
is: 'invested_size',
|
|
14
|
+
pi: 'pending_invest_size'
|
|
15
|
+
}
|
|
16
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CROSS_EXCH_VAULT_PENDING_INVESTMENT_MAP = void 0;
|
|
4
|
+
// Schema map for the 'CROSS_EXCH_VAULT_PENDING_INVESTMENT' struct.
|
|
5
|
+
exports.CROSS_EXCH_VAULT_PENDING_INVESTMENT_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
request_time: 'rt',
|
|
8
|
+
currency: 'c',
|
|
9
|
+
num_tokens: 'nt',
|
|
10
|
+
is_manager: 'im'
|
|
11
|
+
},
|
|
12
|
+
LITE_TO_FULL: {
|
|
13
|
+
rt: 'request_time',
|
|
14
|
+
c: 'currency',
|
|
15
|
+
nt: 'num_tokens',
|
|
16
|
+
im: 'is_manager'
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -6,11 +6,13 @@ exports.EPOCH_MAP = Object.freeze({
|
|
|
6
6
|
FULL_TO_LITE: {
|
|
7
7
|
epoch: 'e',
|
|
8
8
|
start_time: 'st',
|
|
9
|
-
end_time: 'et'
|
|
9
|
+
end_time: 'et',
|
|
10
|
+
session: 's'
|
|
10
11
|
},
|
|
11
12
|
LITE_TO_FULL: {
|
|
12
13
|
e: 'epoch',
|
|
13
14
|
st: 'start_time',
|
|
14
|
-
et: 'end_time'
|
|
15
|
+
et: 'end_time',
|
|
16
|
+
s: 'session'
|
|
15
17
|
}
|
|
16
18
|
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EPOCH_METRIC_POINT_MAP = void 0;
|
|
4
|
+
const reward_metric_point_metadata_1 = require("./reward_metric_point_metadata");
|
|
5
|
+
// Schema map for the 'EPOCH_METRIC_POINT' struct.
|
|
6
|
+
exports.EPOCH_METRIC_POINT_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
metric: 'm',
|
|
9
|
+
epoch: 'e',
|
|
10
|
+
off_chain_account_id: 'oc',
|
|
11
|
+
raw_point: 'rp',
|
|
12
|
+
adjusted_point: 'ap',
|
|
13
|
+
point: 'p',
|
|
14
|
+
metadata: ['m1', reward_metric_point_metadata_1.REWARD_METRIC_POINT_METADATA_MAP.FULL_TO_LITE]
|
|
15
|
+
},
|
|
16
|
+
LITE_TO_FULL: {
|
|
17
|
+
m: 'metric',
|
|
18
|
+
e: 'epoch',
|
|
19
|
+
oc: 'off_chain_account_id',
|
|
20
|
+
rp: 'raw_point',
|
|
21
|
+
ap: 'adjusted_point',
|
|
22
|
+
p: 'point',
|
|
23
|
+
m1: ['metadata', reward_metric_point_metadata_1.REWARD_METRIC_POINT_METADATA_MAP.LITE_TO_FULL]
|
|
24
|
+
}
|
|
25
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EPOCH_METRIC_POINT_CALCULATOR_METADATA_MAP = void 0;
|
|
4
|
+
// Schema map for the 'EPOCH_METRIC_POINT_CALCULATOR_METADATA' struct.
|
|
5
|
+
exports.EPOCH_METRIC_POINT_CALCULATOR_METADATA_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
metric: 'm',
|
|
8
|
+
epoch: 'e',
|
|
9
|
+
allocated_point: 'ap',
|
|
10
|
+
total_adjusted_point: 'ta',
|
|
11
|
+
band_range: 'br',
|
|
12
|
+
band_steepness: 'bs',
|
|
13
|
+
calculated_at: 'ca'
|
|
14
|
+
},
|
|
15
|
+
LITE_TO_FULL: {
|
|
16
|
+
m: 'metric',
|
|
17
|
+
e: 'epoch',
|
|
18
|
+
ap: 'allocated_point',
|
|
19
|
+
ta: 'total_adjusted_point',
|
|
20
|
+
br: 'band_range',
|
|
21
|
+
bs: 'band_steepness',
|
|
22
|
+
ca: 'calculated_at'
|
|
23
|
+
}
|
|
24
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EPOCH_POINT_MAP = void 0;
|
|
4
|
+
// Schema map for the 'EPOCH_POINT' struct.
|
|
5
|
+
exports.EPOCH_POINT_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
epoch: 'e',
|
|
8
|
+
off_chain_account_id: 'oc',
|
|
9
|
+
point: 'p'
|
|
10
|
+
},
|
|
11
|
+
LITE_TO_FULL: {
|
|
12
|
+
e: 'epoch',
|
|
13
|
+
oc: 'off_chain_account_id',
|
|
14
|
+
p: 'point'
|
|
15
|
+
}
|
|
16
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EPOCH_POINT_STATS_MAP = void 0;
|
|
4
|
+
// Schema map for the 'EPOCH_POINT_STATS' struct.
|
|
5
|
+
exports.EPOCH_POINT_STATS_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
epoch: 'e',
|
|
8
|
+
point: 'p'
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
e: 'epoch',
|
|
12
|
+
p: 'point'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QUERY_EPOCH_POINT_STATS_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'QUERY_EPOCH_POINT_STATS_REQUEST' struct.
|
|
5
|
+
exports.QUERY_EPOCH_POINT_STATS_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
epoch: 'e'
|
|
8
|
+
},
|
|
9
|
+
LITE_TO_FULL: {
|
|
10
|
+
e: 'epoch'
|
|
11
|
+
}
|
|
12
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QUERY_EPOCH_POINT_STATS_RESPONSE_MAP = void 0;
|
|
4
|
+
const epoch_point_stats_1 = require("./epoch_point_stats");
|
|
5
|
+
// Schema map for the 'QUERY_EPOCH_POINT_STATS_RESPONSE' struct.
|
|
6
|
+
exports.QUERY_EPOCH_POINT_STATS_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
stats: ['s', epoch_point_stats_1.EPOCH_POINT_STATS_MAP.FULL_TO_LITE]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
s: ['stats', epoch_point_stats_1.EPOCH_POINT_STATS_MAP.LITE_TO_FULL]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QUERY_REWARD_REFERRAL_POINT_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'QUERY_REWARD_REFERRAL_POINT_REQUEST' struct.
|
|
5
|
+
exports.QUERY_REWARD_REFERRAL_POINT_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
epoch: 'e',
|
|
8
|
+
limit: 'l',
|
|
9
|
+
cursor: 'c'
|
|
10
|
+
},
|
|
11
|
+
LITE_TO_FULL: {
|
|
12
|
+
e: 'epoch',
|
|
13
|
+
l: 'limit',
|
|
14
|
+
c: 'cursor'
|
|
15
|
+
}
|
|
16
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QUERY_REWARD_REFERRAL_POINT_RESPONSE_MAP = void 0;
|
|
4
|
+
const reward_referral_point_1 = require("./reward_referral_point");
|
|
5
|
+
// Schema map for the 'QUERY_REWARD_REFERRAL_POINT_RESPONSE' struct.
|
|
6
|
+
exports.QUERY_REWARD_REFERRAL_POINT_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
result: ['r', [reward_referral_point_1.REWARD_REFERRAL_POINT_MAP.FULL_TO_LITE]],
|
|
9
|
+
next: 'n'
|
|
10
|
+
},
|
|
11
|
+
LITE_TO_FULL: {
|
|
12
|
+
r: ['result', [reward_referral_point_1.REWARD_REFERRAL_POINT_MAP.LITE_TO_FULL]],
|
|
13
|
+
n: 'next'
|
|
14
|
+
}
|
|
15
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REWARD_ACCOUNT_MULTIPLIER_MAP = void 0;
|
|
4
|
+
// Schema map for the 'REWARD_ACCOUNT_MULTIPLIER' struct.
|
|
5
|
+
exports.REWARD_ACCOUNT_MULTIPLIER_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
id: 'i',
|
|
8
|
+
metric: 'm',
|
|
9
|
+
off_chain_account_id: 'oc',
|
|
10
|
+
account_type: 'at',
|
|
11
|
+
multiplier: 'm1',
|
|
12
|
+
effective_epoch_start: 'ee',
|
|
13
|
+
effective_epoch_end: 'ee1',
|
|
14
|
+
status: 's',
|
|
15
|
+
created_by_id: 'cb',
|
|
16
|
+
create_time: 'ct',
|
|
17
|
+
update_time: 'ut'
|
|
18
|
+
},
|
|
19
|
+
LITE_TO_FULL: {
|
|
20
|
+
i: 'id',
|
|
21
|
+
m: 'metric',
|
|
22
|
+
oc: 'off_chain_account_id',
|
|
23
|
+
at: 'account_type',
|
|
24
|
+
m1: 'multiplier',
|
|
25
|
+
ee: 'effective_epoch_start',
|
|
26
|
+
ee1: 'effective_epoch_end',
|
|
27
|
+
s: 'status',
|
|
28
|
+
cb: 'created_by_id',
|
|
29
|
+
ct: 'create_time',
|
|
30
|
+
ut: 'update_time'
|
|
31
|
+
}
|
|
32
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REWARD_EPOCH_BAND_PARAMETER_MAP = void 0;
|
|
4
|
+
// Schema map for the 'REWARD_EPOCH_BAND_PARAMETER' struct.
|
|
5
|
+
exports.REWARD_EPOCH_BAND_PARAMETER_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
id: 'i',
|
|
8
|
+
effective_epoch_start: 'ee',
|
|
9
|
+
effective_epoch_end: 'ee1',
|
|
10
|
+
metric: 'm',
|
|
11
|
+
band_range: 'br',
|
|
12
|
+
band_steepness: 'bs',
|
|
13
|
+
status: 's',
|
|
14
|
+
created_by_id: 'cb',
|
|
15
|
+
create_time: 'ct',
|
|
16
|
+
update_time: 'ut'
|
|
17
|
+
},
|
|
18
|
+
LITE_TO_FULL: {
|
|
19
|
+
i: 'id',
|
|
20
|
+
ee: 'effective_epoch_start',
|
|
21
|
+
ee1: 'effective_epoch_end',
|
|
22
|
+
m: 'metric',
|
|
23
|
+
br: 'band_range',
|
|
24
|
+
bs: 'band_steepness',
|
|
25
|
+
s: 'status',
|
|
26
|
+
cb: 'created_by_id',
|
|
27
|
+
ct: 'create_time',
|
|
28
|
+
ut: 'update_time'
|
|
29
|
+
}
|
|
30
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REWARD_METRIC_POINT_METADATA_MAP = void 0;
|
|
4
|
+
// Schema map for the 'REWARD_METRIC_POINT_METADATA' struct.
|
|
5
|
+
exports.REWARD_METRIC_POINT_METADATA_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
band_index: 'bi',
|
|
8
|
+
account_multiplier: 'am'
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
bi: 'band_index',
|
|
12
|
+
am: 'account_multiplier'
|
|
13
|
+
}
|
|
14
|
+
});
|