@reyaxyz/common 0.286.1 → 0.287.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/incentives-api-types.js.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/types/incentives-api-types.d.ts +38 -9
- package/dist/types/incentives-api-types.d.ts.map +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/incentives-api-types.ts +38 -9
- package/src/index.ts +0 -1
- package/dist/config/index.js +0 -18
- package/dist/config/index.js.map +0 -1
- package/dist/config/xpConfig.js +0 -34
- package/dist/config/xpConfig.js.map +0 -1
- package/dist/types/config/index.d.ts +0 -2
- package/dist/types/config/index.d.ts.map +0 -1
- package/dist/types/config/xpConfig.d.ts +0 -8
- package/dist/types/config/xpConfig.d.ts.map +0 -1
- package/src/config/index.ts +0 -1
- package/src/config/xpConfig.ts +0 -39
package/README.md
CHANGED
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
|
|
7
7
|
| Statements | Branches | Functions | Lines |
|
|
8
8
|
| --------------------------- | ----------------------- | ------------------------- | ----------------- |
|
|
9
|
-
|  |  |  |  |
|
|
10
10
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"incentives-api-types.js","sourceRoot":"/","sources":["incentives-api-types.ts"],"names":[],"mappings":"","sourcesContent":["import {\n AddressParam,\n ApiEndpoint,\n ApiInfiniteListEndpoint,\n ApiListEndpoint,\n PaginatedQueryParams,\n Stringified,\n} from './api-types';\nimport { Rank, RankTrading } from './types';\n\nexport type PointsBreakdown = {\n totalPoints: number;\n tradingPoints: number;\n stakingPoints: number;\n signalPoints: number;\n};\n\nexport type IncentivesUserPointsData = {\n weekly: PointsBreakdown;\n total: PointsBreakdown;\n};\n\nexport type IncentivesUserRanks = {\n walletAddress: string;\n tradingRank: RankTrading;\n stakingRank: Rank;\n};\n\nexport type IncentivesUserBoosts = {\n walletAddress: string;\n tradingBoost: number;\n stakingBoost: number;\n loyaltyBoost: number;\n};\n\nexport type IncentivesUserSummaryData = {\n walletAddress: string;\n points: IncentivesUserPointsData;\n ranks: Omit<IncentivesUserRanks, 'walletAddress'>;\n boosts: Omit<IncentivesUserBoosts, 'walletAddress'>;\n};\n\nexport type IncentivesLeaderBoardEntry = {\n rank: number;\n walletAddress: string;\n totalPoints: number;\n tradingPoints: number;\n stakingPoints: number;\n signalPoints: number;\n isCurrentUser?: boolean;\n};\n\nexport type IncentivesRankingHistoryEntry = {\n week: number;\n createdAt: Date;\n tradingRank: RankTrading;\n stakingRank: Rank;\n tradingPoints: number;\n stakingPoints: number;\n};\n\nexport type IncentivesPointsHistoryEntry = {\n
|
|
1
|
+
{"version":3,"file":"incentives-api-types.js","sourceRoot":"/","sources":["incentives-api-types.ts"],"names":[],"mappings":"","sourcesContent":["import {\n AddressParam,\n ApiEndpoint,\n ApiInfiniteListEndpoint,\n ApiListEndpoint,\n PaginatedQueryParams,\n Stringified,\n} from './api-types';\nimport { Rank, RankTrading } from './types';\n\nexport type PointsBreakdown = {\n totalPoints: number;\n tradingPoints: number;\n stakingPoints: number;\n signalPoints: number;\n rank: number;\n};\n\nexport type IncentivesUserPointsData = {\n weekly: PointsBreakdown;\n total: PointsBreakdown;\n};\n\nexport type IncentivesUserRanks = {\n walletAddress: string;\n tradingRank: RankTrading;\n stakingRank: Rank;\n};\n\nexport type IncentivesUserBoosts = {\n walletAddress: string;\n tradingBoost: number;\n stakingBoost: number;\n loyaltyBoost: number;\n};\n\nexport type IncentivesUserSummaryData = {\n walletAddress: string;\n points: IncentivesUserPointsData;\n ranks: Omit<IncentivesUserRanks, 'walletAddress'>;\n boosts: Omit<IncentivesUserBoosts, 'walletAddress'>;\n};\n\nexport type IncentivesLeaderBoardEntry = {\n rank: number;\n walletAddress: string;\n totalPoints: number;\n tradingPoints: number;\n stakingPoints: number;\n signalPoints: number;\n isCurrentUser?: boolean;\n};\n\nexport type IncentivesRankingHistoryEntry = {\n week: number;\n createdAt: Date;\n tradingRank: RankTrading;\n stakingRank: Rank;\n tradingPoints: number;\n stakingPoints: number;\n};\n\nexport type IncentivesPointsHistoryEntry = {\n walletAddress: string;\n totalXpOG: number;\n totalXpOGRanked: number;\n liquidityReferralXpOG: number;\n liquidityXpOG: number;\n rankMultiplierOG: number;\n rankOG: Rank;\n stakingPointsOG: number;\n liquidityReferralXpSeason1: number;\n liquidityXpSeason1: number;\n liquidityXpSeason1Ranked: number;\n rankMultiplierSeason1: number;\n rankSeason1: Rank;\n stakingPointsSeason1: number;\n tradingReferralXpSeason1: number;\n tradingXpSeason1: number;\n tradingXpSeason1Ranked: number;\n tradingRankMultiplierSeason1: number;\n tradingRankSeason1: RankTrading;\n tradingPointsSeason1: number;\n liquidityReferralXpSeason2: number;\n liquidityXpSeason2: number;\n liquidityXpSeason2Ranked: number;\n rankMultiplierSeason2: number;\n rankSeason2: Rank;\n stakingPointsSeason2: number;\n tradingReferralXpSeason2: number;\n tradingXpSeason2: number;\n tradingXpSeason2Ranked: number;\n tradingRankMultiplierSeason2: number;\n tradingRankSeason2: RankTrading;\n tradingPointsSeason2: number;\n totalLiquidityXp: number;\n totalLiquidityReferralXp: number;\n totalTradingXp: number;\n totalTradingReferralXp: number;\n totalXp: number;\n totalPoints: number;\n};\n\nexport type IncentivesApiSource = {\n 'incentives/points': ApiEndpoint<\n {\n total: number;\n weekly: number;\n },\n never\n >;\n\n 'incentives/leaderBoard/:type': ApiInfiniteListEndpoint<\n IncentivesLeaderBoardEntry,\n { type: 'weekly' | 'total' },\n PaginatedQueryParams\n >;\n\n 'incentives/wallet/:address': ApiEndpoint<\n IncentivesUserSummaryData,\n AddressParam\n >;\n\n 'incentives/wallet/:address/leaderBoard/:type': ApiEndpoint<\n IncentivesLeaderBoardEntry,\n AddressParam & { type: 'weekly' | 'total' }\n >;\n\n 'incentives/wallet/:address/ranksHistory': ApiListEndpoint<\n IncentivesRankingHistoryEntry,\n AddressParam\n >;\n\n 'incentives/wallet/:address/signalPoints': ApiListEndpoint<\n {\n createdAt: Date;\n points: number;\n reason: string;\n },\n AddressParam\n >;\n\n 'incentives/wallet/:address/pointsHistory': ApiEndpoint<\n IncentivesPointsHistoryEntry,\n AddressParam\n >;\n};\n\nexport type IncentivesApi = {\n [K in keyof IncentivesApiSource]: {\n params: IncentivesApiSource[K]['params'];\n query: IncentivesApiSource[K]['query'];\n response: Stringified<IncentivesApiSource[K]['response']>;\n };\n};\n"]}
|
package/dist/index.js
CHANGED
|
@@ -25,5 +25,4 @@ __exportStar(require("./modules"), exports);
|
|
|
25
25
|
__exportStar(require("./rest"), exports);
|
|
26
26
|
__exportStar(require("./decorators"), exports);
|
|
27
27
|
__exportStar(require("./transactions"), exports);
|
|
28
|
-
__exportStar(require("./config"), exports);
|
|
29
28
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,8CAA4B;AAC5B,sDAAoC;AACpC,yDAAuC;AACvC,6CAA2B;AAC3B,0CAAwB;AACxB,6CAA2B;AAC3B,4CAA0B;AAC1B,yCAAuB;AACvB,+CAA6B;AAC7B,iDAA+B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,8CAA4B;AAC5B,sDAAoC;AACpC,yDAAuC;AACvC,6CAA2B;AAC3B,0CAAwB;AACxB,6CAA2B;AAC3B,4CAA0B;AAC1B,yCAAuB;AACvB,+CAA6B;AAC7B,iDAA+B","sourcesContent":["export * from './types';\nexport * from './api-types';\nexport * from './trading-api-types';\nexport * from './incentives-api-types';\nexport * from './commands';\nexport * from './utils';\nexport * from './services';\nexport * from './modules';\nexport * from './rest';\nexport * from './decorators';\nexport * from './transactions';\n"]}
|
|
@@ -5,6 +5,7 @@ export type PointsBreakdown = {
|
|
|
5
5
|
tradingPoints: number;
|
|
6
6
|
stakingPoints: number;
|
|
7
7
|
signalPoints: number;
|
|
8
|
+
rank: number;
|
|
8
9
|
};
|
|
9
10
|
export type IncentivesUserPointsData = {
|
|
10
11
|
weekly: PointsBreakdown;
|
|
@@ -45,16 +46,44 @@ export type IncentivesRankingHistoryEntry = {
|
|
|
45
46
|
stakingPoints: number;
|
|
46
47
|
};
|
|
47
48
|
export type IncentivesPointsHistoryEntry = {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
walletAddress: string;
|
|
50
|
+
totalXpOG: number;
|
|
51
|
+
totalXpOGRanked: number;
|
|
52
|
+
liquidityReferralXpOG: number;
|
|
53
|
+
liquidityXpOG: number;
|
|
54
|
+
rankMultiplierOG: number;
|
|
55
|
+
rankOG: Rank;
|
|
56
|
+
stakingPointsOG: number;
|
|
57
|
+
liquidityReferralXpSeason1: number;
|
|
58
|
+
liquidityXpSeason1: number;
|
|
59
|
+
liquidityXpSeason1Ranked: number;
|
|
60
|
+
rankMultiplierSeason1: number;
|
|
61
|
+
rankSeason1: Rank;
|
|
62
|
+
stakingPointsSeason1: number;
|
|
63
|
+
tradingReferralXpSeason1: number;
|
|
64
|
+
tradingXpSeason1: number;
|
|
65
|
+
tradingXpSeason1Ranked: number;
|
|
66
|
+
tradingRankMultiplierSeason1: number;
|
|
67
|
+
tradingRankSeason1: RankTrading;
|
|
68
|
+
tradingPointsSeason1: number;
|
|
69
|
+
liquidityReferralXpSeason2: number;
|
|
70
|
+
liquidityXpSeason2: number;
|
|
71
|
+
liquidityXpSeason2Ranked: number;
|
|
72
|
+
rankMultiplierSeason2: number;
|
|
73
|
+
rankSeason2: Rank;
|
|
74
|
+
stakingPointsSeason2: number;
|
|
75
|
+
tradingReferralXpSeason2: number;
|
|
76
|
+
tradingXpSeason2: number;
|
|
77
|
+
tradingXpSeason2Ranked: number;
|
|
78
|
+
tradingRankMultiplierSeason2: number;
|
|
79
|
+
tradingRankSeason2: RankTrading;
|
|
80
|
+
tradingPointsSeason2: number;
|
|
81
|
+
totalLiquidityXp: number;
|
|
82
|
+
totalLiquidityReferralXp: number;
|
|
83
|
+
totalTradingXp: number;
|
|
84
|
+
totalTradingReferralXp: number;
|
|
51
85
|
totalXp: number;
|
|
52
|
-
tradingPoints: number;
|
|
53
|
-
stakingPoints: number;
|
|
54
86
|
totalPoints: number;
|
|
55
|
-
seasonNumber?: number;
|
|
56
|
-
seasonName: string;
|
|
57
|
-
sourceSystem?: string;
|
|
58
87
|
};
|
|
59
88
|
export type IncentivesApiSource = {
|
|
60
89
|
'incentives/points': ApiEndpoint<{
|
|
@@ -74,7 +103,7 @@ export type IncentivesApiSource = {
|
|
|
74
103
|
points: number;
|
|
75
104
|
reason: string;
|
|
76
105
|
}, AddressParam>;
|
|
77
|
-
'incentives/wallet/:address/pointsHistory':
|
|
106
|
+
'incentives/wallet/:address/pointsHistory': ApiEndpoint<IncentivesPointsHistoryEntry, AddressParam>;
|
|
78
107
|
};
|
|
79
108
|
export type IncentivesApi = {
|
|
80
109
|
[K in keyof IncentivesApiSource]: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"incentives-api-types.d.ts","sourceRoot":"/","sources":["incentives-api-types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,WAAW,EACX,uBAAuB,EACvB,eAAe,EACf,oBAAoB,EACpB,WAAW,EACZ,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"incentives-api-types.d.ts","sourceRoot":"/","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AAmB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QACvC,QAAQ,EAAE,WAAW,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;KAC3D;CACF,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reyaxyz/common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.287.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"generate:coverage-badges": "npx istanbul-badges-readme --silent"
|
|
45
45
|
},
|
|
46
46
|
"packageManager": "pnpm@8.3.1",
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "19445391f920f401541d61b7b37755a44ded4c2f"
|
|
48
48
|
}
|
|
@@ -13,6 +13,7 @@ export type PointsBreakdown = {
|
|
|
13
13
|
tradingPoints: number;
|
|
14
14
|
stakingPoints: number;
|
|
15
15
|
signalPoints: number;
|
|
16
|
+
rank: number;
|
|
16
17
|
};
|
|
17
18
|
|
|
18
19
|
export type IncentivesUserPointsData = {
|
|
@@ -60,16 +61,44 @@ export type IncentivesRankingHistoryEntry = {
|
|
|
60
61
|
};
|
|
61
62
|
|
|
62
63
|
export type IncentivesPointsHistoryEntry = {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
walletAddress: string;
|
|
65
|
+
totalXpOG: number;
|
|
66
|
+
totalXpOGRanked: number;
|
|
67
|
+
liquidityReferralXpOG: number;
|
|
68
|
+
liquidityXpOG: number;
|
|
69
|
+
rankMultiplierOG: number;
|
|
70
|
+
rankOG: Rank;
|
|
71
|
+
stakingPointsOG: number;
|
|
72
|
+
liquidityReferralXpSeason1: number;
|
|
73
|
+
liquidityXpSeason1: number;
|
|
74
|
+
liquidityXpSeason1Ranked: number;
|
|
75
|
+
rankMultiplierSeason1: number;
|
|
76
|
+
rankSeason1: Rank;
|
|
77
|
+
stakingPointsSeason1: number;
|
|
78
|
+
tradingReferralXpSeason1: number;
|
|
79
|
+
tradingXpSeason1: number;
|
|
80
|
+
tradingXpSeason1Ranked: number;
|
|
81
|
+
tradingRankMultiplierSeason1: number;
|
|
82
|
+
tradingRankSeason1: RankTrading;
|
|
83
|
+
tradingPointsSeason1: number;
|
|
84
|
+
liquidityReferralXpSeason2: number;
|
|
85
|
+
liquidityXpSeason2: number;
|
|
86
|
+
liquidityXpSeason2Ranked: number;
|
|
87
|
+
rankMultiplierSeason2: number;
|
|
88
|
+
rankSeason2: Rank;
|
|
89
|
+
stakingPointsSeason2: number;
|
|
90
|
+
tradingReferralXpSeason2: number;
|
|
91
|
+
tradingXpSeason2: number;
|
|
92
|
+
tradingXpSeason2Ranked: number;
|
|
93
|
+
tradingRankMultiplierSeason2: number;
|
|
94
|
+
tradingRankSeason2: RankTrading;
|
|
95
|
+
tradingPointsSeason2: number;
|
|
96
|
+
totalLiquidityXp: number;
|
|
97
|
+
totalLiquidityReferralXp: number;
|
|
98
|
+
totalTradingXp: number;
|
|
99
|
+
totalTradingReferralXp: number;
|
|
66
100
|
totalXp: number;
|
|
67
|
-
tradingPoints: number;
|
|
68
|
-
stakingPoints: number;
|
|
69
101
|
totalPoints: number;
|
|
70
|
-
seasonNumber?: number;
|
|
71
|
-
seasonName: string;
|
|
72
|
-
sourceSystem?: string;
|
|
73
102
|
};
|
|
74
103
|
|
|
75
104
|
export type IncentivesApiSource = {
|
|
@@ -111,7 +140,7 @@ export type IncentivesApiSource = {
|
|
|
111
140
|
AddressParam
|
|
112
141
|
>;
|
|
113
142
|
|
|
114
|
-
'incentives/wallet/:address/pointsHistory':
|
|
143
|
+
'incentives/wallet/:address/pointsHistory': ApiEndpoint<
|
|
115
144
|
IncentivesPointsHistoryEntry,
|
|
116
145
|
AddressParam
|
|
117
146
|
>;
|
package/src/index.ts
CHANGED
package/dist/config/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./xpConfig"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
package/dist/config/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"/","sources":["config/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B","sourcesContent":["export * from './xpConfig';\n"]}
|
package/dist/config/xpConfig.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// packages/common/src/config/xpConfig.ts
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.getXpDividersForSeason = exports.DEFAULT_XP_DIVIDERS = exports.XP_DIVIDER_CONFIG = void 0;
|
|
5
|
-
// Config mapping: seasonNumber -> dividers
|
|
6
|
-
exports.XP_DIVIDER_CONFIG = {
|
|
7
|
-
// OG Season
|
|
8
|
-
0: {
|
|
9
|
-
tradingXpDivider: 1000,
|
|
10
|
-
stakingXpDivider: 1000,
|
|
11
|
-
},
|
|
12
|
-
// Season 1
|
|
13
|
-
1: {
|
|
14
|
-
tradingXpDivider: 1000,
|
|
15
|
-
stakingXpDivider: 1000,
|
|
16
|
-
},
|
|
17
|
-
// Season 2
|
|
18
|
-
2: {
|
|
19
|
-
tradingXpDivider: 1000,
|
|
20
|
-
stakingXpDivider: 1000,
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
exports.DEFAULT_XP_DIVIDERS = {
|
|
24
|
-
tradingXpDivider: 1000,
|
|
25
|
-
stakingXpDivider: 1000,
|
|
26
|
-
};
|
|
27
|
-
var getXpDividersForSeason = function (seasonNumber) {
|
|
28
|
-
if (seasonNumber && exports.XP_DIVIDER_CONFIG[seasonNumber]) {
|
|
29
|
-
return exports.XP_DIVIDER_CONFIG[seasonNumber];
|
|
30
|
-
}
|
|
31
|
-
return exports.DEFAULT_XP_DIVIDERS;
|
|
32
|
-
};
|
|
33
|
-
exports.getXpDividersForSeason = getXpDividersForSeason;
|
|
34
|
-
//# sourceMappingURL=xpConfig.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xpConfig.js","sourceRoot":"/","sources":["config/xpConfig.ts"],"names":[],"mappings":";AAAA,yCAAyC;;;AAOzC,2CAA2C;AAC9B,QAAA,iBAAiB,GAA0C;IACtE,YAAY;IACZ,CAAC,EAAE;QACD,gBAAgB,EAAE,IAAI;QACtB,gBAAgB,EAAE,IAAI;KACvB;IACD,WAAW;IACX,CAAC,EAAE;QACD,gBAAgB,EAAE,IAAI;QACtB,gBAAgB,EAAE,IAAI;KACvB;IACD,WAAW;IACX,CAAC,EAAE;QACD,gBAAgB,EAAE,IAAI;QACtB,gBAAgB,EAAE,IAAI;KACvB;CACF,CAAC;AAEW,QAAA,mBAAmB,GAA0B;IACxD,gBAAgB,EAAE,IAAI;IACtB,gBAAgB,EAAE,IAAI;CACvB,CAAC;AAEK,IAAM,sBAAsB,GAAG,UACpC,YAAqB;IAErB,IAAI,YAAY,IAAI,yBAAiB,CAAC,YAAY,CAAC,EAAE,CAAC;QACpD,OAAO,yBAAiB,CAAC,YAAY,CAAC,CAAC;IACzC,CAAC;IACD,OAAO,2BAAmB,CAAC;AAC7B,CAAC,CAAC;AAPW,QAAA,sBAAsB,0BAOjC","sourcesContent":["// packages/common/src/config/xpConfig.ts\n\nexport type XpSeasonDividerConfig = {\n tradingXpDivider: number;\n stakingXpDivider: number;\n};\n\n// Config mapping: seasonNumber -> dividers\nexport const XP_DIVIDER_CONFIG: Record<number, XpSeasonDividerConfig> = {\n // OG Season\n 0: {\n tradingXpDivider: 1000,\n stakingXpDivider: 1000,\n },\n // Season 1\n 1: {\n tradingXpDivider: 1000,\n stakingXpDivider: 1000,\n },\n // Season 2\n 2: {\n tradingXpDivider: 1000,\n stakingXpDivider: 1000,\n },\n};\n\nexport const DEFAULT_XP_DIVIDERS: XpSeasonDividerConfig = {\n tradingXpDivider: 1000,\n stakingXpDivider: 1000,\n};\n\nexport const getXpDividersForSeason = (\n seasonNumber?: number,\n): XpSeasonDividerConfig => {\n if (seasonNumber && XP_DIVIDER_CONFIG[seasonNumber]) {\n return XP_DIVIDER_CONFIG[seasonNumber];\n }\n return DEFAULT_XP_DIVIDERS;\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["config/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export type XpSeasonDividerConfig = {
|
|
2
|
-
tradingXpDivider: number;
|
|
3
|
-
stakingXpDivider: number;
|
|
4
|
-
};
|
|
5
|
-
export declare const XP_DIVIDER_CONFIG: Record<number, XpSeasonDividerConfig>;
|
|
6
|
-
export declare const DEFAULT_XP_DIVIDERS: XpSeasonDividerConfig;
|
|
7
|
-
export declare const getXpDividersForSeason: (seasonNumber?: number) => XpSeasonDividerConfig;
|
|
8
|
-
//# sourceMappingURL=xpConfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xpConfig.d.ts","sourceRoot":"/","sources":["config/xpConfig.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,qBAAqB,GAAG;IAClC,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAGF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAgBnE,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,qBAGjC,CAAC;AAEF,eAAO,MAAM,sBAAsB,kBAClB,MAAM,KACpB,qBAKF,CAAC"}
|
package/src/config/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './xpConfig';
|
package/src/config/xpConfig.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// packages/common/src/config/xpConfig.ts
|
|
2
|
-
|
|
3
|
-
export type XpSeasonDividerConfig = {
|
|
4
|
-
tradingXpDivider: number;
|
|
5
|
-
stakingXpDivider: number;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
// Config mapping: seasonNumber -> dividers
|
|
9
|
-
export const XP_DIVIDER_CONFIG: Record<number, XpSeasonDividerConfig> = {
|
|
10
|
-
// OG Season
|
|
11
|
-
0: {
|
|
12
|
-
tradingXpDivider: 1000,
|
|
13
|
-
stakingXpDivider: 1000,
|
|
14
|
-
},
|
|
15
|
-
// Season 1
|
|
16
|
-
1: {
|
|
17
|
-
tradingXpDivider: 1000,
|
|
18
|
-
stakingXpDivider: 1000,
|
|
19
|
-
},
|
|
20
|
-
// Season 2
|
|
21
|
-
2: {
|
|
22
|
-
tradingXpDivider: 1000,
|
|
23
|
-
stakingXpDivider: 1000,
|
|
24
|
-
},
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export const DEFAULT_XP_DIVIDERS: XpSeasonDividerConfig = {
|
|
28
|
-
tradingXpDivider: 1000,
|
|
29
|
-
stakingXpDivider: 1000,
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export const getXpDividersForSeason = (
|
|
33
|
-
seasonNumber?: number,
|
|
34
|
-
): XpSeasonDividerConfig => {
|
|
35
|
-
if (seasonNumber && XP_DIVIDER_CONFIG[seasonNumber]) {
|
|
36
|
-
return XP_DIVIDER_CONFIG[seasonNumber];
|
|
37
|
-
}
|
|
38
|
-
return DEFAULT_XP_DIVIDERS;
|
|
39
|
-
};
|