-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinterface.ts
More file actions
53 lines (46 loc) · 876 Bytes
/
interface.ts
File metadata and controls
53 lines (46 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
export interface Challenge {
metadata: ChallengeMetadata,
description: ChallengeDescription
}
export interface ChallengeMetadata {
description: string,
title: string,
memlimit: number,
tags: string[],
id: string,
pk: string,
combinedPublicKey: {
combinedKey: string
hashedKey: string
}
salt: string,
opslimit: number
}
export type ChallengeDescription = string
export type SupportedLanguage = 'pt-BR' | 'en-US'
export interface Message {
msg: string
datetime: number
}
export interface Solve {
team: string,
challenge: string,
datetime: number
}
export interface Score {
standings: Standing[]
tasks: string[]
}
export interface Standing {
pos: number
team: string
score: number
taskStats: {
[challengeId: string]: TaskStat
}
lastAccept: number
}
export interface TaskStat {
points: number
time: number
}