@reyaxyz/common 0.286.1 → 0.286.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/README.md CHANGED
@@ -6,5 +6,5 @@
6
6
 
7
7
  | Statements | Branches | Functions | Lines |
8
8
  | --------------------------- | ----------------------- | ------------------------- | ----------------- |
9
- | ![Statements](https://img.shields.io/badge/statements-19.73%25-red.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-16.27%25-red.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-9.81%25-red.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-21.3%25-red.svg?style=flat) |
9
+ | ![Statements](https://img.shields.io/badge/statements-19.85%25-red.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-16.43%25-red.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-9.85%25-red.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-21.45%25-red.svg?style=flat) |
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 createdAt: Date;\n tradingXp: number;\n stakingXp: number;\n totalXp: number;\n tradingPoints: number;\n stakingPoints: number;\n totalPoints: number;\n seasonNumber?: number;\n seasonName: string;\n sourceSystem?: string;\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': ApiListEndpoint<\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"]}
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 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;AAC/B,2CAAyB","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';\nexport * from './config';\n"]}
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"]}
@@ -45,16 +45,44 @@ export type IncentivesRankingHistoryEntry = {
45
45
  stakingPoints: number;
46
46
  };
47
47
  export type IncentivesPointsHistoryEntry = {
48
- createdAt: Date;
49
- tradingXp: number;
50
- stakingXp: number;
48
+ walletAddress: string;
49
+ totalXpOG: number;
50
+ totalXpOGRanked: number;
51
+ liquidityReferralXpOG: number;
52
+ liquidityXpOG: number;
53
+ rankMultiplierOG: number;
54
+ rankOG: Rank;
55
+ stakingPointsOG: number;
56
+ liquidityReferralXpSeason1: number;
57
+ liquidityXpSeason1: number;
58
+ liquidityXpSeason1Ranked: number;
59
+ rankMultiplierSeason1: number;
60
+ rankSeason1: Rank;
61
+ stakingPointsSeason1: number;
62
+ tradingReferralXpSeason1: number;
63
+ tradingXpSeason1: number;
64
+ tradingXpSeason1Ranked: number;
65
+ tradingRankMultiplierSeason1: number;
66
+ tradingRankSeason1: RankTrading;
67
+ tradingPointsSeason1: number;
68
+ liquidityReferralXpSeason2: number;
69
+ liquidityXpSeason2: number;
70
+ liquidityXpSeason2Ranked: number;
71
+ rankMultiplierSeason2: number;
72
+ rankSeason2: Rank;
73
+ stakingPointsSeason2: number;
74
+ tradingReferralXpSeason2: number;
75
+ tradingXpSeason2: number;
76
+ tradingXpSeason2Ranked: number;
77
+ tradingRankMultiplierSeason2: number;
78
+ tradingRankSeason2: RankTrading;
79
+ tradingPointsSeason2: number;
80
+ totalLiquidityXp: number;
81
+ totalLiquidityReferralXp: number;
82
+ totalTradingXp: number;
83
+ totalTradingReferralXp: number;
51
84
  totalXp: number;
52
- tradingPoints: number;
53
- stakingPoints: number;
54
85
  totalPoints: number;
55
- seasonNumber?: number;
56
- seasonName: string;
57
- sourceSystem?: string;
58
86
  };
59
87
  export type IncentivesApiSource = {
60
88
  'incentives/points': ApiEndpoint<{
@@ -74,7 +102,7 @@ export type IncentivesApiSource = {
74
102
  points: number;
75
103
  reason: string;
76
104
  }, AddressParam>;
77
- 'incentives/wallet/:address/pointsHistory': ApiListEndpoint<IncentivesPointsHistoryEntry, AddressParam>;
105
+ 'incentives/wallet/:address/pointsHistory': ApiEndpoint<IncentivesPointsHistoryEntry, AddressParam>;
78
106
  };
79
107
  export type IncentivesApi = {
80
108
  [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,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WAAW,CACrD,4BAA4B,EAC5B,YAAY,CACb,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;KACzB,CAAC,IAAI,MAAM,mBAAmB,GAAG;QAChC,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;QACzC,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QACvC,QAAQ,EAAE,WAAW,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;KAC3D;CACF,CAAC"}
@@ -9,5 +9,4 @@ export * from './modules';
9
9
  export * from './rest';
10
10
  export * from './decorators';
11
11
  export * from './transactions';
12
- export * from './config';
13
12
  //# sourceMappingURL=index.d.ts.map
@@ -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;AAC/B,cAAc,UAAU,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.286.1",
3
+ "version": "0.286.2",
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": "1dea63b240cb98853c06495e0993168e07288445"
47
+ "gitHead": "e3974ed8e5c88877aaa24caae99ffb98495d2c49"
48
48
  }
@@ -60,16 +60,44 @@ export type IncentivesRankingHistoryEntry = {
60
60
  };
61
61
 
62
62
  export type IncentivesPointsHistoryEntry = {
63
- createdAt: Date;
64
- tradingXp: number;
65
- stakingXp: number;
63
+ walletAddress: string;
64
+ totalXpOG: number;
65
+ totalXpOGRanked: number;
66
+ liquidityReferralXpOG: number;
67
+ liquidityXpOG: number;
68
+ rankMultiplierOG: number;
69
+ rankOG: Rank;
70
+ stakingPointsOG: number;
71
+ liquidityReferralXpSeason1: number;
72
+ liquidityXpSeason1: number;
73
+ liquidityXpSeason1Ranked: number;
74
+ rankMultiplierSeason1: number;
75
+ rankSeason1: Rank;
76
+ stakingPointsSeason1: number;
77
+ tradingReferralXpSeason1: number;
78
+ tradingXpSeason1: number;
79
+ tradingXpSeason1Ranked: number;
80
+ tradingRankMultiplierSeason1: number;
81
+ tradingRankSeason1: RankTrading;
82
+ tradingPointsSeason1: number;
83
+ liquidityReferralXpSeason2: number;
84
+ liquidityXpSeason2: number;
85
+ liquidityXpSeason2Ranked: number;
86
+ rankMultiplierSeason2: number;
87
+ rankSeason2: Rank;
88
+ stakingPointsSeason2: number;
89
+ tradingReferralXpSeason2: number;
90
+ tradingXpSeason2: number;
91
+ tradingXpSeason2Ranked: number;
92
+ tradingRankMultiplierSeason2: number;
93
+ tradingRankSeason2: RankTrading;
94
+ tradingPointsSeason2: number;
95
+ totalLiquidityXp: number;
96
+ totalLiquidityReferralXp: number;
97
+ totalTradingXp: number;
98
+ totalTradingReferralXp: number;
66
99
  totalXp: number;
67
- tradingPoints: number;
68
- stakingPoints: number;
69
100
  totalPoints: number;
70
- seasonNumber?: number;
71
- seasonName: string;
72
- sourceSystem?: string;
73
101
  };
74
102
 
75
103
  export type IncentivesApiSource = {
@@ -111,7 +139,7 @@ export type IncentivesApiSource = {
111
139
  AddressParam
112
140
  >;
113
141
 
114
- 'incentives/wallet/:address/pointsHistory': ApiListEndpoint<
142
+ 'incentives/wallet/:address/pointsHistory': ApiEndpoint<
115
143
  IncentivesPointsHistoryEntry,
116
144
  AddressParam
117
145
  >;
package/src/index.ts CHANGED
@@ -9,4 +9,3 @@ export * from './modules';
9
9
  export * from './rest';
10
10
  export * from './decorators';
11
11
  export * from './transactions';
12
- export * from './config';
@@ -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
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"/","sources":["config/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B","sourcesContent":["export * from './xpConfig';\n"]}
@@ -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,2 +0,0 @@
1
- export * from './xpConfig';
2
- //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -1 +0,0 @@
1
- export * from './xpConfig';
@@ -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
- };