forked from CryptozombiesHQ/cryptozombie-lessons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
238 lines (230 loc) · 6.08 KB
/
index.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
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
// TODO: Shouldn't have to import stuff manually here, should just load all .md
// files from the relevant locations... probably need to do that via webpack.
// lesson 1
import l1_overview from './1/00-overview.md'
import datatypes from './1/datatypes.md'
import contracts from './1/contracts.md'
import math from './1/math.md'
import lessonoverview from './1/lessonoverview.md'
import structs from './1/structs.md'
import arrays from './1/arrays.md'
import functions from './1/functions.md'
import arraysstructs2 from './1/arraysstructs2.md'
import functions2 from './1/functions2.md'
import functions3 from './1/functions3.md'
import keccak256 from './1/keccak256.md'
import puttingittogether from './1/puttingittogether.md'
import events from './1/events.md'
import web3js from './1/web3js.md'
import lessoncomplete from './1/lessoncomplete.md'
// lesson2
import l2_overview from './2/00-overview.md'
import overview from './2/1-overview.md'
import mappings from './2/2-mappings.md'
import msgsender from './2/3-msgsender.md'
import l2_require from './2/4-require.md'
import inheritance from './2/5-inheritance.md'
import importfiles from './2/6-importfiles.md'
import storage from './2/7-storage.md'
import feedandmultiply2 from './2/8-feedandmultiply2.md'
import internalfunctions from './2/9-internalfunctions.md'
import interactingcontracts from './2/10-interactingcontracts.md'
import interactingcontracts2 from './2/11-interactingcontracts2.md'
import multiplereturns from './2/12-multiplereturns.md'
import kittygenes from './2/13-kittygenes.md'
import wrappingitup from './2/14-wrappingitup.md'
import lesson2complete from './2/15-lessoncomplete.md'
// lesson3
import l3_overview from './3/00-overview.md'
import l3_ch1 from './3/01-externaldependencies.md'
import l3_ch2 from './3/02-ownable.md'
import l3_ch3 from './3/03-onlyowner.md'
import l3_ch4 from './3/04-gas.md'
import l3_ch5 from './3/05-timeunits.md'
import l3_ch6 from './3/06-zombiecooldowns.md'
import l3_ch7 from './3/07-zombiecooldowns2.md'
import l3_ch8 from './3/08-functionmodifiers.md'
import l3_ch9 from './3/09-zombiemodifiers.md'
import l3_ch10 from './3/10-savinggasview.md'
import l3_ch11 from './3/11-savinggasstorage.md'
import l3_ch12 from './3/12-forloops.md'
import l3_ch13 from './3/13-wrappingitup.md'
import l3_complete from './3/14-lessoncomplete.md'
// lesson4
import l4_overview from './4/00-overview.md'
import l4_payable from './4/payable.md'
import l4_withdraw from './4/withdraw.md'
import l4_ch1 from './4/battle-01.md'
import l4_ch2 from './4/battle-02.md'
import l4_ch3 from './4/battle-03.md'
import l4_ch4 from './4/battle-04.md'
import l4_ch5 from './4/battle-05.md'
import l4_ch6 from './4/battle-06.md'
import l4_ch7 from './4/battle-07.md'
import l4_ch8 from './4/battle-08.md'
import l4_ch9 from './4/battle-09.md'
import l4_ch10 from './4/wrappingitup.md'
import l4_complete from './4/lessoncomplete.md'
// lesson5
import l5_overview from './5/00-overview.md'
import l5_ch1 from './5/01-erc721-1.md'
import l5_ch2 from './5/02-erc721-2.md'
import l5_ch3 from './5/03-erc721-3.md'
import l5_ch4 from './5/04-erc721-4.md'
import l5_ch5 from './5/05-erc721-5.md'
import l5_ch6 from './5/06-erc721-6.md'
import l5_ch7 from './5/07-erc721-7.md'
import l5_ch8 from './5/08-erc721-8.md'
import l5_ch9 from './5/09-safemath-1.md'
import l5_ch10 from './5/10-safemath-2.md'
import l5_ch11 from './5/11-safemath-3.md'
import l5_ch12 from './5/12-safemath-4.md'
import l5_ch13 from './5/13-comments.md'
import l5_ch14 from './5/14-wrappingitup.md'
import l5_complete from './5/15-lessoncomplete.md'
import l6_overview from './6/00-overview.md'
import l6_ch1 from './6/01.md'
import l6_ch2 from './6/02.md'
import l6_ch3 from './6/03.md'
import l6_ch4 from './6/04.md'
import l6_ch5 from './6/05.md'
import l6_ch6 from './6/06.md'
import l6_ch7 from './6/07.md'
import l6_ch8 from './6/08.md'
import l6_ch9 from './6/09.md'
import l6_ch10 from './6/10-wrappingitup.md'
import l6_complete from './6/lessoncomplete.md'
// course 2 - custom game modes
import l7_overview from './7/00-overview.md'
import l7_ch1 from './7/01.md'
import l7_ch2 from './7/02.md'
import l7_ch3 from './7/03.md'
import l7_ch4 from './7/04.md'
import l7_ch5 from './7/05.md'
import l7_ch6 from './7/06.md'
import l7_ch7 from './7/07.md'
import l7_ch8 from './7/08.md'
import l7_ch9 from './7/09.md'
import l7_ch10 from './7/10.md'
import l7_ch11 from './7/11.md'
import l7_complete from './7/lessoncomplete.md'
// chapterList is an ordered array of chapters. The order represents the order of the chapters.
// chapter index will be 1-based and not zero-based. First chapter is 1
export default {
1: [
l1_overview,
lessonoverview,
contracts,
datatypes,
math,
structs,
arrays,
functions,
arraysstructs2,
functions2,
functions3,
keccak256,
puttingittogether,
events,
web3js,
lessoncomplete
],
2: [
l2_overview,
overview,
mappings,
msgsender,
l2_require,
inheritance,
importfiles,
storage,
feedandmultiply2,
internalfunctions,
interactingcontracts,
interactingcontracts2,
multiplereturns,
kittygenes,
wrappingitup,
lesson2complete
],
3: [
l3_overview,
l3_ch1,
l3_ch2,
l3_ch3,
l3_ch4,
l3_ch5,
l3_ch6,
l3_ch7,
l3_ch8,
l3_ch9,
l3_ch10,
l3_ch11,
l3_ch12,
l3_ch13,
l3_complete
],
4: [
l4_overview,
l4_payable,
l4_withdraw,
l4_ch1,
l4_ch2,
l4_ch3,
l4_ch4,
l4_ch5,
l4_ch6,
l4_ch7,
l4_ch8,
l4_ch9,
l4_ch10,
l4_complete
],
5: [
l5_overview,
l5_ch1,
l5_ch2,
l5_ch3,
l5_ch4,
l5_ch5,
l5_ch6,
l5_ch7,
l5_ch8,
l5_ch9,
l5_ch10,
l5_ch11,
l5_ch12,
l5_ch13,
l5_ch14,
l5_complete
],
6: [
l6_overview,
l6_ch1,
l6_ch2,
l6_ch3,
l6_ch4,
l6_ch5,
l6_ch6,
l6_ch7,
l6_ch8,
l6_ch9,
l6_ch10,
l6_complete,
],
7: [
l7_overview,
l7_ch1,
l7_ch2,
l7_ch3,
l7_ch4,
l7_ch5,
l7_ch6,
l7_ch7,
l7_ch8,
l7_ch9,
l7_ch10,
l7_ch11,
l7_complete,
],
}