@reyaxyz/common 0.343.0 → 0.343.1
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/dist/api-types.js.map +1 -1
- package/dist/incentives-api-types.js.map +1 -1
- package/dist/types/api-types.d.ts +12 -0
- package/dist/types/api-types.d.ts.map +1 -1
- package/dist/types/incentives-api-types.d.ts +8 -1
- package/dist/types/incentives-api-types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/api-types.ts +4 -0
- package/src/incentives-api-types.ts +13 -0
package/dist/api-types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-types.js","sourceRoot":"/","sources":["api-types.ts"],"names":[],"mappings":"","sourcesContent":["export type PaginatedQueryParams = {\n before: string;\n after: string;\n limit: string;\n direction: 'asc' | 'desc';\n};\n\nexport type PaginatedQueryMeta = {\n limit: number;\n count: number;\n before: string | null | undefined;\n after: string | null | undefined;\n};\n\nexport type Decimal = 'fake-decimal';\n\nexport type ApiEndpoint<Response, Params, Query = never> = {\n params: Params;\n query: Query;\n response: Response;\n};\n\nexport type ApiListEndpoint<Response, Params = never, Query = never> = {\n params: Params;\n query: Query;\n response: Response[];\n};\n\nexport type ApiInfiniteListEndpointResponse<Response> = {\n data: Response[];\n meta: PaginatedQueryMeta;\n};\n\nexport type ApiInfiniteListEndpoint<\n Response,\n Params = never,\n Query = PaginatedQueryParams,\n> = {\n params: Params;\n query: Query;\n response: ApiInfiniteListEndpointResponse<Response>;\n};\n\nexport type AddressParam = {\n address: string;\n};\n\nexport type ReplaceDecimals<T, D> = T extends Decimal\n ? D\n : T extends (infer U)[]\n ? ReplaceDecimals<U, D>[]\n : { [K in keyof T]: ReplaceDecimals<T[K], D> };\n\nexport type Stringified<T, D = Decimal> = T extends D | bigint | Date\n ? string\n : T extends (infer U)[]\n ? Stringified<U, D>[]\n : {\n [K in keyof T]: Stringified<T[K], D>;\n };\n\nexport type PageBasedPaginatedListResponse<T> = {\n data: T[];\n currentPage: number;\n totalPages: number;\n userWallet?: string;\n type: 'weekly' | 'total';\n};\n"]}
|
|
1
|
+
{"version":3,"file":"api-types.js","sourceRoot":"/","sources":["api-types.ts"],"names":[],"mappings":"","sourcesContent":["export type PaginatedQueryParams = {\n before: string;\n after: string;\n limit: string;\n direction: 'asc' | 'desc';\n};\n\nexport type PaginatedQueryMeta = {\n limit: number;\n count: number;\n before: string | null | undefined;\n after: string | null | undefined;\n};\n\nexport type Decimal = 'fake-decimal';\n\nexport type ApiEndpoint<Response, Params, Query = never> = {\n params: Params;\n query: Query;\n response: Response;\n};\n\nexport type ApiListEndpoint<Response, Params = never, Query = never> = {\n params: Params;\n query: Query;\n response: Response[];\n};\n\nexport type ApiInfiniteListEndpointResponse<Response> = {\n data: Response[];\n meta: PaginatedQueryMeta;\n};\n\nexport type ApiInfiniteListEndpoint<\n Response,\n Params = never,\n Query = PaginatedQueryParams,\n> = {\n params: Params;\n query: Query;\n response: ApiInfiniteListEndpointResponse<Response>;\n};\n\nexport type AddressParam = {\n address: string;\n};\n\nexport type ReplaceDecimals<T, D> = T extends Decimal\n ? D\n : T extends (infer U)[]\n ? ReplaceDecimals<U, D>[]\n : { [K in keyof T]: ReplaceDecimals<T[K], D> };\n\nexport type Stringified<T, D = Decimal> = T extends D | bigint | Date\n ? string\n : T extends (infer U)[]\n ? Stringified<U, D>[]\n : {\n [K in keyof T]: Stringified<T[K], D>;\n };\n\nexport type FailableResult<T = never> = [T] extends [never]\n ? { success: true } | { success: false; error: string }\n : { success: true; data: T } | { success: false; error: string };\n\nexport type PageBasedPaginatedListResponse<T> = {\n data: T[];\n currentPage: number;\n totalPages: number;\n userWallet?: string;\n type: 'weekly' | 'total';\n};\n"]}
|
|
@@ -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 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 rankSeason2: Rank;\n stakingPointsSeason2: number;\n tradingReferralXpSeason2: number;\n tradingXpSeason2: 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 LeaderBoardParams = { type: 'weekly' | 'total' };\n\nexport type TradingCompetitionRoundParams = { round: number };\n\nexport type TradingCompetitionUserSummaryData = {\n realizedPnl: number;\n eligible: boolean;\n position: number | null;\n};\n\nexport type TradingCompetitionLeaderboardEntry = {\n walletAddress: string;\n realizedPnl: number;\n position: 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 LeaderBoardParams,\n PaginatedQueryParams\n >;\n\n 'incentives/wallet/:address': ApiEndpoint<\n IncentivesUserSummaryData,\n AddressParam\n >;\n\n 'incentives/wallet/:address/referralsLeaderBoard/:type': ApiListEndpoint<\n IncentivesLeaderBoardEntry,\n AddressParam & LeaderBoardParams\n >;\n\n 'incentives/wallet/:address/leaderBoard/:type': ApiEndpoint<\n IncentivesLeaderBoardEntry,\n AddressParam & LeaderBoardParams\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 'incentives/tradingCompetition/:round': ApiEndpoint<\n {\n entries: TradingCompetitionLeaderboardEntry[];\n refreshedAt: number;\n },\n TradingCompetitionRoundParams\n >;\n\n 'incentives/wallet/:address/tradingCompetition/:round': ApiEndpoint<\n TradingCompetitionUserSummaryData,\n AddressParam & TradingCompetitionRoundParams\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 FailableResult,\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 rankSeason2: Rank;\n stakingPointsSeason2: number;\n tradingReferralXpSeason2: number;\n tradingXpSeason2: 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 LeaderBoardParams = { type: 'weekly' | 'total' };\n\nexport type TradingCompetitionRoundParams = { round: number };\n\nexport type TradingCompetitionUserSummaryData = {\n realizedPnl: number;\n eligible: boolean;\n position: number | null;\n};\n\nexport type TradingCompetitionLeaderboardEntry = {\n walletAddress: string;\n realizedPnl: number;\n position: 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 LeaderBoardParams,\n PaginatedQueryParams\n >;\n\n 'incentives/wallet/:address': ApiEndpoint<\n IncentivesUserSummaryData,\n AddressParam\n >;\n\n 'incentives/wallet/:address/referralsLeaderBoard/:type': ApiListEndpoint<\n IncentivesLeaderBoardEntry,\n AddressParam & LeaderBoardParams\n >;\n\n 'incentives/wallet/:address/leaderBoard/:type': ApiEndpoint<\n IncentivesLeaderBoardEntry,\n AddressParam & LeaderBoardParams\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 'incentives/tradingCompetition/:round': ApiEndpoint<\n {\n entries: TradingCompetitionLeaderboardEntry[];\n status: 'live' | 'ended';\n refreshedAt: number;\n },\n TradingCompetitionRoundParams\n >;\n\n 'incentives/wallet/:address/tradingCompetition/:round': ApiEndpoint<\n TradingCompetitionUserSummaryData,\n AddressParam & TradingCompetitionRoundParams\n >;\n\n 'incentives/wallet/:address/tradingCompetition/:round/registration': ApiEndpoint<\n { registered: boolean },\n AddressParam & TradingCompetitionRoundParams\n >;\n\n 'incentives/wallet/:address/tradingCompetition/:round/claim': ApiEndpoint<\n FailableResult,\n AddressParam & TradingCompetitionRoundParams,\n { code: string }\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"]}
|
|
@@ -39,6 +39,18 @@ export type ReplaceDecimals<T, D> = T extends Decimal ? D : T extends (infer U)[
|
|
|
39
39
|
export type Stringified<T, D = Decimal> = T extends D | bigint | Date ? string : T extends (infer U)[] ? Stringified<U, D>[] : {
|
|
40
40
|
[K in keyof T]: Stringified<T[K], D>;
|
|
41
41
|
};
|
|
42
|
+
export type FailableResult<T = never> = [T] extends [never] ? {
|
|
43
|
+
success: true;
|
|
44
|
+
} | {
|
|
45
|
+
success: false;
|
|
46
|
+
error: string;
|
|
47
|
+
} : {
|
|
48
|
+
success: true;
|
|
49
|
+
data: T;
|
|
50
|
+
} | {
|
|
51
|
+
success: false;
|
|
52
|
+
error: string;
|
|
53
|
+
};
|
|
42
54
|
export type PageBasedPaginatedListResponse<T> = {
|
|
43
55
|
data: T[];
|
|
44
56
|
currentPage: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-types.d.ts","sourceRoot":"/","sources":["api-types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB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O,IAAI,CAAC,SAAS,CAAC,GAAG,MAAM,GAAG,IAAI,GACjE,MAAM,GACN,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GACnB,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,GACnB;KACG,CAAC,IAAI,MAAM,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;CACrC,CAAC;AAER,MAAM,MAAM,cAAc,CAAC,CAAC,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GACvD;IAAE,OAAO,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACrD;IAAE,OAAO,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,CAAC,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnE,MAAM,MAAM,8BAA8B,CAAC,CAAC,IAAI;IAC9C,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC;CAC1B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AddressParam, ApiEndpoint, ApiInfiniteListEndpoint, ApiListEndpoint, PaginatedQueryParams, Stringified } from './api-types';
|
|
1
|
+
import { AddressParam, ApiEndpoint, ApiInfiniteListEndpoint, ApiListEndpoint, PaginatedQueryParams, FailableResult, Stringified } from './api-types';
|
|
2
2
|
import { Rank, RankTrading } from './types';
|
|
3
3
|
export type PointsBreakdown = {
|
|
4
4
|
totalPoints: number;
|
|
@@ -115,9 +115,16 @@ export type IncentivesApiSource = {
|
|
|
115
115
|
'incentives/wallet/:address/pointsHistory': ApiEndpoint<IncentivesPointsHistoryEntry, AddressParam>;
|
|
116
116
|
'incentives/tradingCompetition/:round': ApiEndpoint<{
|
|
117
117
|
entries: TradingCompetitionLeaderboardEntry[];
|
|
118
|
+
status: 'live' | 'ended';
|
|
118
119
|
refreshedAt: number;
|
|
119
120
|
}, TradingCompetitionRoundParams>;
|
|
120
121
|
'incentives/wallet/:address/tradingCompetition/:round': ApiEndpoint<TradingCompetitionUserSummaryData, AddressParam & TradingCompetitionRoundParams>;
|
|
122
|
+
'incentives/wallet/:address/tradingCompetition/:round/registration': ApiEndpoint<{
|
|
123
|
+
registered: boolean;
|
|
124
|
+
}, AddressParam & TradingCompetitionRoundParams>;
|
|
125
|
+
'incentives/wallet/:address/tradingCompetition/:round/claim': ApiEndpoint<FailableResult, AddressParam & TradingCompetitionRoundParams, {
|
|
126
|
+
code: string;
|
|
127
|
+
}>;
|
|
121
128
|
};
|
|
122
129
|
export type IncentivesApi = {
|
|
123
130
|
[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;IACrB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,EAAE,eAAe,CAAC;IACxB,KAAK,EAAE,eAAe,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAA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|
|
2
2
|
"name": "@reyaxyz/common",
|
|
3
|
-
"version": "0.343.
|
|
3
|
+
"version": "0.343.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"generate:coverage-badges": "npx istanbul-badges-readme --silent"
|
|
46
46
|
},
|
|
47
47
|
"packageManager": "pnpm@8.3.1",
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "4455c600e1e4be0f486198eed28f94fb211968f6"
|
|
49
49
|
}
|
package/src/api-types.ts
CHANGED
|
@@ -59,6 +59,10 @@ export type Stringified<T, D = Decimal> = T extends D | bigint | Date
|
|
|
59
59
|
[K in keyof T]: Stringified<T[K], D>;
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
+
export type FailableResult<T = never> = [T] extends [never]
|
|
63
|
+
? { success: true } | { success: false; error: string }
|
|
64
|
+
: { success: true; data: T } | { success: false; error: string };
|
|
65
|
+
|
|
62
66
|
export type PageBasedPaginatedListResponse<T> = {
|
|
63
67
|
data: T[];
|
|
64
68
|
currentPage: number;
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
ApiInfiniteListEndpoint,
|
|
5
5
|
ApiListEndpoint,
|
|
6
6
|
PaginatedQueryParams,
|
|
7
|
+
FailableResult,
|
|
7
8
|
Stringified,
|
|
8
9
|
} from './api-types';
|
|
9
10
|
import { Rank, RankTrading } from './types';
|
|
@@ -165,6 +166,7 @@ export type IncentivesApiSource = {
|
|
|
165
166
|
'incentives/tradingCompetition/:round': ApiEndpoint<
|
|
166
167
|
{
|
|
167
168
|
entries: TradingCompetitionLeaderboardEntry[];
|
|
169
|
+
status: 'live' | 'ended';
|
|
168
170
|
refreshedAt: number;
|
|
169
171
|
},
|
|
170
172
|
TradingCompetitionRoundParams
|
|
@@ -174,6 +176,17 @@ export type IncentivesApiSource = {
|
|
|
174
176
|
TradingCompetitionUserSummaryData,
|
|
175
177
|
AddressParam & TradingCompetitionRoundParams
|
|
176
178
|
>;
|
|
179
|
+
|
|
180
|
+
'incentives/wallet/:address/tradingCompetition/:round/registration': ApiEndpoint<
|
|
181
|
+
{ registered: boolean },
|
|
182
|
+
AddressParam & TradingCompetitionRoundParams
|
|
183
|
+
>;
|
|
184
|
+
|
|
185
|
+
'incentives/wallet/:address/tradingCompetition/:round/claim': ApiEndpoint<
|
|
186
|
+
FailableResult,
|
|
187
|
+
AddressParam & TradingCompetitionRoundParams,
|
|
188
|
+
{ code: string }
|
|
189
|
+
>;
|
|
177
190
|
};
|
|
178
191
|
|
|
179
192
|
export type IncentivesApi = {
|