@grvt/client 1.6.7 → 1.6.8
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/MDG/index.d.ts +9 -1
- package/MDG/index.js +20 -0
- package/interfaces/codegen/data.interface.d.ts +212 -8
- package/interfaces/codegen/enums/account-multiplier-metadata-type.d.ts +5 -0
- package/interfaces/codegen/enums/account-multiplier-metadata-type.js +14 -0
- package/interfaces/codegen/enums/cluster-config-type.d.ts +9 -1
- package/interfaces/codegen/enums/cluster-config-type.js +25 -1
- package/interfaces/codegen/enums/distribution-type.d.ts +9 -0
- package/interfaces/codegen/enums/distribution-type.js +26 -0
- package/interfaces/codegen/enums/epoch-point-boost-configuration-status.d.ts +5 -0
- package/interfaces/codegen/enums/epoch-point-boost-configuration-status.js +14 -0
- package/interfaces/codegen/enums/epoch-point-distribution-configuration-status.d.ts +5 -0
- package/interfaces/codegen/enums/epoch-point-distribution-configuration-status.js +14 -0
- package/interfaces/codegen/enums/funding-rate-aggregation-type.d.ts +7 -0
- package/interfaces/codegen/enums/funding-rate-aggregation-type.js +21 -0
- package/interfaces/codegen/enums/point-type.d.ts +6 -0
- package/interfaces/codegen/enums/point-type.js +17 -0
- package/interfaces/codegen/schema-maps/admin_reward_epoch.d.ts +2 -0
- package/interfaces/codegen/schema-maps/admin_reward_epoch.js +27 -0
- package/interfaces/codegen/schema-maps/admin_reward_epoch_metadata.d.ts +2 -0
- package/interfaces/codegen/schema-maps/admin_reward_epoch_metadata.js +14 -0
- package/interfaces/codegen/schema-maps/api_create_epoch_point_boost_configuration_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_create_epoch_point_boost_configuration_request.js +15 -0
- package/interfaces/codegen/schema-maps/api_create_epoch_point_boost_configuration_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_create_epoch_point_boost_configuration_response.js +12 -0
- package/interfaces/codegen/schema-maps/api_create_epoch_point_distribution_configuration_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_create_epoch_point_distribution_configuration_request.js +15 -0
- package/interfaces/codegen/schema-maps/api_create_epoch_point_distribution_configuration_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_create_epoch_point_distribution_configuration_response.js +12 -0
- package/interfaces/codegen/schema-maps/api_deactivate_epoch_point_boost_configuration_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_deactivate_epoch_point_boost_configuration_request.js +12 -0
- package/interfaces/codegen/schema-maps/api_deactivate_epoch_point_boost_configuration_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_deactivate_epoch_point_boost_configuration_response.js +12 -0
- package/interfaces/codegen/schema-maps/api_deactivate_epoch_point_distribution_configuration_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_deactivate_epoch_point_distribution_configuration_request.js +12 -0
- package/interfaces/codegen/schema-maps/api_deactivate_epoch_point_distribution_configuration_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_deactivate_epoch_point_distribution_configuration_response.js +12 -0
- package/interfaces/codegen/schema-maps/api_funding_history_comparison_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_funding_history_comparison_request.js +16 -0
- package/interfaces/codegen/schema-maps/api_funding_history_comparison_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_funding_history_comparison_response.js +15 -0
- package/interfaces/codegen/schema-maps/api_funding_rate.d.ts +2 -0
- package/interfaces/codegen/schema-maps/{funding_rate.js → api_funding_rate.js} +7 -5
- package/interfaces/codegen/schema-maps/api_funding_rate_request.js +4 -2
- package/interfaces/codegen/schema-maps/api_funding_rate_response.js +3 -3
- package/interfaces/codegen/schema-maps/api_get_epoch_point_boost_configuration_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_get_epoch_point_boost_configuration_request.js +12 -0
- package/interfaces/codegen/schema-maps/api_get_epoch_point_boost_configuration_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_get_epoch_point_boost_configuration_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_get_epoch_point_distribution_configuration_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_get_epoch_point_distribution_configuration_request.js +12 -0
- package/interfaces/codegen/schema-maps/api_get_epoch_point_distribution_configuration_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_get_epoch_point_distribution_configuration_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_inject_points_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_inject_points_request.js +15 -0
- package/interfaces/codegen/schema-maps/api_inject_points_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_inject_points_response.js +12 -0
- package/interfaces/codegen/schema-maps/api_list_epoch_point_boost_configuration_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_list_epoch_point_boost_configuration_request.js +14 -0
- package/interfaces/codegen/schema-maps/api_list_epoch_point_boost_configuration_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_list_epoch_point_boost_configuration_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_list_epoch_point_distribution_configuration_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_list_epoch_point_distribution_configuration_request.js +14 -0
- package/interfaces/codegen/schema-maps/api_list_epoch_point_distribution_configuration_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_list_epoch_point_distribution_configuration_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_live_funding_rate_comparison_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_live_funding_rate_comparison_request.js +12 -0
- package/interfaces/codegen/schema-maps/api_live_funding_rate_comparison_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_live_funding_rate_comparison_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_manual_injected_point_history_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_manual_injected_point_history_request.js +18 -0
- package/interfaces/codegen/schema-maps/api_manual_injected_point_history_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/api_manual_injected_point_history_response.js +13 -0
- package/interfaces/codegen/schema-maps/api_vault_detail.js +4 -2
- package/interfaces/codegen/schema-maps/batch_create_account_multiplier_element.js +5 -2
- package/interfaces/codegen/schema-maps/detail_admin_reward_epoch.d.ts +2 -0
- package/interfaces/codegen/schema-maps/detail_admin_reward_epoch.js +22 -0
- package/interfaces/codegen/schema-maps/detail_admin_reward_epoch_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/detail_admin_reward_epoch_response.js +13 -0
- package/interfaces/codegen/schema-maps/epoch_point_boost_configuration.d.ts +2 -0
- package/interfaces/codegen/schema-maps/epoch_point_boost_configuration.js +27 -0
- package/interfaces/codegen/schema-maps/epoch_point_distribution_configuration.d.ts +2 -0
- package/interfaces/codegen/schema-maps/epoch_point_distribution_configuration.js +27 -0
- package/interfaces/codegen/schema-maps/exchange_funding_rate.d.ts +2 -0
- package/interfaces/codegen/schema-maps/exchange_funding_rate.js +14 -0
- package/interfaces/codegen/schema-maps/funding_history_comparison_entry.d.ts +2 -0
- package/interfaces/codegen/schema-maps/funding_history_comparison_entry.js +17 -0
- package/interfaces/codegen/schema-maps/injected_point_request_element.d.ts +2 -0
- package/interfaces/codegen/schema-maps/injected_point_request_element.js +14 -0
- package/interfaces/codegen/schema-maps/list_reward_epoch_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/list_reward_epoch_response.js +13 -0
- package/interfaces/codegen/schema-maps/live_funding_rate_comparison_entry.d.ts +2 -0
- package/interfaces/codegen/schema-maps/live_funding_rate_comparison_entry.js +21 -0
- package/interfaces/codegen/schema-maps/manual_point_distribution.d.ts +2 -0
- package/interfaces/codegen/schema-maps/manual_point_distribution.js +31 -0
- package/interfaces/codegen/schema-maps/manual_point_distribution_metadata.d.ts +2 -0
- package/interfaces/codegen/schema-maps/manual_point_distribution_metadata.js +16 -0
- package/interfaces/codegen/schema-maps/point_distribution_ratio.d.ts +2 -0
- package/interfaces/codegen/schema-maps/point_distribution_ratio.js +24 -0
- package/interfaces/codegen/schema-maps/reserve_point_information.d.ts +2 -0
- package/interfaces/codegen/schema-maps/reserve_point_information.js +14 -0
- package/interfaces/codegen/schema-maps/reward_account_multiplier.js +5 -2
- package/interfaces/codegen/schema-maps/reward_account_multiplier_metadata.d.ts +2 -0
- package/interfaces/codegen/schema-maps/reward_account_multiplier_metadata.js +18 -0
- package/interfaces/codegen/schema-maps/update_reward_epoch_request.d.ts +2 -0
- package/interfaces/codegen/schema-maps/update_reward_epoch_request.js +14 -0
- package/interfaces/codegen/schema-maps/update_reward_epoch_response.d.ts +2 -0
- package/interfaces/codegen/schema-maps/update_reward_epoch_response.js +13 -0
- package/package.json +1 -1
- package/interfaces/codegen/schema-maps/funding_rate.d.ts +0 -2
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BATCH_CREATE_ACCOUNT_MULTIPLIER_ELEMENT_MAP = void 0;
|
|
4
|
+
const reward_account_multiplier_metadata_1 = require("./reward_account_multiplier_metadata");
|
|
4
5
|
// Schema map for the 'BATCH_CREATE_ACCOUNT_MULTIPLIER_ELEMENT' struct.
|
|
5
6
|
exports.BATCH_CREATE_ACCOUNT_MULTIPLIER_ELEMENT_MAP = Object.freeze({
|
|
6
7
|
FULL_TO_LITE: {
|
|
7
8
|
off_chain_account_id: 'oc',
|
|
8
9
|
account_type: 'at',
|
|
9
|
-
multiplier: 'm'
|
|
10
|
+
multiplier: 'm',
|
|
11
|
+
metadata: ['m1', reward_account_multiplier_metadata_1.REWARD_ACCOUNT_MULTIPLIER_METADATA_MAP.FULL_TO_LITE]
|
|
10
12
|
},
|
|
11
13
|
LITE_TO_FULL: {
|
|
12
14
|
oc: 'off_chain_account_id',
|
|
13
15
|
at: 'account_type',
|
|
14
|
-
m: 'multiplier'
|
|
16
|
+
m: 'multiplier',
|
|
17
|
+
m1: ['metadata', reward_account_multiplier_metadata_1.REWARD_ACCOUNT_MULTIPLIER_METADATA_MAP.LITE_TO_FULL]
|
|
15
18
|
}
|
|
16
19
|
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DETAIL_ADMIN_REWARD_EPOCH_MAP = void 0;
|
|
4
|
+
const admin_reward_epoch_1 = require("./admin_reward_epoch");
|
|
5
|
+
const point_distribution_ratio_1 = require("./point_distribution_ratio");
|
|
6
|
+
// Schema map for the 'DETAIL_ADMIN_REWARD_EPOCH' struct.
|
|
7
|
+
exports.DETAIL_ADMIN_REWARD_EPOCH_MAP = Object.freeze({
|
|
8
|
+
FULL_TO_LITE: {
|
|
9
|
+
epoch_info: ['ei', admin_reward_epoch_1.ADMIN_REWARD_EPOCH_MAP.FULL_TO_LITE],
|
|
10
|
+
distribution_percentage: ['dp', point_distribution_ratio_1.POINT_DISTRIBUTION_RATIO_MAP.FULL_TO_LITE],
|
|
11
|
+
raw_distribution_percentage: ['rd', point_distribution_ratio_1.POINT_DISTRIBUTION_RATIO_MAP.FULL_TO_LITE],
|
|
12
|
+
boost_percentage: ['bp', point_distribution_ratio_1.POINT_DISTRIBUTION_RATIO_MAP.FULL_TO_LITE],
|
|
13
|
+
visibility_percentage: 'vp'
|
|
14
|
+
},
|
|
15
|
+
LITE_TO_FULL: {
|
|
16
|
+
ei: ['epoch_info', admin_reward_epoch_1.ADMIN_REWARD_EPOCH_MAP.LITE_TO_FULL],
|
|
17
|
+
dp: ['distribution_percentage', point_distribution_ratio_1.POINT_DISTRIBUTION_RATIO_MAP.LITE_TO_FULL],
|
|
18
|
+
rd: ['raw_distribution_percentage', point_distribution_ratio_1.POINT_DISTRIBUTION_RATIO_MAP.LITE_TO_FULL],
|
|
19
|
+
bp: ['boost_percentage', point_distribution_ratio_1.POINT_DISTRIBUTION_RATIO_MAP.LITE_TO_FULL],
|
|
20
|
+
vp: 'visibility_percentage'
|
|
21
|
+
}
|
|
22
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DETAIL_ADMIN_REWARD_EPOCH_RESPONSE_MAP = void 0;
|
|
4
|
+
const detail_admin_reward_epoch_1 = require("./detail_admin_reward_epoch");
|
|
5
|
+
// Schema map for the 'DETAIL_ADMIN_REWARD_EPOCH_RESPONSE' struct.
|
|
6
|
+
exports.DETAIL_ADMIN_REWARD_EPOCH_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
result: ['r', detail_admin_reward_epoch_1.DETAIL_ADMIN_REWARD_EPOCH_MAP.FULL_TO_LITE]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
r: ['result', detail_admin_reward_epoch_1.DETAIL_ADMIN_REWARD_EPOCH_MAP.LITE_TO_FULL]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EPOCH_POINT_BOOST_CONFIGURATION_MAP = void 0;
|
|
4
|
+
const point_distribution_ratio_1 = require("./point_distribution_ratio");
|
|
5
|
+
// Schema map for the 'EPOCH_POINT_BOOST_CONFIGURATION' struct.
|
|
6
|
+
exports.EPOCH_POINT_BOOST_CONFIGURATION_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
id: 'i',
|
|
9
|
+
epoch: 'e',
|
|
10
|
+
boost_percentage: ['bp', point_distribution_ratio_1.POINT_DISTRIBUTION_RATIO_MAP.FULL_TO_LITE],
|
|
11
|
+
status: 's',
|
|
12
|
+
created_by_id: 'cb',
|
|
13
|
+
update_by_id: 'ub',
|
|
14
|
+
create_time: 'ct',
|
|
15
|
+
update_time: 'ut'
|
|
16
|
+
},
|
|
17
|
+
LITE_TO_FULL: {
|
|
18
|
+
i: 'id',
|
|
19
|
+
e: 'epoch',
|
|
20
|
+
bp: ['boost_percentage', point_distribution_ratio_1.POINT_DISTRIBUTION_RATIO_MAP.LITE_TO_FULL],
|
|
21
|
+
s: 'status',
|
|
22
|
+
cb: 'created_by_id',
|
|
23
|
+
ub: 'update_by_id',
|
|
24
|
+
ct: 'create_time',
|
|
25
|
+
ut: 'update_time'
|
|
26
|
+
}
|
|
27
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EPOCH_POINT_DISTRIBUTION_CONFIGURATION_MAP = void 0;
|
|
4
|
+
const point_distribution_ratio_1 = require("./point_distribution_ratio");
|
|
5
|
+
// Schema map for the 'EPOCH_POINT_DISTRIBUTION_CONFIGURATION' struct.
|
|
6
|
+
exports.EPOCH_POINT_DISTRIBUTION_CONFIGURATION_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
id: 'i',
|
|
9
|
+
start_epoch: 'se',
|
|
10
|
+
point_distribution_percentage: ['pd', point_distribution_ratio_1.POINT_DISTRIBUTION_RATIO_MAP.FULL_TO_LITE],
|
|
11
|
+
status: 's',
|
|
12
|
+
created_by_id: 'cb',
|
|
13
|
+
update_by_id: 'ub',
|
|
14
|
+
create_time: 'ct',
|
|
15
|
+
update_time: 'ut'
|
|
16
|
+
},
|
|
17
|
+
LITE_TO_FULL: {
|
|
18
|
+
i: 'id',
|
|
19
|
+
se: 'start_epoch',
|
|
20
|
+
pd: ['point_distribution_percentage', point_distribution_ratio_1.POINT_DISTRIBUTION_RATIO_MAP.LITE_TO_FULL],
|
|
21
|
+
s: 'status',
|
|
22
|
+
cb: 'created_by_id',
|
|
23
|
+
ub: 'update_by_id',
|
|
24
|
+
ct: 'create_time',
|
|
25
|
+
ut: 'update_time'
|
|
26
|
+
}
|
|
27
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EXCHANGE_FUNDING_RATE_MAP = void 0;
|
|
4
|
+
// Schema map for the 'EXCHANGE_FUNDING_RATE' struct.
|
|
5
|
+
exports.EXCHANGE_FUNDING_RATE_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
exchange: 'e',
|
|
8
|
+
funding_rate: 'fr'
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
e: 'exchange',
|
|
12
|
+
fr: 'funding_rate'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FUNDING_HISTORY_COMPARISON_ENTRY_MAP = void 0;
|
|
4
|
+
const exchange_funding_rate_1 = require("./exchange_funding_rate");
|
|
5
|
+
// Schema map for the 'FUNDING_HISTORY_COMPARISON_ENTRY' struct.
|
|
6
|
+
exports.FUNDING_HISTORY_COMPARISON_ENTRY_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
funding_time: 'ft',
|
|
9
|
+
mark_price: 'mp',
|
|
10
|
+
funding_rates: ['fr', [exchange_funding_rate_1.EXCHANGE_FUNDING_RATE_MAP.FULL_TO_LITE]]
|
|
11
|
+
},
|
|
12
|
+
LITE_TO_FULL: {
|
|
13
|
+
ft: 'funding_time',
|
|
14
|
+
mp: 'mark_price',
|
|
15
|
+
fr: ['funding_rates', [exchange_funding_rate_1.EXCHANGE_FUNDING_RATE_MAP.LITE_TO_FULL]]
|
|
16
|
+
}
|
|
17
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.INJECTED_POINT_REQUEST_ELEMENT_MAP = void 0;
|
|
4
|
+
// Schema map for the 'INJECTED_POINT_REQUEST_ELEMENT' struct.
|
|
5
|
+
exports.INJECTED_POINT_REQUEST_ELEMENT_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
off_chain_account_id: 'oc',
|
|
8
|
+
points: 'p'
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
oc: 'off_chain_account_id',
|
|
12
|
+
p: 'points'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LIST_REWARD_EPOCH_RESPONSE_MAP = void 0;
|
|
4
|
+
const admin_reward_epoch_1 = require("./admin_reward_epoch");
|
|
5
|
+
// Schema map for the 'LIST_REWARD_EPOCH_RESPONSE' struct.
|
|
6
|
+
exports.LIST_REWARD_EPOCH_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
result: ['r', [admin_reward_epoch_1.ADMIN_REWARD_EPOCH_MAP.FULL_TO_LITE]]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
r: ['result', [admin_reward_epoch_1.ADMIN_REWARD_EPOCH_MAP.LITE_TO_FULL]]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LIVE_FUNDING_RATE_COMPARISON_ENTRY_MAP = void 0;
|
|
4
|
+
const exchange_funding_rate_1 = require("./exchange_funding_rate");
|
|
5
|
+
// Schema map for the 'LIVE_FUNDING_RATE_COMPARISON_ENTRY' struct.
|
|
6
|
+
exports.LIVE_FUNDING_RATE_COMPARISON_ENTRY_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
instrument: 'i',
|
|
9
|
+
next_funding_time: 'nf',
|
|
10
|
+
funding_interval_hours: 'fi',
|
|
11
|
+
funding_rates: ['fr', [exchange_funding_rate_1.EXCHANGE_FUNDING_RATE_MAP.FULL_TO_LITE]],
|
|
12
|
+
open_interest: 'oi'
|
|
13
|
+
},
|
|
14
|
+
LITE_TO_FULL: {
|
|
15
|
+
i: 'instrument',
|
|
16
|
+
nf: 'next_funding_time',
|
|
17
|
+
fi: 'funding_interval_hours',
|
|
18
|
+
fr: ['funding_rates', [exchange_funding_rate_1.EXCHANGE_FUNDING_RATE_MAP.LITE_TO_FULL]],
|
|
19
|
+
oi: 'open_interest'
|
|
20
|
+
}
|
|
21
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MANUAL_POINT_DISTRIBUTION_MAP = void 0;
|
|
4
|
+
const manual_point_distribution_metadata_1 = require("./manual_point_distribution_metadata");
|
|
5
|
+
// Schema map for the 'MANUAL_POINT_DISTRIBUTION' struct.
|
|
6
|
+
exports.MANUAL_POINT_DISTRIBUTION_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
id: 'i',
|
|
9
|
+
off_chain_account_id: 'oc',
|
|
10
|
+
points: 'p',
|
|
11
|
+
epoch: 'e',
|
|
12
|
+
metadata: ['m', manual_point_distribution_metadata_1.MANUAL_POINT_DISTRIBUTION_METADATA_MAP.FULL_TO_LITE],
|
|
13
|
+
distribution_type: 'dt',
|
|
14
|
+
point_type: 'pt',
|
|
15
|
+
created_by_id: 'cb',
|
|
16
|
+
create_time: 'ct',
|
|
17
|
+
update_time: 'ut'
|
|
18
|
+
},
|
|
19
|
+
LITE_TO_FULL: {
|
|
20
|
+
i: 'id',
|
|
21
|
+
oc: 'off_chain_account_id',
|
|
22
|
+
p: 'points',
|
|
23
|
+
e: 'epoch',
|
|
24
|
+
m: ['metadata', manual_point_distribution_metadata_1.MANUAL_POINT_DISTRIBUTION_METADATA_MAP.LITE_TO_FULL],
|
|
25
|
+
dt: 'distribution_type',
|
|
26
|
+
pt: 'point_type',
|
|
27
|
+
cb: 'created_by_id',
|
|
28
|
+
ct: 'create_time',
|
|
29
|
+
ut: 'update_time'
|
|
30
|
+
}
|
|
31
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MANUAL_POINT_DISTRIBUTION_METADATA_MAP = void 0;
|
|
4
|
+
// Schema map for the 'MANUAL_POINT_DISTRIBUTION_METADATA' struct.
|
|
5
|
+
exports.MANUAL_POINT_DISTRIBUTION_METADATA_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
reason: 'r',
|
|
8
|
+
raffle_task_id: 'rt',
|
|
9
|
+
task_account_create_time: 'ta'
|
|
10
|
+
},
|
|
11
|
+
LITE_TO_FULL: {
|
|
12
|
+
r: 'reason',
|
|
13
|
+
rt: 'raffle_task_id',
|
|
14
|
+
ta: 'task_account_create_time'
|
|
15
|
+
}
|
|
16
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.POINT_DISTRIBUTION_RATIO_MAP = void 0;
|
|
4
|
+
// Schema map for the 'POINT_DISTRIBUTION_RATIO' struct.
|
|
5
|
+
exports.POINT_DISTRIBUTION_RATIO_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
trading_volume: 'tv',
|
|
8
|
+
trading_lp_point: 'tl',
|
|
9
|
+
trading_open_interest: 'to',
|
|
10
|
+
trading_liquidation: 'tl1',
|
|
11
|
+
tvl: 't',
|
|
12
|
+
community_referral: 'cr',
|
|
13
|
+
reserve_pool: 'rp'
|
|
14
|
+
},
|
|
15
|
+
LITE_TO_FULL: {
|
|
16
|
+
tv: 'trading_volume',
|
|
17
|
+
tl: 'trading_lp_point',
|
|
18
|
+
to: 'trading_open_interest',
|
|
19
|
+
tl1: 'trading_liquidation',
|
|
20
|
+
t: 'tvl',
|
|
21
|
+
cr: 'community_referral',
|
|
22
|
+
rp: 'reserve_pool'
|
|
23
|
+
}
|
|
24
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RESERVE_POINT_INFORMATION_MAP = void 0;
|
|
4
|
+
// Schema map for the 'RESERVE_POINT_INFORMATION' struct.
|
|
5
|
+
exports.RESERVE_POINT_INFORMATION_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
cumulative_reserved_points: 'cr',
|
|
8
|
+
available_reserve_points: 'ar'
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
cr: 'cumulative_reserved_points',
|
|
12
|
+
ar: 'available_reserve_points'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.REWARD_ACCOUNT_MULTIPLIER_MAP = void 0;
|
|
4
|
+
const reward_account_multiplier_metadata_1 = require("./reward_account_multiplier_metadata");
|
|
4
5
|
// Schema map for the 'REWARD_ACCOUNT_MULTIPLIER' struct.
|
|
5
6
|
exports.REWARD_ACCOUNT_MULTIPLIER_MAP = Object.freeze({
|
|
6
7
|
FULL_TO_LITE: {
|
|
@@ -14,7 +15,8 @@ exports.REWARD_ACCOUNT_MULTIPLIER_MAP = Object.freeze({
|
|
|
14
15
|
status: 's',
|
|
15
16
|
created_by_id: 'cb',
|
|
16
17
|
create_time: 'ct',
|
|
17
|
-
update_time: 'ut'
|
|
18
|
+
update_time: 'ut',
|
|
19
|
+
metadata: ['m2', reward_account_multiplier_metadata_1.REWARD_ACCOUNT_MULTIPLIER_METADATA_MAP.FULL_TO_LITE]
|
|
18
20
|
},
|
|
19
21
|
LITE_TO_FULL: {
|
|
20
22
|
i: 'id',
|
|
@@ -27,6 +29,7 @@ exports.REWARD_ACCOUNT_MULTIPLIER_MAP = Object.freeze({
|
|
|
27
29
|
s: 'status',
|
|
28
30
|
cb: 'created_by_id',
|
|
29
31
|
ct: 'create_time',
|
|
30
|
-
ut: 'update_time'
|
|
32
|
+
ut: 'update_time',
|
|
33
|
+
m2: ['metadata', reward_account_multiplier_metadata_1.REWARD_ACCOUNT_MULTIPLIER_METADATA_MAP.LITE_TO_FULL]
|
|
31
34
|
}
|
|
32
35
|
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REWARD_ACCOUNT_MULTIPLIER_METADATA_MAP = void 0;
|
|
4
|
+
// Schema map for the 'REWARD_ACCOUNT_MULTIPLIER_METADATA' struct.
|
|
5
|
+
exports.REWARD_ACCOUNT_MULTIPLIER_METADATA_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
ambassador_tier: 'at',
|
|
8
|
+
referrer_account_id: 'ra',
|
|
9
|
+
note: 'n',
|
|
10
|
+
metadata_type: 'mt'
|
|
11
|
+
},
|
|
12
|
+
LITE_TO_FULL: {
|
|
13
|
+
at: 'ambassador_tier',
|
|
14
|
+
ra: 'referrer_account_id',
|
|
15
|
+
n: 'note',
|
|
16
|
+
mt: 'metadata_type'
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UPDATE_REWARD_EPOCH_REQUEST_MAP = void 0;
|
|
4
|
+
// Schema map for the 'UPDATE_REWARD_EPOCH_REQUEST' struct.
|
|
5
|
+
exports.UPDATE_REWARD_EPOCH_REQUEST_MAP = Object.freeze({
|
|
6
|
+
FULL_TO_LITE: {
|
|
7
|
+
epoch: 'e',
|
|
8
|
+
is_released: 'ir'
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
e: 'epoch',
|
|
12
|
+
ir: 'is_released'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UPDATE_REWARD_EPOCH_RESPONSE_MAP = void 0;
|
|
4
|
+
const admin_reward_epoch_1 = require("./admin_reward_epoch");
|
|
5
|
+
// Schema map for the 'UPDATE_REWARD_EPOCH_RESPONSE' struct.
|
|
6
|
+
exports.UPDATE_REWARD_EPOCH_RESPONSE_MAP = Object.freeze({
|
|
7
|
+
FULL_TO_LITE: {
|
|
8
|
+
result: ['r', admin_reward_epoch_1.ADMIN_REWARD_EPOCH_MAP.FULL_TO_LITE]
|
|
9
|
+
},
|
|
10
|
+
LITE_TO_FULL: {
|
|
11
|
+
r: ['result', admin_reward_epoch_1.ADMIN_REWARD_EPOCH_MAP.LITE_TO_FULL]
|
|
12
|
+
}
|
|
13
|
+
});
|
package/package.json
CHANGED