forked from CryptozombiesHQ/cryptozombie-lessons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
116 lines (109 loc) · 3.24 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
// 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'
// 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
]
}