EOS长达 340 天的 ICO结束了,共募集到 721万个ETH

EOS 从 2017年6月26日开始ICO,到2018年6月1日结束,共历时340天,募集了 7211776.138203863253231031 个ETH。

计算代码如下:

var Web3 = require("web3");
var BigNumber = require('bignumber.js');
var  httpProviderAddr =  "http://127.0.0.1:18545";
console.log('web3 httpProviderAddr: %s', httpProviderAddr);
var web3 = new Web3(new Web3.providers.HttpProvider(httpProviderAddr));

var abi = [{"constant":true,"inputs":[{"name":"","type":"uint256"},{"name":"","type":"address"}],"name":"claimed","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"owner_","type":"address"}],"name":"setOwner","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"time","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint128"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"foundersAllocation","outputs":[{"name":"","type":"uint128"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"day","type":"uint256"}],"name":"claim","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"foundersKey","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"},{"name":"","type":"address"}],"name":"userBuys","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"day","type":"uint256"}],"name":"createOnDay","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"freeze","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"keys","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"startTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"authority_","type":"address"}],"name":"setAuthority","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"dailyTotals","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"buy","outputs":[],"payable":true,"type":"function"},{"constant":true,"inputs":[],"name":"openTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"EOS","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"today","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"authority","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"eos","type":"address"}],"name":"initialize","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"createFirstDay","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"claimAll","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"timestamp","type":"uint256"}],"name":"dayFor","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"day","type":"uint256"},{"name":"limit","type":"uint256"}],"name":"buyWithLimit","outputs":[],"payable":true,"type":"function"},{"constant":false,"inputs":[],"name":"collect","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"numberOfDays","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"key","type":"string"}],"name":"register","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"createPerDay","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[{"name":"_numberOfDays","type":"uint256"},{"name":"_totalSupply","type":"uint128"},{"name":"_openTime","type":"uint256"},{"name":"_startTime","type":"uint256"},{"name":"_foundersAllocation","type":"uint128"},{"name":"_foundersKey","type":"string"}],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"window","type":"uint256"},{"indexed":false,"name":"user","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"LogBuy","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"window","type":"uint256"},{"indexed":false,"name":"user","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"LogClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"user","type":"address"},{"indexed":false,"name":"key","type":"string"}],"name":"LogRegister","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"amount","type":"uint256"}],"name":"LogCollect","type":"event"},{"anonymous":false,"inputs":[],"name":"LogFreeze","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"authority","type":"address"}],"name":"LogSetAuthority","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"}],"name":"LogSetOwner","type":"event"}];

var eosContract = web3.eth.contract(abi).at('0xd0a6e6c54dbc68db5db3a091b171a77407ff7ccf');
var totalWei = new BigNumber('0');

for(var day = 0; day <= 350; day++)
{
    var dayValueWei = eosContract.dailyTotals(day);
    var dayValueEth = web3.fromWei(dayValueWei, 'ether').toString(10);
    console.log(day + ':' + dayValueEth);

    totalWei = totalWei.plus(dayValueWei);
}

console.log('totalEth:' + web3.fromWei(totalWei, 'ether').toString(10));

备注: 猿哥用的是0.20.3 版本的web3.js。

351个募集周期,分别募集到的ETH数量如下:

