-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtypes.d.ts
More file actions
199 lines (178 loc) · 3.15 KB
/
Copy pathtypes.d.ts
File metadata and controls
199 lines (178 loc) · 3.15 KB
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
import { BigNumber, ethers } from "ethers"
export interface conn {
hasMetamask: boolean
isConnected: boolean
chainId: string
signer: JsonRpcSigner | (() => JsonRpcSigner) | any
account: string
connect: () => void
isAuth: boolean
balance: string
uNameVal: string
usrData: udata | null
defSigner: ethers.Wallet | null
}
export interface cmp {
creator: string
title: string
description: string
category: string
tags: string
goalAmount: BigNumber
duration: BigNumber
currentBalance: BigNumber
state: number
imageURI: string
campaignURI: string
deadline: BigNumber
}
export interface rwd {
price: BigNumber
title: string
description: string
pic: string
perks: string[]
delDate: BigNumber
quantity: BigNumber
infinite: boolean
shipsTo: string[]
donators: string[]
surveyLink: string
}
export interface faq {
question: string
answer: string
}
export interface fcmp {
campaign: string
creator: string
website: string
twitter: string
email: string
title: string
tagline: string
category: string
tags: Array<string>
bio: string
location: string
duration: BigNumber
goalAmount: BigNumber
imageURI: string
visualURI: string
faqs: faq[]
risks: string
rewards: bool
creators: Array<string>
story: string
}
export interface auth {
username: string
email: string
twitter: string
contactAddress: string
}
export interface usr {
username: string
email: string
twitter: string
contactAddress: string
sig: string
}
export interface udata {
id: string
address: string
email: string
backedCount: string
backed: Array<string>
username: string
created: Array<string>
publishedCount: string
createdAt: BigNumber
shipAddr: string
pfp: string
}
export interface basicCmpObj {
campaign: string
creator: string
title: string
tagline: string
category: string
tags: Array<string>
imageURI: string
visualURI: string
goalAmount: BigNumber
duration: BigNumber
}
export interface contentCmpObj {
faqs: faq[]
story: string
risks: string
}
export interface counOpt {
value: string
label: string
}
export interface rwdFormObj {
rPrice: string
rName: string
rDesc: string
rPic: string
rType: string
rDelD: string
rQty: string
infinite: boolean
items: string[]
shipsTo: string[]
}
export interface teamCmpObj {
creators: string[]
email: string
website: string
bio: string
location: string
twitter: string
}
export interface CmpObject {
campaignAddress: string
creator: string
}
export interface noti {
id: string
type: string
title: string
message: string
}
export interface enquiry {
type: "single" | "multi"
question: string
options?: string[]
}
export interface survey {
reward_address: string
reward_creator: string
intro: string
credentials: boolean
enquiries: enquiry[]
}
export interface creds {
name: string
country: string
str_address: string
city: string
state: string
postal_code: string
}
export interface response {
question: string
answer: string
}
export interface survey_response {
responder_name: string
reward_in_view: string
credentials: creds | null
responses: response[]
}
export interface wallet {
name: "Metamask" | "Rabby" | "Wallet Connect" | "Gnosis Safe" | "Coinbase"
icon: string
}