-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathglobal.d.ts
99 lines (86 loc) · 1.83 KB
/
global.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
87
88
89
90
91
92
93
94
95
96
97
98
99
declare interface NavRouteProps {
children?: React.ReactElement
showAccount?: boolean
showBrandIcon?: boolean
showNavLinks?: boolean
showSocialIcons?: boolean
}
declare module '@kappasigmamu/canary-component'
declare class ThreeCanary {
constructor(objectUrl?: string)
}
declare interface SocietyCandidate {
accountId: AccountId
round: number
kind: BidKind
bid: Balance
tally: {
approvals: u32
rejections: u32
}
skepticStruck: false
}
declare interface SuspendedCandidate {
accountId: AccountId
balance: BalanceOf
bid: PalletSocietyBidKind
}
declare interface SocietyMember {
accountId: AccountId
hasPayouts: boolean
hasStrikes: boolean
isDefender: boolean
isDefenderVoter: boolean
isFounder: boolean
isHead: boolean
isSkeptic: boolean
isSuspended: boolean
isWarned: boolean
payouts: [BlockNumber, Balance][]
strikes: StrikeCount
strikesCount: number
vouching?: SocietyMemberVouching
vote?: PalletSocietyVote
rank: u32
}
type ExtendedDeriveSociety = {
skeptic?: AccountId32 | undefined
rank: u32
} & DeriveSociety
interface ExtendedSocietyMember extends SocietyMember {
extendedPayouts: any
}
interface SocietyMemberDetails {
accountId: AccountId
index?: string
identity?: AccountIdentity
}
interface AccountIdentity {
name: string
email?: string
legal?: string
webpage?: string
twitter?: string
riot?: string
}
declare interface SocietyMemberVouching {
isBanned: boolean
isVouching: boolean
}
declare interface SocietyMemberVote {
isApprove: boolean
isReject: boolean
}
namespace NodeJS {
interface ProcessEnv {
REACT_APP_NAME: string
REACT_APP_KEYRING_PREFIX: number
REACT_APP_RPC: object
REACT_APP_PROVIDER_SOCKET: string
}
}
interface ExtrinsicResult {
message: string
status: 'success' | 'loading' | 'error'
loading?: boolean
}