-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
index.html
320 lines (309 loc) · 12.2 KB
/
index.html
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
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
<!DOCTYPE html>
<html lang="en">
<head>
<!-- HTML properties -->
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<base target="_blank" />
<!-- Bootstrap -->
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="style.css" />
<script
src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"
></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"
></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"
></script>
<!-- Axios -->
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<!-- Web3 -->
<script src="https://cdn.jsdelivr.net/gh/ethereum/[email protected]/dist/web3.min.js"></script>
<!-- FileSaver.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/1.3.8/FileSaver.js"></script>
<!-- Title -->
<title>Fondu</title>
<!-- Fonts -->
<link
href="https://fonts.googleapis.com/css?family=Overpass+Mono"
rel="stylesheet"
/>
</head>
<body>
<div class="main">
<div class="corner">
<div class="corner-trianlge"></div>
</div>
<div class="container">
<h1>Fondu</h1>
<h6>ICO smart-contract builder</h6>
<p>
Hi there! I guess you landed here to lay the foundation for your crowd
sale smart-contract or even build it here completely. Well, you are at
the right place! Fondu is an
<a href="https://github.com/backmeupplz/fondu">open source</a> (feel
free to submit issues or pull requests), hosted by
<a href="https://pages.github.com/">GitHub Pages</a> and absolutely
free to use smart-contract builder. It has initially been created by
me as a proof of concept, but heck, maybe somebody could find it
useful. Just fill out the questionnaire bellow and hit the
<code>Download files</code> button. Easy peasy lemon squeezy, right?
</p>
<!-- Smart contract Constructor Vue -->
<div id="contract-constructor">
<div class="container-fluid">
<div class="row">
<div class="col-sm left-bordered">
<form>
<small class="form-text"
>Human-readable name of your token like "Fondu", "Bitcoin"
or "Ethereum":</small
>
<input
type="text"
class="form-control bottom-margin"
placeholder="Name"
v-model="name"
/>
<small class="form-text"
>Symbol of your token like "FDU", "BTC" or "ETH":</small
>
<input
type="text"
class="form-control bottom-margin"
placeholder="Symbol"
v-model="symbol"
/>
<small class="form-text"
>Number of decimals your currency supports; for instance,
Ethereum can go as low as 18 decimals or
0.000000000000000001 ETH:</small
>
<input
type="number"
class="form-control bottom-margin"
placeholder="Decimals"
v-model="decimals"
/>
<small class="form-text"
>How many of your tokens will user get for 1 ETH</small
>
<input
type="number"
class="form-control bottom-margin"
placeholder="Rate"
v-model="rate"
/>
<small class="form-text"
>ETH wallet that will receive the collected funds:</small
>
<input
type="text"
class="form-control bottom-margin"
placeholder="Wallet"
v-model="wallet"
/>
<small class="form-text"
>Whether your crowdsale is bounded by a time frame or
not:</small
>
<div class="form-check">
<label class="form-check-label">
<input
class="form-check-input"
type="checkbox"
v-model="timed"
/>
Is this crowdsale timed?
</label>
</div>
<div v-if="timed">
<small class="form-text">Start date</small>
<input
type="date"
class="form-control bottom-margin"
v-model="startDate"
/>
<small class="form-text">End date</small>
<input
type="date"
class="form-control bottom-margin"
v-model="endDate"
/>
</div>
<div v-if="timed">
<small class="form-text"
>Whether the funds will be held untill softcap is reached
and will be returned to the investors if softcap isn't
reached:</small
>
<div class="form-check">
<label class="form-check-label">
<input
class="form-check-input"
type="checkbox"
v-model="refundable"
/>
Is this crowdsale refundable?
</label>
</div>
<div v-if="refundable">
<small class="form-text"
>Specify softcap — how many tokens you need to gather in
order not to trigger the refund mechanism</small
>
<input
type="number"
class="form-control bottom-margin"
placeholder="Softcap"
v-model="goal"
/>
</div>
</div>
<div v-if="timed">
<small class="form-text"
>Do you need the rate of token to decrease over time so
that the sooner you buy the tokens the larger amount of
tokens you get?</small
>
<div class="form-check">
<label class="form-check-label">
<input
class="form-check-input"
type="checkbox"
v-model="increasingPrice"
/>
Does the crowdsale have increasing price?
</label>
</div>
<div v-if="increasingPrice">
<small class="form-text"
>Rate of how many of your tokens will user get for 1 ETH
at the beginning of the crowdsale</small
>
<input
type="number"
placeholder="Start rate"
class="form-control bottom-margin"
v-model="startRate"
/>
<small class="form-text"
>Rate of how many of your tokens will user get for 1 ETH
in the end of the crowdsale</small
>
<input
type="number"
placeholder="End rate"
class="form-control bottom-margin"
v-model="endRate"
/>
</div>
</div>
<small class="form-text"
>Whether you have the maximum value of tokens sold:</small
>
<div class="form-check">
<label class="form-check-label">
<input
class="form-check-input"
type="checkbox"
v-model="capped"
/>
Is this crowdsale capped?
</label>
</div>
<div v-if="capped">
<small class="form-text"
>What is the maximum amount of tokens you intend to
raise?</small
>
<input
type="number"
class="form-control bottom-margin"
placeholder="Hardcap"
v-model="cap"
/>
</div>
<small class="form-text"
>Would you like to accept Ethereum only from the whitelisted
addresses?</small
>
<div class="form-check">
<label class="form-check-label">
<input
class="form-check-input"
type="checkbox"
v-model="whitelisted"
/>
Is this crowdsale whitelist only?
</label>
</div>
</form>
</div>
<div class="col-sm left-bordered">
<div class="code">
<code
><pre>{{ code }}</pre></code
>
</div>
<br />
<button
type="button"
class="btn btn-primary"
v-on:click="download"
>
Download files
</button>
<br /><br />
<p>What's next?</p>
<ol>
<li>
Run <code>./deploy.sh</code> in the root folder of the zip
you've downloaded
</li>
<li>Follow the steps of the deployer</li>
<li>Enjoy your smart-contract deployed!</li>
</ol>
</div>
</div>
</div>
</div>
<p>
Congratulations! You have just written your first smart contract! Feel
free to publish it to the Ethereum using the tools provided above.
Don't just trust us, review the code you've downloaded. And yes, MIT
license — no strings attached, feel free to do whatever you want with
this website or the results of it's work for no charge. If you have
any questions or issues with the code, please bug
<a href="https://t.me/borodutch">@borodutch</a> on Telegram. Thanks!
</p>
<p class="top-border">
© 2018, <a href="https://t.me/borodutch">@borodutch</a>
</p>
</div>
</div>
<!-- JSZip -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.5/jszip.min.js"></script>
<!-- Contract builder -->
<script src="contract-builder/index.js"></script>
<!-- Vue -->
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="contract-constructor.js"></script>
</body>
</html>