-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTypes.d.ts
86 lines (78 loc) · 1.54 KB
/
Types.d.ts
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
export interface TVP_Account {
proxy: string;
controller: string;
stash: string;
value: number;
}
export interface TVP_Candidate {
discoveredAt: number;
nominatedAt: number;
offlineSince: number;
offlineAccumulated: number;
rank: number;
faults: number;
invalidityReasons: string;
unclaimedEras: number[];
inclusion: number;
name: string;
stash: string;
kusamaStash: string;
commission: number;
identity?: Identity | null;
active?: boolean | null;
valid?: boolean | null;
validity?: (ValidityEntity | null)[] | null;
score?: Score | null;
total: number;
}
export interface Identity {
name: string;
sub?: string | null;
verified?: boolean | null;
_id: string;
}
export interface ValidityEntity {
valid: boolean;
type: string;
details: string;
updated: number;
_id: string;
}
export interface Score {
_id: string;
address: string;
updated: number;
total: number;
aggregate: number;
inclusion: number;
spanInclusion: number;
discovered: number;
nominated: number;
rank: number;
unclaimed: number;
bonded: number;
faults: number;
offline: number;
randomness: number;
__v: number;
}
export interface ValidatorIdentity {
name: string;
is_verified: boolean;
sub_identity: string;
}
export interface ValidatorScore {
val_address: string;
name: string;
parent: string;
score: number;
}
export interface PrettyOutput {
val_address: string;
identity: string;
}
export interface SettingsFile {
seed_phrase: string;
derivation_path: number;
ws_server:string;
}