feat: define competition domain contracts

This commit is contained in:
dahyeon committed 2026-07-12 18:44:26 +00:00
1 parent f4ba3d524f
commit 05a83db886
13 files changed
+843

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
declare const contractIdBrand: unique symbol;
export type BrandedId<Name extends string> = string & {
readonly [contractIdBrand]: Name;
};
export type CommunityId = BrandedId<"CommunityId">;
export type MatchId = BrandedId<"MatchId">;
export type CompetitionId = BrandedId<"CompetitionId">;
export type TeamId = BrandedId<"TeamId">;
export type UserId = BrandedId<"UserId">;
export type SeriesId = BrandedId<"SeriesId">;
export type GameSlotId = BrandedId<"GameSlotId">;
export type GameId = BrandedId<"GameId">;
export type CompetitionFactId = BrandedId<"CompetitionFactId">;
export type TournamentCodeId = BrandedId<"TournamentCodeId">;
export type TournamentCodeAssignmentId =
BrandedId<"TournamentCodeAssignmentId">;
export type RiotMatchId = BrandedId<"RiotMatchId">;
export type CommandId = BrandedId<"CommandId">;
export type UserPuuid = BrandedId<"UserPuuid">;