0:651902.175247739465594803
1:12493.186894918050673344
2:44274.085125586856422187
3:26051.068937867174165727
4:21675.53138910457004651
5:25264.054206846840812318
6:22290.624518857963668896
7:19948.915169204896250456
8:16015.171391808947689523
9:18169.29753231331611921
10:16283.277066748270823385
11:15239.860875574296522992
12:17203.50148127048125733
13:14792.121033385681772823
14:15422.837728960783155296
15:13944.439252929204520772
16:15839.929232148597349844
17:16445.271386649527775342
18:14982.01500548162049278
19:13235.205787708
20:14786.86043595840191857
21:15100.562575365722567754
22:17527.026008234821293144
23:17046.516626033020611045
24:13920.768347867371357327
25:17008.405470584770023642
26:15282.708998075124897365
27:19102.593912929612714456
28:18859.121974889301963989
29:13015.940543651498919974
30:17346.04650436885518524
31:18284.023562972441255212
32:16603.119860308948858838
33:17615.627621921576173982
34:16272.426717153145739015
35:12119.226729086340894878
36:16486.11609086259258164
37:12293.656665595634917598
38:11973.2239881685
39:13642.700530153407410274
40:13033.1739758314
41:12722.055092486073921199
42:12035.532180799938529786
43:11688.31013250211396
44:10882.947081536216157
45:9148.584403643460313057
46:7452.73251892090447
47:11749.518445120451287889
48:11098.387392108089167288
49:9773.128162340393456124
50:9646.487650800393733289
51:7535.27547255316972034
52:9680.169118487217024411
53:8378.652748950872863802
54:7278.787582158
55:8496.008034465800000013
56:8363.271552219
57:8230.659640529309018363
58:8150.322603916000001024
59:7940.033759723
60:7611.631876951
61:7787.760023695416756022
62:6975.273027925
63:6498.715443659
64:6576.037161015357031335
65:6537.5857387153
66:7199.759159392828034952
67:7275.386358481956973064
68:6007.84419081182445076
69:5573.54920899741640256
70:5258.975901007060300649
71:6189.616194749647831217
72:5308.847735703828778802
73:3868.626282759139209
74:4964.87536912
75:4952.077908224
76:5073.989140608637831765
77:5131.139014639819104042
78:4837.002283303
79:5205.244965217292016533
80:4950.787718518924812
81:4693.523533733915992
82:4718.696715965893462191
83:4787.555862919
84:4362.29547999780000001
85:4089.36788577186204
86:4208.2435104074
87:4344.867298241
88:3940.43541869
89:3832.569338965091056
90:3736.51218284
91:3771.237969531047998
92:4084.017047530926126282
93:4682.344142962845464548
94:4900.817537975331256808
95:4533.4918479215
96:4707.984880472624623409
97:4340.249672705575310333
98:4376.543805223899044
99:3844.348688517976411259
100:3921.712265861
101:4012.424566452
102:3753.15324149
103:3669.77216
104:3799.242538425220771397
105:3852.9674453989
106:3676.432317454509702275
107:3899.398985614837998729
108:3816.5205102099
109:3520.762050399608
110:3319.850540663463169461
111:3358.632699692
112:3355.084213681
113:3465.646608668343740792
114:3696.84139151
115:3751.598880779417200342
116:3578.711629104901640589
117:3606.46184927202813611
118:3341.89804853694689
119:3501.707945064
120:3335.348632538853998464
121:3354.273924805621020192
122:3503.17272802089252012
123:3255.973262725167783786
124:3566.814954027857297607
125:3971.32308411
126:4325.57956330423055866
127:4266.550197742867731988
128:5360.077799067060997561
129:6048.016742581264265761
130:7462.625898834181957682
131:7934.831158481676332863
132:7443.993773811208544629
133:6210.325194563197377438
134:6256.321759692904680568
135:6354.648149575706446016
136:7068.639030495
137:6829.8843484230834769
138:6712.250955477807707962
139:7471.134569274400760672
140:7161.397509577
141:7614.084695027814202347
142:8092.1081047774
143:9326.737295053128934507
144:10804.724198525567909543
145:9414.88702474546498334
146:10386.236264006148715014
147:10721.217237860209451575
148:9666.255896013049531346
149:10077.886336329199765342
150:10328.365872441441592058
151:9881.077845973748898471
152:8101.556993000297883621
153:7757.548014662387174886
154:8433.0612564385439061
155:10247.927084680042080185
156:11499.781425197136904919
157:11459.970321176146111301
158:12339.526428352028297666
159:12662.508883694168670259
160:13323.067517789308552194
161:16347.94284295635107877
162:15087.693290545315777458
163:15608.971278899327120994
164:19772.44352624917
165:16788.138174865228282933
166:17850.5726215054093708
167:18223.755168755725771323
168:16418.082397775356835433
169:15999.9187751165784595
170:16707.502793787772484853
171:18476.393923817614104962
172:19597.309030125151216165
173:21689.619434623595710869
174:22302.578741141369480573
175:25093.688325931381343441
176:17264.861706069852602329
177:22601.289175717831240535
178:23682.128934351889506537
179:25351.577280885026898364
180:26447.980716062345280845
181:25948.011380563915438022
182:23059.385802497379104641
183:24476.930678897718561023
184:24056.978953030837779713
185:22241.950929739000559749
186:22042.618321982239693958
187:21811.157082604806139205
188:22186.773663355263139208
189:22957.551839050905875847
190:18636.139345429524403708
191:20345.246246358794797594
192:20612.688563398551136002
193:18576.628180403411757327
194:17647.599344857337322718
195:19202.154364096354313173
196:17641.371963381011107001
197:16214.504076037893574358
198:18702.361876903825256214
199:15542.857695516004444401
200:15521.698986792466959784
201:13590.370174624092396836
202:15876.313415001726063499
203:18975.474696906163874985
204:21201.053186073180859129
205:22756.15491806219418913
206:19500.388813291426545851
207:20105.725174400259718546
208:20173.36380142043798345
209:19273.733811259596493017
210:20116.61033373583425977
211:20895.912841249707738071
212:25433.026552781807534727
213:24588.289708998292881012
214:26974.16308905199999792
215:24718.652954836988827214
216:25594.472886788680700335
217:26169.108395870886157314
218:25960.095118201777725354
219:26922.523686243184116148
220:23248.805103273040862704
221:22711.2800375781651999
222:20892.698813943024773804
223:21352.590038275457560838
224:20464.33713622537625233
225:18628.72605179757709171
226:21714.451934362529503822
227:21769.325295043854713547
228:20383.984105918451356396
229:20271.157026506372322578
230:21563.408350720876485119
231:18023.050182601663752301
232:19495.76119006803333
233:21187.184042812272869349
234:20381.250866973469776201
235:21346.240762629
236:20720.968737915966527404
237:20925.368055026296977342
238:20770.734842825242914297
239:20788.221055438300227464
240:20733.7854615889651029
241:20090.068516912986146867
242:20352.136235411829671214
243:19955.468226793462086962
244:20186.04280614646
245:20096.30066622984825003
246:19191.033989346981801241
247:19236.79150133017522129
248:18114.132975962039218387
249:18571.270066294725104
250:18061.7076092202525213
251:17895.427806523000000004
252:19406.501549126479565668
253:19042.232482313744386196
254:19376.843475484521599583
255:18269.6039264461
256:18346.160051238834507597
257:17826.715741154144
258:18848.42398234898
259:17698.9401840833
260:16816.32899932816715
261:16345.652118096644
262:16354.5804852035
263:16304.703055548741
264:17135.228984985895868284
265:16335.699442076289564984
266:16286.755766157676771876
267:16230.8852382235
268:17103.568415762437743168
269:16376.277468357085792805
270:16140.88274972777941391
271:16666.33937402714000001
272:17181.161843591720361689
273:21748.206445257492124571
274:21361.710049697808780475
275:24397.1019487142857154
276:21651.3950733671999995
277:25705.322224657449999994
278:25089.189695382988567628
279:23885.70215128365857625
280:22617.465996677827
281:26567.509686185352320377
282:28202.969326636759999968
283:29906.628239732186225249
284:31278.529321910631249165
285:29733.13787657588922304
286:29330.459939849159
287:30090.167865840895540826
288:28691.81659951589
289:28293.373442723420631453
290:30094.103614511
291:31789.303639150041009439
292:30042.595685231884868571
293:29742.83509214835942375
294:28090.057176992
295:28730.684030662160061328
296:29523.788416595578575
297:40016.656825864827275525
298:37037.65321234371875
299:34923.308699583210686473
300:31212.882359425381527803
301:30997.636266401455662551
302:30176.900568886314861557
303:33012.66972050695801231
304:33774.237842484865119654
305:33439.37831212023472609
306:37885.569074771
307:33528.771012445505303747
308:37376.965873168167791168
309:34552.637838826211324495
310:39725.689009033947783397
311:43618.108094065629352494
312:45035.551478285900607838
313:45451.274152296491124019
314:54758.704067493247762862
315:56887.761514000564040446
316:52450.334525856781831306
317:47915.2395234357120972
318:53335.461854775790886518
319:48581.402925602629032745
320:44669.523656701517424588
321:44044.432913564100910217
322:41520.593915155664985324
323:45595.243398094070316968
324:44695.115136731458867814
325:46242.034626214815943553
326:47302.507134770559644943
327:47875.108997066994873242
328:43696.366406540706709765
329:39894.21831180654985277
330:39108.083317581800000625
331:38562.693754122635432848
332:38273.272113943616205406
333:34767.896250402718234938
334:36841.664619459631189605
335:35725.783512806266664263
336:35348.143258735159170677
337:37276.470137373451359055
338:38233.916747329635282319
339:36324.701469184929060255
340:36373.65736031741944702
341:36993.035229329821968398
342:40509.798441230747909006
343:40874.890151705695373755
344:43863.224223575021383048
345:44552.551182320542409087
346:43485.896675415147991019
347:42521.080454892810874324
348:42617.428786475877957238
349:40678.092996520604029351
350:42556.539592263795355874
发布了9 篇原创文章 · 获赞 2 · 访问量 1万+
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览