mirror of
https://github.com/arnaucube/go-ethereum.git
synced 2026-03-01 06:26:46 +01:00
Compare commits
7656 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c8695209f6 | ||
|
|
9b95112a2d | ||
|
|
a602c57c8d | ||
|
|
f3228592f5 | ||
|
|
87b8254da1 | ||
|
|
20eab80189 | ||
|
|
810389c07a | ||
|
|
3badd3782b | ||
|
|
be2a264915 | ||
|
|
b81baf5423 | ||
|
|
64359c9417 | ||
|
|
5a3853f83f | ||
|
|
532d746036 | ||
|
|
c66e18b175 | ||
|
|
2d4bd3b3ad | ||
|
|
a96d6c68e2 | ||
|
|
504815091f | ||
|
|
4dd3e7fe35 | ||
|
|
4c614909ff | ||
|
|
b0a23c73cf | ||
|
|
922c1f8f9f | ||
|
|
c3c58eb601 | ||
|
|
ce3c52d17d | ||
|
|
6663d0264e | ||
|
|
6e4d623dc8 | ||
|
|
8e704d9718 | ||
|
|
5bd32bd90d | ||
|
|
b9f417e2e6 | ||
|
|
9f7b087235 | ||
|
|
2cb9738649 | ||
|
|
0dc590a9f8 | ||
|
|
dfd2c60509 | ||
|
|
fd27393df3 | ||
|
|
233950da40 | ||
|
|
bd0aafb4fd | ||
|
|
a672eae3d1 | ||
|
|
99d0d771a7 | ||
|
|
8dcea0ac07 | ||
|
|
7a6c6ec946 | ||
|
|
dfe79cc784 | ||
|
|
4a439c2359 | ||
|
|
4c16c82500 | ||
|
|
5513c49c54 | ||
|
|
b61f48e5aa | ||
|
|
de4b39a1a3 | ||
|
|
322502b441 | ||
|
|
b7dfd333c5 | ||
|
|
178da7c6a9 | ||
|
|
d89ea3e6f9 | ||
|
|
6c9c1e6712 | ||
|
|
b10bcd924b | ||
|
|
d8e2e9a41f | ||
|
|
1f70b279ba | ||
|
|
e33e57684f | ||
|
|
a0c6649960 | ||
|
|
ca73dea3b9 | ||
|
|
648bd22427 | ||
|
|
0231d8f86d | ||
|
|
a91908e567 | ||
|
|
ae33883c2f | ||
|
|
4dca5d4db7 | ||
|
|
21701190ac | ||
|
|
5cd86443ee | ||
|
|
779ddb1832 | ||
|
|
445feaeef5 | ||
|
|
932d973e36 | ||
|
|
9eb6f627fa | ||
|
|
323c2d6775 | ||
|
|
09baeec0da | ||
|
|
8247bccf71 | ||
|
|
bbf37c0404 | ||
|
|
e336b0d60e | ||
|
|
5cd4430a8d | ||
|
|
23420ff67a | ||
|
|
ef50e01c5e | ||
|
|
cc0064b267 | ||
|
|
1aaa599147 | ||
|
|
d27472cc74 | ||
|
|
80ea44c485 | ||
|
|
dba29970d7 | ||
|
|
4cd2617848 | ||
|
|
5b31794dfe | ||
|
|
355f4b0c15 | ||
|
|
bbb5e5d56a | ||
|
|
b8bd9a71c8 | ||
|
|
be3865211c | ||
|
|
0f19cbc6e5 | ||
|
|
49da42983a | ||
|
|
7db7109a5b | ||
|
|
9f8d192991 | ||
|
|
760fd65487 | ||
|
|
8b1df1a259 | ||
|
|
9bc97a5785 | ||
|
|
6707f70b4a | ||
|
|
df30ef5177 | ||
|
|
7e8ad6cad3 | ||
|
|
e0e18f3841 | ||
|
|
328f0dd631 | ||
|
|
15c8d46b04 | ||
|
|
052918a6d9 | ||
|
|
afe41de6b3 | ||
|
|
2ad5dba50a | ||
|
|
0b8a14fed7 | ||
|
|
ac9013162e | ||
|
|
ed2bc7fbe9 | ||
|
|
d0c820acd6 | ||
|
|
2f9f2cbb19 | ||
|
|
bad0de0dcb | ||
|
|
3b62c145f8 | ||
|
|
3914e82f17 | ||
|
|
b522b788b6 | ||
|
|
1b73c79234 | ||
|
|
36956da4d2 | ||
|
|
f4d878f3d8 | ||
|
|
61acd18e79 | ||
|
|
e1b4acfb6e | ||
|
|
d85d3c74db | ||
|
|
8ecee175f2 | ||
|
|
8b10617bba | ||
|
|
90b16a3e85 | ||
|
|
4dc1fb923a | ||
|
|
b8dec948d4 | ||
|
|
87670a7ac1 | ||
|
|
63d293cdbe | ||
|
|
f0dbec0c93 | ||
|
|
79789af2e7 | ||
|
|
8639b0fae9 | ||
|
|
00665a0b72 | ||
|
|
b59c8399fb | ||
|
|
289b30715d | ||
|
|
7770304576 | ||
|
|
890ffa05f8 | ||
|
|
89014b4524 | ||
|
|
f8608a5228 | ||
|
|
437c1e40b2 | ||
|
|
53db80da89 | ||
|
|
28cc3cc960 | ||
|
|
1291778032 | ||
|
|
b930baa580 | ||
|
|
66ee2dec53 | ||
|
|
f2ae2f7eef | ||
|
|
88a593d559 | ||
|
|
5d9bb0a050 | ||
|
|
8048f4d4f6 | ||
|
|
d48e6ae66f | ||
|
|
4f46bd19d0 | ||
|
|
ca49510e6d | ||
|
|
25ac04a444 | ||
|
|
8e52c2e754 | ||
|
|
2bb5ec1e41 | ||
|
|
55522373fd | ||
|
|
c9471e7782 | ||
|
|
5b262ff5ab | ||
|
|
e8d0538a00 | ||
|
|
a1c63e8be6 | ||
|
|
a64b1b4375 | ||
|
|
64500ab0fa | ||
|
|
00b853418e | ||
|
|
8d56bf5ceb | ||
|
|
44f419ec0f | ||
|
|
177cab5fe7 | ||
|
|
187d6a66a5 | ||
|
|
6952fe3a5c | ||
|
|
b19b7c39ac | ||
|
|
9276c4e163 | ||
|
|
2cd7a0395d | ||
|
|
f2be249385 | ||
|
|
81b01f1c2b | ||
|
|
a4d9e63d12 | ||
|
|
64af2aafda | ||
|
|
40cdcf1183 | ||
|
|
182d9cb752 | ||
|
|
c2ddfb343a | ||
|
|
9e9bfc4e26 | ||
|
|
f63c6c008f | ||
|
|
eb2f01aee8 | ||
|
|
30fb5c3e81 | ||
|
|
c780901cd5 | ||
|
|
ca419f3cd8 | ||
|
|
a45421baaf | ||
|
|
be6a3696a9 | ||
|
|
7943ecb812 | ||
|
|
16d8397e30 | ||
|
|
1a6682c21d | ||
|
|
82b14a05f2 | ||
|
|
e66b158f0b | ||
|
|
c88e435724 | ||
|
|
eeb2a1a6e3 | ||
|
|
7335a70a02 | ||
|
|
1b7b2ba216 | ||
|
|
3c836dd71b | ||
|
|
90fce8bfa6 | ||
|
|
1f1ea18b54 | ||
|
|
07caa3fccd | ||
|
|
83fc6fdb34 | ||
|
|
2acb9a6ea7 | ||
|
|
e482b5694f | ||
|
|
6c959207db | ||
|
|
71e8ae01b8 | ||
|
|
a7cc3248fe | ||
|
|
82e09c17a9 | ||
|
|
ae341b31c8 | ||
|
|
ab7adb0027 | ||
|
|
b4b5921dd0 | ||
|
|
c683e4aaa2 | ||
|
|
b7159818f9 | ||
|
|
d4b55fc5b2 | ||
|
|
4f7627972e | ||
|
|
920e1ccfe0 | ||
|
|
54ea317375 | ||
|
|
0731b44809 | ||
|
|
cb84e3f029 | ||
|
|
bb6115b737 | ||
|
|
d8715fba1a | ||
|
|
b4cc8cbac4 | ||
|
|
c3a77d6268 | ||
|
|
ba8c4c6b1a | ||
|
|
44bc2e80dd | ||
|
|
4e8cec05ab | ||
|
|
afecb93e2e | ||
|
|
437c3863f1 | ||
|
|
710435b51b | ||
|
|
cd791bd855 | ||
|
|
7cc6b801e0 | ||
|
|
5a3844981b | ||
|
|
863d166c7b | ||
|
|
b04219fdbb | ||
|
|
61734cc7ae | ||
|
|
0951524ca2 | ||
|
|
b0a6b979a3 | ||
|
|
7f2b077da4 | ||
|
|
06ac31cf1a | ||
|
|
2e14aff80f | ||
|
|
a59a93f476 | ||
|
|
e859f36967 | ||
|
|
25ed5fedda | ||
|
|
3778f1bf77 | ||
|
|
f85f46461f | ||
|
|
5bb517355e | ||
|
|
22eea17b06 | ||
|
|
c8d6efd602 | ||
|
|
b6b17e5648 | ||
|
|
88b012ad3b | ||
|
|
581b320b9d | ||
|
|
b42a5b118f | ||
|
|
eeb322ae64 | ||
|
|
52ede09b17 | ||
|
|
f5c432bcab | ||
|
|
7c12e8ea44 | ||
|
|
30860491ba | ||
|
|
0f6f83a709 | ||
|
|
e3fe634f99 | ||
|
|
dc3e969e14 | ||
|
|
b7f6404168 | ||
|
|
b6b5ec8f75 | ||
|
|
ca37730c9d | ||
|
|
6fb8ae2bd6 | ||
|
|
2924fdfcf7 | ||
|
|
eac390f289 | ||
|
|
de54273f51 | ||
|
|
6b727c0440 | ||
|
|
2c6be49d20 | ||
|
|
a42b7355f4 | ||
|
|
b4a5251391 | ||
|
|
a183ea29f9 | ||
|
|
affffb39b3 | ||
|
|
0ef327bbee | ||
|
|
795b70423e | ||
|
|
49227f65ff | ||
|
|
a386b4c983 | ||
|
|
5cb3fa2f89 | ||
|
|
43d716280e | ||
|
|
cc6170d7fc | ||
|
|
4d300e4dec | ||
|
|
1f58b2d084 | ||
|
|
6903fa2d47 | ||
|
|
319ae90184 | ||
|
|
7b884e0075 | ||
|
|
3e7b4ae0c3 | ||
|
|
3b75d0ce23 | ||
|
|
48807de305 | ||
|
|
1d7d1a3499 | ||
|
|
969008dbb0 | ||
|
|
6976e602f6 | ||
|
|
3b087e03ea | ||
|
|
6c8b023298 | ||
|
|
8dbf59fec5 | ||
|
|
ac0f8b81ae | ||
|
|
5fc032a9d1 | ||
|
|
806e3cd075 | ||
|
|
8923325d5c | ||
|
|
a2b2c8adc9 | ||
|
|
d20238c2a7 | ||
|
|
4ce83bf57b | ||
|
|
b500953425 | ||
|
|
2f99720901 | ||
|
|
6bd9008025 | ||
|
|
c97df052a9 | ||
|
|
7d9c5e0f7d | ||
|
|
d62d5fe59a | ||
|
|
d8cec35b10 | ||
|
|
f81cff539a | ||
|
|
5fff491bbd | ||
|
|
781915f183 | ||
|
|
5b44a819d3 | ||
|
|
056f15aa53 | ||
|
|
37bda7e029 | ||
|
|
454dc9b7c2 | ||
|
|
b3d7a5c5d0 | ||
|
|
475521dd74 | ||
|
|
3c09c5f12d | ||
|
|
1a9e66915b | ||
|
|
84d11c19fd | ||
|
|
312263c7d9 | ||
|
|
3369783e0a | ||
|
|
47ff813012 | ||
|
|
3b39d4d1c1 | ||
|
|
2fab2b310b | ||
|
|
c2ac4465cd | ||
|
|
bb8059f6aa | ||
|
|
4c2cc32f2e | ||
|
|
89a3fbc0fb | ||
|
|
077353b47e | ||
|
|
46621fd2c3 | ||
|
|
d6625ac34d | ||
|
|
b46b36729f | ||
|
|
893fabd336 | ||
|
|
44ea0da2b0 | ||
|
|
4f4e1026f5 | ||
|
|
8c23f20c68 | ||
|
|
4f65227971 | ||
|
|
e4736fe469 | ||
|
|
e32925397b | ||
|
|
f5f042ffdc | ||
|
|
d445a9aafb | ||
|
|
464660651d | ||
|
|
8d9141ed9a | ||
|
|
4be37222ef | ||
|
|
b0d9f7372a | ||
|
|
704fde01e8 | ||
|
|
0c9a858f2d | ||
|
|
b8ba80bff7 | ||
|
|
8ec6ccc54d | ||
|
|
1ca9e552d9 | ||
|
|
8f0a4a25f8 | ||
|
|
071af57bcf | ||
|
|
d68865f3b1 | ||
|
|
a724952f75 | ||
|
|
a4215f469c | ||
|
|
4c1abcb0ce | ||
|
|
1dd272080d | ||
|
|
3e3a79ea13 | ||
|
|
771655e3fe | ||
|
|
60cd5bf939 | ||
|
|
91b7690428 | ||
|
|
bb01bea4e2 | ||
|
|
c145589f25 | ||
|
|
c7c82f1b44 | ||
|
|
f58ac2b46b | ||
|
|
016007bd25 | ||
|
|
4ee00b2309 | ||
|
|
fb81bc3291 | ||
|
|
c646d287f8 | ||
|
|
51d4539a79 | ||
|
|
f273c64a94 | ||
|
|
74ec95e7f6 | ||
|
|
65f340bb95 | ||
|
|
4d014d6d7e | ||
|
|
fe56461387 | ||
|
|
56efed71b5 | ||
|
|
91f18ffd47 | ||
|
|
a4c4125b11 | ||
|
|
993b412160 | ||
|
|
2c2e389b77 | ||
|
|
3291235711 | ||
|
|
461cdb593b | ||
|
|
7f00e8c033 | ||
|
|
a87089fd2d | ||
|
|
1e24c2e4f4 | ||
|
|
9e56811a37 | ||
|
|
6060e098c9 | ||
|
|
aa1e052cb4 | ||
|
|
1a652afe16 | ||
|
|
6f1e45d5ba | ||
|
|
91130ea3fc | ||
|
|
b7caa1751c | ||
|
|
4c3da0f2e1 | ||
|
|
39b4ef4b02 | ||
|
|
74be4a62c5 | ||
|
|
e11489eb5f | ||
|
|
f970610c04 | ||
|
|
68b48cc045 | ||
|
|
7596b33506 | ||
|
|
2b7aff202a | ||
|
|
e76c55a9b8 | ||
|
|
ca211065b6 | ||
|
|
c7442ef0d2 | ||
|
|
a691aa2a13 | ||
|
|
00787fe781 | ||
|
|
f5a29eab5c | ||
|
|
2b94d7fc7f | ||
|
|
51f8ce26cf | ||
|
|
092fcaffe4 | ||
|
|
7e6ede1051 | ||
|
|
ddfef21125 | ||
|
|
3af101ccc1 | ||
|
|
4f088b6f1c | ||
|
|
da9aad8876 | ||
|
|
96dc42d99c | ||
|
|
1e50f5dd28 | ||
|
|
f127799d79 | ||
|
|
6b1d73446d | ||
|
|
fd4e161497 | ||
|
|
6362a9d610 | ||
|
|
d55fc35df1 | ||
|
|
67e9d33486 | ||
|
|
219859f8bb | ||
|
|
e0493457d5 | ||
|
|
1e3a7d4fab | ||
|
|
848dec3da2 | ||
|
|
ae0880997b | ||
|
|
9eb50a9624 | ||
|
|
acecefee88 | ||
|
|
ba784bdf36 | ||
|
|
c4de28938f | ||
|
|
6c33ba14a4 | ||
|
|
7a5b571c67 | ||
|
|
599e3c7b3f | ||
|
|
86bc7795a3 | ||
|
|
a3efdb13f2 | ||
|
|
3a97280ae8 | ||
|
|
4f3f6e28d5 | ||
|
|
79ada05756 | ||
|
|
c48271958f | ||
|
|
ac66d96c5a | ||
|
|
e5165aeb27 | ||
|
|
970f4c06e1 | ||
|
|
22ef7370e7 | ||
|
|
a38be3eb48 | ||
|
|
73c028c40a | ||
|
|
783289068a | ||
|
|
bb3651abc8 | ||
|
|
f0134f363b | ||
|
|
ce88d41907 | ||
|
|
0f9539e1e3 | ||
|
|
90e07b19ab | ||
|
|
63d1d145e2 | ||
|
|
c039bb38d4 | ||
|
|
861add3d72 | ||
|
|
6886913fdf | ||
|
|
c75d3b0ede | ||
|
|
7c0eb47dfb | ||
|
|
dbcdf83ed8 | ||
|
|
d31eab94fd | ||
|
|
553f08b819 | ||
|
|
32258af87b | ||
|
|
d251d48439 | ||
|
|
f9917c8c7b | ||
|
|
5a458da42a | ||
|
|
89c6c5bb85 | ||
|
|
fdd61b83ff | ||
|
|
32559ccad1 | ||
|
|
826efc2295 | ||
|
|
88f174a014 | ||
|
|
780bdb3e80 | ||
|
|
828e1e35fd | ||
|
|
fc85dd175e | ||
|
|
89ba380b3c | ||
|
|
b57b6e341e | ||
|
|
ad0e6e971e | ||
|
|
fdba0cb03c | ||
|
|
61ee9f299d | ||
|
|
16a23ff740 | ||
|
|
1d5d21726a | ||
|
|
7b662103a0 | ||
|
|
da729e5b38 | ||
|
|
5c39a1bb26 | ||
|
|
14ae5708d6 | ||
|
|
ffaf58f0a9 | ||
|
|
4496a44f68 | ||
|
|
4f1d92b332 | ||
|
|
ab664c7e17 | ||
|
|
8ee84584a4 | ||
|
|
748d1c171d | ||
|
|
a7434fd008 | ||
|
|
d9bb8179d3 | ||
|
|
ee36057dd5 | ||
|
|
a476aabf1a | ||
|
|
f3769a97d5 | ||
|
|
ca18202eb9 | ||
|
|
5eb60a6da2 | ||
|
|
f86ea9aad5 | ||
|
|
5bcdbb1ce4 | ||
|
|
2e530f4889 | ||
|
|
7f515b0e88 | ||
|
|
b4dd3209b2 | ||
|
|
262d92834a | ||
|
|
faf663133b | ||
|
|
64a6c2c1b6 | ||
|
|
847aaffbb8 | ||
|
|
a8472e0fdb | ||
|
|
1580ec1804 | ||
|
|
8906b2fe09 | ||
|
|
e798e4fd75 | ||
|
|
4b1a7d3868 | ||
|
|
e27af97a3c | ||
|
|
542b839ec7 | ||
|
|
67cd4ee8d2 | ||
|
|
c8a8ad97f7 | ||
|
|
d87f7a1e81 | ||
|
|
adc1b50395 | ||
|
|
e86619e75d | ||
|
|
b40dc8a1da | ||
|
|
86da6feb40 | ||
|
|
fe532a98f9 | ||
|
|
39ce85cf5d | ||
|
|
72e60dea36 | ||
|
|
7c1f74713e | ||
|
|
a5ff487889 | ||
|
|
331b815300 | ||
|
|
2348f8e2a8 | ||
|
|
251b3c6406 | ||
|
|
cc21706c50 | ||
|
|
25931f12c1 | ||
|
|
91a7a4a786 | ||
|
|
d89e57ea8d | ||
|
|
5a901bb555 | ||
|
|
284f1d6beb | ||
|
|
bc6fdad786 | ||
|
|
c05db38a5e | ||
|
|
34c56766b7 | ||
|
|
5479097790 | ||
|
|
20d4e527bd | ||
|
|
a824c3f02f | ||
|
|
5782164a35 | ||
|
|
27f657478f | ||
|
|
756b62988c | ||
|
|
f61e203c10 | ||
|
|
56ed6152a1 | ||
|
|
dc7f202ecd | ||
|
|
1d42061e2c | ||
|
|
b6135a72dd | ||
|
|
7d59c5c58d | ||
|
|
8aa4597c9e | ||
|
|
57ba1824ac | ||
|
|
c89f4352d0 | ||
|
|
6a00a3ade1 | ||
|
|
f821b0188a | ||
|
|
d79f2f2656 | ||
|
|
130bccc763 | ||
|
|
ae9ed5c420 | ||
|
|
a1c201a5ac | ||
|
|
844e911129 | ||
|
|
bc3b406bff | ||
|
|
2d7d7ef2fe | ||
|
|
14d5033c9d | ||
|
|
258cc73ea9 | ||
|
|
79b7b5eeaa | ||
|
|
b4fbcd5060 | ||
|
|
488528e9e4 | ||
|
|
8110671960 | ||
|
|
32bb280179 | ||
|
|
4536b993ff | ||
|
|
586eddfd09 | ||
|
|
d46da273c6 | ||
|
|
ecd7199c43 | ||
|
|
1c20313a6a | ||
|
|
cfa999f006 | ||
|
|
c74a575725 | ||
|
|
9672a62a38 | ||
|
|
572da73d4d | ||
|
|
0f722df2d9 | ||
|
|
1b77d5090d | ||
|
|
e62c2aeb1b | ||
|
|
4880868c88 | ||
|
|
c3d5250473 | ||
|
|
e0dc45fce2 | ||
|
|
48cc36ce83 | ||
|
|
123aa659e4 | ||
|
|
cdcbb2f160 | ||
|
|
db62979514 | ||
|
|
5137c04ccf | ||
|
|
a20d3fc362 | ||
|
|
3d6d828caf | ||
|
|
6a543607ef | ||
|
|
c1a4dcfc87 | ||
|
|
70b8b54cd2 | ||
|
|
c88c89fd9e | ||
|
|
b06f44ecc2 | ||
|
|
87ae0df476 | ||
|
|
5127ec10cb | ||
|
|
18580e152c | ||
|
|
a6ca8fd268 | ||
|
|
27116bd46c | ||
|
|
a40e61b4ac | ||
|
|
16d10aae0c | ||
|
|
e728aaca72 | ||
|
|
e581f2690a | ||
|
|
6197fbf8d7 | ||
|
|
5c17b2f521 | ||
|
|
3a5bdef962 | ||
|
|
bf5ae502ef | ||
|
|
6fdd0893c3 | ||
|
|
68c755a238 | ||
|
|
ebf3cf8f7d | ||
|
|
24cdac41f3 | ||
|
|
fdc5a7dc1a | ||
|
|
d04a2e7557 | ||
|
|
728ad6f47d | ||
|
|
499d63f706 | ||
|
|
5f917715c5 | ||
|
|
529897ea2b | ||
|
|
53016c1225 | ||
|
|
bbc77f488e | ||
|
|
e50e3bea49 | ||
|
|
bea56d84e5 | ||
|
|
bcd8aeefdd | ||
|
|
05e257c22c | ||
|
|
f08680985a | ||
|
|
5542b51b50 | ||
|
|
b34b130fb5 | ||
|
|
fd36448d6a | ||
|
|
9d81f4fdd1 | ||
|
|
4e85be0717 | ||
|
|
f460b0217f | ||
|
|
a1f1c404c3 | ||
|
|
1e9b504ee7 | ||
|
|
33e4f51749 | ||
|
|
6498df7b02 | ||
|
|
46df50be18 | ||
|
|
91aaddaeb3 | ||
|
|
ea005a0295 | ||
|
|
aca9d6a1fb | ||
|
|
549f1add29 | ||
|
|
6f1ca0bc91 | ||
|
|
a9f26dcd0d | ||
|
|
ef63e9af55 | ||
|
|
ee1682ffe6 | ||
|
|
6cb08d8328 | ||
|
|
46e8940b19 | ||
|
|
2dc20963e7 | ||
|
|
4e6d8b348d | ||
|
|
85e6c40c00 | ||
|
|
dff9b4246f | ||
|
|
aceaaa5178 | ||
|
|
9027981280 | ||
|
|
83877a0f9d | ||
|
|
8627680e24 | ||
|
|
aa9fff3e68 | ||
|
|
934f587bd5 | ||
|
|
e456451a89 | ||
|
|
bf1f620343 | ||
|
|
701ac1ce6c | ||
|
|
3c5329599c | ||
|
|
8abf06d378 | ||
|
|
a7161caedf | ||
|
|
4b2492b614 | ||
|
|
4081868452 | ||
|
|
18490d833c | ||
|
|
fc4fffd5ac | ||
|
|
7e02105672 | ||
|
|
ed92f116f7 | ||
|
|
6a185531d2 | ||
|
|
8d8e2248b2 | ||
|
|
a306e17a26 | ||
|
|
968d8ffe94 | ||
|
|
022cbd6800 | ||
|
|
467bb7a719 | ||
|
|
e9254bb0f9 | ||
|
|
3a2da31c3e | ||
|
|
52dc7cb452 | ||
|
|
f6f7e7a870 | ||
|
|
c90fc3503d | ||
|
|
659c0cb9e8 | ||
|
|
96c7c39ae4 | ||
|
|
cf842b3fe5 | ||
|
|
78b70d79ec | ||
|
|
f7328c5ecb | ||
|
|
fb578f4550 | ||
|
|
8b2aca96c5 | ||
|
|
bbeaab7e64 | ||
|
|
be44651523 | ||
|
|
c58079461b | ||
|
|
d63e29241d | ||
|
|
4097478884 | ||
|
|
1f3596c25a | ||
|
|
9055c16efa | ||
|
|
f0cbebb19f | ||
|
|
916fe11241 | ||
|
|
10d3466c93 | ||
|
|
db739b506a | ||
|
|
4326061e35 | ||
|
|
f115f077d7 | ||
|
|
6c670eff01 | ||
|
|
4ab593c5a1 | ||
|
|
c2bbff6116 | ||
|
|
787d688c2f | ||
|
|
b813e4d411 | ||
|
|
798e4fb4ed | ||
|
|
9b4a45f6e8 | ||
|
|
cfb3a8ea8f | ||
|
|
73308dbe0e | ||
|
|
86cfc22c79 | ||
|
|
72826bb5ad | ||
|
|
75c86f8646 | ||
|
|
0cfa21fc7f | ||
|
|
5f92606be2 | ||
|
|
3601320ccd | ||
|
|
14013372ae | ||
|
|
9866f19d6a | ||
|
|
6f30034413 | ||
|
|
77d21e472d | ||
|
|
a7bae3b2a6 | ||
|
|
342ae7ce7d | ||
|
|
b3b110bc95 | ||
|
|
138e7af96c | ||
|
|
8b6ae6bf86 | ||
|
|
270ea6eec3 | ||
|
|
0228fb57cd | ||
|
|
2855a93ede | ||
|
|
b5cee9738b | ||
|
|
434e4b31d8 | ||
|
|
06fe6310a3 | ||
|
|
066d301520 | ||
|
|
bbbe2360d0 | ||
|
|
b7bb2d8589 | ||
|
|
c7727191ae | ||
|
|
fe45210c55 | ||
|
|
e189fb839c | ||
|
|
42c049e519 | ||
|
|
a0e2e22a4f | ||
|
|
b8f4a48ada | ||
|
|
64c8e2f2ca | ||
|
|
c1343c8872 | ||
|
|
cafdd5931e | ||
|
|
8a3ce5450a | ||
|
|
08759b0aaf | ||
|
|
558d18d2b0 | ||
|
|
c3a4874e5e | ||
|
|
9ff07304a3 | ||
|
|
daad2b2559 | ||
|
|
850f41b374 | ||
|
|
8b58cd0190 | ||
|
|
73d21ea6af | ||
|
|
bff9ceb6b8 | ||
|
|
6d3cd03a03 | ||
|
|
e3f2b541f2 | ||
|
|
ea19e61fba | ||
|
|
edd7aa054c | ||
|
|
e90958cd29 | ||
|
|
ba3fb9e6f4 | ||
|
|
05c86c2c9f | ||
|
|
31b4ff8cc1 | ||
|
|
119b724362 | ||
|
|
0fd251c7f7 | ||
|
|
848e50d6fb | ||
|
|
bc63a3d282 | ||
|
|
de1831b6e9 | ||
|
|
627c2311fb | ||
|
|
d45f01d5f7 | ||
|
|
ae4982a365 | ||
|
|
41f35d7913 | ||
|
|
5adc461d58 | ||
|
|
789b9a9f16 | ||
|
|
c0bf321ec8 | ||
|
|
e8e6df5159 | ||
|
|
8255afbc75 | ||
|
|
f30b809f00 | ||
|
|
7d598af493 | ||
|
|
0d89e6c2f1 | ||
|
|
7cbcae3fac | ||
|
|
8ce04ae8e7 | ||
|
|
ab92678fb3 | ||
|
|
b1c1d09f83 | ||
|
|
64ee5763ee | ||
|
|
b534106cc8 | ||
|
|
cec92f5940 | ||
|
|
4e7abcff30 | ||
|
|
f954a8b666 | ||
|
|
85865a51b6 | ||
|
|
26e72b2ccd | ||
|
|
a6903ad6a5 | ||
|
|
45d08a8aa7 | ||
|
|
0969b35eec | ||
|
|
cda91ee180 | ||
|
|
66b148dd8f | ||
|
|
483feb0d3f | ||
|
|
0a5ee08e2b | ||
|
|
1415669ac3 | ||
|
|
1e62cd6c79 | ||
|
|
ac954f48bd | ||
|
|
b1908f6a16 | ||
|
|
f1ddb1a7ad | ||
|
|
7841f0cc09 | ||
|
|
93c0012000 | ||
|
|
b57a3f154f | ||
|
|
1f281dcaab | ||
|
|
3dca9cc550 | ||
|
|
139f6a0f4c | ||
|
|
8f65444bf3 | ||
|
|
53ce0a76d8 | ||
|
|
e6af65d02a | ||
|
|
fbf3b2ede2 | ||
|
|
3d971c5a34 | ||
|
|
0c6665558a | ||
|
|
436fc8d76a | ||
|
|
c20d6e5e4e | ||
|
|
5387ad760f | ||
|
|
e4b138a593 | ||
|
|
0a1da69fac | ||
|
|
c616391df2 | ||
|
|
f8d98f7fcd | ||
|
|
c305005d83 | ||
|
|
6777531a2d | ||
|
|
17649edd85 | ||
|
|
7d8155714b | ||
|
|
ee1debda53 | ||
|
|
bb07ce3eed | ||
|
|
216729009b | ||
|
|
5b283663b4 | ||
|
|
b6d88a0e9f | ||
|
|
4f4d2b6474 | ||
|
|
371871d685 | ||
|
|
aa36a6ae4f | ||
|
|
b8d59d9c98 | ||
|
|
151c7bef41 | ||
|
|
5a057a8ded | ||
|
|
7e29b0b5b4 | ||
|
|
0ff2adb21b | ||
|
|
6ba7bbbe29 | ||
|
|
ae5bc89cad | ||
|
|
3ab1fb0215 | ||
|
|
4f28c5b69d | ||
|
|
6fe917ecb8 | ||
|
|
cb85923828 | ||
|
|
770b29fd80 | ||
|
|
987c1a595a | ||
|
|
fdb936ee95 | ||
|
|
2abf1a36b9 | ||
|
|
4063d30b5e | ||
|
|
2680e23b15 | ||
|
|
d6c6bcc9f3 | ||
|
|
b019f3ee29 | ||
|
|
b05e472c07 | ||
|
|
6cace73bea | ||
|
|
ecc876cec0 | ||
|
|
537774e049 | ||
|
|
1cc4bd76db | ||
|
|
725f2a4cf7 | ||
|
|
59cd60b266 | ||
|
|
be79b4aacb | ||
|
|
dda5af0e6c | ||
|
|
df75dbfd68 | ||
|
|
900e124bee | ||
|
|
8b5b635db7 | ||
|
|
f1ec226d80 | ||
|
|
856b9e9c50 | ||
|
|
5fb68f4b39 | ||
|
|
707ac67bab | ||
|
|
68dda34905 | ||
|
|
7486904b92 | ||
|
|
7d2d141b34 | ||
|
|
cf47ef12d3 | ||
|
|
a13bc9d7a1 | ||
|
|
ba7c125153 | ||
|
|
2128289631 | ||
|
|
6b939fbeaa | ||
|
|
188ab928c3 | ||
|
|
3274db19c7 | ||
|
|
a50bccc642 | ||
|
|
fbbedb4c03 | ||
|
|
5da7ec7c18 | ||
|
|
a8fd0de0d3 | ||
|
|
2e2f093ec2 | ||
|
|
da645f007b | ||
|
|
72c255caef | ||
|
|
db056eeafe | ||
|
|
9aa7158057 | ||
|
|
1894c9239f | ||
|
|
bddf8f76c8 | ||
|
|
15780ead07 | ||
|
|
6005dcef5b | ||
|
|
d3642b0715 | ||
|
|
f85212aa86 | ||
|
|
d951ff300e | ||
|
|
0781fd7aa0 | ||
|
|
aed25640a4 | ||
|
|
f9b2fd79e8 | ||
|
|
528dcc3814 | ||
|
|
ae1a137ce7 | ||
|
|
3750d835a1 | ||
|
|
e287b56b69 | ||
|
|
a411fe7e6e | ||
|
|
5728dd381d | ||
|
|
63e76482ac | ||
|
|
19b2640e89 | ||
|
|
f2ab351e8d | ||
|
|
2871781f64 | ||
|
|
6e6931ef73 | ||
|
|
a2dc074b1d | ||
|
|
896c134d30 | ||
|
|
e4d794851b | ||
|
|
0edcbc797f | ||
|
|
a15b02320e | ||
|
|
78f1964095 | ||
|
|
7b11e94441 | ||
|
|
f3d4ce0d16 | ||
|
|
886478b18b | ||
|
|
e7f6798b59 | ||
|
|
cdd34fcb16 | ||
|
|
6e7620afe0 | ||
|
|
5945a33350 | ||
|
|
2d5d6d9d0e | ||
|
|
752c75fb21 | ||
|
|
1b8566a7b1 | ||
|
|
e5b480b638 | ||
|
|
0ab8a175d8 | ||
|
|
e2fdd33541 | ||
|
|
32226f1b0c | ||
|
|
a7fc4fa9b7 | ||
|
|
649787a9bf | ||
|
|
9e011ff1cd | ||
|
|
36137623ed | ||
|
|
1f39746886 | ||
|
|
dbbcf558e2 | ||
|
|
4811409e99 | ||
|
|
3c9a2c752f | ||
|
|
fd69d2b7a8 | ||
|
|
e6fb69296e | ||
|
|
1b89bd5d26 | ||
|
|
9be5d5cd90 | ||
|
|
2baf1de00d | ||
|
|
b3f1f4c673 | ||
|
|
6c41e675ec | ||
|
|
04c6369a09 | ||
|
|
d1f507b7f1 | ||
|
|
ef422ee1e1 | ||
|
|
82a024d425 | ||
|
|
24f856ad6b | ||
|
|
e640861704 | ||
|
|
e51eeb8104 | ||
|
|
f3aac71fad | ||
|
|
975c591261 | ||
|
|
b9aedeab0b | ||
|
|
9c636d2490 | ||
|
|
d8370a4e15 | ||
|
|
fa187a366d | ||
|
|
eae81465c1 | ||
|
|
03f090b30b | ||
|
|
787d71d659 | ||
|
|
b2ffb76ca2 | ||
|
|
0e4deeb6e7 | ||
|
|
38ff815485 | ||
|
|
659d6b9b7c | ||
|
|
032453b3e7 | ||
|
|
2a3322ea14 | ||
|
|
1cecda8333 | ||
|
|
4dee2000a3 | ||
|
|
fece1fa9be | ||
|
|
02356b36d6 | ||
|
|
6d3a924283 | ||
|
|
9acec62cf8 | ||
|
|
abb53644c6 | ||
|
|
3eebeae363 | ||
|
|
98d68cfa91 | ||
|
|
888e7bc765 | ||
|
|
8db9d44ca9 | ||
|
|
2d4c228933 | ||
|
|
96d86740a1 | ||
|
|
23031b1554 | ||
|
|
2e43414c79 | ||
|
|
9901a40f04 | ||
|
|
d648e96b3d | ||
|
|
391ca61678 | ||
|
|
f801ec78ce | ||
|
|
61ca14bc44 | ||
|
|
52904ae32f | ||
|
|
f4a6470a7b | ||
|
|
c8ad64f33c | ||
|
|
27a50c8f4b | ||
|
|
1ead43c88c | ||
|
|
66d47ced48 | ||
|
|
9af4065243 | ||
|
|
a0d203a874 | ||
|
|
18ea468cf8 | ||
|
|
7dde2b902c | ||
|
|
3e1000fda3 | ||
|
|
1e806c4c77 | ||
|
|
8a44451edf | ||
|
|
9e1d9bff3b | ||
|
|
ffe58bf5ab | ||
|
|
de75d542f3 | ||
|
|
b9db5b37f2 | ||
|
|
b1e0143444 | ||
|
|
168d0e9e45 | ||
|
|
a0bf2ea7e7 | ||
|
|
5f0a4416db | ||
|
|
83a22b457c | ||
|
|
2c42e54519 | ||
|
|
b0fb48c389 | ||
|
|
f27e826b14 | ||
|
|
ae9e9efa31 | ||
|
|
6bb29aebee | ||
|
|
314c031ff2 | ||
|
|
fea819f74f | ||
|
|
220b0bf6e5 | ||
|
|
f16fab91c8 | ||
|
|
98cbe1356e | ||
|
|
b6f5523bdc | ||
|
|
4c2933ad82 | ||
|
|
7399b138a8 | ||
|
|
65bb07fb4e | ||
|
|
e86e0ecdc8 | ||
|
|
dd09af27af | ||
|
|
b7b62d4b3c | ||
|
|
db52a6a0ff | ||
|
|
900da3d800 | ||
|
|
1c63d08ed1 | ||
|
|
ae37a8013d | ||
|
|
23f42d9463 | ||
|
|
1372b991c3 | ||
|
|
a1d9ef48c5 | ||
|
|
4a938406dc | ||
|
|
53f28e71dc | ||
|
|
10475f444c | ||
|
|
6ea05f5a54 | ||
|
|
e344e1d490 | ||
|
|
5159f8f649 | ||
|
|
1b29aed128 | ||
|
|
9422eec554 | ||
|
|
9aa77a3769 | ||
|
|
da6696862e | ||
|
|
6e5349880e | ||
|
|
6d09468cab | ||
|
|
2334ee97d0 | ||
|
|
5d89bbdda1 | ||
|
|
8e2bf42c46 | ||
|
|
76390ef892 | ||
|
|
636f67f232 | ||
|
|
eb11c0e597 | ||
|
|
ca4f6d0fdd | ||
|
|
60e0abb595 | ||
|
|
9dc5de51a2 | ||
|
|
90655736ed | ||
|
|
bddb13d436 | ||
|
|
e3f36d9728 | ||
|
|
b658a73ed5 | ||
|
|
e165c2d23c | ||
|
|
dda3bf3ce7 | ||
|
|
6dfbbc3e11 | ||
|
|
5ff0814b1f | ||
|
|
001684fb11 | ||
|
|
16b0bc7c3b | ||
|
|
c841e39476 | ||
|
|
8c38f8d815 | ||
|
|
016ad3e962 | ||
|
|
98b036ddb6 | ||
|
|
3c6e285d3b | ||
|
|
1bc789553a | ||
|
|
1abbe05e93 | ||
|
|
f570b68ed1 | ||
|
|
bf11a47f22 | ||
|
|
1f72952f04 | ||
|
|
fc46cf337a | ||
|
|
76410df6a2 | ||
|
|
fbdb44dcc1 | ||
|
|
fd27f074fe | ||
|
|
8202bae070 | ||
|
|
c3c5f8b654 | ||
|
|
56f8699a6c | ||
|
|
05ea8926c3 | ||
|
|
667987e7d0 | ||
|
|
2019ed71b4 | ||
|
|
6b5a42a15c | ||
|
|
e46ab3bdcd | ||
|
|
e655626268 | ||
|
|
04f8d05bd4 | ||
|
|
05f74077fb | ||
|
|
2e4fdce743 | ||
|
|
ae1b5b3ff2 | ||
|
|
57ab147388 | ||
|
|
4d005a2c1d | ||
|
|
3b4ffacd0c | ||
|
|
491dd49419 | ||
|
|
c43db8a2ee | ||
|
|
0aeab5fd83 | ||
|
|
6b5d077c09 | ||
|
|
145366c07e | ||
|
|
3cf74336c9 | ||
|
|
77878f76a9 | ||
|
|
dce503779b | ||
|
|
28c7b54d68 | ||
|
|
8b81ad1fc4 | ||
|
|
58d0752fdd | ||
|
|
0467a6ceec | ||
|
|
5b0ee8ec30 | ||
|
|
dba15d9c36 | ||
|
|
80f26086ee | ||
|
|
796952a49a | ||
|
|
aa0538db0b | ||
|
|
a9d8dfc8e7 | ||
|
|
b97e34a8e4 | ||
|
|
ab27bee25a | ||
|
|
832b37c822 | ||
|
|
42c8afd440 | ||
|
|
b99fe27f8b | ||
|
|
f186b39018 | ||
|
|
c33cc382b3 | ||
|
|
92f9a3e5fa | ||
|
|
de8d5aaa92 | ||
|
|
8c85532412 | ||
|
|
b196278044 | ||
|
|
9d61d78de6 | ||
|
|
10ed107ba2 | ||
|
|
6dc14788a2 | ||
|
|
c5ef2afda5 | ||
|
|
d5f56ad5c5 | ||
|
|
d5327ddc5f | ||
|
|
b747754009 | ||
|
|
1b1f293082 | ||
|
|
f466243417 | ||
|
|
30f057aaf9 | ||
|
|
cefe5c80b1 | ||
|
|
2f1f2e4811 | ||
|
|
2db9798646 | ||
|
|
402fd6e8c6 | ||
|
|
0de9b16b11 | ||
|
|
af9afb686b | ||
|
|
f32fa075f1 | ||
|
|
315a422ba7 | ||
|
|
1de796f101 | ||
|
|
9e91579105 | ||
|
|
bba4dcb72f | ||
|
|
37abbcb54b | ||
|
|
2547c9c9b7 | ||
|
|
ec6a548ee3 | ||
|
|
27528ad3d2 | ||
|
|
f8786defd0 | ||
|
|
e1616f77c7 | ||
|
|
44fd395141 | ||
|
|
7b44b8aece | ||
|
|
13699e2dd9 | ||
|
|
20ab29f885 | ||
|
|
5b34fa538e | ||
|
|
7c7692933c | ||
|
|
361082ec4b | ||
|
|
f7a71996fb | ||
|
|
8b865fa9bf | ||
|
|
0d78f96205 | ||
|
|
47f62a67aa | ||
|
|
a6cc02f68f | ||
|
|
49ae538506 | ||
|
|
581c0901af | ||
|
|
74578ab22b | ||
|
|
e3ac56d502 | ||
|
|
32dda97602 | ||
|
|
631bf36102 | ||
|
|
b4374436f3 | ||
|
|
46ad5a5f5b | ||
|
|
9b94076717 | ||
|
|
b8b996be74 | ||
|
|
1d20b0247c | ||
|
|
b9359981f4 | ||
|
|
7977e87ce1 | ||
|
|
8636f0e1c3 | ||
|
|
830ddcee60 | ||
|
|
69d86442a5 | ||
|
|
36f46a61a7 | ||
|
|
6e1dc321f4 | ||
|
|
7a2a918067 | ||
|
|
f459a3f0ae | ||
|
|
e456f27795 | ||
|
|
90cd8ae9f2 | ||
|
|
70b6174748 | ||
|
|
c1a352c108 | ||
|
|
a2d5a60418 | ||
|
|
565d9f2306 | ||
|
|
6b91a4abe5 | ||
|
|
bfde1a4305 | ||
|
|
3340b56593 | ||
|
|
e56cbc225e | ||
|
|
7bf8e949e7 | ||
|
|
6a05c569f2 | ||
|
|
eaa4473dbd | ||
|
|
be76a68aea | ||
|
|
12c0afe4fe | ||
|
|
5621308949 | ||
|
|
399c920380 | ||
|
|
e40b447fea | ||
|
|
b94b9b0158 | ||
|
|
47ca6904b3 | ||
|
|
075815e5ff | ||
|
|
b60a27627b | ||
|
|
216c486a3a | ||
|
|
ac6248ed7a | ||
|
|
bdf4fd6091 | ||
|
|
69f48e4689 | ||
|
|
6f3cb12924 | ||
|
|
58fbcaa750 | ||
|
|
1a1a1ee4ff | ||
|
|
985b5f29ed | ||
|
|
2f65ddc501 | ||
|
|
1cc2f08041 | ||
|
|
821619e1c3 | ||
|
|
e9a80518c7 | ||
|
|
321733ab23 | ||
|
|
d4d3fc6a70 | ||
|
|
99b62f36b6 | ||
|
|
0a7d059b6a | ||
|
|
55bdcfaeac | ||
|
|
3a5e7ed9a6 | ||
|
|
b252589960 | ||
|
|
d581dfee5f | ||
|
|
8b32f10f16 | ||
|
|
8c4dab77ba | ||
|
|
071e2cd08e | ||
|
|
47b9c640f5 | ||
|
|
a9c809b441 | ||
|
|
0d40727775 | ||
|
|
17b729759b | ||
|
|
55ed8d108d | ||
|
|
f1a4b330dd | ||
|
|
0eac601b5b | ||
|
|
cdc2662c40 | ||
|
|
2b339cbbd8 | ||
|
|
3e6964b841 | ||
|
|
c6013725a8 | ||
|
|
4e075e4013 | ||
|
|
b81a6e6ab8 | ||
|
|
62bbf8a09e | ||
|
|
4ce3dfe9c8 | ||
|
|
fc8b246109 | ||
|
|
24bb68e7cf | ||
|
|
bc17dba8fb | ||
|
|
ac32f52ca6 | ||
|
|
90f1fe0ed2 | ||
|
|
28b13a4d1e | ||
|
|
f04b3a6f29 | ||
|
|
bf879ef230 | ||
|
|
004ed786b4 | ||
|
|
652eea71fe | ||
|
|
618065895b | ||
|
|
edaea69817 | ||
|
|
6fe46cc743 | ||
|
|
4ea81f170a | ||
|
|
f69121357d | ||
|
|
e2d7c1a523 | ||
|
|
ebbe25ee71 | ||
|
|
1a86adc5a2 | ||
|
|
e98854588b | ||
|
|
0fda4c4e15 | ||
|
|
b2c17a5a63 | ||
|
|
e9b031b88b | ||
|
|
00b45acb9e | ||
|
|
1ffc5b0cfd | ||
|
|
5e4cd599eb | ||
|
|
1f1d73ab74 | ||
|
|
67225de255 | ||
|
|
540eb3d02d | ||
|
|
fe8093b71f | ||
|
|
9dc23ce284 | ||
|
|
1801748ccd | ||
|
|
8b12bcc0ac | ||
|
|
e1037bd0cf | ||
|
|
2d1ced8759 | ||
|
|
39e9560600 | ||
|
|
d9addf79fa | ||
|
|
cfd84a6ad9 | ||
|
|
6ec13e7e2b | ||
|
|
79b644c7a3 | ||
|
|
14370a2260 | ||
|
|
3df6f3fc14 | ||
|
|
847794a321 | ||
|
|
829201382b | ||
|
|
5dd2462816 | ||
|
|
f448310eef | ||
|
|
101418b275 | ||
|
|
a1d8015817 | ||
|
|
17f65cd1e5 | ||
|
|
47a7fe5d22 | ||
|
|
abce09954b | ||
|
|
a219159e7e | ||
|
|
7324176f70 | ||
|
|
ca88e18f59 | ||
|
|
42f44dda54 | ||
|
|
d910148a96 | ||
|
|
c51e153b5c | ||
|
|
d51d0022ce | ||
|
|
3793991c0e | ||
|
|
b884d6ebaa | ||
|
|
36f7fe61c3 | ||
|
|
54088b0b8b | ||
|
|
9fb7bc7443 | ||
|
|
e2d44814a5 | ||
|
|
bd3a44cac9 | ||
|
|
61a6911eeb | ||
|
|
9bf17eb05a | ||
|
|
269c5c7107 | ||
|
|
382d35bf40 | ||
|
|
dd54fef898 | ||
|
|
edccc7ae34 | ||
|
|
7d5ff770e2 | ||
|
|
c6a11fe372 | ||
|
|
941920f2aa | ||
|
|
3b997c3e16 | ||
|
|
0737cbc5c1 | ||
|
|
227ff4d2d6 | ||
|
|
18d450b2d0 | ||
|
|
cc87551edc | ||
|
|
d0dc1b4a60 | ||
|
|
b4369e1015 | ||
|
|
4d5501c46a | ||
|
|
d4da2f630e | ||
|
|
e1da124415 | ||
|
|
36081505c4 | ||
|
|
2497f28aa9 | ||
|
|
49ece3155c | ||
|
|
8839fee415 | ||
|
|
ff1f6fa09d | ||
|
|
7ea30f18f9 | ||
|
|
12805c738c | ||
|
|
80b294c3c7 | ||
|
|
8884f856ef | ||
|
|
309788de37 | ||
|
|
f6367548e4 | ||
|
|
1c3ca3ce6a | ||
|
|
8603ec7055 | ||
|
|
1086e2f298 | ||
|
|
49703bea0a | ||
|
|
59b28cfa31 | ||
|
|
5c5c3930b7 | ||
|
|
7bb5ac045e | ||
|
|
cd81356ace | ||
|
|
c472b8f725 | ||
|
|
3a66c4ed47 | ||
|
|
29181003d4 | ||
|
|
87d1cde7e4 | ||
|
|
28b14d3e6d | ||
|
|
73c4e6005c | ||
|
|
b8ca0a830e | ||
|
|
a89cfe92cc | ||
|
|
0b0b31c7d2 | ||
|
|
1d2420323c | ||
|
|
0dd6911c62 | ||
|
|
28feafe7af | ||
|
|
0d10d5a0a5 | ||
|
|
31a2793662 | ||
|
|
f9cbd16f27 | ||
|
|
0ef80bb3d0 | ||
|
|
05c66529b2 | ||
|
|
9cacec70f9 | ||
|
|
94b6f38869 | ||
|
|
bf6ea2919d | ||
|
|
c32d6fdf74 | ||
|
|
67c8ccc309 | ||
|
|
590c99a98f | ||
|
|
01ed3fa1a9 | ||
|
|
32395ddb89 | ||
|
|
2fcf7f1241 | ||
|
|
07cb8092e7 | ||
|
|
1cbd53add8 | ||
|
|
eec38c5853 | ||
|
|
c93f0b9f4b | ||
|
|
a23478c0be | ||
|
|
312128384b | ||
|
|
3ccab5a1e8 | ||
|
|
dcb23bc3ab | ||
|
|
b6c5b3b4a7 | ||
|
|
d7580f21f6 | ||
|
|
b1fac4270d | ||
|
|
ac697326a6 | ||
|
|
184e9ae9a8 | ||
|
|
846f34f78b | ||
|
|
a33726b7db | ||
|
|
132df860d9 | ||
|
|
785b3e7a57 | ||
|
|
e89536ca0b | ||
|
|
ac10c9352e | ||
|
|
cf7cef4293 | ||
|
|
698e98d981 | ||
|
|
a3b8169938 | ||
|
|
46c9594081 | ||
|
|
7baa5977c8 | ||
|
|
803096ca0f | ||
|
|
6ee908848c | ||
|
|
3832019964 | ||
|
|
eae1191904 | ||
|
|
78b101e15d | ||
|
|
74f6d90153 | ||
|
|
c32073b11f | ||
|
|
b23b4dbd79 | ||
|
|
c1d516546d | ||
|
|
82ef26f600 | ||
|
|
ee5728ec03 | ||
|
|
9a02f53726 | ||
|
|
98100f472c | ||
|
|
80e5f50713 | ||
|
|
26f838796b | ||
|
|
35f271b264 | ||
|
|
f12e0161ca | ||
|
|
71d32f54f7 | ||
|
|
1f4ac6b05a | ||
|
|
d8590d9790 | ||
|
|
56219a5e7a | ||
|
|
26c6e3b206 | ||
|
|
b01f2c29ae | ||
|
|
ff66e8fa29 | ||
|
|
17b481e3c3 | ||
|
|
5c949d3b3b | ||
|
|
dcdb7059cc | ||
|
|
bf48ed32dd | ||
|
|
ba14957cf3 | ||
|
|
97cdf84899 | ||
|
|
98db08c42f | ||
|
|
cc6c5846e5 | ||
|
|
db988a46dd | ||
|
|
7a75da63c6 | ||
|
|
33efb3381c | ||
|
|
5aec1d94ad | ||
|
|
a8b39b5cc0 | ||
|
|
acd2c4e520 | ||
|
|
ab85a3593a | ||
|
|
c1c06fffcb | ||
|
|
6628eeb6ca | ||
|
|
0d3a8ad6dd | ||
|
|
4231de3914 | ||
|
|
3f07afbbd2 | ||
|
|
64e2f52c2e | ||
|
|
d261c3f455 | ||
|
|
e7f4232b10 | ||
|
|
f715547fc7 | ||
|
|
fa286688ab | ||
|
|
03c39d4fc0 | ||
|
|
6adbaabc65 | ||
|
|
81e2124ea2 | ||
|
|
cc27be9d44 | ||
|
|
7065ebd2ed | ||
|
|
a281df783d | ||
|
|
1fad8798ec | ||
|
|
7e31df3987 | ||
|
|
572e78cee0 | ||
|
|
453d2c9ce1 | ||
|
|
1356daad27 | ||
|
|
d18d256442 | ||
|
|
3530acb9e2 | ||
|
|
8a5ea466e4 | ||
|
|
1e241e84f7 | ||
|
|
e86233abc9 | ||
|
|
c1c895a36b | ||
|
|
73a576c9af | ||
|
|
665eaff9b9 | ||
|
|
9afda6ab8c | ||
|
|
3adaeb1dbc | ||
|
|
0efcd7ed05 | ||
|
|
4019e2a6f2 | ||
|
|
f6097f4a0a | ||
|
|
d4428cc77f | ||
|
|
ba15f9d282 | ||
|
|
0c718afe90 | ||
|
|
036e6301af | ||
|
|
6cffa743ee | ||
|
|
5001f778aa | ||
|
|
cd657b9878 | ||
|
|
67598d9d08 | ||
|
|
fd2356c620 | ||
|
|
bfbcfbe4a9 | ||
|
|
adc7ab0dd6 | ||
|
|
8f56eea77d | ||
|
|
8fc9830971 | ||
|
|
0cff61beda | ||
|
|
b403b9e4c3 | ||
|
|
26a269ea09 | ||
|
|
04bb89604e | ||
|
|
0428cae226 | ||
|
|
3f047be5aa | ||
|
|
f4acdea402 | ||
|
|
c7e7778f2a | ||
|
|
d1d45aa839 | ||
|
|
d103af5dd4 | ||
|
|
ed1d2f858e | ||
|
|
482cc4957d | ||
|
|
f1daed65b1 | ||
|
|
cf5313f13e | ||
|
|
06d5898d6a | ||
|
|
7662dd9bbb | ||
|
|
8160b8618d | ||
|
|
3029349761 | ||
|
|
02c5022742 | ||
|
|
3642441ca3 | ||
|
|
12bb743b35 | ||
|
|
26c0fa1cb0 | ||
|
|
a38f3740d6 | ||
|
|
345590f27f | ||
|
|
5a41326521 | ||
|
|
cefd948267 | ||
|
|
593b1b65e7 | ||
|
|
5da82077d1 | ||
|
|
1b9ef0e52d | ||
|
|
a75b95b876 | ||
|
|
e954375109 | ||
|
|
618991f136 | ||
|
|
bc6b6932d0 | ||
|
|
1909d26fe2 | ||
|
|
b1d0d3c0ed | ||
|
|
9addb3df3a | ||
|
|
e870e61bc9 | ||
|
|
cecc9cdd2f | ||
|
|
e17d8ddbeb | ||
|
|
37efd08b42 | ||
|
|
afba798357 | ||
|
|
796c18db93 | ||
|
|
a32c51effd | ||
|
|
5a810758db | ||
|
|
6f9377475c | ||
|
|
98f4c936f2 | ||
|
|
344277d026 | ||
|
|
3add8cfdb0 | ||
|
|
8b5a65c14a | ||
|
|
0646cc8d14 | ||
|
|
97d22be318 | ||
|
|
4c62ce831b | ||
|
|
b041aed660 | ||
|
|
cd6d703e94 | ||
|
|
dd140beb73 | ||
|
|
06afabb631 | ||
|
|
505b77a0d5 | ||
|
|
c3f5403b64 | ||
|
|
589f1c85b9 | ||
|
|
492d5454b1 | ||
|
|
4f95e2f9ec | ||
|
|
eb2d168710 | ||
|
|
d25634662b | ||
|
|
819ecd4508 | ||
|
|
5d6d40f329 | ||
|
|
b08abe64e4 | ||
|
|
0b53a5c673 | ||
|
|
e84f3ec1d4 | ||
|
|
b1af5af30e | ||
|
|
423c2f499c | ||
|
|
a2333bcbb4 | ||
|
|
c6578d2336 | ||
|
|
c5972b4ac7 | ||
|
|
0c9c5439d4 | ||
|
|
193c62fdba | ||
|
|
d673c34c8d | ||
|
|
df54510e3e | ||
|
|
ee04b71887 | ||
|
|
4b5c99d97f | ||
|
|
9e7d5d9d3b | ||
|
|
b2d18393c4 | ||
|
|
335d7f4855 | ||
|
|
4fb28e0dab | ||
|
|
bdae4fd573 | ||
|
|
e813626ee1 | ||
|
|
7bb77c02da | ||
|
|
ea54283b30 | ||
|
|
46fbd34c70 | ||
|
|
3ff5cfd028 | ||
|
|
922f881c3d | ||
|
|
bfcac89881 | ||
|
|
db06906c4f | ||
|
|
3016f23864 | ||
|
|
e5fba8fd70 | ||
|
|
916d155467 | ||
|
|
c5cb6e8e70 | ||
|
|
3791831081 | ||
|
|
7e6c1f8024 | ||
|
|
ceb0739ba1 | ||
|
|
37c1a8f69d | ||
|
|
6ea28f93b9 | ||
|
|
1208ac83d5 | ||
|
|
aa22cf323e | ||
|
|
492e5049d7 | ||
|
|
042c3290b3 | ||
|
|
518dc87db3 | ||
|
|
6391ec0c8f | ||
|
|
2739233719 | ||
|
|
83ee39448e | ||
|
|
35cd355c14 | ||
|
|
d764bd0584 | ||
|
|
666a7dda36 | ||
|
|
45618d5f6b | ||
|
|
d4c2e9de32 | ||
|
|
6220707e03 | ||
|
|
4c30f0f9ac | ||
|
|
5615fc4714 | ||
|
|
fa7b3b7276 | ||
|
|
b0aec6402a | ||
|
|
cc29b4bc27 | ||
|
|
b7e8d954ef | ||
|
|
4f7fc7b23f | ||
|
|
457a3c8f76 | ||
|
|
e6bb9c1cad | ||
|
|
aa4502060b | ||
|
|
b533aaa765 | ||
|
|
35add89c87 | ||
|
|
46e7c8512e | ||
|
|
ec9620fb2f | ||
|
|
6c7f5e3d0e | ||
|
|
dd521ece3f | ||
|
|
bcc1660abc | ||
|
|
62559ac330 | ||
|
|
30afd37604 | ||
|
|
cd4cc309ae | ||
|
|
3be9046c21 | ||
|
|
9c3db1be1d | ||
|
|
9bb575be7d | ||
|
|
0f04af5916 | ||
|
|
481b221279 | ||
|
|
80eb8f46b7 | ||
|
|
3a983d2419 | ||
|
|
47460b3b4a | ||
|
|
0a1ff68c11 | ||
|
|
ab16ce70fc | ||
|
|
08caeedd84 | ||
|
|
6f69b4d61f | ||
|
|
2feb23c1da | ||
|
|
efd7da0ce8 | ||
|
|
acd85fe95f | ||
|
|
4dfcd6012b | ||
|
|
546c0f631c | ||
|
|
0e33fbdcb9 | ||
|
|
8150c0a726 | ||
|
|
e8c1399bbf | ||
|
|
1cbab291a9 | ||
|
|
8181929c9a | ||
|
|
d9efaf754c | ||
|
|
6afdc52483 | ||
|
|
29e2fb38f8 | ||
|
|
03129e7c93 | ||
|
|
f0e94b4d71 | ||
|
|
f857fb7600 | ||
|
|
ff97059a99 | ||
|
|
1959346793 | ||
|
|
fc17a527bc | ||
|
|
a4df9d74ea | ||
|
|
eb82ca4563 | ||
|
|
09b6983175 | ||
|
|
65a26e40a8 | ||
|
|
fc2e33c594 | ||
|
|
1d72aaa0cd | ||
|
|
cf66826223 | ||
|
|
56ed408436 | ||
|
|
6be527dd52 | ||
|
|
effe9cc2cf | ||
|
|
89525fcb4e | ||
|
|
c2590af7fd | ||
|
|
9f6016e877 | ||
|
|
75f41dedca | ||
|
|
744af9f497 | ||
|
|
529fb7a7d7 | ||
|
|
5caff3bc24 | ||
|
|
507869bff1 | ||
|
|
70d5d791cc | ||
|
|
d6f2c0a76f | ||
|
|
bb418a43c1 | ||
|
|
2e5242f9bb | ||
|
|
1ae80aaf64 | ||
|
|
41de1cb723 | ||
|
|
29ab1fa8a5 | ||
|
|
60454da650 | ||
|
|
cb2c10d862 | ||
|
|
d05305473e | ||
|
|
be935bff84 | ||
|
|
f43c07cb3c | ||
|
|
af51dc4d63 | ||
|
|
aac2b6ae4c | ||
|
|
5db8f447d5 | ||
|
|
6fc85f1ec2 | ||
|
|
2c8ed76e01 | ||
|
|
393d675690 | ||
|
|
a748afce03 | ||
|
|
c14f0a4471 | ||
|
|
ba95e445e1 | ||
|
|
8c4d493c66 | ||
|
|
a5d5387dee | ||
|
|
130f3b270a | ||
|
|
61ca780f3b | ||
|
|
57dff6f1d7 | ||
|
|
7ffabf1d39 | ||
|
|
6fdddc5ac9 | ||
|
|
02c6af66bf | ||
|
|
ec866b066a | ||
|
|
056e9dd393 | ||
|
|
9226369b5d | ||
|
|
a2ce7b9950 | ||
|
|
d8fe64acaa | ||
|
|
4c490db6af | ||
|
|
b047f05e7e | ||
|
|
8d016ced6b | ||
|
|
7625b07dd9 | ||
|
|
8f504063f4 | ||
|
|
e896cab82c | ||
|
|
5f3792c2a7 | ||
|
|
01fe972113 | ||
|
|
ccbb56b4f2 | ||
|
|
2aeeb72fa5 | ||
|
|
7c4ed8055c | ||
|
|
992e4f83cb | ||
|
|
a8ebf756c7 | ||
|
|
5d9df7348d | ||
|
|
ac80ec59dc | ||
|
|
e349fac97d | ||
|
|
aba901e13c | ||
|
|
07db098ccf | ||
|
|
855e76fddd | ||
|
|
4d11747836 | ||
|
|
6ca3a44638 | ||
|
|
4460dc9d1a | ||
|
|
2a5a55efaf | ||
|
|
c850c41ec1 | ||
|
|
76821d167a | ||
|
|
fccc7d71eb | ||
|
|
d0bb90c69e | ||
|
|
992dc74efd | ||
|
|
0b22ad99c1 | ||
|
|
a8889b092b | ||
|
|
11b8d1df59 | ||
|
|
8743cc1c1c | ||
|
|
a0566c1058 | ||
|
|
3d0c6a8345 | ||
|
|
c3d6228023 | ||
|
|
7098ec691c | ||
|
|
e0e5f74776 | ||
|
|
ceaf1c080b | ||
|
|
1d42888d30 | ||
|
|
654564e164 | ||
|
|
9d8b512b27 | ||
|
|
b39042db56 | ||
|
|
d1e93db3eb | ||
|
|
059a1e9e4e | ||
|
|
5e7db8f5cd | ||
|
|
a7d22658ad | ||
|
|
29d53b2073 | ||
|
|
61ccc39b56 | ||
|
|
f9264e87ec | ||
|
|
a355777ff8 | ||
|
|
a0191910fc | ||
|
|
b9ebdffd83 | ||
|
|
1169ec7681 | ||
|
|
d099a42c85 | ||
|
|
7e69392249 | ||
|
|
216fc267fa | ||
|
|
d84638bd31 | ||
|
|
b0a5be4495 | ||
|
|
e64625aa82 | ||
|
|
c6dbe9dc07 | ||
|
|
662285074e | ||
|
|
e9c0b5431c | ||
|
|
fdbf8be735 | ||
|
|
5757a0edb5 | ||
|
|
04910c902a | ||
|
|
ffbe5656ff | ||
|
|
c0343c8f17 | ||
|
|
6d92fdc0df | ||
|
|
6b2a03faa2 | ||
|
|
c6e2af14c0 | ||
|
|
8774fdcd64 | ||
|
|
3ea6b5ae32 | ||
|
|
d02f07a983 | ||
|
|
b98b444179 | ||
|
|
1ce40d7581 | ||
|
|
92ef33d97a | ||
|
|
302187ae39 | ||
|
|
bf99d5b33c | ||
|
|
e5b820c47b | ||
|
|
bde2ff0343 | ||
|
|
803b3c4a82 | ||
|
|
0609fcf030 | ||
|
|
792b0ddccd | ||
|
|
6260b86c15 | ||
|
|
43e4a6501b | ||
|
|
7bd71fa800 | ||
|
|
7f92e708c5 | ||
|
|
b426301467 | ||
|
|
6994a3daaa | ||
|
|
821e01b013 | ||
|
|
ee73f09727 | ||
|
|
dc58568a25 | ||
|
|
f1a4a6e563 | ||
|
|
8363aba7ac | ||
|
|
d23ec6c419 | ||
|
|
22c7ce0162 | ||
|
|
983a33cf11 | ||
|
|
72e2613a9f | ||
|
|
67e6f74e9a | ||
|
|
d21c2bfb68 | ||
|
|
6b5532ab0d | ||
|
|
139439dcdc | ||
|
|
2b3957f373 | ||
|
|
55424a11af | ||
|
|
57c911c398 | ||
|
|
3ce17d2862 | ||
|
|
99ca4b619b | ||
|
|
b53f701c27 | ||
|
|
1989d1491a | ||
|
|
4ee7f6fc88 | ||
|
|
6d596b1ad1 | ||
|
|
d36c25bcbc | ||
|
|
2e0b56a72b | ||
|
|
2737baa657 | ||
|
|
f87501b1c5 | ||
|
|
3ff272b618 | ||
|
|
29297d3b82 | ||
|
|
ce5c94e471 | ||
|
|
f202563777 | ||
|
|
36a6b16a3b | ||
|
|
603192cfa7 | ||
|
|
a4a4e9fcf8 | ||
|
|
3e1d635f8d | ||
|
|
9ac1b4e59e | ||
|
|
5fdf72b1ab | ||
|
|
c3f6c322c0 | ||
|
|
5c25403b13 | ||
|
|
fd764d4ff7 | ||
|
|
60c2ccd99c | ||
|
|
9cf7913c61 | ||
|
|
7633dfdc08 | ||
|
|
6fb810adaa | ||
|
|
398d08a8dd | ||
|
|
07c3de3f75 | ||
|
|
a40a91d60f | ||
|
|
c590b505ed | ||
|
|
3deded28a5 | ||
|
|
46bd6c43db | ||
|
|
42a14b8a09 | ||
|
|
9c69c051ba | ||
|
|
53e042f0c4 | ||
|
|
4c2ba1af1d | ||
|
|
0fa2750fc9 | ||
|
|
8c4c7ea192 | ||
|
|
d1e589289c | ||
|
|
0743243dce | ||
|
|
d5871fc200 | ||
|
|
4180ca7fe4 | ||
|
|
a9659e6dcf | ||
|
|
8d3faf69d0 | ||
|
|
baea8e87e5 | ||
|
|
01ec4dbb12 | ||
|
|
a86452d22c | ||
|
|
49336675f3 | ||
|
|
516362bcad | ||
|
|
30444db020 | ||
|
|
c941a39b75 | ||
|
|
8507c867b9 | ||
|
|
6931267324 | ||
|
|
6ff956394a | ||
|
|
ac0637c413 | ||
|
|
b6d40a9312 | ||
|
|
c5d6fcbaba | ||
|
|
24554629b1 | ||
|
|
7c6ef0ddac | ||
|
|
1b26d4f220 | ||
|
|
e82100367f | ||
|
|
a67a15528a | ||
|
|
7b9fbb088a | ||
|
|
6415ed0730 | ||
|
|
e4f9ec886b | ||
|
|
8eaaf24b1e | ||
|
|
13c25036ea | ||
|
|
ecd19919c5 | ||
|
|
90d45f0397 | ||
|
|
b91b581b80 | ||
|
|
629705ad53 | ||
|
|
5ec6ecc511 | ||
|
|
a9ada0b5ba | ||
|
|
37c5ff392f | ||
|
|
2a7411bc96 | ||
|
|
497a7f1717 | ||
|
|
026ee40650 | ||
|
|
11c8f83a58 | ||
|
|
057bc237ad | ||
|
|
8b64e041d6 | ||
|
|
2a1b722d04 | ||
|
|
7c2af1c117 | ||
|
|
2cea410656 | ||
|
|
430bcdb219 | ||
|
|
53a6145a2b | ||
|
|
15e169e5b6 | ||
|
|
4365668462 | ||
|
|
55dd8fd621 | ||
|
|
2f4cbe22f5 | ||
|
|
5afebc2a4b | ||
|
|
f5abc9f188 | ||
|
|
753d62a4dd | ||
|
|
ae36beb38f | ||
|
|
bdd63837ea | ||
|
|
aa699a1283 | ||
|
|
aaddc99c35 | ||
|
|
e4b54f18c6 | ||
|
|
a3fdef7529 | ||
|
|
a977f3c0dc | ||
|
|
30b27336ea | ||
|
|
787a61bb27 | ||
|
|
4a1e82cf3f | ||
|
|
5721fcf668 | ||
|
|
be303ba186 | ||
|
|
1f34daccc3 | ||
|
|
6add45cd10 | ||
|
|
7ec8c257ff | ||
|
|
a9d6846f92 | ||
|
|
8f372c867d | ||
|
|
e952bb65e7 | ||
|
|
2642e091e9 | ||
|
|
dfd18d245a | ||
|
|
4699ebf534 | ||
|
|
5daf8729be | ||
|
|
4673b04503 | ||
|
|
cc0b451119 | ||
|
|
f2a2164184 | ||
|
|
f475a01326 | ||
|
|
2628103f1d | ||
|
|
ad56aef5d2 | ||
|
|
c3b80123e3 | ||
|
|
f9f9352ceb | ||
|
|
1e3f4877c0 | ||
|
|
e79cc42dfe | ||
|
|
263903378b | ||
|
|
f06f220c7c | ||
|
|
d6233c7d2d | ||
|
|
b42b70eb5f | ||
|
|
610adfd83f | ||
|
|
3c7b64ce20 | ||
|
|
a977cecbe4 | ||
|
|
6e212bdc6d | ||
|
|
2e8016c80d | ||
|
|
0930e190a7 | ||
|
|
3f94d09c1f | ||
|
|
70da79f04c | ||
|
|
8dcbdcad0a | ||
|
|
aa250e228a | ||
|
|
cf7c44a7f6 | ||
|
|
21fa29111b | ||
|
|
9c03c374e3 | ||
|
|
6d817e16c1 | ||
|
|
b240983e2b | ||
|
|
30a9939388 | ||
|
|
fc7abd9886 | ||
|
|
0fc71877a7 | ||
|
|
80833f8137 | ||
|
|
faae8b7dd8 | ||
|
|
2dd6a62f67 | ||
|
|
2937903299 | ||
|
|
66d3dc8690 | ||
|
|
f9a0a13fa9 | ||
|
|
2a0528303f | ||
|
|
6f5c6150b7 | ||
|
|
645dfd9693 | ||
|
|
1bca2f6ec4 | ||
|
|
90c4493a10 | ||
|
|
aaac1f0cdd | ||
|
|
287f990891 | ||
|
|
02d629af8f | ||
|
|
55a796b7c3 | ||
|
|
359e6414e5 | ||
|
|
4bb9a61049 | ||
|
|
22080e1fdd | ||
|
|
e2c2d8e15e | ||
|
|
b3c07f167f | ||
|
|
ec6a7b35f6 | ||
|
|
ebaa9b9feb | ||
|
|
7584e68c21 | ||
|
|
1fe617fa57 | ||
|
|
87dace1fa9 | ||
|
|
aa258dcc5f | ||
|
|
3c93034a32 | ||
|
|
594a34a88d | ||
|
|
1b59f89095 | ||
|
|
bbfa0a3dcb | ||
|
|
348f1562e2 | ||
|
|
7e41d7ac51 | ||
|
|
bd38428f33 | ||
|
|
87b62f75a7 | ||
|
|
c6c443385b | ||
|
|
5f8e5a4875 | ||
|
|
cc9ae39933 | ||
|
|
08d72a9245 | ||
|
|
09d0d55fc5 | ||
|
|
faab931ce1 | ||
|
|
d2a87f6f72 | ||
|
|
4b9b633dfe | ||
|
|
cb7f2d43b6 | ||
|
|
8aea85e374 | ||
|
|
0a600a03ee | ||
|
|
862117e4bd | ||
|
|
a1a475fb92 | ||
|
|
2a0d888326 | ||
|
|
8ebf2d8fad | ||
|
|
2f55a1d798 | ||
|
|
6609d45ef4 | ||
|
|
13bd452faf | ||
|
|
37111aa4bd | ||
|
|
f599a1b5f1 | ||
|
|
9e9bd35557 | ||
|
|
979ebfc126 | ||
|
|
8482855bc7 | ||
|
|
acb59f3243 | ||
|
|
5cfae0536f | ||
|
|
e7627623b9 | ||
|
|
f94c5473ad | ||
|
|
10af69b57c | ||
|
|
3c1cccc801 | ||
|
|
e61db7145a | ||
|
|
355b1e3bb1 | ||
|
|
b9affbf9fe | ||
|
|
2e0694b606 | ||
|
|
fc2a061d51 | ||
|
|
065aff9ffa | ||
|
|
4407524d13 | ||
|
|
29f7902fee | ||
|
|
65a48f9cd8 | ||
|
|
c4af70d0cc | ||
|
|
271fb20ecb | ||
|
|
858a6f0be9 | ||
|
|
f249ccaa89 | ||
|
|
a8e4cb6dfe | ||
|
|
cf3aabb9d3 | ||
|
|
261a8077c4 | ||
|
|
1774c49456 | ||
|
|
6fb6e6679e | ||
|
|
38c61f6f25 | ||
|
|
ff5b3ef087 | ||
|
|
468501cb86 | ||
|
|
b3d5ce7d48 | ||
|
|
dffe6d32d6 | ||
|
|
6a5c9aff3b | ||
|
|
e972a116ac | ||
|
|
1cbbfbe7fa | ||
|
|
7e58949c3f | ||
|
|
667f5a09c3 | ||
|
|
bac9a94ddf | ||
|
|
14994fa21b | ||
|
|
bc6031e7bb | ||
|
|
93f4852844 | ||
|
|
5950755b12 | ||
|
|
4541c22964 | ||
|
|
d652a58ada | ||
|
|
fecf214175 | ||
|
|
5f341e5db5 | ||
|
|
73c355591f | ||
|
|
8dc3048f65 | ||
|
|
3239aca69b | ||
|
|
2c24a73e25 | ||
|
|
6c73a59806 | ||
|
|
41b2008a66 | ||
|
|
7aefe123e9 | ||
|
|
fda49f2b52 | ||
|
|
d6f4c515f5 | ||
|
|
c71ab2a6a3 | ||
|
|
7842559353 | ||
|
|
6e3b58e491 | ||
|
|
365576620a | ||
|
|
15166f880b | ||
|
|
ad5b5a4895 | ||
|
|
d8e55a5cc3 | ||
|
|
e885a2912b | ||
|
|
ebf2aabd25 | ||
|
|
60b780c21b | ||
|
|
76148515fa | ||
|
|
ff84352fb7 | ||
|
|
f371e6c81a | ||
|
|
046411866b | ||
|
|
ca8cb65b73 | ||
|
|
07baf66200 | ||
|
|
1a96798642 | ||
|
|
1c364b6beb | ||
|
|
c8a9a4e76d | ||
|
|
d09ead546c | ||
|
|
f86707713c | ||
|
|
3054fd4811 | ||
|
|
7da8ebdfd0 | ||
|
|
44147d057d | ||
|
|
190c1b688a | ||
|
|
05cae69d72 | ||
|
|
087949227c | ||
|
|
3f4ce70d92 | ||
|
|
11f65cf885 | ||
|
|
a5b977aa90 | ||
|
|
0f1cdfa53a | ||
|
|
81ceac1b96 | ||
|
|
5245bd7b20 | ||
|
|
8216bb901c | ||
|
|
55b7c14554 | ||
|
|
75522f95ce | ||
|
|
a9c058dfe0 | ||
|
|
9ed166c196 | ||
|
|
44e5ff7d15 | ||
|
|
6244b10a8f | ||
|
|
fdccce781e | ||
|
|
8c012e103f | ||
|
|
6f415b96b3 | ||
|
|
4ed3509a02 | ||
|
|
c4f224932f | ||
|
|
63c6cedb14 | ||
|
|
4b2dd44711 | ||
|
|
2d627995cf | ||
|
|
b40c796ff7 | ||
|
|
1d7bf3d39f | ||
|
|
6d497f61c6 | ||
|
|
9da0232eef | ||
|
|
0275fcb3d3 | ||
|
|
abdfcda4dd | ||
|
|
84bc93d8cb | ||
|
|
eedb25b22a | ||
|
|
c6faa18ec9 | ||
|
|
6c27e2aaf6 | ||
|
|
0b493910d3 | ||
|
|
4ab0cedf42 | ||
|
|
2729e6294a | ||
|
|
ed621aae33 | ||
|
|
e822f440b0 | ||
|
|
d65b64c884 | ||
|
|
89c9320d80 | ||
|
|
43ceb0f5c7 | ||
|
|
7ab87f9f6e | ||
|
|
b94a76d17e | ||
|
|
8c28126984 | ||
|
|
94e525ae12 | ||
|
|
328ef60b85 | ||
|
|
94e4aa6ea9 | ||
|
|
067e66b348 | ||
|
|
fc6a5ae3ec | ||
|
|
6a831ca015 | ||
|
|
8b4605c336 | ||
|
|
246db4250b | ||
|
|
45152dead5 | ||
|
|
10fc733767 | ||
|
|
912cf7ba04 | ||
|
|
0f51ee6c88 | ||
|
|
dcdb4554d7 | ||
|
|
cf5ad266f6 | ||
|
|
d754c25cc8 | ||
|
|
24cca2f18d | ||
|
|
28c32d1b1b | ||
|
|
2bb0e48a7b | ||
|
|
9dd12a64a7 | ||
|
|
9b27fb91c0 | ||
|
|
36c0db2ac9 | ||
|
|
140d883901 | ||
|
|
d09a6e5421 | ||
|
|
5197aed7db | ||
|
|
ec7a2c3442 | ||
|
|
5721c43585 | ||
|
|
ca31d71107 | ||
|
|
08befff8f1 | ||
|
|
770a0e7839 | ||
|
|
b26f5e0bb7 | ||
|
|
fa4aefee44 | ||
|
|
8610314918 | ||
|
|
71d9367edc | ||
|
|
122d2db095 | ||
|
|
0cd72369f7 | ||
|
|
02f785af70 | ||
|
|
c9ed9d253a | ||
|
|
48fb0c3213 | ||
|
|
ea2718c946 | ||
|
|
edbd902a1b | ||
|
|
3ec159ab6b | ||
|
|
c9a546c310 | ||
|
|
827bccb64b | ||
|
|
14e7192d9c | ||
|
|
9085b10508 | ||
|
|
0fa9d2431f | ||
|
|
8a76b45253 | ||
|
|
8962af2e42 | ||
|
|
55bf5051ad | ||
|
|
5a692ba4f6 | ||
|
|
147a699c65 | ||
|
|
32e1b104f8 | ||
|
|
55b60e699b | ||
|
|
e7e2cbfc01 | ||
|
|
5b14fdb94b | ||
|
|
057d36b049 | ||
|
|
a906a84950 | ||
|
|
b7fc85d68e | ||
|
|
b4818a003a | ||
|
|
0e703d92ac | ||
|
|
12b90600eb | ||
|
|
2587b0ea62 | ||
|
|
f082c1b895 | ||
|
|
d51d74eb55 | ||
|
|
35806ccc1c | ||
|
|
b25e8b7079 | ||
|
|
e5d7627427 | ||
|
|
a225ef9c13 | ||
|
|
b6e137b2b4 | ||
|
|
03178a77b6 | ||
|
|
16038b4e67 | ||
|
|
109f995684 | ||
|
|
75f5ae80fd | ||
|
|
9138955ba5 | ||
|
|
4baa5ca963 | ||
|
|
598e454d46 | ||
|
|
9f467c387a | ||
|
|
8add3bb009 | ||
|
|
29b0480cfb | ||
|
|
e84bbcce3c | ||
|
|
e1fe75e3b6 | ||
|
|
a8bc2181c9 | ||
|
|
67effb94b6 | ||
|
|
705beb4c25 | ||
|
|
74706a0f02 | ||
|
|
8e4512a5e7 | ||
|
|
651030c98d | ||
|
|
62671c93c4 | ||
|
|
3b9808f23c | ||
|
|
e3253b5d5e | ||
|
|
27e0d2a973 | ||
|
|
5479be9f64 | ||
|
|
903b95fffa | ||
|
|
020006a8ed | ||
|
|
5235e01b8d | ||
|
|
7595716816 | ||
|
|
3f91ee4ff8 | ||
|
|
8951a03db3 | ||
|
|
e13f413ef5 | ||
|
|
69f7a1da5a | ||
|
|
912ae80350 | ||
|
|
12650e16d3 | ||
|
|
34729c365b | ||
|
|
bf5f0b1d0c | ||
|
|
4b29e5ba85 | ||
|
|
14955bd454 | ||
|
|
de12183d38 | ||
|
|
6019f1bb0a | ||
|
|
f5ce848cfe | ||
|
|
70867904a0 | ||
|
|
2c532a7255 | ||
|
|
aada35af9b | ||
|
|
be2b0501b5 | ||
|
|
3590591e67 | ||
|
|
222249e622 | ||
|
|
b2f2806055 | ||
|
|
9253fc337e | ||
|
|
612f01400f | ||
|
|
3630432dfb | ||
|
|
f539ed1e66 | ||
|
|
5076170f34 | ||
|
|
6078aa08eb | ||
|
|
64174f196f | ||
|
|
6a674ffea5 | ||
|
|
b1f7b5d1f6 | ||
|
|
c37389f19c | ||
|
|
a55f408c10 | ||
|
|
39b1fe8e44 | ||
|
|
365eea9fba | ||
|
|
4de8213887 | ||
|
|
68898a4d6b | ||
|
|
e1a0ee8fc5 | ||
|
|
278183c7e7 | ||
|
|
ceea1a7051 | ||
|
|
eae0927597 | ||
|
|
3083ec5e32 | ||
|
|
2f2dd80e48 | ||
|
|
d74ee40c86 | ||
|
|
e6b143b00d | ||
|
|
3386ecb59a | ||
|
|
52b4e51366 | ||
|
|
0a85260bcd | ||
|
|
245f30c59b | ||
|
|
fd38ea4149 | ||
|
|
6c2f6f5b03 | ||
|
|
a6b46420d0 | ||
|
|
f6f81169fe | ||
|
|
03faccfb08 | ||
|
|
0de13b0bba | ||
|
|
eafdc1f8e3 | ||
|
|
5044eb4b26 | ||
|
|
b419e2631a | ||
|
|
cc318ff8db | ||
|
|
e221a449e0 | ||
|
|
9e1fd70b50 | ||
|
|
1440f9a37a | ||
|
|
9f38ef5d97 | ||
|
|
64564da20b | ||
|
|
7b93341836 | ||
|
|
dbdc5fd4b3 | ||
|
|
2f249fea44 | ||
|
|
394826f520 | ||
|
|
c31f8e2bd7 | ||
|
|
f1ce5877ba | ||
|
|
8a7fb5fd34 | ||
|
|
97433f5ef1 | ||
|
|
ba295ec6fe | ||
|
|
b2b9b3b567 | ||
|
|
7381be8edb | ||
|
|
f7415c0bbc | ||
|
|
6539ccae7c | ||
|
|
01ddaf5670 | ||
|
|
f5e112ae5a | ||
|
|
821b578f7e | ||
|
|
6ad817e17b | ||
|
|
13e662f6de | ||
|
|
054abe20b8 | ||
|
|
8c25a83708 | ||
|
|
2c1c78a6d9 | ||
|
|
cbd3ae6906 | ||
|
|
af24c271c7 | ||
|
|
3ea9868b65 | ||
|
|
4600ecb5c7 | ||
|
|
f1cc3619f5 | ||
|
|
af28736bd0 | ||
|
|
06a041589f | ||
|
|
bed80133e0 | ||
|
|
1da145675d | ||
|
|
a61e6788db | ||
|
|
90b672f1af | ||
|
|
bf7dcfce36 | ||
|
|
907848997b | ||
|
|
207bd55751 | ||
|
|
84cd618585 | ||
|
|
ef8744d9fc | ||
|
|
ff1630834c | ||
|
|
52db6d8be5 | ||
|
|
e8b22b9253 | ||
|
|
9bde7fd72e | ||
|
|
8fe8ec84f6 | ||
|
|
0300eef94d | ||
|
|
6b83a0a589 | ||
|
|
adaa49d2cc | ||
|
|
3c8227b935 | ||
|
|
6f54eb6d9a | ||
|
|
00ec4132f8 | ||
|
|
e1d1417729 | ||
|
|
00f59f5014 | ||
|
|
b0ae84aa0d | ||
|
|
ea893aca8f | ||
|
|
d92172f3d4 | ||
|
|
4201a18117 | ||
|
|
22b694ee1e | ||
|
|
f9abcee0f9 | ||
|
|
9617aa8e19 | ||
|
|
f5af1fdca8 | ||
|
|
648b352424 | ||
|
|
79042223dc | ||
|
|
b14ee6ce16 | ||
|
|
8dac28f2e3 | ||
|
|
87a05c8f38 | ||
|
|
32b8565022 | ||
|
|
af8ada45e7 | ||
|
|
46d6470c43 | ||
|
|
9b825e2728 | ||
|
|
748263d2f0 | ||
|
|
7d9a13e0d5 | ||
|
|
6c2ad7b72e | ||
|
|
b7baceefda | ||
|
|
4755caeb2d | ||
|
|
5422fe5125 | ||
|
|
bd0c0a633b | ||
|
|
d6adadc5e3 | ||
|
|
0864f1fc8e | ||
|
|
f14feea436 | ||
|
|
36a4ba3248 | ||
|
|
40717465bc | ||
|
|
59c0d01418 | ||
|
|
bc5e60cd63 | ||
|
|
fe41bd6fe8 | ||
|
|
a3a5f8b593 | ||
|
|
54b5c8273d | ||
|
|
a2598e649d | ||
|
|
62d76b8e1f | ||
|
|
a528bd04db | ||
|
|
677796b351 | ||
|
|
6a72cd45e2 | ||
|
|
1d51cada3c | ||
|
|
d381d9a74c | ||
|
|
60561cdca2 | ||
|
|
7778740315 | ||
|
|
c67424ecc8 | ||
|
|
36419defd1 | ||
|
|
67d44519ce | ||
|
|
54f0f82dd1 | ||
|
|
e323f0e831 | ||
|
|
280b7f23af | ||
|
|
915fc0e581 | ||
|
|
3a51d5e80c | ||
|
|
443d024843 | ||
|
|
27782bbade | ||
|
|
426c70ac0b | ||
|
|
28ba374f27 | ||
|
|
ad99089567 | ||
|
|
69f8a1b01a | ||
|
|
ad7b0efbd3 | ||
|
|
d98a6f85fc | ||
|
|
c2ef8682fe | ||
|
|
fe64a13cea | ||
|
|
741fa8ca9c | ||
|
|
61e8296bd8 | ||
|
|
4b2ee6c30c | ||
|
|
1564f1a020 | ||
|
|
7ea76fcf99 | ||
|
|
79fa05867f | ||
|
|
d116b9595c | ||
|
|
55d85d60fd | ||
|
|
d3e84cc8b4 | ||
|
|
5cec1aad15 | ||
|
|
82c0780f81 | ||
|
|
cea1723c68 | ||
|
|
412cf98bbc | ||
|
|
f3ae8f50a5 | ||
|
|
98998534cb | ||
|
|
619e8a4f03 | ||
|
|
164ba56a60 | ||
|
|
32276e8b01 | ||
|
|
4f0d88cb02 | ||
|
|
830bdb1cfd | ||
|
|
dadf01de60 | ||
|
|
7d71a75d77 | ||
|
|
5c1a7b965c | ||
|
|
b517967f86 | ||
|
|
83226762c2 | ||
|
|
9ad515d2dc | ||
|
|
72411eb24c | ||
|
|
bcc2980179 | ||
|
|
366e9627e8 | ||
|
|
cd2fb09051 | ||
|
|
c1f0d40e34 | ||
|
|
158efbaa45 | ||
|
|
cfb2b51b74 | ||
|
|
f6669db001 | ||
|
|
b71091e337 | ||
|
|
0f76a1c6df | ||
|
|
580bae0a86 | ||
|
|
44a7f997c3 | ||
|
|
5c6540452a | ||
|
|
3ac34ee3c4 | ||
|
|
69c78ddbb4 | ||
|
|
007bced276 | ||
|
|
6bc8dec7ac | ||
|
|
4ad8f1035b | ||
|
|
12f82ab2ff | ||
|
|
559cc02313 | ||
|
|
b19bf3ec78 | ||
|
|
060a07cf69 | ||
|
|
90b94e64fc | ||
|
|
d2f119cf9b | ||
|
|
206fe25971 | ||
|
|
7fa2607bd1 | ||
|
|
691cb90284 | ||
|
|
ff87c241a7 | ||
|
|
fe87feccb1 | ||
|
|
ebf1eb9359 | ||
|
|
3eda70c64c | ||
|
|
1fa48bc5e7 | ||
|
|
a4246c2da6 | ||
|
|
7fa740996c | ||
|
|
c7a13c9be8 | ||
|
|
2b06fe3eff | ||
|
|
cdeae22356 | ||
|
|
5f706cd7f5 | ||
|
|
c14de2e973 | ||
|
|
e4aa011d23 | ||
|
|
e7c7b54b82 | ||
|
|
663d4e0aff | ||
|
|
bdec8c3e41 | ||
|
|
b24f16fa53 | ||
|
|
983f5a717a | ||
|
|
7efeb4bd96 | ||
|
|
fca3333f7f | ||
|
|
bc83761996 | ||
|
|
f7fdb4dfbe | ||
|
|
251846d65a | ||
|
|
fad21fb4a5 | ||
|
|
b2119d8931 | ||
|
|
8eef2b765a | ||
|
|
a32693770c | ||
|
|
7473c93668 | ||
|
|
56a5592ea0 | ||
|
|
3edc4698fe | ||
|
|
910a6d4e46 | ||
|
|
de3a71cafd | ||
|
|
48ee0777a5 | ||
|
|
ec57aa64cd | ||
|
|
ee0c892303 | ||
|
|
7cb0e24245 | ||
|
|
e30e9fe979 | ||
|
|
d2d5dbc6fb | ||
|
|
6dec90464d | ||
|
|
b5b53d8b32 | ||
|
|
28d6b30c0f | ||
|
|
8e24378cc1 | ||
|
|
8fe01b4bfa | ||
|
|
36ce54e5dc | ||
|
|
d6357aa616 | ||
|
|
e389585f1f | ||
|
|
231fe04f03 | ||
|
|
58d6ec689f | ||
|
|
037772fc07 | ||
|
|
8001e48115 | ||
|
|
2c1b0ff17e | ||
|
|
fe9e95a3fd | ||
|
|
940952f757 | ||
|
|
f98e002d98 | ||
|
|
313eec33ad | ||
|
|
8754f2b768 | ||
|
|
cd88295f5a | ||
|
|
29a5a92d13 | ||
|
|
ac3371bcb6 | ||
|
|
da9fe951da | ||
|
|
6b23094cff | ||
|
|
9918b6c84e | ||
|
|
f87094b660 | ||
|
|
dca290d525 | ||
|
|
ff99752ddd | ||
|
|
899df30c24 | ||
|
|
95773b9673 | ||
|
|
260536a729 | ||
|
|
b79dd188d9 | ||
|
|
66de3f0aa8 | ||
|
|
96d4a7d087 | ||
|
|
d82caa5ce3 | ||
|
|
03bf902b92 | ||
|
|
e8d701a3b2 | ||
|
|
13f8f65a58 | ||
|
|
76215ca9f3 | ||
|
|
97dd4551ef | ||
|
|
0bedf1c376 | ||
|
|
48bd48876c | ||
|
|
21e52efdfe | ||
|
|
064cf16099 | ||
|
|
d37a2559b9 | ||
|
|
70c65835f4 | ||
|
|
59bc541232 | ||
|
|
fe7e284709 | ||
|
|
0329e05823 | ||
|
|
8e77f81586 | ||
|
|
fa53c5e074 | ||
|
|
51d4566cbf | ||
|
|
ebbd8b0743 | ||
|
|
49559e6d5e | ||
|
|
685862d2ce | ||
|
|
a9e1d38612 | ||
|
|
5176fbc6fa | ||
|
|
6ecba12650 | ||
|
|
3c6c891680 | ||
|
|
df323cdb4e | ||
|
|
a2919b5e17 | ||
|
|
6674ea8d67 | ||
|
|
0ad5898c0f | ||
|
|
00280e62e3 | ||
|
|
7d69679935 | ||
|
|
7551264fa6 | ||
|
|
3874f02f1b | ||
|
|
0e211ae203 | ||
|
|
bd95871a89 | ||
|
|
05715f27cf | ||
|
|
45dc690947 | ||
|
|
e289b0a1c1 | ||
|
|
658ac3c257 | ||
|
|
7eed47fad5 | ||
|
|
e3a08875f6 | ||
|
|
a7705fc203 | ||
|
|
13ddf20bd2 | ||
|
|
cb1fa523e4 | ||
|
|
1fe70a66ba | ||
|
|
62dd9833ec | ||
|
|
3a01e3e39b | ||
|
|
c8fc4cebe6 | ||
|
|
0214cbe0fb | ||
|
|
7c678554b5 | ||
|
|
edad47bf0e | ||
|
|
a487396b76 | ||
|
|
e94aa421c6 | ||
|
|
d4f0a67323 | ||
|
|
e45d9bb29d | ||
|
|
9c0f36c46d | ||
|
|
914e57e49b | ||
|
|
23454dcfcb | ||
|
|
bd5720f480 | ||
|
|
f819ac7158 | ||
|
|
15bfae52d2 | ||
|
|
d7dabce732 | ||
|
|
f6e71b5749 | ||
|
|
351d6b0d44 | ||
|
|
03473d48c1 | ||
|
|
45c070fc8b | ||
|
|
1de1359e3b | ||
|
|
637b2415d9 | ||
|
|
69aac4d531 | ||
|
|
9d188f73b5 | ||
|
|
3593662b0c | ||
|
|
60b5a94428 | ||
|
|
dcfecebe1f | ||
|
|
258a7b9a93 | ||
|
|
b3c9b66f29 | ||
|
|
7e160a677d | ||
|
|
8735e5addd | ||
|
|
4d5a719f25 | ||
|
|
af93217775 | ||
|
|
2060bc8bac | ||
|
|
29fef349ef | ||
|
|
3953bf0031 | ||
|
|
43901c9282 | ||
|
|
79eb40fc9f | ||
|
|
009b221692 | ||
|
|
2b716aec54 | ||
|
|
45f8304f3c | ||
|
|
4800c94392 | ||
|
|
97c37356fd | ||
|
|
82ac4712f1 | ||
|
|
a0cb1945ae | ||
|
|
3e2a928caa | ||
|
|
7bc1f487b8 | ||
|
|
2808409fbd | ||
|
|
6a2fec5309 | ||
|
|
b719801db0 | ||
|
|
458d891c63 | ||
|
|
bcfd788661 | ||
|
|
fd4b75cfa8 | ||
|
|
090f593bc0 | ||
|
|
062fa049d0 | ||
|
|
24d44f35f2 | ||
|
|
323216ed85 | ||
|
|
1f26a1b863 | ||
|
|
05ac1209c7 | ||
|
|
eb4029257a | ||
|
|
5ebc22807c | ||
|
|
7fed424435 | ||
|
|
92f998c7ef | ||
|
|
03bb88dec0 | ||
|
|
054947def7 | ||
|
|
aa884c052d | ||
|
|
2adcc31bb4 | ||
|
|
c54d123b31 | ||
|
|
2e9ed6f7aa | ||
|
|
c750ef09e1 | ||
|
|
f4341c7b7f | ||
|
|
b1cc9cdc74 | ||
|
|
50659f4b48 | ||
|
|
4accc187d5 | ||
|
|
2382da4179 | ||
|
|
54db54931e | ||
|
|
ac85fdc75e | ||
|
|
37770ed0d3 | ||
|
|
1470b22e90 | ||
|
|
ba2236fa51 | ||
|
|
f2a2b2ac70 | ||
|
|
493181ea09 | ||
|
|
c5b8acbaf0 | ||
|
|
25bc88113f | ||
|
|
c6ad3aec05 | ||
|
|
b298928c49 | ||
|
|
016f152b36 | ||
|
|
e82ddd9198 | ||
|
|
413ace37d3 | ||
|
|
8595198c1b | ||
|
|
15873fafc0 | ||
|
|
701591b403 | ||
|
|
1528dbc171 | ||
|
|
14f32a0c3a | ||
|
|
679c90b873 | ||
|
|
de0549fabb | ||
|
|
d457a1187d | ||
|
|
72ab6d3255 | ||
|
|
b34a8ef624 | ||
|
|
fc747ef4a6 | ||
|
|
e4dba36892 | ||
|
|
28b39267d9 | ||
|
|
9b6e8f6195 | ||
|
|
3fef601903 | ||
|
|
30b921ef46 | ||
|
|
88292f35db | ||
|
|
2590a7dabb | ||
|
|
04c209980b | ||
|
|
01e3d694a6 | ||
|
|
9e63798d03 | ||
|
|
f8c27d7159 | ||
|
|
c930045834 | ||
|
|
dfbf580354 | ||
|
|
735b029db9 | ||
|
|
764e81bf12 | ||
|
|
bac4440e17 | ||
|
|
13364a2dcf | ||
|
|
745c368987 | ||
|
|
4e07967711 | ||
|
|
af73d1d682 | ||
|
|
4b7bdc3766 | ||
|
|
7ac24d551b | ||
|
|
9f32117457 | ||
|
|
a4b79f1dac | ||
|
|
04a09b7e2d | ||
|
|
32373e3837 | ||
|
|
f8cdff9a5d | ||
|
|
aa03e53ca8 | ||
|
|
c6b983e449 | ||
|
|
72d8878084 | ||
|
|
eb5e43022e | ||
|
|
71c28cfb0c | ||
|
|
f4e5675303 | ||
|
|
26fbea5cb7 | ||
|
|
8fcd71920a | ||
|
|
12df8565cf | ||
|
|
a6a49ccbf7 | ||
|
|
a7d894611e | ||
|
|
b569550a39 | ||
|
|
91cb8cdd2a | ||
|
|
e88b410b4d | ||
|
|
7e3b080f85 | ||
|
|
99027c79fe | ||
|
|
bac455c011 | ||
|
|
459d898705 | ||
|
|
46f63ef04f | ||
|
|
a05c420371 | ||
|
|
dd49c8e43d | ||
|
|
978ffd3097 | ||
|
|
2b9fd6b40a | ||
|
|
406e74e2af | ||
|
|
70ded4cbf0 | ||
|
|
e252dae499 | ||
|
|
db615a85ec | ||
|
|
ae4bfc3cfb | ||
|
|
15586368e5 | ||
|
|
87447f9f3f | ||
|
|
7f48eb8737 | ||
|
|
19bc4624ea | ||
|
|
7948cc0029 | ||
|
|
5aa523e32b | ||
|
|
3563c59b12 | ||
|
|
4992765032 | ||
|
|
182d484aa7 | ||
|
|
f54c2e75c8 | ||
|
|
3ad5243b18 | ||
|
|
34c94d5fcd | ||
|
|
2a61611c4f | ||
|
|
437cf4b3ac | ||
|
|
9a17dd91a4 | ||
|
|
b071e7f4db | ||
|
|
a136e2bb22 | ||
|
|
75fd738dea | ||
|
|
706da56f75 | ||
|
|
85b4b44235 | ||
|
|
8de8f61d36 | ||
|
|
0201c04b95 | ||
|
|
aa4c25778f | ||
|
|
7fd368c586 | ||
|
|
a237ff65ea | ||
|
|
145e02fc54 | ||
|
|
8d09f95bc7 | ||
|
|
ed036a2ce7 | ||
|
|
7afbd0f20d | ||
|
|
b0bf12ec87 | ||
|
|
7ce3d06402 | ||
|
|
405720b218 | ||
|
|
3bb6da9bd3 | ||
|
|
4d1887093d | ||
|
|
8646365b42 | ||
|
|
1681ee9883 | ||
|
|
c8e21a4d17 | ||
|
|
168ff36676 | ||
|
|
a9e4b96573 | ||
|
|
d84c2202e7 | ||
|
|
bd9c76097d | ||
|
|
31f82eb334 | ||
|
|
b86e7526e1 | ||
|
|
81379cbc7b | ||
|
|
f229dc8f42 | ||
|
|
8716278ca8 | ||
|
|
c5e9a0a71c | ||
|
|
f1126dbb87 | ||
|
|
cd2782f59c | ||
|
|
6b1b5a4a2a | ||
|
|
1b7c017076 | ||
|
|
be843959cb | ||
|
|
6512b23b98 | ||
|
|
7b2f25b578 | ||
|
|
22450c069b | ||
|
|
a3fb41981e | ||
|
|
9caf880ff9 | ||
|
|
31811365e0 | ||
|
|
dc62fb2ee9 | ||
|
|
92c6327593 | ||
|
|
6def110c37 | ||
|
|
971702e7a1 | ||
|
|
af923c965f | ||
|
|
5f735d6fce | ||
|
|
936c8e19ff | ||
|
|
516f49c812 | ||
|
|
b6ec1c720f | ||
|
|
f5e0388f62 | ||
|
|
abe08d7be3 | ||
|
|
24995f9ab7 | ||
|
|
154570ebd3 | ||
|
|
c12180d005 | ||
|
|
c273ed7d82 | ||
|
|
5cfa0e9187 | ||
|
|
94f2adb80a | ||
|
|
958c04e79a | ||
|
|
2f8809df40 | ||
|
|
7f14fbd579 | ||
|
|
48135657c4 | ||
|
|
d7bab21681 | ||
|
|
fba40e18d9 | ||
|
|
d3be1a2719 | ||
|
|
888ece0cb2 | ||
|
|
7edbb0110f | ||
|
|
1506e00a23 | ||
|
|
7138404cb0 | ||
|
|
4feb5f6f9c | ||
|
|
5cb5df003d | ||
|
|
498b24270a | ||
|
|
2fe54ab233 | ||
|
|
0071fbed8c | ||
|
|
67cc80ba66 | ||
|
|
8eefcb8493 | ||
|
|
359a9773a1 | ||
|
|
69788cb973 | ||
|
|
9d2a156453 | ||
|
|
7a223721a5 | ||
|
|
49da462e92 | ||
|
|
4e0a2c8e8c | ||
|
|
ec6acacc53 | ||
|
|
9834f855fa | ||
|
|
24de35ef09 | ||
|
|
5c70333a12 | ||
|
|
8ec8bff11c | ||
|
|
573bc3e05e | ||
|
|
7254278c09 | ||
|
|
c745831118 | ||
|
|
33083e6f6c | ||
|
|
73b3f2837f | ||
|
|
95f172d4dc | ||
|
|
1a0b3d8c84 | ||
|
|
41e3d01e63 | ||
|
|
20bae2b8f6 | ||
|
|
2ea2261156 | ||
|
|
35ad9febce | ||
|
|
5f6c8832af | ||
|
|
d2fab43abc | ||
|
|
39047d7d8b | ||
|
|
04e216319e | ||
|
|
35595560f0 | ||
|
|
c9e22976f5 | ||
|
|
07e85d8e14 | ||
|
|
e1f616fadf | ||
|
|
635b66acdc | ||
|
|
96e2b6bc07 | ||
|
|
9d152d6191 | ||
|
|
2f4cc72119 | ||
|
|
15550dc8c5 | ||
|
|
13dc8627b5 | ||
|
|
9e03c48d43 | ||
|
|
63c5c7fb2d | ||
|
|
41b83fe1cd | ||
|
|
4ddbf81e74 | ||
|
|
4ad8b28794 | ||
|
|
6c2b703c58 | ||
|
|
1dc91975ad | ||
|
|
f4cd66dc00 | ||
|
|
ed0817c55d | ||
|
|
8fce55b4c2 | ||
|
|
093d6d5074 | ||
|
|
1d6d42919e | ||
|
|
64e8aa6260 | ||
|
|
3ef1cd43f6 | ||
|
|
b448390889 | ||
|
|
4a240608d4 | ||
|
|
8d85e45c7d | ||
|
|
59a7405a80 | ||
|
|
4494cba489 | ||
|
|
859187931b | ||
|
|
79bef9eb16 | ||
|
|
b8160cc6d4 | ||
|
|
99e825ad96 | ||
|
|
3d7c1b8194 | ||
|
|
3b008723db | ||
|
|
f28b2bb6ed | ||
|
|
3b45fedb81 | ||
|
|
36ec42e50c | ||
|
|
c8e2b3710c | ||
|
|
805345d135 | ||
|
|
8830403acf | ||
|
|
76025cc424 | ||
|
|
72d065d491 | ||
|
|
97a9753f87 | ||
|
|
45da3e17e2 | ||
|
|
52584596d4 | ||
|
|
97b0c4b697 | ||
|
|
fa729a0c55 | ||
|
|
5caf1aa1a9 | ||
|
|
093a9106b0 | ||
|
|
2cc9211269 | ||
|
|
71c974f3eb | ||
|
|
e9874cbcc1 | ||
|
|
929428d602 | ||
|
|
b6fe9e0c83 | ||
|
|
bb793c829f | ||
|
|
d8fb834386 | ||
|
|
dba2367157 | ||
|
|
f255336c2c | ||
|
|
c4b7d4d3f7 | ||
|
|
b46e152171 | ||
|
|
8e6a068d2d | ||
|
|
b635cad9fe | ||
|
|
94489b2269 | ||
|
|
e2d333d209 | ||
|
|
ac0e5e8b6d | ||
|
|
3a540425a3 | ||
|
|
5b0ea1044a | ||
|
|
3136bae4a5 | ||
|
|
97a602864a | ||
|
|
45676382b6 | ||
|
|
d0b3536593 | ||
|
|
ea11dba00b | ||
|
|
5dd56bb474 | ||
|
|
2c1a6a349b | ||
|
|
e6d36fe356 | ||
|
|
ed07ffcde5 | ||
|
|
dcf1a1988a | ||
|
|
8eff550e8b | ||
|
|
8f3a7e41de | ||
|
|
4683f9c0a7 | ||
|
|
cce4158cfc | ||
|
|
3d497be9bd | ||
|
|
6e1aa91aaf | ||
|
|
c58918c84a | ||
|
|
61885aa965 | ||
|
|
2c229bac00 | ||
|
|
9ec56637f9 | ||
|
|
4340996572 | ||
|
|
5c59d95532 | ||
|
|
4907d28967 | ||
|
|
da4a0e0555 | ||
|
|
48f23746f0 | ||
|
|
86ecdcd5ff | ||
|
|
71aa5fe8a3 | ||
|
|
164b878854 | ||
|
|
c453f1f370 | ||
|
|
235ed7ecb9 | ||
|
|
434dea3caf | ||
|
|
2ce21cefdc | ||
|
|
50e096e627 | ||
|
|
03b4cf74a2 | ||
|
|
d34e4dc5ac | ||
|
|
84f1af6413 | ||
|
|
c8cc523d4d | ||
|
|
a1d97ea4db | ||
|
|
c6c22301fa | ||
|
|
6830ddb659 | ||
|
|
7c5d50f627 | ||
|
|
78e37e98e7 | ||
|
|
0d536734fe | ||
|
|
c2c24b3bb4 | ||
|
|
60613b57d1 | ||
|
|
ff67fbf964 | ||
|
|
525cefa37a | ||
|
|
8244825bbf | ||
|
|
eef4776b5b | ||
|
|
1bc2d83b6f | ||
|
|
8f873b762b | ||
|
|
a6c0a75f9a | ||
|
|
c39a7b5c0d | ||
|
|
89fd752659 | ||
|
|
f1ae3dc4aa | ||
|
|
12e8d9c4dd | ||
|
|
ecc74d76cc | ||
|
|
cc436c4b28 | ||
|
|
c2f410214c | ||
|
|
2339ee9910 | ||
|
|
7dc6c33873 | ||
|
|
576393550d | ||
|
|
7180699d40 | ||
|
|
9c7281c17e | ||
|
|
4d5a518a0b | ||
|
|
574d5d6ae6 | ||
|
|
cad64fb911 | ||
|
|
1e2c93aa2d | ||
|
|
6e9f8035a1 | ||
|
|
6788f955c2 | ||
|
|
509d0a8d78 | ||
|
|
eedbb1ee9a | ||
|
|
2750ec47b7 | ||
|
|
56a48101dc | ||
|
|
c35f4fd0bd | ||
|
|
4020258801 | ||
|
|
73eb8e8c20 | ||
|
|
4afc22ba6e | ||
|
|
bd14bd6c5b | ||
|
|
d3ed3285e9 | ||
|
|
5528abc795 | ||
|
|
545ff1e3f3 | ||
|
|
2c2ddcbf88 | ||
|
|
eac2df02d1 | ||
|
|
b6d1724dd9 | ||
|
|
ead3dd9759 | ||
|
|
e5a03eb066 | ||
|
|
57f93d25bd | ||
|
|
e5e91e9eb3 | ||
|
|
ee6531c5ff | ||
|
|
205378016f | ||
|
|
eda10c7317 | ||
|
|
3a51c3b584 | ||
|
|
c4678ffd77 | ||
|
|
dff39553d4 | ||
|
|
c617a6ec79 | ||
|
|
2d8a2d0c99 | ||
|
|
6388767df0 | ||
|
|
ec6cbb914b | ||
|
|
52c874a609 | ||
|
|
eaf73b55bc | ||
|
|
6ceb253f74 | ||
|
|
5d2138a2b2 | ||
|
|
ccb4722a59 | ||
|
|
46ea193a49 | ||
|
|
bcf41797ca | ||
|
|
d82aaf617c | ||
|
|
f46af4508b | ||
|
|
8db7b2374c | ||
|
|
4fb7ab5d09 | ||
|
|
86372b20c0 | ||
|
|
f6efdd8aad | ||
|
|
1a4cfc173e | ||
|
|
e2b7498c9d | ||
|
|
13eb46ea94 | ||
|
|
9800c84348 | ||
|
|
8310bcda61 | ||
|
|
474aa924ca | ||
|
|
59bff46505 | ||
|
|
5205b2f19b | ||
|
|
4af7743663 | ||
|
|
b7e1b686aa | ||
|
|
2ea98d9b74 | ||
|
|
07eebc38b2 | ||
|
|
333d4e0f27 | ||
|
|
f6f9a0d515 | ||
|
|
3a33428578 | ||
|
|
4f3c169b4e | ||
|
|
d423305f07 | ||
|
|
d61ec9ca76 | ||
|
|
0217652d1b | ||
|
|
b8aeb04f6f | ||
|
|
b9929d289d | ||
|
|
333e539ce2 | ||
|
|
1fa844aaf5 | ||
|
|
5f9346bc7a | ||
|
|
995fab2ebc | ||
|
|
97d2954e22 | ||
|
|
79a6782c1c | ||
|
|
ad4891a09a | ||
|
|
a8a2b2a488 | ||
|
|
cb707ba50c | ||
|
|
3d57e377a4 | ||
|
|
faa2747809 | ||
|
|
89358d25a4 | ||
|
|
9a53390f49 | ||
|
|
7b501906db | ||
|
|
49a513bdeb | ||
|
|
7dcb9825c3 | ||
|
|
5467e7b312 | ||
|
|
6efa8db888 | ||
|
|
acf8452c33 | ||
|
|
61db7a71dd | ||
|
|
406feee570 | ||
|
|
f047699afb | ||
|
|
3aa5437a10 | ||
|
|
36fe11378c | ||
|
|
eb75a77151 | ||
|
|
6107b53de0 | ||
|
|
5d4f69f483 | ||
|
|
92fbb61625 | ||
|
|
3d29805322 | ||
|
|
da7332a731 | ||
|
|
c5332537f5 | ||
|
|
56977c225e | ||
|
|
b3c058a9e4 | ||
|
|
f8a4cd7ec1 | ||
|
|
0e4f21fc37 | ||
|
|
7d8ce53eca | ||
|
|
99a1db2d40 | ||
|
|
145330fdf2 | ||
|
|
f1d710af00 | ||
|
|
22d1f0faf1 | ||
|
|
7be05b4b9d | ||
|
|
9cd8c96157 | ||
|
|
7e54a9c07f | ||
|
|
a4c8e947b0 | ||
|
|
6d20d634ca | ||
|
|
6dc2146ed7 | ||
|
|
9ac5671c18 | ||
|
|
1e18f4544b | ||
|
|
fc1d1f9afd | ||
|
|
3755cfccb3 | ||
|
|
20fd60902b | ||
|
|
d1729acd2b | ||
|
|
b2b1241dd7 | ||
|
|
4de1e1609a | ||
|
|
dc2b9fd458 | ||
|
|
ec9fbf09aa | ||
|
|
9f5d24be31 | ||
|
|
b0f40beea6 | ||
|
|
ab015959e1 | ||
|
|
2747df3df1 | ||
|
|
01ee012197 | ||
|
|
764a802eaa | ||
|
|
663fd8f849 | ||
|
|
46898f1e55 | ||
|
|
0636e17dbe | ||
|
|
be25396340 | ||
|
|
a009132c24 | ||
|
|
0e2bc23148 | ||
|
|
e55747a074 | ||
|
|
262714fc6c | ||
|
|
cbd0b42060 | ||
|
|
f546b486bf | ||
|
|
42fb9652f5 | ||
|
|
30830652ae | ||
|
|
c6b25a4046 | ||
|
|
8d059e54f1 | ||
|
|
558683d10c | ||
|
|
79cc3cc98e | ||
|
|
ef393da933 | ||
|
|
6da5b2fc5f | ||
|
|
a9959805e5 | ||
|
|
204ac81188 | ||
|
|
b3a3fdf9a4 | ||
|
|
6e2f78ebdd | ||
|
|
2e2860e4df | ||
|
|
6184781b49 | ||
|
|
a7750c929b | ||
|
|
f08e9cbe42 | ||
|
|
1c872ddf4b | ||
|
|
5304f43067 | ||
|
|
6284604b52 | ||
|
|
a953f3ec97 | ||
|
|
31b086f511 | ||
|
|
7c0a18edb5 | ||
|
|
09147a50ed | ||
|
|
d09d2b96fc | ||
|
|
aa4ff52d84 | ||
|
|
7f32a08b60 | ||
|
|
758205b187 | ||
|
|
f597863927 | ||
|
|
941f051358 | ||
|
|
3ddc109778 | ||
|
|
50bbdfe582 | ||
|
|
ce9a28d7bb | ||
|
|
0196a97319 | ||
|
|
3063aad7db | ||
|
|
50aa1f178c | ||
|
|
688d118c7e | ||
|
|
d0c3f127ee | ||
|
|
01b2c90179 | ||
|
|
c756633fb7 | ||
|
|
43454053b0 | ||
|
|
1aaeae292d | ||
|
|
2591883a18 | ||
|
|
3f306f63d4 | ||
|
|
d9b37b6da7 | ||
|
|
7c583f8222 | ||
|
|
99907f94dc | ||
|
|
7b6a8cc9ae | ||
|
|
f4d4f1ccb2 | ||
|
|
b09d62bac7 | ||
|
|
9c55576c7b | ||
|
|
3040296beb | ||
|
|
736aefe9b5 | ||
|
|
69ece747d3 | ||
|
|
01e1b49831 | ||
|
|
09d3f2cf2a | ||
|
|
5b9a0e7118 | ||
|
|
50edd4243e | ||
|
|
ac473a8623 | ||
|
|
053d5552ab | ||
|
|
5dc5e66986 | ||
|
|
d651ff968a | ||
|
|
f4af9e95c2 | ||
|
|
eb1c26746d | ||
|
|
eb8f0b85f7 | ||
|
|
59597d23a5 | ||
|
|
c39484bc4b | ||
|
|
5c988c8ea0 | ||
|
|
eff6a43419 | ||
|
|
7a18a39351 | ||
|
|
f9488cb763 | ||
|
|
e1ed8c33bd | ||
|
|
29f120206e | ||
|
|
0d1a9ce648 | ||
|
|
435378e953 | ||
|
|
71e62eb620 | ||
|
|
c985ce4d78 | ||
|
|
2683aac9b0 | ||
|
|
2b9b9e7704 | ||
|
|
4729826466 | ||
|
|
c20d04ca67 | ||
|
|
1889727144 | ||
|
|
218bfeb60e | ||
|
|
a0e44e3281 | ||
|
|
60e097a5f4 | ||
|
|
bc5528b165 | ||
|
|
ec8a6e0a2b | ||
|
|
f9d94c7462 | ||
|
|
11d90d9b22 | ||
|
|
36452afd4e | ||
|
|
47feff3611 | ||
|
|
4558e04c0d | ||
|
|
f6bd4b16e3 | ||
|
|
f49e398ebe | ||
|
|
a6ca3d0261 | ||
|
|
29a9c6bedd | ||
|
|
c59c826ab4 | ||
|
|
812cbff1a2 | ||
|
|
fd5c5b2969 | ||
|
|
4415a5bc68 | ||
|
|
ea606733eb | ||
|
|
24c8fdc1d0 | ||
|
|
97d6b0bab8 | ||
|
|
1f122626be | ||
|
|
3e042317ad | ||
|
|
1d74086b42 | ||
|
|
5cb1b41440 | ||
|
|
dd1791c9fd | ||
|
|
9bdf0b655d | ||
|
|
537e2cfeb6 | ||
|
|
e882ba0c29 | ||
|
|
aa71e27a3b | ||
|
|
3908590578 | ||
|
|
607fc788e3 | ||
|
|
876ce0fb12 | ||
|
|
172b34351a | ||
|
|
b9c9d6d798 | ||
|
|
b4eef59b6f | ||
|
|
1e28b424e7 | ||
|
|
015453f5b3 | ||
|
|
55b1c1546b | ||
|
|
118ad22ee5 | ||
|
|
81de8ed091 | ||
|
|
b86450aaae | ||
|
|
e402e1dc2e | ||
|
|
79828531b1 | ||
|
|
14c14fd61f | ||
|
|
2efb89d544 | ||
|
|
60da9a1289 | ||
|
|
3f4c1aaf01 | ||
|
|
0f3bf7ef4d | ||
|
|
585aec127c | ||
|
|
edfd2757d9 | ||
|
|
b10e33c040 | ||
|
|
cc45b4d8b5 | ||
|
|
f89baa73e5 | ||
|
|
85ebbc9aa5 | ||
|
|
7e13ee602e | ||
|
|
c71ca1a089 | ||
|
|
f960fc066e | ||
|
|
bb3ae3026e | ||
|
|
b8124ec791 | ||
|
|
219d94c1dd | ||
|
|
c26c8d3a44 | ||
|
|
ab5c007376 | ||
|
|
4391c38215 | ||
|
|
5d8be9c30d | ||
|
|
344b3556eb | ||
|
|
516ec28544 | ||
|
|
4e3ffbcf9b | ||
|
|
109b27b552 | ||
|
|
eac4d582d7 | ||
|
|
1045015a3c | ||
|
|
96cf776f81 | ||
|
|
f801183b8b | ||
|
|
516423cdac | ||
|
|
216ea425e4 | ||
|
|
8e961df283 | ||
|
|
fd171eff7f | ||
|
|
76218959ab | ||
|
|
a77c431e37 | ||
|
|
de7af720d6 | ||
|
|
b6f0b40037 | ||
|
|
55b9689950 | ||
|
|
92928309b2 | ||
|
|
bea3879d6f | ||
|
|
ac03ff6f05 | ||
|
|
6e8ff578f1 | ||
|
|
93f832a1a7 | ||
|
|
0ce971d9d3 | ||
|
|
101ea1a1e8 | ||
|
|
c8e5d53a39 | ||
|
|
4a4da9a24e | ||
|
|
f56fc9cd9d | ||
|
|
6ffea34d8b | ||
|
|
82da6bf4d2 | ||
|
|
d677190f39 | ||
|
|
e1be34bce1 | ||
|
|
936ddf2ad1 | ||
|
|
dbf17105f6 | ||
|
|
88f2a96ca3 | ||
|
|
1559bd9e1b | ||
|
|
dba9b83aa0 | ||
|
|
b0e09ec827 | ||
|
|
6afc5e762a | ||
|
|
720d978e35 | ||
|
|
6605d00d92 | ||
|
|
02fb83782e | ||
|
|
86ba7432a9 | ||
|
|
4e8f8cfab7 | ||
|
|
f2c6a937f3 | ||
|
|
b860b67693 | ||
|
|
f468364e4d | ||
|
|
7b7392826d | ||
|
|
0a554a1f27 | ||
|
|
d3e86f9208 | ||
|
|
25998cfc45 | ||
|
|
bbca6250ff | ||
|
|
40ea466200 | ||
|
|
7e3875b527 | ||
|
|
a2501ecfcd | ||
|
|
8f0e095f4c | ||
|
|
81aeb78976 | ||
|
|
3a948b2dba | ||
|
|
ec181b308a | ||
|
|
2ef0bc03ec | ||
|
|
8b51582b53 | ||
|
|
3453f8c5d2 | ||
|
|
653c3deaa5 | ||
|
|
6daa455243 | ||
|
|
485dcf90cd | ||
|
|
2f3a968136 | ||
|
|
9feed3f61e | ||
|
|
f23529c5cd | ||
|
|
35d00e00c5 | ||
|
|
b6fde73ef1 | ||
|
|
04a7c4ae1e | ||
|
|
24fc1f073d | ||
|
|
e1c6c01b4d | ||
|
|
b7a0bc7031 | ||
|
|
61c5edcb57 | ||
|
|
af153e7884 | ||
|
|
391d79ef44 | ||
|
|
eb79938060 | ||
|
|
2ca6a800ad | ||
|
|
82eeb5e02a | ||
|
|
129fabddb2 | ||
|
|
d9f8b1e0c1 | ||
|
|
e80ef9ff34 | ||
|
|
29930da522 | ||
|
|
3b20603eb1 | ||
|
|
779a51c047 | ||
|
|
b9ca5eef58 | ||
|
|
696ff43db3 | ||
|
|
368ebe63a9 | ||
|
|
3b7e4173ce | ||
|
|
2455e0bd18 | ||
|
|
ed6ca5d007 | ||
|
|
a4cbd1c7be | ||
|
|
47af2f02cb | ||
|
|
3ea8c7301e | ||
|
|
43d521e90e | ||
|
|
df648cbc60 | ||
|
|
8a22cd5e6c | ||
|
|
0ac346f707 | ||
|
|
9f84c78eb5 | ||
|
|
db1c52918f | ||
|
|
00f8319faf | ||
|
|
8e7549db0b | ||
|
|
eb102bf4bb | ||
|
|
86c43d97bc | ||
|
|
0b4b2b81f9 | ||
|
|
54a14d5c9d | ||
|
|
09280c5f11 | ||
|
|
2788fb4ce5 | ||
|
|
e29396b691 | ||
|
|
c38630af23 | ||
|
|
e0781c2548 | ||
|
|
3fcef54f9b | ||
|
|
b375bbee5f | ||
|
|
5838847a9a | ||
|
|
6bd1f6cc49 | ||
|
|
bb12dbe233 | ||
|
|
7eed7e1d96 | ||
|
|
2c5a32ebbc | ||
|
|
49a912ce33 | ||
|
|
b0b0939879 | ||
|
|
829240c325 | ||
|
|
1f3814141b | ||
|
|
9ca87afd0b | ||
|
|
81f36df910 | ||
|
|
ddcc8e1673 | ||
|
|
b414a1303f | ||
|
|
1f1e98f96b | ||
|
|
62ebf999bf | ||
|
|
7577d12614 | ||
|
|
abbdf41560 | ||
|
|
11d2ebc06f | ||
|
|
4ec38e3932 | ||
|
|
23e41a57ad | ||
|
|
fee224f075 | ||
|
|
d1b52efdb5 | ||
|
|
34d5a6c156 | ||
|
|
1c4c71dcff | ||
|
|
fd8d18ec28 | ||
|
|
859f1f08ca | ||
|
|
c4ea921876 | ||
|
|
e21ce9a9b4 | ||
|
|
f68ca2b6e6 | ||
|
|
3ab9f26943 | ||
|
|
658204bafc | ||
|
|
c32bca45ad | ||
|
|
d36501a6e5 | ||
|
|
6661bc35ef | ||
|
|
745dd5b7a5 | ||
|
|
f695d01354 | ||
|
|
3472823be9 | ||
|
|
cb103c089a | ||
|
|
cd6b3fd28a | ||
|
|
a49c81547c | ||
|
|
ca03e97697 | ||
|
|
a718515b3d | ||
|
|
d0fa0a234d | ||
|
|
c139af5826 | ||
|
|
4523a00b91 | ||
|
|
c33dc3e328 | ||
|
|
83b0cad766 | ||
|
|
b8a667deed | ||
|
|
4ba850639e | ||
|
|
9c4504dc41 | ||
|
|
ace5b5a1bf | ||
|
|
507830eb81 | ||
|
|
eb433731aa | ||
|
|
300d36b864 | ||
|
|
ad2089b0a3 | ||
|
|
493e0d7be8 | ||
|
|
93af30a6f6 | ||
|
|
bd1a54f076 | ||
|
|
966cfa4bdd | ||
|
|
c7dc379da5 | ||
|
|
7e1e264375 | ||
|
|
98f970ba59 | ||
|
|
88b9bc40d7 | ||
|
|
e5a0a0ef48 | ||
|
|
7e4c488717 | ||
|
|
505f1fbcbb | ||
|
|
65ea55bccd | ||
|
|
e22bcb78a5 | ||
|
|
181a21c67c | ||
|
|
ff5578fc71 | ||
|
|
a2e3bf6f30 | ||
|
|
aa1eae67ec | ||
|
|
7f0c2545a9 | ||
|
|
221f30c3aa | ||
|
|
8b32f79445 | ||
|
|
950b4a68c8 | ||
|
|
18d1569ce5 | ||
|
|
9d592c0445 | ||
|
|
a1cae93d78 | ||
|
|
2b93843d86 | ||
|
|
c956bcb13c | ||
|
|
6431d088ad | ||
|
|
ff44347ea1 | ||
|
|
dda1d60556 | ||
|
|
3301f6ecef | ||
|
|
97bf9f1521 | ||
|
|
3d5f48a160 | ||
|
|
a6e659f74b | ||
|
|
a33a325ac1 | ||
|
|
d41341f77d | ||
|
|
82b5a8af49 | ||
|
|
c38a3b4cc7 | ||
|
|
865f31018b | ||
|
|
2106a63d60 | ||
|
|
65d553d367 | ||
|
|
59b6b619a2 | ||
|
|
b9b7442b74 | ||
|
|
ad420d099a | ||
|
|
b0c4dc8df8 | ||
|
|
6d41402dce | ||
|
|
9de1ad6546 | ||
|
|
ff9d66e096 | ||
|
|
23bccbbc58 | ||
|
|
bbe795455a | ||
|
|
24066dca46 | ||
|
|
d6da533345 | ||
|
|
0ec171ccdf | ||
|
|
eab8f7355d | ||
|
|
576df064e5 | ||
|
|
58c6cc8fd7 | ||
|
|
4877e52c15 | ||
|
|
118b79eca7 | ||
|
|
a59ea7ce29 | ||
|
|
d8e21b39b3 | ||
|
|
0ee0094cc0 | ||
|
|
7b8a47f484 | ||
|
|
0eaa023ffa | ||
|
|
bfb9ed881d | ||
|
|
ebf4408d73 | ||
|
|
e88a29ad02 | ||
|
|
53af810851 | ||
|
|
f2f65c1a65 | ||
|
|
90c710fd26 | ||
|
|
c8e9ca0483 | ||
|
|
a983a215dc | ||
|
|
e954c24af0 | ||
|
|
60020add74 | ||
|
|
1cf6ca8f10 | ||
|
|
9880f99ccb | ||
|
|
1e61b75cbf | ||
|
|
03cc5df9b7 | ||
|
|
0330077d76 | ||
|
|
d7eaa97a29 | ||
|
|
211cb03f83 | ||
|
|
9562a9840f | ||
|
|
5707912e2f | ||
|
|
253ecdc8bb | ||
|
|
9be7853e34 | ||
|
|
2f8601ef38 | ||
|
|
becc503230 | ||
|
|
5d31a475e9 | ||
|
|
60de4d6dd1 | ||
|
|
08bb472c91 | ||
|
|
33c5186fd0 | ||
|
|
dc3a9379f5 | ||
|
|
3f6e1b2fd3 | ||
|
|
524f8199bf | ||
|
|
6657d544db | ||
|
|
0be6d34048 | ||
|
|
dbb2af6016 | ||
|
|
91a2275ad3 | ||
|
|
439481d177 | ||
|
|
01c0ba22ae | ||
|
|
0846e15667 | ||
|
|
ab6311c1bd | ||
|
|
d76e8cb1f1 | ||
|
|
16a58f8f2a | ||
|
|
31879eca8c | ||
|
|
3772f02569 | ||
|
|
372e1cad5b | ||
|
|
d2fa6e7753 | ||
|
|
8affdf96e2 | ||
|
|
3133372a6a | ||
|
|
59eab49cb8 | ||
|
|
8b1b9fc99d | ||
|
|
8ed4f226d1 | ||
|
|
82956df523 | ||
|
|
d186bf0dfe | ||
|
|
bf73f02fe0 | ||
|
|
360c66c65d | ||
|
|
2477d10aa0 | ||
|
|
c0741edc34 | ||
|
|
82a41a198e | ||
|
|
08b21acff1 | ||
|
|
9682a3ef3e | ||
|
|
e349fb9350 | ||
|
|
13781b922a | ||
|
|
0edb33566f | ||
|
|
78cff9e3a4 | ||
|
|
95038fc62d | ||
|
|
7f85608f30 | ||
|
|
09766d1729 | ||
|
|
fcacfabe19 | ||
|
|
83728e4b64 | ||
|
|
004f5008ff | ||
|
|
a7ad9c309b | ||
|
|
38c7c589e4 | ||
|
|
ce862ee758 | ||
|
|
4300f2a0fa | ||
|
|
c28116cb3b | ||
|
|
06697775d1 | ||
|
|
9edb9a21bc | ||
|
|
670021da15 | ||
|
|
069c87b960 | ||
|
|
7c4ff3abb4 | ||
|
|
483d43a15a | ||
|
|
a829a56587 | ||
|
|
81800ca39e | ||
|
|
b95ff54632 | ||
|
|
b41185a68f | ||
|
|
abce6804a0 | ||
|
|
f4e9638867 | ||
|
|
ecd10d2cf7 | ||
|
|
1821d1af48 | ||
|
|
54dac59285 | ||
|
|
a59bb053f4 | ||
|
|
deee9cb170 | ||
|
|
28e1971272 | ||
|
|
0cde7a4d46 | ||
|
|
efcc93e7da | ||
|
|
28ddc16a9b | ||
|
|
c161d73d42 | ||
|
|
dcb9614dfe | ||
|
|
f7d1d601e9 | ||
|
|
c388e7eac0 | ||
|
|
85acdadcfa | ||
|
|
739c36ad4d | ||
|
|
28e5fc8352 | ||
|
|
8324b683b4 | ||
|
|
7690285cbe | ||
|
|
66b29899c4 | ||
|
|
4f5b362bda | ||
|
|
91f9f355b2 | ||
|
|
41c493ace9 | ||
|
|
55fdf3e462 | ||
|
|
d7564a9a25 | ||
|
|
8987750a36 | ||
|
|
0578df9467 | ||
|
|
a578db5dae | ||
|
|
8767179d74 | ||
|
|
63cae9b9ac | ||
|
|
137a9c9365 | ||
|
|
a9926a289d | ||
|
|
391e89d70a | ||
|
|
50661f0e68 | ||
|
|
01ff0b3176 | ||
|
|
d8fe8f60e8 | ||
|
|
b3329bc698 | ||
|
|
aa3918efa7 | ||
|
|
e038a42d7a | ||
|
|
1d6451f5c3 | ||
|
|
bde161382a | ||
|
|
eb45211501 | ||
|
|
b56e20be27 | ||
|
|
754160afea | ||
|
|
c3a3d38735 | ||
|
|
3cea7d87c1 | ||
|
|
d791fe4975 | ||
|
|
19360c0079 | ||
|
|
6669ef5b70 | ||
|
|
7b45f3377f | ||
|
|
2ef2b9f2e0 | ||
|
|
1f9b93647b | ||
|
|
4b5e592656 | ||
|
|
0bda63eb76 | ||
|
|
d2e7414230 | ||
|
|
3e9632e256 | ||
|
|
84b19971fa | ||
|
|
4663a55f12 | ||
|
|
7c30716828 | ||
|
|
6c04c19eb4 | ||
|
|
12d87226a7 | ||
|
|
cdfc03dc8e | ||
|
|
0895190b64 | ||
|
|
ff657edbb6 | ||
|
|
c57eb286d6 | ||
|
|
216175c265 | ||
|
|
7e6c8a411d | ||
|
|
22546dcb55 | ||
|
|
b28e6d8306 | ||
|
|
cc91ba0add | ||
|
|
0eb9572d64 | ||
|
|
85e03217de | ||
|
|
57f6a3b5c0 | ||
|
|
6fef616870 | ||
|
|
d28cd0f040 | ||
|
|
152b37ee11 | ||
|
|
e530c960a4 | ||
|
|
3aea645106 | ||
|
|
7562bc1dbc | ||
|
|
b7745c6835 | ||
|
|
6cc02aadbf | ||
|
|
62236dd95e | ||
|
|
abc3d8d50a | ||
|
|
df5901fdc5 | ||
|
|
013427bde2 | ||
|
|
f144a95940 | ||
|
|
b4a51de602 | ||
|
|
c7b616ac14 | ||
|
|
1f2de6ecd5 | ||
|
|
d670c861d7 | ||
|
|
29eb220910 | ||
|
|
e861bbe0c1 | ||
|
|
463491f8cd | ||
|
|
b5a71d955c | ||
|
|
e540a75030 | ||
|
|
03b8ddd19c | ||
|
|
14a2f42f37 | ||
|
|
93ba3df4ff | ||
|
|
b52807f0c0 | ||
|
|
ce063e8d9c | ||
|
|
e80dda6051 | ||
|
|
b9e0b11e7d | ||
|
|
a7bced779a | ||
|
|
5ba51594c7 | ||
|
|
4811f460e7 | ||
|
|
797bbce15e | ||
|
|
554f20930a | ||
|
|
a756dbeb7b | ||
|
|
ad7e491214 | ||
|
|
d4e5747d04 | ||
|
|
cf45b939a0 | ||
|
|
e13c673980 | ||
|
|
965c9babe3 | ||
|
|
d7ab716eea | ||
|
|
8b20c3cc97 | ||
|
|
85fa3790ac | ||
|
|
e67d32b467 | ||
|
|
da427e8843 | ||
|
|
0685810ec6 | ||
|
|
e02eedb43e | ||
|
|
7cbcd81ddc | ||
|
|
5f35e6778f | ||
|
|
af9da83ce2 | ||
|
|
f0bb136099 | ||
|
|
c12046d6bf | ||
|
|
79f90bf7c1 | ||
|
|
bc5ae94384 | ||
|
|
f9a6038f5b | ||
|
|
baca0c2251 | ||
|
|
3e52c9439a | ||
|
|
60c43d1952 | ||
|
|
7c9bc8517d | ||
|
|
4d0ae8b0cb | ||
|
|
48dd601de0 | ||
|
|
064279c0ec | ||
|
|
e30c323391 | ||
|
|
d15f90645d | ||
|
|
a59dd393e7 | ||
|
|
b5b83db450 | ||
|
|
c298148a7f | ||
|
|
b94a6a0193 | ||
|
|
0a1eeca41e | ||
|
|
942980609f | ||
|
|
cd52ef315c | ||
|
|
ca8d184173 | ||
|
|
b6aa88c099 | ||
|
|
67c9d9c2fa | ||
|
|
cb009a5c4d | ||
|
|
c6f84325b1 | ||
|
|
8fd243ee23 | ||
|
|
7dbbe1bedc | ||
|
|
1872418316 | ||
|
|
142e81258c | ||
|
|
3ea99f989f | ||
|
|
048d4ec5be | ||
|
|
917050dc30 | ||
|
|
53104b09fa | ||
|
|
786a58d8b0 | ||
|
|
86661de077 | ||
|
|
c21293cd91 | ||
|
|
1513413412 | ||
|
|
b422835a59 | ||
|
|
fe819f3b9f | ||
|
|
0fa7859b94 | ||
|
|
ff55c6f5ba | ||
|
|
b0ebccb31e | ||
|
|
17c5ba2b6b | ||
|
|
9663493ba0 | ||
|
|
dffaa678f9 | ||
|
|
ee7202fa00 | ||
|
|
65eee2006d | ||
|
|
27f7aa0163 | ||
|
|
b95387a0dc | ||
|
|
e91ab84dbe | ||
|
|
515d9432fc | ||
|
|
d5de6489d7 | ||
|
|
ad78db4d62 | ||
|
|
8ce6a36478 | ||
|
|
94505146a2 | ||
|
|
843db4978e | ||
|
|
176115e22e | ||
|
|
4e181c5764 | ||
|
|
0339a13862 | ||
|
|
719effa7ec | ||
|
|
03ac0f18ae | ||
|
|
6aa390abfb | ||
|
|
91b0b14845 | ||
|
|
e5e265d024 | ||
|
|
16df850af2 | ||
|
|
13ade2ed60 | ||
|
|
64490897f3 | ||
|
|
bfcd2cf132 | ||
|
|
e620bde405 | ||
|
|
7330c97b5b | ||
|
|
17cd7a5817 | ||
|
|
b3e133dd15 | ||
|
|
73af0302be | ||
|
|
b4060da9eb | ||
|
|
5e7702fd05 | ||
|
|
76f215b0fe | ||
|
|
0dd9ac375b | ||
|
|
22893b7ac9 | ||
|
|
d338650089 | ||
|
|
5757f547a6 | ||
|
|
20b7162a62 | ||
|
|
dc864ee3a5 | ||
|
|
3cf51d5479 | ||
|
|
f486c0ae56 | ||
|
|
b523441361 | ||
|
|
8139d444f8 | ||
|
|
0b8f66ed9e | ||
|
|
22fa59f131 | ||
|
|
ece5c2aade | ||
|
|
8393dab470 | ||
|
|
d2e75cc957 | ||
|
|
ff86d7d52a | ||
|
|
7bc40aa963 | ||
|
|
c87cc59bdf | ||
|
|
8f84ddbbec | ||
|
|
0f26a62334 | ||
|
|
132e87a707 | ||
|
|
8ad0f1b8a3 | ||
|
|
e150832734 | ||
|
|
7279a485c2 | ||
|
|
16ecb1e2ea | ||
|
|
31ffca6d8a | ||
|
|
da44097800 | ||
|
|
2a5fbced7f | ||
|
|
282d8c20fd | ||
|
|
d9966d6158 | ||
|
|
12cee1377f | ||
|
|
95711bc2dd | ||
|
|
387f6bba3e | ||
|
|
44636e5b82 | ||
|
|
35bc7b0d8a | ||
|
|
532a74f50e | ||
|
|
51df765e38 | ||
|
|
9754e7aca7 | ||
|
|
991993357c | ||
|
|
f49e17eb39 | ||
|
|
67f8f83a1b | ||
|
|
e463479b6c | ||
|
|
6f8a2d6b84 | ||
|
|
58d9d98daf | ||
|
|
a80be98f31 | ||
|
|
9326541820 | ||
|
|
b927c29469 | ||
|
|
fee9aecfb2 | ||
|
|
ccda1aacb4 | ||
|
|
03403399fc | ||
|
|
a0266489b4 | ||
|
|
a76d55c83a | ||
|
|
b663e8b29a | ||
|
|
f1fcda4f2f | ||
|
|
e3b64d70c2 | ||
|
|
d3f96dc720 | ||
|
|
0932f84383 | ||
|
|
cda88ce31a | ||
|
|
aa9f981d5f | ||
|
|
e69d5b32e8 | ||
|
|
f76cc6699e | ||
|
|
d4ed66c83d | ||
|
|
094f921e50 | ||
|
|
80592f244d | ||
|
|
6051345bc9 | ||
|
|
3a88da578f | ||
|
|
fa917387e4 | ||
|
|
310ca62285 | ||
|
|
3ff7a627d1 | ||
|
|
2ae90e1eba | ||
|
|
11390a986a | ||
|
|
347cb272be | ||
|
|
412e8b0e37 | ||
|
|
d1c872bace | ||
|
|
fb71c9f6ee | ||
|
|
83cc08f670 | ||
|
|
14bdcd2c05 | ||
|
|
7235e84c75 | ||
|
|
d11fabd2ef | ||
|
|
f7c3c7eda4 | ||
|
|
b97c17f4ee | ||
|
|
2273155e7e | ||
|
|
b006b67768 | ||
|
|
26a5636424 | ||
|
|
3b3843e158 | ||
|
|
ef6706696c | ||
|
|
2a0e5888fd | ||
|
|
4418e4ea6a | ||
|
|
21fca93852 | ||
|
|
4342fe0f22 | ||
|
|
704914be08 | ||
|
|
31a95151c9 | ||
|
|
92c6150199 | ||
|
|
96496888ed | ||
|
|
7ee5cb0a81 | ||
|
|
9fb52c517b | ||
|
|
6af078bd8c | ||
|
|
d5aaf413e0 | ||
|
|
d7b5a87b3b | ||
|
|
70f6f2af07 | ||
|
|
c2181fdbf2 | ||
|
|
5a9f712144 | ||
|
|
485e37e889 | ||
|
|
587f748d92 | ||
|
|
629f4b1d3c | ||
|
|
239e17de12 | ||
|
|
c01d4c2f4c | ||
|
|
2da7af4ba0 | ||
|
|
e8d1b622d9 | ||
|
|
90f34ed40a | ||
|
|
61bf29be36 | ||
|
|
08b1154033 | ||
|
|
477815c044 | ||
|
|
6b63759ded | ||
|
|
7add66c8bb | ||
|
|
9e89c803f1 | ||
|
|
53ac85cfd3 | ||
|
|
d465e410ef | ||
|
|
99bc44cf52 | ||
|
|
6bca40274f | ||
|
|
9ce5229ddf | ||
|
|
ece29c5d8d | ||
|
|
074ee19fe5 | ||
|
|
64933321fb | ||
|
|
58909117be | ||
|
|
499f816e30 | ||
|
|
7e0ccc9de5 | ||
|
|
fda4d02f94 | ||
|
|
eba4f389a6 | ||
|
|
7d77a2ffc3 | ||
|
|
73171d18b9 | ||
|
|
eb1b4c8ffe | ||
|
|
ce595b9266 | ||
|
|
35841e5190 | ||
|
|
d9f96293be | ||
|
|
f22684439a | ||
|
|
3d6519e45b | ||
|
|
617804c327 | ||
|
|
269cfbb8ac | ||
|
|
972e2c1e31 | ||
|
|
221fae4112 | ||
|
|
2407f006ad | ||
|
|
0bb7377ebe | ||
|
|
9d4e1e8f8b | ||
|
|
c3f94a4341 | ||
|
|
4ba7871374 | ||
|
|
0f67f1e9de | ||
|
|
0395c174ca | ||
|
|
bbe8b18660 | ||
|
|
53f8f29744 | ||
|
|
0542df941f | ||
|
|
56524d13b5 | ||
|
|
b87442a9f7 | ||
|
|
c0a8e3cd34 | ||
|
|
c9b6d268b4 | ||
|
|
08d396fdba | ||
|
|
05c9351659 | ||
|
|
80985f97da | ||
|
|
3de51f76ee | ||
|
|
e6118f2d79 | ||
|
|
9b3ae1fdb7 | ||
|
|
ae38871a54 | ||
|
|
62ebce304e | ||
|
|
9f0e3bd286 | ||
|
|
395da0e7c1 | ||
|
|
0db4a0e898 | ||
|
|
0d64163fea | ||
|
|
9007f2bbdc | ||
|
|
d1e04f7388 | ||
|
|
487f68ec48 | ||
|
|
0795fd2701 | ||
|
|
9bf513e993 | ||
|
|
cd51860bf0 | ||
|
|
697f6748b8 | ||
|
|
c2e5dacf55 | ||
|
|
63758db379 | ||
|
|
6a7e02fc9f | ||
|
|
a11f1d6a7e | ||
|
|
73d1ebe244 | ||
|
|
b4fa94c4b1 | ||
|
|
2ee88a220a | ||
|
|
2dacb51fb0 | ||
|
|
a7538d0020 | ||
|
|
27c42ea934 | ||
|
|
8560004f38 | ||
|
|
676a0de58d | ||
|
|
9723191b19 | ||
|
|
fb23a0cfe0 | ||
|
|
20741a96ac | ||
|
|
738d6e20f2 | ||
|
|
3deb470b2d | ||
|
|
21fd722abc | ||
|
|
19efebe91e | ||
|
|
c1cafb56d5 | ||
|
|
93cdffca3a | ||
|
|
41a89e18f6 | ||
|
|
51eed7964e | ||
|
|
e2c75b0fa1 | ||
|
|
30584c7cfb | ||
|
|
5dfc67efbd | ||
|
|
0743d68d4c | ||
|
|
97dc4edb45 | ||
|
|
6684ef201a | ||
|
|
fb53a9362e | ||
|
|
3750ec7b7d | ||
|
|
f6df3740a8 | ||
|
|
07955b3041 | ||
|
|
405c0ca4b0 | ||
|
|
e189758d55 | ||
|
|
8ea0444655 | ||
|
|
69920c735a | ||
|
|
e26ebc3110 | ||
|
|
d6a7332993 | ||
|
|
afc530ea41 | ||
|
|
fda7b4c79d | ||
|
|
fca652eeea | ||
|
|
70cbfb199d | ||
|
|
a2810c06d7 | ||
|
|
d66f93cecd | ||
|
|
c27c2be584 | ||
|
|
22b493a6ff | ||
|
|
e157147253 | ||
|
|
cd856cb213 | ||
|
|
ed84b58af5 | ||
|
|
dc7022cd61 | ||
|
|
548e104171 | ||
|
|
8d9be18b29 | ||
|
|
bc45e5c6de | ||
|
|
e64f727529 | ||
|
|
a91bf01429 | ||
|
|
71e510540e | ||
|
|
de86403f33 | ||
|
|
b72ca57775 | ||
|
|
2393de5d6b | ||
|
|
23ad2f02c0 | ||
|
|
5da3d911cf | ||
|
|
18b076861e | ||
|
|
03dc760ca0 | ||
|
|
ef9d825cfa | ||
|
|
38f6d60e6e | ||
|
|
bae7e93a9c | ||
|
|
b67ded9f27 | ||
|
|
f9c6bc63df | ||
|
|
bdba044a80 | ||
|
|
5f4a6069c5 | ||
|
|
94e543bc39 | ||
|
|
580d09084d | ||
|
|
e089478a1c | ||
|
|
88ff13c241 | ||
|
|
9067b2848a | ||
|
|
9f5e9eb38d | ||
|
|
a6599404e4 | ||
|
|
0d8d51084f | ||
|
|
5948adfa10 | ||
|
|
fbb307cca0 | ||
|
|
4e8a9a1cd4 | ||
|
|
ca1093f848 | ||
|
|
a7181bd304 | ||
|
|
76e4e233ad | ||
|
|
f01d745d70 | ||
|
|
d44fe4ec62 | ||
|
|
72bf02bf15 | ||
|
|
357d17ae58 | ||
|
|
1d1ba40965 | ||
|
|
3b30765378 | ||
|
|
377c8a13de | ||
|
|
201b09f99a | ||
|
|
44b83c6ea6 | ||
|
|
12ca70537f | ||
|
|
ba0c41436c | ||
|
|
fabaf4f1f0 | ||
|
|
90ceb5218c | ||
|
|
9329e175d8 | ||
|
|
0af08eca1f | ||
|
|
45afbe5d9c | ||
|
|
c47866d251 | ||
|
|
7315962880 | ||
|
|
a6fe92194f | ||
|
|
1576551741 | ||
|
|
178798ef87 | ||
|
|
871dfd399b | ||
|
|
671e38fb65 | ||
|
|
e1bae3771e | ||
|
|
215c763d53 | ||
|
|
429828cd92 | ||
|
|
22659a7fea | ||
|
|
9b0f00baf3 | ||
|
|
93141f4b6d | ||
|
|
c3deafabda | ||
|
|
c92e48ce3f | ||
|
|
5f25c117eb | ||
|
|
cf880f78d5 | ||
|
|
6e7e5d5fd5 | ||
|
|
7964f30dcb | ||
|
|
21649100b1 | ||
|
|
7d39fd6678 | ||
|
|
2c505efd1e | ||
|
|
d344054e5a | ||
|
|
d084aed5e9 | ||
|
|
736e632215 | ||
|
|
51e01cceca | ||
|
|
936dd0f3bc | ||
|
|
15f491e500 | ||
|
|
5817dab89e | ||
|
|
a56243075a | ||
|
|
84a4f761f3 | ||
|
|
d4d505c868 | ||
|
|
08fd0715f9 | ||
|
|
26de12d9bf | ||
|
|
2b3c55f20d | ||
|
|
e9f1e868e2 | ||
|
|
827ea43478 | ||
|
|
bb152612e0 | ||
|
|
cfe3af099c | ||
|
|
f0b2ea64fc | ||
|
|
2707891966 | ||
|
|
d8a68dc0f1 | ||
|
|
253eb778d1 | ||
|
|
988391fc37 | ||
|
|
b1603f166e | ||
|
|
8e995b97cc | ||
|
|
2c616bd279 | ||
|
|
8c2940a98b | ||
|
|
40ff3cac39 | ||
|
|
53b5a45856 | ||
|
|
313fe3861b | ||
|
|
22b132e28f | ||
|
|
b0aaa77f02 | ||
|
|
ee0a1bec6c | ||
|
|
c74c07eed1 | ||
|
|
6518da7c01 | ||
|
|
a6e04ab051 | ||
|
|
651b2158ba | ||
|
|
42a210b571 | ||
|
|
9f359dfffa | ||
|
|
d9d40888ce | ||
|
|
2a50931684 | ||
|
|
0867e4fae9 | ||
|
|
fa831206c6 | ||
|
|
e72173dc43 | ||
|
|
4659b51b50 | ||
|
|
ffa6b99ab6 | ||
|
|
524bf9e858 | ||
|
|
b7ec9fbb0e | ||
|
|
e73d7725df | ||
|
|
b909a5ec18 | ||
|
|
1650b59cd9 | ||
|
|
bf5365b317 | ||
|
|
ba0a758d8c | ||
|
|
49da6a8d80 | ||
|
|
34ee5ab9a8 | ||
|
|
fa910966ed | ||
|
|
d0354b8440 | ||
|
|
2f647c443a | ||
|
|
c1ef19bef9 | ||
|
|
6c2856df23 | ||
|
|
fc47f0f27b | ||
|
|
76af536d0d | ||
|
|
34be795bc1 | ||
|
|
7e224b6834 | ||
|
|
de9f79133f | ||
|
|
080823bdee | ||
|
|
21c373b55d | ||
|
|
47278a6e4e | ||
|
|
e7b33e9ae7 | ||
|
|
af6971f823 | ||
|
|
2dc1b7282a | ||
|
|
1d8a427753 | ||
|
|
deb2e50296 | ||
|
|
c1bae04203 | ||
|
|
24003c76d1 | ||
|
|
a60a18b080 | ||
|
|
9c6d9dfc5c | ||
|
|
41c9dc973d | ||
|
|
fe7ab662f0 | ||
|
|
200f66537c | ||
|
|
0823254c3b | ||
|
|
fb2488235a | ||
|
|
4f3f881c9b | ||
|
|
540c79e6ad | ||
|
|
b13735b400 | ||
|
|
b383ff0b96 | ||
|
|
ce7204fa17 | ||
|
|
d9ea240122 | ||
|
|
67f3f4c1d8 | ||
|
|
a75af474f7 | ||
|
|
e31ec57f88 | ||
|
|
0976c3024f | ||
|
|
cb868a604c | ||
|
|
4cb0bfe939 | ||
|
|
bc1d97b2a7 | ||
|
|
6e50a1e9f5 | ||
|
|
ac88ae86a3 | ||
|
|
cfe0370280 | ||
|
|
60a2704b04 | ||
|
|
65cad14f9b | ||
|
|
fdf939a6f9 | ||
|
|
2dbdcf3636 | ||
|
|
5375dd6756 | ||
|
|
cdb77f0ecd | ||
|
|
43b5777709 | ||
|
|
35f53abc78 | ||
|
|
73c52d1677 | ||
|
|
ae45a39dc1 | ||
|
|
7ab13e0f17 | ||
|
|
6c0b194382 | ||
|
|
7adf065b10 | ||
|
|
6ea7aae29c | ||
|
|
11fbc41e4b | ||
|
|
ba1f4bbe91 | ||
|
|
ea0517b539 | ||
|
|
f6e821fd33 | ||
|
|
3820a65299 | ||
|
|
0efd6a881a | ||
|
|
8653db6df0 | ||
|
|
cb8d0fa874 | ||
|
|
fc3c7760a5 | ||
|
|
b6155375ae | ||
|
|
ad3a21f260 | ||
|
|
5a827417d9 | ||
|
|
a39c73672e | ||
|
|
d90b71bc55 | ||
|
|
cc5c8a444d | ||
|
|
3a7c8d7ae4 | ||
|
|
0fd6a22a86 | ||
|
|
3ab05ddd25 | ||
|
|
76f6d75ef8 | ||
|
|
fa7deb10f6 | ||
|
|
e235b57234 | ||
|
|
c18ea4de14 | ||
|
|
37e6870f64 | ||
|
|
a622eccecb | ||
|
|
a3b3d19d80 | ||
|
|
d09cbfcf84 | ||
|
|
88913ec89b | ||
|
|
8058f2fdf0 | ||
|
|
48276be277 | ||
|
|
1e07358ac2 | ||
|
|
a1c830cd3c | ||
|
|
49ded3aa77 | ||
|
|
5ab0eaa06d | ||
|
|
9884eed0cf | ||
|
|
5b202a158a | ||
|
|
a0cfe0d123 | ||
|
|
57cea0c623 | ||
|
|
739b7cc2ac | ||
|
|
d5aed82b11 | ||
|
|
8eeab7ea3f | ||
|
|
46ce66a829 | ||
|
|
b155b9d80b | ||
|
|
260ab73969 | ||
|
|
23f2658091 | ||
|
|
d1311c53ee | ||
|
|
a431c4a665 | ||
|
|
b296b36d2b | ||
|
|
667cafc13e | ||
|
|
9f3cee021e | ||
|
|
6016b942d6 | ||
|
|
afb72dc795 | ||
|
|
16ecda951b | ||
|
|
cdc86965cb | ||
|
|
422490d75c | ||
|
|
d46c7bcaf9 | ||
|
|
cfb120d179 | ||
|
|
fe73023940 | ||
|
|
86b14058fd | ||
|
|
ce2b2422d6 | ||
|
|
9e0ab22dd0 | ||
|
|
978a29ab72 | ||
|
|
36e862c989 | ||
|
|
33c8c2bd7e | ||
|
|
52ccaa605e | ||
|
|
ed90efb05b | ||
|
|
2e3a6e2559 | ||
|
|
c8e9abff53 | ||
|
|
43acad81b3 | ||
|
|
21becb0feb | ||
|
|
923950ccaa | ||
|
|
5a43173e55 | ||
|
|
1e919a5e97 | ||
|
|
91a8c08f03 | ||
|
|
0b757ad12f | ||
|
|
0adff214c3 | ||
|
|
2a7ca69a82 | ||
|
|
3fcdafebc2 | ||
|
|
85f765a533 | ||
|
|
e8c84bdf56 | ||
|
|
e48576ada3 | ||
|
|
4142708d9d | ||
|
|
6e2d856d85 | ||
|
|
9315ad3d2c | ||
|
|
13b4ab10ae | ||
|
|
c72e2588f3 | ||
|
|
7c510109cd | ||
|
|
359677b673 | ||
|
|
747647e02a | ||
|
|
0b57bad2de | ||
|
|
114c3b4efe | ||
|
|
e4f44139a1 | ||
|
|
f23aeb44e2 | ||
|
|
b2a225a52e | ||
|
|
dea6584018 | ||
|
|
bb3338df63 | ||
|
|
6fd894aae0 | ||
|
|
cb52754e6c | ||
|
|
40adb7feb6 | ||
|
|
48606e05c1 | ||
|
|
8b79ae6695 | ||
|
|
94f1ca2e09 | ||
|
|
dd086791ac | ||
|
|
20aa6dde06 | ||
|
|
eec4345a7c | ||
|
|
59a86d3171 | ||
|
|
98202e626c | ||
|
|
1be7e5048c | ||
|
|
8cc6647ebf | ||
|
|
321dce1f47 | ||
|
|
bba85a2074 | ||
|
|
483d96a89d | ||
|
|
168ab2b065 | ||
|
|
b131b37451 | ||
|
|
8620dc05de | ||
|
|
d8f7cb2f55 | ||
|
|
fd3793b8cf | ||
|
|
bba7ccb07f | ||
|
|
5912f0a849 | ||
|
|
cb7cd03919 | ||
|
|
bc541b918c | ||
|
|
3c14902649 | ||
|
|
92337baa5a | ||
|
|
f9663b8f4f | ||
|
|
113cf4208b | ||
|
|
18216a6e33 | ||
|
|
703dc8299c | ||
|
|
bd7ebbcd5b | ||
|
|
d586a633ff | ||
|
|
9feb657763 | ||
|
|
cc43ab9a81 | ||
|
|
66d5559866 | ||
|
|
e968928613 | ||
|
|
e282ad25a8 | ||
|
|
82cae27737 | ||
|
|
75625801f5 | ||
|
|
b392afac3c | ||
|
|
672f6c44b8 | ||
|
|
ea9a549bbd | ||
|
|
5c975dd4ed | ||
|
|
d8ac267f41 | ||
|
|
63031f571a | ||
|
|
982f73fa6d | ||
|
|
3b12a9293c | ||
|
|
654f7f707c | ||
|
|
66abe2e3d4 | ||
|
|
b3b6210886 | ||
|
|
01ce066d43 | ||
|
|
4ab7a290cd | ||
|
|
81dea2d8e7 | ||
|
|
0006585391 | ||
|
|
639ac5c3da | ||
|
|
765740b829 | ||
|
|
07c34751da | ||
|
|
fa4cbad315 | ||
|
|
a59cd94625 | ||
|
|
605dd3a982 | ||
|
|
3719db352a | ||
|
|
fa15854a54 | ||
|
|
dd871e791c | ||
|
|
3dbd32093c | ||
|
|
1ec6190e86 | ||
|
|
73f94f3755 | ||
|
|
c14071df9d | ||
|
|
dba4f3122e | ||
|
|
4322632c59 | ||
|
|
0057bb4ef6 | ||
|
|
03b8c6841b | ||
|
|
fdecc11128 | ||
|
|
5aff8bfb59 | ||
|
|
487c5cc294 | ||
|
|
ee9df32dba | ||
|
|
655e942597 | ||
|
|
be90ad89a8 | ||
|
|
05b1ec008b | ||
|
|
07bdba687f | ||
|
|
f499f343ba | ||
|
|
acd93c2971 | ||
|
|
9446489cf3 | ||
|
|
2ba65f4fba | ||
|
|
60318c96d0 | ||
|
|
c1d0693cb1 | ||
|
|
5ec8c5f71b | ||
|
|
c1474e1877 | ||
|
|
26d58e0446 | ||
|
|
7fc9b5b3f9 | ||
|
|
0e2f6691bf | ||
|
|
11e12680eb | ||
|
|
13c00afc68 | ||
|
|
5022b618aa | ||
|
|
5238b9439e | ||
|
|
9a2be227a6 | ||
|
|
fe94622ea3 | ||
|
|
567428fb34 | ||
|
|
815ead7107 | ||
|
|
7ea131d4ff | ||
|
|
547788b1b0 | ||
|
|
417f018498 | ||
|
|
2c454863f2 | ||
|
|
f965f41b6e | ||
|
|
119bea22aa | ||
|
|
bb346a3ae1 | ||
|
|
abb9b7f46f | ||
|
|
c934222a80 | ||
|
|
8135752a32 | ||
|
|
34d0e1b2c3 | ||
|
|
fbd5e4d5af | ||
|
|
0de1d1dd58 | ||
|
|
a22711a7b5 | ||
|
|
c4b8c11529 | ||
|
|
666ef48239 | ||
|
|
7ec1b7e90a | ||
|
|
a8c4de17da | ||
|
|
643eda5c2d | ||
|
|
4b81a98e4a | ||
|
|
beff83ecd2 | ||
|
|
5797752572 | ||
|
|
cb34502728 | ||
|
|
9796feccb7 | ||
|
|
c0ce323092 | ||
|
|
b9894c1d09 | ||
|
|
5718f96934 | ||
|
|
ea509a6d72 | ||
|
|
3068e2688d | ||
|
|
68f6ddc5aa | ||
|
|
1878630b59 | ||
|
|
702218008e | ||
|
|
202362d925 | ||
|
|
393267489c | ||
|
|
a92bcbb795 | ||
|
|
164de5e22b | ||
|
|
8f69b5c7a2 | ||
|
|
dda2eb84f7 | ||
|
|
957f334012 | ||
|
|
94af56789a | ||
|
|
d68e607aa5 | ||
|
|
d2a4bc4d73 | ||
|
|
f63c4a9bcb | ||
|
|
05f2808849 | ||
|
|
2c3a014f03 | ||
|
|
c924a841c7 | ||
|
|
7299eb72e0 | ||
|
|
238f39a42e | ||
|
|
09e53367a2 | ||
|
|
b143dad596 | ||
|
|
16ae675107 | ||
|
|
12fc590b34 | ||
|
|
c29b01ce75 | ||
|
|
befb4bc1c1 | ||
|
|
32c7ebc51d | ||
|
|
65159d65c8 | ||
|
|
3ff6c9bb79 | ||
|
|
84f7c966f7 | ||
|
|
8464e43eaf | ||
|
|
4bef3ce284 | ||
|
|
396f1a0a33 | ||
|
|
7c0f4a9b18 | ||
|
|
49a739c8d6 | ||
|
|
12b2d57629 | ||
|
|
95cfaa1b37 | ||
|
|
acc7c0f706 | ||
|
|
1c1a3033be | ||
|
|
384305f4aa | ||
|
|
7aef0fed29 | ||
|
|
4d49d7b5a6 | ||
|
|
f35d62b759 | ||
|
|
6a7b0ef904 | ||
|
|
ce239333d5 | ||
|
|
0f3c25b265 | ||
|
|
790de35e7f | ||
|
|
218f437b0c | ||
|
|
7336dfad02 | ||
|
|
00fca40939 | ||
|
|
8a0f23915e | ||
|
|
8305d409d2 | ||
|
|
5c251b6928 | ||
|
|
bde3ff16ad | ||
|
|
39434e383b | ||
|
|
76fa75b394 | ||
|
|
32a9c0ca80 | ||
|
|
fd3e1061e0 | ||
|
|
cf754b9483 | ||
|
|
5cc1256fd6 | ||
|
|
7101f44998 | ||
|
|
22ee366ed6 | ||
|
|
75d164037f | ||
|
|
a5ea21cd85 | ||
|
|
5110f80bba | ||
|
|
4ee0f90b46 | ||
|
|
ddc830be5c | ||
|
|
170eb3ac68 | ||
|
|
82f0bd9009 | ||
|
|
d0a2e655c9 | ||
|
|
1543833ca0 | ||
|
|
4e3377333f | ||
|
|
a681d1ec02 | ||
|
|
38faf2c51a | ||
|
|
31fdc645ed | ||
|
|
1000b02b18 | ||
|
|
5136fc9ab7 | ||
|
|
04c1a81509 | ||
|
|
b64ad7a2a6 | ||
|
|
3f6baa45a7 | ||
|
|
52a46e61f9 | ||
|
|
558c67d392 | ||
|
|
d73dff4d5b | ||
|
|
b94f85de22 | ||
|
|
1fc3524e40 | ||
|
|
ebc506dae8 | ||
|
|
6221b282d4 | ||
|
|
db24fb792c | ||
|
|
d311b1b9b7 | ||
|
|
3c40eb9e5a | ||
|
|
df49c609a0 | ||
|
|
3d6fd601c5 | ||
|
|
ef6c7bd726 | ||
|
|
d613bf69bf | ||
|
|
cfddb7f3cd | ||
|
|
c6af5f0a27 | ||
|
|
e433525f51 | ||
|
|
ab66a3d0d3 | ||
|
|
d0a2eca19b | ||
|
|
ec8404c375 | ||
|
|
766ee65328 | ||
|
|
bf2abc3b68 | ||
|
|
5a89c6f803 | ||
|
|
74e1320a0b | ||
|
|
eaec21f199 | ||
|
|
8c056aebe1 | ||
|
|
d1a31850ce | ||
|
|
d53e5646ec | ||
|
|
5fe2916ee1 | ||
|
|
acc667fbef | ||
|
|
80890cd9dd | ||
|
|
6b5f4ed244 | ||
|
|
4242b05462 | ||
|
|
a21b30c901 | ||
|
|
ddccea75e8 | ||
|
|
da2fae0e43 | ||
|
|
a3cd218719 | ||
|
|
0c7df37351 | ||
|
|
cf002a4611 | ||
|
|
be4f40741f | ||
|
|
70e2df3904 | ||
|
|
f1ebad2508 | ||
|
|
348d3af0fc | ||
|
|
9915d3c3be | ||
|
|
907f229757 | ||
|
|
58ba290a9f | ||
|
|
b22f0f2ef5 | ||
|
|
bcc5c51630 | ||
|
|
16a04e64f2 | ||
|
|
c8147fb7b9 | ||
|
|
0fa6927171 | ||
|
|
99ebb869bf | ||
|
|
44eafb15e0 | ||
|
|
cb877734f0 | ||
|
|
792cd0aa10 | ||
|
|
028775a086 | ||
|
|
2cf4fed11b | ||
|
|
e34d134102 | ||
|
|
8564eb9f7e | ||
|
|
9f52408e70 | ||
|
|
a3780032bf | ||
|
|
e4bb419707 | ||
|
|
5e0b2b260c | ||
|
|
b58b6b9bac | ||
|
|
f3ac378ca4 | ||
|
|
56f777b2fc | ||
|
|
e40c1c62ce | ||
|
|
8e8ec8f5f8 | ||
|
|
5bdc115943 | ||
|
|
739066ec56 | ||
|
|
12224c7f59 | ||
|
|
8c3095faf0 | ||
|
|
410b35e913 | ||
|
|
2e48d39fc7 | ||
|
|
488a042736 | ||
|
|
71765957e4 | ||
|
|
68205dec9f | ||
|
|
4499743522 | ||
|
|
54252ede31 | ||
|
|
faa069a126 | ||
|
|
20aade56c3 | ||
|
|
1f2adb05b5 | ||
|
|
4afde4e738 | ||
|
|
364b783281 | ||
|
|
58fc2c679b | ||
|
|
923504ce3d | ||
|
|
2e868566d7 | ||
|
|
e252c634cb | ||
|
|
1803c65e40 | ||
|
|
489d956283 | ||
|
|
076c382a74 | ||
|
|
3b6385b146 | ||
|
|
714b955d6e | ||
|
|
b855f671a5 | ||
|
|
4e52adb84a | ||
|
|
d227f6184e | ||
|
|
88167f39a6 | ||
|
|
c8a8aa0d43 | ||
|
|
6b5f25802e | ||
|
|
f8c1eb157d | ||
|
|
59665ade85 | ||
|
|
c1f6e259a9 | ||
|
|
03b89ab712 | ||
|
|
ae3e9d4881 | ||
|
|
cad53fa191 | ||
|
|
0e682d936d | ||
|
|
cec30e23b2 | ||
|
|
47129428fe | ||
|
|
2f30a27b2b | ||
|
|
8be1d134aa | ||
|
|
7e0799ff21 | ||
|
|
9d84609b3f | ||
|
|
c64852dbcc | ||
|
|
bcacaaa4f4 | ||
|
|
d00e2731e5 | ||
|
|
99a1551b20 | ||
|
|
ac69538707 | ||
|
|
16ab949110 | ||
|
|
82cc5f63ae | ||
|
|
9d2166a964 | ||
|
|
0c29650bfa | ||
|
|
af21a32cef | ||
|
|
5235124460 | ||
|
|
2e2e36cc72 | ||
|
|
db7c34a9df | ||
|
|
a1b4547a53 | ||
|
|
57f95c1dc7 | ||
|
|
1d519854e2 | ||
|
|
292f7ada8e | ||
|
|
65158d39b0 | ||
|
|
7c278d6ac2 | ||
|
|
429077a5a0 | ||
|
|
2656a2d038 | ||
|
|
3f03197dae | ||
|
|
83258456d3 | ||
|
|
936a8c0e3b | ||
|
|
b1870631a4 | ||
|
|
859a1999cb | ||
|
|
f3e1797153 | ||
|
|
7bfa609f38 | ||
|
|
822b05106d | ||
|
|
55ed0ff07c | ||
|
|
07590196a5 | ||
|
|
c37ea26dc7 | ||
|
|
697c2b5dc1 | ||
|
|
a0cfa3ca21 | ||
|
|
e58e2f5ee4 | ||
|
|
45134de740 | ||
|
|
f3ce1f07c4 | ||
|
|
ddc17196da | ||
|
|
fdcc1af4e2 | ||
|
|
901ddf7737 | ||
|
|
4a54b8c451 | ||
|
|
4dc283c0fb | ||
|
|
f1a5cf9128 | ||
|
|
a5909d82eb | ||
|
|
59b7386abb | ||
|
|
7bd2fbe2b1 | ||
|
|
623469cb6c | ||
|
|
663d725026 | ||
|
|
1860b3dff9 | ||
|
|
03faec9d41 | ||
|
|
2b3ea9770b | ||
|
|
30fa30bd4a | ||
|
|
faa54e59c1 | ||
|
|
93ae7bb0d2 | ||
|
|
3c7181d28f | ||
|
|
6fecb150d6 | ||
|
|
56559162d3 | ||
|
|
1f4ed49b4c | ||
|
|
57c6caf146 | ||
|
|
4bb5ba78b0 | ||
|
|
9d9c23e315 | ||
|
|
1a6b7de0af | ||
|
|
b2b42f759c | ||
|
|
7139c1aff7 | ||
|
|
1e60919d47 | ||
|
|
011fdd91df | ||
|
|
0994efa66f | ||
|
|
8ccde784f9 | ||
|
|
d52878c744 | ||
|
|
ca19e52266 | ||
|
|
e76af886bf | ||
|
|
b4b280c4ff | ||
|
|
764ed01688 | ||
|
|
d1c8fa6bbd | ||
|
|
8ce498ee53 | ||
|
|
d5166918e9 | ||
|
|
0d97c3ce13 | ||
|
|
19cff8ecca | ||
|
|
bb2e847363 | ||
|
|
a008c21cf0 | ||
|
|
9016ce8dd8 | ||
|
|
79cd58bdf3 | ||
|
|
d1e5d92191 | ||
|
|
cb382fa76b | ||
|
|
e6c0ec7278 | ||
|
|
3cdf108057 | ||
|
|
688030ecb6 | ||
|
|
589c4fb30f | ||
|
|
b20e972bec | ||
|
|
a8a2e3231c | ||
|
|
4bdf52fc1e | ||
|
|
0b82a05a75 | ||
|
|
80c97ca21b | ||
|
|
2491c99b37 | ||
|
|
cf534d4726 | ||
|
|
5689086202 | ||
|
|
bd64ed1e93 | ||
|
|
995861de4d | ||
|
|
56a0131778 | ||
|
|
e125e70fa0 | ||
|
|
5f10d982ac | ||
|
|
0bb3943698 | ||
|
|
2d9b3aa537 | ||
|
|
8e14545282 | ||
|
|
2eedc330bf | ||
|
|
0ed3edc99e | ||
|
|
0c0708076e | ||
|
|
3847e248df | ||
|
|
af927ffdaf | ||
|
|
c03d403437 | ||
|
|
c48644490f | ||
|
|
54927dc0e0 | ||
|
|
705cf6113d | ||
|
|
9022f5034f | ||
|
|
e8e8d12168 | ||
|
|
fad4ddbcaf | ||
|
|
bd992e7baf | ||
|
|
0031f388ac | ||
|
|
447bad9dbd | ||
|
|
89a48e365c | ||
|
|
1cfea1113a | ||
|
|
6488a392a3 | ||
|
|
600c9dd27d | ||
|
|
e380462532 | ||
|
|
94e0e5ab7d | ||
|
|
8613382869 | ||
|
|
df17c33898 | ||
|
|
ddf17d93ac | ||
|
|
c8ee08c24b | ||
|
|
84adf77bf3 | ||
|
|
f75dcc7f4c | ||
|
|
842b8cf323 | ||
|
|
b5918a1faa | ||
|
|
d0c6559204 | ||
|
|
6d012f628b | ||
|
|
726852e3d3 | ||
|
|
83b385a290 | ||
|
|
ec85458612 | ||
|
|
73dcbf7ba2 | ||
|
|
f80fe97763 | ||
|
|
cbf1d07073 | ||
|
|
8284bef072 | ||
|
|
fd5d061d49 | ||
|
|
32fbc0d334 | ||
|
|
1337a8dfb1 | ||
|
|
3440a8a0bf | ||
|
|
5e891ea981 | ||
|
|
adda54ac55 | ||
|
|
cebb149f5c | ||
|
|
e1c0862658 | ||
|
|
21fd31dad8 | ||
|
|
957f80c623 | ||
|
|
1c51e12c18 | ||
|
|
872b249711 | ||
|
|
1146f25015 | ||
|
|
45e15f62f5 | ||
|
|
7f638f0b2d | ||
|
|
5a52e86546 | ||
|
|
a88f609b8a | ||
|
|
61e8ae2f7b | ||
|
|
b46e1ca97e | ||
|
|
fb7c03ff4d | ||
|
|
2544d2c952 | ||
|
|
ea7c2fc673 | ||
|
|
9a11a94894 | ||
|
|
cbf162ca64 | ||
|
|
85d20cd61b | ||
|
|
94976d63ca | ||
|
|
cb47a9e97f | ||
|
|
ad5894e486 | ||
|
|
63d9c070ef | ||
|
|
f15d23b496 | ||
|
|
4c5968097d | ||
|
|
159c4d56cd | ||
|
|
f3e78c8f3c | ||
|
|
a20a5b437d | ||
|
|
8d9752a557 | ||
|
|
1345a8c67c | ||
|
|
83fad0fb59 | ||
|
|
e9d017ba08 | ||
|
|
d8c6168d11 | ||
|
|
dd3f38fe5b | ||
|
|
a38bca3438 | ||
|
|
5f50fe7a4a | ||
|
|
b8e7b8e2e1 | ||
|
|
2f0166b945 | ||
|
|
d790229a33 | ||
|
|
8c99a87aa8 | ||
|
|
fe14b0b82e | ||
|
|
aa5b29e2f2 | ||
|
|
382726fde4 | ||
|
|
c2cb2bef96 | ||
|
|
09f633596d | ||
|
|
42a25f2f26 | ||
|
|
6d59047c5f | ||
|
|
ad7c05778f | ||
|
|
f02368141f | ||
|
|
649b9cc195 | ||
|
|
1f5a6f1341 | ||
|
|
da4c2d530d | ||
|
|
2da367a2be | ||
|
|
079c59b929 | ||
|
|
5b701962dc | ||
|
|
c595632b92 | ||
|
|
c5610398d5 | ||
|
|
a7f4448f34 | ||
|
|
7807a4f738 | ||
|
|
e5d294df32 | ||
|
|
d0b6f3663b | ||
|
|
c71aff99db | ||
|
|
5d33d5a7d9 | ||
|
|
512ffa2bf4 | ||
|
|
d0440eef25 | ||
|
|
5deca66a7d | ||
|
|
58ec49a34d | ||
|
|
d223ac0379 | ||
|
|
113a3809ab | ||
|
|
fb34c6c7b9 | ||
|
|
7869294a26 | ||
|
|
61a0158877 | ||
|
|
fa93480d9a | ||
|
|
063f69d51d | ||
|
|
c54a85ee64 | ||
|
|
48083608b5 | ||
|
|
393a6c5edf | ||
|
|
0d96528d2f | ||
|
|
2ba54a69be | ||
|
|
382694f593 | ||
|
|
94106cc41f | ||
|
|
3aa0410f6e | ||
|
|
52e174b1f7 | ||
|
|
7a894e3738 | ||
|
|
fd450b7f9a | ||
|
|
04b611df1c | ||
|
|
64fc464e03 | ||
|
|
d792e95c21 | ||
|
|
a125b0fbc3 | ||
|
|
a216225827 | ||
|
|
0dfe511370 | ||
|
|
d4cc2d3503 | ||
|
|
d5f38f5690 | ||
|
|
c01f0ae825 | ||
|
|
81bbe8c93b | ||
|
|
26e84de180 | ||
|
|
b4e7a5b1c6 | ||
|
|
7f1d2b28c1 | ||
|
|
29fa57e9b3 | ||
|
|
13f39afbdd | ||
|
|
3073511e30 | ||
|
|
6c4432d417 | ||
|
|
e45db42e94 | ||
|
|
375ca542ab | ||
|
|
0202b05a5d | ||
|
|
ab0473ef93 | ||
|
|
d6a92b18d4 | ||
|
|
5e623f14f3 | ||
|
|
22c77c607e | ||
|
|
b777d6aa3f | ||
|
|
4b3e56ec23 | ||
|
|
4df2e1ef5c | ||
|
|
67f9783e6a | ||
|
|
6eaa404187 | ||
|
|
0045ce4cde | ||
|
|
465b0a79d8 | ||
|
|
ad8e92e9c6 | ||
|
|
edfb874527 | ||
|
|
c2d9c1a6f1 | ||
|
|
81a5813270 | ||
|
|
08e2696627 | ||
|
|
c9693b4746 | ||
|
|
ceb4357a8d | ||
|
|
fc986a3fbe | ||
|
|
0d2cccc2ce | ||
|
|
8af42d42da | ||
|
|
81ff253e68 | ||
|
|
e68f8e79ea | ||
|
|
e1fcffcc81 | ||
|
|
f3e78e50ff | ||
|
|
c14900dbb0 | ||
|
|
0aa76d3e5b | ||
|
|
622bfd4f08 | ||
|
|
1077109e11 | ||
|
|
ed7d7b405e | ||
|
|
41d80ba17b | ||
|
|
bdf99e0981 | ||
|
|
acdc19d1b7 | ||
|
|
7f9c335487 | ||
|
|
1f8290ca44 | ||
|
|
215780ab56 | ||
|
|
a6d4ce2630 | ||
|
|
0c77a96249 | ||
|
|
d92fde6980 | ||
|
|
87f50659db | ||
|
|
689630d261 | ||
|
|
848c54dc47 | ||
|
|
9845029a75 | ||
|
|
375cc67ba6 | ||
|
|
380c1522ac | ||
|
|
4dd7be7ed0 | ||
|
|
12fad65991 | ||
|
|
be58138100 | ||
|
|
5c79ee4446 | ||
|
|
d48140cab3 | ||
|
|
3cf038f300 | ||
|
|
dabbb6df65 | ||
|
|
8871fb4e0e | ||
|
|
eecee75336 | ||
|
|
83505e61f3 | ||
|
|
6a58db66f7 | ||
|
|
af54832d24 | ||
|
|
86b417e83f | ||
|
|
f34838688e | ||
|
|
bcb1166e52 | ||
|
|
8d1637f567 | ||
|
|
b03614527b | ||
|
|
9b509f6478 | ||
|
|
89c69a1d25 | ||
|
|
06bfe19f05 | ||
|
|
6e8085b839 | ||
|
|
f5ec2470db | ||
|
|
7394ee7c72 | ||
|
|
b2d23b91e7 | ||
|
|
2ce109eb53 | ||
|
|
823fb2995b | ||
|
|
1e2c1ae98a | ||
|
|
b457e88cd0 | ||
|
|
e97478cc1e | ||
|
|
2d8383d3c8 | ||
|
|
1c4d8f36e4 | ||
|
|
e94da808cb | ||
|
|
a1c0bb68dd | ||
|
|
774e9d24a1 | ||
|
|
9a264a4284 | ||
|
|
0172939490 | ||
|
|
24613a60dc | ||
|
|
acc8f7fadc | ||
|
|
df335682e4 | ||
|
|
de4ea8e6f4 | ||
|
|
2c36d5ff45 | ||
|
|
f1295b506d | ||
|
|
fbcc6d0d25 | ||
|
|
fc92abec2c | ||
|
|
52bb149541 | ||
|
|
9caf32befe | ||
|
|
47d3b3dd58 | ||
|
|
a1c2749380 | ||
|
|
945798f913 | ||
|
|
6d02c0d392 | ||
|
|
ec74fc05d4 | ||
|
|
46b932ccc0 | ||
|
|
f85f77f6cc | ||
|
|
6a4b4f3449 | ||
|
|
d0473d6d83 | ||
|
|
70bf1a5711 | ||
|
|
bacc5aa6d3 | ||
|
|
44a12cd070 | ||
|
|
29c46cdf34 | ||
|
|
552f5b2693 | ||
|
|
d5d9746ca3 | ||
|
|
1287fc3266 | ||
|
|
508f116738 | ||
|
|
a5946a969f | ||
|
|
472ad43211 | ||
|
|
603c790213 | ||
|
|
62e0e18030 | ||
|
|
6bb10ccc3b | ||
|
|
d30ca5aa8c | ||
|
|
489994054a | ||
|
|
fffd981058 | ||
|
|
9326d0a6dd | ||
|
|
74faa30af6 | ||
|
|
b0a9bbf33a | ||
|
|
6b2ec23132 | ||
|
|
ed1cb9edca | ||
|
|
17f2f12ce6 | ||
|
|
12bdb5f550 | ||
|
|
8d1f96cc0a | ||
|
|
a4049fb85c | ||
|
|
762a93fec8 | ||
|
|
f9e891909d | ||
|
|
a6e9bab298 | ||
|
|
3f5a075280 | ||
|
|
bb55307a9d | ||
|
|
422dc05bb0 | ||
|
|
ebf4686858 | ||
|
|
9a8f45ee30 | ||
|
|
aca3181b7e | ||
|
|
fd0230e5be | ||
|
|
0d25bb85d9 | ||
|
|
dac93ed616 | ||
|
|
8b7d4b0c9e | ||
|
|
499bc404e8 | ||
|
|
a81d835e4d | ||
|
|
54eaf239ac | ||
|
|
961e4da7d8 | ||
|
|
b178414a47 | ||
|
|
f54c90a0ba | ||
|
|
ee167e53d1 | ||
|
|
8f733461b3 | ||
|
|
82beaabf6a | ||
|
|
8d7ddf5299 | ||
|
|
6fd011a3b6 | ||
|
|
4056c046a7 | ||
|
|
e3cad04dec | ||
|
|
a9930bfd87 | ||
|
|
1428dcee21 | ||
|
|
f3b71a73e3 | ||
|
|
380d9862c3 | ||
|
|
b6c0e53d69 | ||
|
|
e95bb34ea0 | ||
|
|
9e0de57a82 | ||
|
|
f6ff1f18b8 | ||
|
|
7595a5dfcb | ||
|
|
1e5353824a | ||
|
|
4704a0a288 | ||
|
|
6a2e82a23d | ||
|
|
1818dffaec | ||
|
|
b2112729fa | ||
|
|
32bed50ba1 | ||
|
|
5b561f434d | ||
|
|
750d70c202 | ||
|
|
34689cb3f3 | ||
|
|
ba225017c4 | ||
|
|
507241f73c | ||
|
|
55c689722a | ||
|
|
8a1b51c716 | ||
|
|
dfe77eac84 | ||
|
|
75cd9cd2de | ||
|
|
1aebe33a34 | ||
|
|
d70a30c056 | ||
|
|
00348756bc | ||
|
|
2577b803f6 | ||
|
|
928dde590c | ||
|
|
5fbb24353a | ||
|
|
35fe4313d5 | ||
|
|
9f0c292144 | ||
|
|
d812c685c9 | ||
|
|
9a9987aeed | ||
|
|
5582901ca5 | ||
|
|
ded221fba2 | ||
|
|
ab745d3b0e | ||
|
|
b915c7a870 | ||
|
|
6c26255979 | ||
|
|
e2c4525da7 | ||
|
|
e778e127d6 | ||
|
|
a4e6f0b3c6 | ||
|
|
048e7771fb | ||
|
|
15c229300c | ||
|
|
24814a4f0f | ||
|
|
6188e64473 | ||
|
|
c34b0c67a1 | ||
|
|
a0008c3508 | ||
|
|
7e6b72cb5c | ||
|
|
e3da85faed | ||
|
|
491c23a728 | ||
|
|
351516c57c | ||
|
|
e8a131e05c | ||
|
|
8c7b764d47 | ||
|
|
bf798c8dec | ||
|
|
53dbdf3dd2 | ||
|
|
905b8cc82f | ||
|
|
c674306973 | ||
|
|
47687cf085 | ||
|
|
314220a00d | ||
|
|
29c60c000a | ||
|
|
35f4bb96f3 | ||
|
|
92f171ec99 | ||
|
|
0933a79ab8 | ||
|
|
b136b387a7 | ||
|
|
dd866afc2e | ||
|
|
6eb455032c | ||
|
|
5c8c0ae04e | ||
|
|
a35be3a12a | ||
|
|
f9b0d1a8e7 | ||
|
|
543a87c63f | ||
|
|
c9f566269b | ||
|
|
bfa12d75f8 | ||
|
|
b3eda29f41 | ||
|
|
18d8bf4b9c | ||
|
|
aee82d3196 | ||
|
|
a5907a8239 | ||
|
|
2a6c84984a | ||
|
|
0538c11576 | ||
|
|
012a1c2533 | ||
|
|
c9015e2e04 | ||
|
|
07fba274b1 | ||
|
|
585f259b63 | ||
|
|
b227000f19 | ||
|
|
b3161f5803 | ||
|
|
5a9952c7b4 | ||
|
|
8ecc9509b3 | ||
|
|
f72cb28b0f | ||
|
|
43ed0ed1ae | ||
|
|
69dfca2feb | ||
|
|
3bdf28c1fe | ||
|
|
c8a4c04b36 | ||
|
|
ac2ce00e28 | ||
|
|
26f066f0c7 | ||
|
|
f73731d5a4 | ||
|
|
4a0ade4788 | ||
|
|
c397e350f4 | ||
|
|
b6058a837f | ||
|
|
5518022a5d | ||
|
|
5f958a582d | ||
|
|
e27237a03a | ||
|
|
9b9f7cffde | ||
|
|
ee84b20247 | ||
|
|
b25126a277 | ||
|
|
807ec60e63 | ||
|
|
f9cc090473 | ||
|
|
eb3451142e | ||
|
|
73ba8a48ab | ||
|
|
2f3384947b | ||
|
|
a8dde17146 | ||
|
|
1ad28d0494 | ||
|
|
db4aaedcbd | ||
|
|
08a72727cd | ||
|
|
0aa66f02ef | ||
|
|
b94c610e49 | ||
|
|
5208bb32f1 | ||
|
|
982c812e81 | ||
|
|
c1908c7d91 | ||
|
|
59c5a2f519 | ||
|
|
1d05027ba2 | ||
|
|
fed3e6a808 | ||
|
|
ec7cb9981c | ||
|
|
99e6e00c34 | ||
|
|
df4d7846e5 | ||
|
|
6c160adab3 | ||
|
|
55f6fe4f7b | ||
|
|
032ab66529 | ||
|
|
60d9611c23 | ||
|
|
210682b734 | ||
|
|
f0ec751237 | ||
|
|
6ce9799370 | ||
|
|
1d139f7a0b | ||
|
|
93bf0d6f4e | ||
|
|
dc087ffa97 | ||
|
|
25e6c4eff8 | ||
|
|
a76b7dadae | ||
|
|
b6232cfdd1 | ||
|
|
a2a77172a6 | ||
|
|
1b903767e0 | ||
|
|
4e7f53adf0 | ||
|
|
8c1b26889a | ||
|
|
af9242f4cc | ||
|
|
564f02aa2b | ||
|
|
3b8725e0f5 | ||
|
|
3caa4ad1ba | ||
|
|
b0ff946b55 | ||
|
|
eb0e7b1b81 | ||
|
|
36e1e5f151 | ||
|
|
4c8c115a76 | ||
|
|
545e14691b | ||
|
|
be97785856 | ||
|
|
fde0ddb324 | ||
|
|
117f66e823 | ||
|
|
63d61cb380 | ||
|
|
a26aecdfdb | ||
|
|
47e6b2cef8 | ||
|
|
cc7f8f58e8 | ||
|
|
c9985bf563 | ||
|
|
22c0c5465a | ||
|
|
2cfbf76db8 | ||
|
|
ec4dee0fcd | ||
|
|
952287db29 | ||
|
|
b99b2c446c | ||
|
|
04c0f7e15c | ||
|
|
128d417f47 | ||
|
|
d001479a47 | ||
|
|
f16810c48e | ||
|
|
66b05433b6 | ||
|
|
6abf8ef78f | ||
|
|
b907a5d765 | ||
|
|
0ace267c4f | ||
|
|
b0854fbff5 | ||
|
|
c1dee15144 | ||
|
|
987119cd4a | ||
|
|
08b03afa4b | ||
|
|
09841b1c9b | ||
|
|
bd0c267cbe | ||
|
|
ca1b2a1a91 | ||
|
|
1b90567546 | ||
|
|
16f417f5af | ||
|
|
5c82fdc243 | ||
|
|
55e55826ee | ||
|
|
530953050a | ||
|
|
24f89f8bd9 | ||
|
|
2e75a216c7 | ||
|
|
7aab71f656 | ||
|
|
4dc7ee9087 | ||
|
|
3340f4dbfc | ||
|
|
456b5791bb | ||
|
|
e2d1d832ef | ||
|
|
d336e24dce | ||
|
|
ae2c90cc28 | ||
|
|
6cf61039cf | ||
|
|
48d2a8b8ee | ||
|
|
477a6d426c | ||
|
|
0972bdeda2 | ||
|
|
1cc86c07a0 | ||
|
|
1c7e8e9093 | ||
|
|
b619b244c7 | ||
|
|
0fb1bcd321 | ||
|
|
a4dc12f12c | ||
|
|
4547a05a68 | ||
|
|
4b4e082102 | ||
|
|
1954b87819 | ||
|
|
77924757a8 | ||
|
|
16460b0048 | ||
|
|
a9068aa8ff | ||
|
|
89244981a8 | ||
|
|
138ab26b8c | ||
|
|
51a97c031f | ||
|
|
cc5e621fc4 | ||
|
|
2ebf33ac1c | ||
|
|
788d812a72 | ||
|
|
29c887ef2c | ||
|
|
1085960ed8 | ||
|
|
8df689bd44 | ||
|
|
2f8a45cd8b | ||
|
|
ce68ac6959 | ||
|
|
1f5552feb4 | ||
|
|
4d37c1cea2 | ||
|
|
2fdc7bfbd1 | ||
|
|
dc7c584a4d | ||
|
|
58d477f7a6 | ||
|
|
804af9658a | ||
|
|
9d429180f9 | ||
|
|
771bfe9e78 | ||
|
|
c9f963a77e | ||
|
|
7ba9fe4d5d | ||
|
|
fb1edd05f4 | ||
|
|
780abaec98 | ||
|
|
98fe404e6a | ||
|
|
aafb5f768b | ||
|
|
8c34e93b51 | ||
|
|
f468a9a0e2 | ||
|
|
1054c155db | ||
|
|
7d2353f24d | ||
|
|
34f72ddb3d | ||
|
|
1382e8d84b | ||
|
|
e2e3fa3d11 | ||
|
|
9e5257b83b | ||
|
|
4cd79d8ddd | ||
|
|
4b52cd512d | ||
|
|
e32f7baa0d | ||
|
|
60b1f9629c | ||
|
|
4051c0333f | ||
|
|
e42517754a | ||
|
|
a153b47c2b | ||
|
|
e531c6fc6c | ||
|
|
ed7e05fb2a | ||
|
|
8130df63ca | ||
|
|
123098ce79 | ||
|
|
4fd4facf35 | ||
|
|
43bf3b4a78 | ||
|
|
05da381c15 | ||
|
|
26bf95731b | ||
|
|
03dc6ec0d4 | ||
|
|
f7ec759ef0 | ||
|
|
7ddebd7a75 | ||
|
|
bab78bbeb6 | ||
|
|
7a79428278 | ||
|
|
1360f027d9 | ||
|
|
b3629c6f62 | ||
|
|
176c98eb66 | ||
|
|
25d16f358a | ||
|
|
795b14330a | ||
|
|
0e5aed63dd | ||
|
|
8a285d258a | ||
|
|
a4ccc6e72e | ||
|
|
125bdc3253 | ||
|
|
6cff6dd8b8 | ||
|
|
3983dd2428 | ||
|
|
0a9dc1536c | ||
|
|
1508a23a6f | ||
|
|
f5b8f3d41b | ||
|
|
0e93b98533 | ||
|
|
5da5db5a0a | ||
|
|
6567f9d0b2 | ||
|
|
88af879f7a | ||
|
|
75f0412f9d | ||
|
|
207b6c50fb | ||
|
|
07cfec33f8 | ||
|
|
12671c82ea | ||
|
|
6e24b1587d | ||
|
|
59ef6e3693 | ||
|
|
22d29a6d52 | ||
|
|
a7f4ade711 | ||
|
|
1e985f9865 | ||
|
|
4789084998 | ||
|
|
3325683794 | ||
|
|
f7287c626e | ||
|
|
198cc69357 | ||
|
|
86c3b8cfad | ||
|
|
b227b10f5d | ||
|
|
71b5d6e0a3 | ||
|
|
5ad473d758 | ||
|
|
db494170dc | ||
|
|
9e286e1c33 | ||
|
|
0dc566124a | ||
|
|
721e8ae93f | ||
|
|
2d09e67713 | ||
|
|
49e0267fe7 | ||
|
|
590aace88d | ||
|
|
4b2f1f7628 | ||
|
|
df3366d910 | ||
|
|
aefcb9716e | ||
|
|
e6fdf0c9f7 | ||
|
|
4dbdcaecb1 | ||
|
|
8da07e91e4 | ||
|
|
b1c58b76a9 | ||
|
|
52b54631a4 | ||
|
|
e9db2d1b18 | ||
|
|
93edae280d | ||
|
|
bb17591959 | ||
|
|
aa3b91b802 | ||
|
|
b55fabc7be | ||
|
|
54605d8c8e | ||
|
|
52ca80bdd2 | ||
|
|
0291eff99a | ||
|
|
c96e504adb | ||
|
|
01a6db9324 | ||
|
|
993280ec03 | ||
|
|
6ff9d5770b | ||
|
|
455241debb | ||
|
|
db89c3e1a3 | ||
|
|
ef4135eabe | ||
|
|
56dac74f71 | ||
|
|
c7bc684909 | ||
|
|
96272e19a6 | ||
|
|
bd9088792b | ||
|
|
cdb2ebbdfa | ||
|
|
4b5ad31b3a | ||
|
|
6c168c8f22 | ||
|
|
afc8b887ab | ||
|
|
f111fc0608 | ||
|
|
1d959cb0ca | ||
|
|
c3ba4ace64 | ||
|
|
15e46b97b4 | ||
|
|
da900f9435 | ||
|
|
f0f6727778 | ||
|
|
65e39bf20e | ||
|
|
72290f67fe | ||
|
|
4c89d5331f | ||
|
|
61940b2275 | ||
|
|
e77b720ead | ||
|
|
7b39cc83cc | ||
|
|
01dc1c1394 | ||
|
|
4dfce4624d | ||
|
|
5e4d77b2b8 | ||
|
|
2dd8f41147 | ||
|
|
0add0c400f | ||
|
|
e847aaca3e | ||
|
|
7d02c4fdb7 | ||
|
|
d9b16c1197 | ||
|
|
ae7c1e3e55 | ||
|
|
50e1dcc43a | ||
|
|
d84810d89d | ||
|
|
39d86a28e7 | ||
|
|
5022a31889 | ||
|
|
c2af10d256 | ||
|
|
b89ed8eb7b | ||
|
|
118862f1ba | ||
|
|
148de1c875 | ||
|
|
76070b4674 | ||
|
|
3308d82b23 | ||
|
|
c44e025898 | ||
|
|
02017ed0e0 | ||
|
|
4366fdfc13 | ||
|
|
d957dd2c9f | ||
|
|
eb5cb04aa9 | ||
|
|
e5aa38cb0f | ||
|
|
ccbf120c36 | ||
|
|
f8061fcba8 | ||
|
|
4c84db85c5 | ||
|
|
0122989808 | ||
|
|
ccb4fc8d03 | ||
|
|
aec0c0efcb | ||
|
|
bf566a657c | ||
|
|
8577e4171a | ||
|
|
06e76422b5 | ||
|
|
1c7fd62e57 | ||
|
|
a17a1f9208 | ||
|
|
ed1538248f | ||
|
|
cbf5afdef8 | ||
|
|
9e1689df9c | ||
|
|
ca7f385294 | ||
|
|
a92ccfc5c6 | ||
|
|
a70c4b51a4 | ||
|
|
f146467607 | ||
|
|
25cf0c440c | ||
|
|
c2bd8d1d7a | ||
|
|
ce6344b770 | ||
|
|
05fd1dafe2 | ||
|
|
e28c60caf9 | ||
|
|
9423401d73 | ||
|
|
0d57ca486a | ||
|
|
d899334bba | ||
|
|
779f25d36c | ||
|
|
68175386c0 | ||
|
|
ce796dcdbf | ||
|
|
2b5fcb4642 | ||
|
|
5553e5aaed | ||
|
|
af6afbaa56 | ||
|
|
1b98cbbfa4 | ||
|
|
3e38f8af23 | ||
|
|
e74f9f27db | ||
|
|
31a9fdced8 | ||
|
|
47793b606c | ||
|
|
4082c8b61d | ||
|
|
dda778eda7 | ||
|
|
0f5c6c5e2d | ||
|
|
186948da22 | ||
|
|
4f1ef89cb2 | ||
|
|
1fb84d3c5f | ||
|
|
3308491c92 | ||
|
|
9ff7be68fb | ||
|
|
ce0c4e5d86 | ||
|
|
984c7e6689 | ||
|
|
87adff7e18 | ||
|
|
c24018e273 | ||
|
|
6cf6981ed0 | ||
|
|
6cf4e0329c | ||
|
|
df5157c0b0 | ||
|
|
acf4b5753f | ||
|
|
829730dec4 | ||
|
|
c084a7daa5 | ||
|
|
93e858f88e | ||
|
|
4f12f0697e | ||
|
|
76842b0df8 | ||
|
|
e3a8412df3 | ||
|
|
ebe2d9d872 | ||
|
|
ad322fbb58 | ||
|
|
f06543fd06 | ||
|
|
195b2d2ebd | ||
|
|
384b8c75f0 | ||
|
|
9925916851 | ||
|
|
f989f42618 | ||
|
|
095cb97675 | ||
|
|
d80f8bda94 | ||
|
|
3cf0477c21 | ||
|
|
8dbca75d85 | ||
|
|
710360bab6 | ||
|
|
4bc65d1129 | ||
|
|
3db9c80070 | ||
|
|
085f604b27 | ||
|
|
a5b27bbc10 | ||
|
|
8c7e4b290f | ||
|
|
12cfae18e3 | ||
|
|
5653898150 | ||
|
|
73123bf257 | ||
|
|
73c4ca3a6f | ||
|
|
296112848c | ||
|
|
008e91db6a | ||
|
|
3043b233ea | ||
|
|
bff5999efa | ||
|
|
f298ffdbb8 | ||
|
|
3664cd58e3 | ||
|
|
491edc16e7 | ||
|
|
83663ed4b0 | ||
|
|
9008b155d3 | ||
|
|
b6cb5272de | ||
|
|
6d99c03d91 | ||
|
|
99853ac3ce | ||
|
|
8240550187 | ||
|
|
709eff4ea7 | ||
|
|
6212175be3 | ||
|
|
6095edac58 | ||
|
|
3d9a4e7084 | ||
|
|
086caf3701 | ||
|
|
f778922086 | ||
|
|
edc52bdcbf | ||
|
|
0a22dc2ce5 | ||
|
|
cb4d168ecc | ||
|
|
5ebae82eeb | ||
|
|
64f35ba8d1 | ||
|
|
99481a245a | ||
|
|
9f7a8ea5e6 | ||
|
|
b4eeffa8f1 | ||
|
|
2df8ad6307 | ||
|
|
a052357872 | ||
|
|
e6c92673b9 | ||
|
|
a22056db59 | ||
|
|
beb7d35c40 | ||
|
|
d33987cb44 | ||
|
|
6dc46d3341 | ||
|
|
4089b809fb | ||
|
|
cfdca62277 | ||
|
|
f59f89d876 | ||
|
|
68da13fe3e | ||
|
|
616066a598 | ||
|
|
2e5175e818 | ||
|
|
b5b9408e64 | ||
|
|
7c24cd790d | ||
|
|
1bce02eff7 | ||
|
|
a3559c5e1b | ||
|
|
c8d0f8adc5 | ||
|
|
6ba8328077 | ||
|
|
61556ef01d | ||
|
|
ef7961b7d2 | ||
|
|
c17a3cb0ce | ||
|
|
cfd7e74c25 | ||
|
|
3a09459c4c | ||
|
|
9b85002b70 | ||
|
|
f816fdcb69 | ||
|
|
6049fcd52a | ||
|
|
c1fca72552 | ||
|
|
205af02a1f | ||
|
|
5a5560f105 | ||
|
|
8e69fbfa98 | ||
|
|
59b63caf5e | ||
|
|
e4a601c644 | ||
|
|
7149191dd9 | ||
|
|
f38052c499 | ||
|
|
4cd9d57bad | ||
|
|
8cf9ed0ea5 | ||
|
|
28b7dcc204 | ||
|
|
eba3fca7bc | ||
|
|
6c098ee779 | ||
|
|
90f4f942e6 | ||
|
|
c0bbb7e69a | ||
|
|
d5ac24907e | ||
|
|
0f47129113 | ||
|
|
9b8a12b4b5 | ||
|
|
12f1aea38d | ||
|
|
c5e5228e0d | ||
|
|
9c0232a2b9 | ||
|
|
b05e63c34d | ||
|
|
cab7e6000e | ||
|
|
3ba0007e86 | ||
|
|
0f460ad26e | ||
|
|
e70529a977 | ||
|
|
14e2e488fd | ||
|
|
d84be4fe07 | ||
|
|
c8497ab257 | ||
|
|
437d79f094 | ||
|
|
93e693be72 | ||
|
|
675ba4d7eb | ||
|
|
f8d0cd9906 | ||
|
|
a1b6a9ac29 | ||
|
|
b402484e41 | ||
|
|
62cd9946ee | ||
|
|
e08aba5dd9 | ||
|
|
34f29d57b6 | ||
|
|
3220a32ff0 | ||
|
|
f7417d3552 | ||
|
|
04845d42c0 | ||
|
|
0d526d66b7 | ||
|
|
8fe16df6c9 | ||
|
|
1a9624af51 | ||
|
|
8b7e59729f | ||
|
|
76d25420e1 | ||
|
|
0be275e757 | ||
|
|
1d42d1d7c6 | ||
|
|
d90868c307 | ||
|
|
6dbcf6b0d6 | ||
|
|
5c958ec5f6 | ||
|
|
2a5af8fac7 | ||
|
|
559a81da6f | ||
|
|
27a8799e48 | ||
|
|
a19d2c2278 | ||
|
|
cad770c734 | ||
|
|
ca74bcc4cd | ||
|
|
b4e47a094c | ||
|
|
bd0a50fdc3 | ||
|
|
74266d5bbd | ||
|
|
9095b37343 | ||
|
|
ffab36c7d8 | ||
|
|
f82fb889b7 | ||
|
|
6fc07a7f81 | ||
|
|
ddca18638f | ||
|
|
3588c4a9fe | ||
|
|
71b338e8ac | ||
|
|
58812fad42 | ||
|
|
790ded0f47 | ||
|
|
6dbd7a9a80 | ||
|
|
e1e50f4afd | ||
|
|
3a656c07f1 | ||
|
|
ec75119341 | ||
|
|
0b64906a72 | ||
|
|
1beb9a2b8b | ||
|
|
242667ebe5 | ||
|
|
5211fb0c79 | ||
|
|
81e7f8679e | ||
|
|
6f7f570670 | ||
|
|
8f9a354682 | ||
|
|
bc5d924b83 | ||
|
|
9481f86c37 | ||
|
|
dd9e99a418 | ||
|
|
1f38c8c0a2 | ||
|
|
cd85ca17ed | ||
|
|
33afb10b0d | ||
|
|
279b284c0d | ||
|
|
6cae937e5e | ||
|
|
1ecb3b4cf3 | ||
|
|
dcd8cc8341 | ||
|
|
e6e468ef59 | ||
|
|
2a9fc7baa9 | ||
|
|
f6ee8e52dd | ||
|
|
08f2dde45a | ||
|
|
42713c6e99 | ||
|
|
7ffba22f2d | ||
|
|
60198a05b9 | ||
|
|
6b8b1259e2 | ||
|
|
c966a5c17e | ||
|
|
56aa24002d | ||
|
|
711be7009e | ||
|
|
f6e55962a8 | ||
|
|
ea8db7a4ae | ||
|
|
89675a7153 | ||
|
|
f1de1cc97a | ||
|
|
32f0c47c68 | ||
|
|
8aaec1d98f | ||
|
|
b1428555d1 | ||
|
|
20d518ee95 | ||
|
|
0e67fcd361 | ||
|
|
ab50e76652 | ||
|
|
313cfba7d4 | ||
|
|
3da90d01f6 | ||
|
|
d99fea2db6 | ||
|
|
78f1e4a945 | ||
|
|
461324a801 | ||
|
|
fa59db7595 | ||
|
|
bd9bd4abed | ||
|
|
6eacc8eab9 | ||
|
|
00878e5b6e | ||
|
|
7ce63d32b2 | ||
|
|
3451f26086 | ||
|
|
05290d5547 | ||
|
|
d06b792cd0 | ||
|
|
d434ecdcc3 | ||
|
|
60cdb1148c | ||
|
|
9bb1ac7564 | ||
|
|
6c9e503eb8 | ||
|
|
1d866b5e57 | ||
|
|
5c5df21e3d | ||
|
|
12e8404f8f | ||
|
|
0d1cdd26d6 | ||
|
|
cff0d93105 | ||
|
|
c24d143c9e | ||
|
|
bfd1fe977e | ||
|
|
d9ccbf04db | ||
|
|
2c06f34cc0 | ||
|
|
4b0c3b29ae | ||
|
|
dc100f85b3 | ||
|
|
0316490c54 | ||
|
|
d85cef557b | ||
|
|
838ca2fd93 | ||
|
|
cd94b5ffb3 | ||
|
|
3c619baec5 | ||
|
|
8f3a03c0cc | ||
|
|
75ee3b3f08 | ||
|
|
84b36a7193 | ||
|
|
dea68f073e | ||
|
|
7af9cc70d0 | ||
|
|
4b876168f4 | ||
|
|
d92a7527db | ||
|
|
63bcca7604 | ||
|
|
6e0310c1ea | ||
|
|
30c266caff | ||
|
|
2927763d68 | ||
|
|
a0fa91b2b8 | ||
|
|
60924843f0 | ||
|
|
720365859c | ||
|
|
d95e2b7999 | ||
|
|
9509322ecd | ||
|
|
6fc5d8e81e | ||
|
|
bed659f9b3 | ||
|
|
ad0acb5762 | ||
|
|
67e3eff806 | ||
|
|
f5024b4926 | ||
|
|
c1b2595deb | ||
|
|
512d4ca6a4 | ||
|
|
c91e4afe6c | ||
|
|
ebb7db263f | ||
|
|
d30571a7a8 | ||
|
|
cbeebcd47d | ||
|
|
f538ea25e4 | ||
|
|
a2d8b89289 | ||
|
|
8ca991ecd2 | ||
|
|
e3ad9be4c8 | ||
|
|
0d6479e1d6 | ||
|
|
429dd2a100 | ||
|
|
fcba866721 | ||
|
|
3270b432bc | ||
|
|
a441074ba4 | ||
|
|
0afa72c82b | ||
|
|
6be83dd5a1 | ||
|
|
0a3a148ed4 | ||
|
|
c18b8ab2d3 | ||
|
|
66c2e1f642 | ||
|
|
9a9325822e | ||
|
|
bd14b4d23e | ||
|
|
4402a7d817 | ||
|
|
5871d1e359 | ||
|
|
2f33a8c657 | ||
|
|
6dc7be6cd1 | ||
|
|
7d6164b351 | ||
|
|
48a3f0986c | ||
|
|
a1d62abca4 | ||
|
|
44ab30f628 | ||
|
|
be96da179a | ||
|
|
8f94f731a5 | ||
|
|
ab6b9c44aa | ||
|
|
4e15adac6d | ||
|
|
dcae30c1e4 | ||
|
|
f281a362f0 | ||
|
|
c402dad6fa | ||
|
|
e229374f46 | ||
|
|
189527e563 | ||
|
|
9b4e768995 | ||
|
|
45d0d72138 | ||
|
|
15088d7ebe | ||
|
|
4be4db5e6c | ||
|
|
b100546c9d | ||
|
|
834f8a1dc8 | ||
|
|
ada684e054 | ||
|
|
92b30cc452 | ||
|
|
cb32f52b9c | ||
|
|
4f00929084 | ||
|
|
4669b5694b | ||
|
|
a567fedaa7 | ||
|
|
94b0ce84da | ||
|
|
e76c58d175 | ||
|
|
92299b7c24 | ||
|
|
48488017e4 | ||
|
|
b4da085a9f | ||
|
|
7db44b56b0 | ||
|
|
aaba185ceb | ||
|
|
fa782aed93 | ||
|
|
3e174a0879 | ||
|
|
99d5769c2b | ||
|
|
1b1fa049fa | ||
|
|
8cfbf1836d | ||
|
|
78fb2af6f1 | ||
|
|
b96a59eb28 | ||
|
|
64b6172089 | ||
|
|
e7d9bcd36b | ||
|
|
123282e045 | ||
|
|
e22e8b7fef | ||
|
|
79d7cbfc4a | ||
|
|
9120274a46 | ||
|
|
1c1ba8d161 | ||
|
|
a9db1ee8d4 | ||
|
|
699dcaf65c | ||
|
|
f4b717cb9d | ||
|
|
f59a3b67f6 | ||
|
|
1025d097fd | ||
|
|
d56d0c64aa | ||
|
|
0c4adeceae | ||
|
|
f76f953f0c | ||
|
|
9c2b878678 | ||
|
|
a82b89e2d5 | ||
|
|
c8302882c8 | ||
|
|
d87aa24885 | ||
|
|
0cdef3376d | ||
|
|
92c7aca817 | ||
|
|
3aebe532e5 | ||
|
|
8a0be21839 | ||
|
|
83643addbc | ||
|
|
3930ca3a9a | ||
|
|
b0e11826e5 | ||
|
|
e3998e30ba | ||
|
|
51d79f3e3b | ||
|
|
b773e57490 | ||
|
|
76c9c8d653 | ||
|
|
bd4f51ff3c | ||
|
|
5dcf59bdf4 | ||
|
|
9f8bcf3abc | ||
|
|
1bb398f4e2 | ||
|
|
3f90f7c898 | ||
|
|
c8438979a9 | ||
|
|
141d3caabb | ||
|
|
394e0f60c2 | ||
|
|
b95d9e005d | ||
|
|
f3473312ba | ||
|
|
5af4ff985d | ||
|
|
4914a78c8c | ||
|
|
af34749a6b | ||
|
|
af8f5f0b69 | ||
|
|
0ed1a8b50a | ||
|
|
8826e9694c | ||
|
|
c8307a9e44 | ||
|
|
b1c247231b | ||
|
|
fd9da72536 | ||
|
|
3ee0461cb5 | ||
|
|
8e0a39f33f | ||
|
|
e84fa8d4e6 | ||
|
|
f11b5f3e40 | ||
|
|
5538ff7252 | ||
|
|
aca9a41fcf | ||
|
|
df5603de0a | ||
|
|
014d370b5d | ||
|
|
fa890c8c01 | ||
|
|
ce2ec1980b | ||
|
|
155d449be2 | ||
|
|
f05d422a97 | ||
|
|
2ef044edfc | ||
|
|
cc67a84e94 | ||
|
|
81ec564ef6 | ||
|
|
4cf69d7cd3 | ||
|
|
38034c3066 | ||
|
|
56014844a9 | ||
|
|
d9bccdde23 | ||
|
|
051af604e2 | ||
|
|
cb607b4911 | ||
|
|
31c6159019 | ||
|
|
9e2f071d26 | ||
|
|
9adb625846 | ||
|
|
fb4113dab4 | ||
|
|
665a44646e | ||
|
|
6b3f5fb82b | ||
|
|
e252dbf989 | ||
|
|
8170f96ded | ||
|
|
0b10cbd713 | ||
|
|
3119be908c | ||
|
|
48125a25eb | ||
|
|
7849b7e978 | ||
|
|
c9eae764b8 | ||
|
|
28d4250866 | ||
|
|
5920aa7be6 | ||
|
|
1e55fe3aa2 | ||
|
|
9d386033ef | ||
|
|
2b02d81253 | ||
|
|
11b3f97520 | ||
|
|
10782c5aae | ||
|
|
cbc6709937 | ||
|
|
ca18b3f1e9 | ||
|
|
69e745c537 | ||
|
|
003280888d | ||
|
|
797b93c98c | ||
|
|
b095bd3237 | ||
|
|
1d3f43f060 | ||
|
|
d586dd902d | ||
|
|
272d58662c | ||
|
|
6623500c6b | ||
|
|
08c26ab8b0 | ||
|
|
f62b6742f2 | ||
|
|
e73aad959e | ||
|
|
771fbcc02e | ||
|
|
119c5b40a7 | ||
|
|
ad2a75ac58 | ||
|
|
184055b3e2 | ||
|
|
bd2862aec6 | ||
|
|
69baa465ea | ||
|
|
66e439b6f4 | ||
|
|
feef194829 | ||
|
|
91c876831a | ||
|
|
834c52af64 | ||
|
|
06aa74e7df | ||
|
|
50fd469249 | ||
|
|
7daa8c2f6e | ||
|
|
bb03276c19 | ||
|
|
411b9800ae | ||
|
|
29b8a0bc5f | ||
|
|
2e45e4d015 | ||
|
|
5662176f8c | ||
|
|
1880c6b3dc | ||
|
|
6247a99f41 | ||
|
|
53d5c490be | ||
|
|
51ecab6967 | ||
|
|
f9ca054314 | ||
|
|
f7c9c8928e | ||
|
|
ea3048421f | ||
|
|
037039cace | ||
|
|
b5beb1aac1 | ||
|
|
c73a8a89d2 | ||
|
|
5cd93a0618 | ||
|
|
ce05634f38 | ||
|
|
b9a8c92422 | ||
|
|
b48ae74af4 | ||
|
|
bee0a4100c | ||
|
|
27cb0750c1 | ||
|
|
6b92d541da | ||
|
|
6f08e30109 | ||
|
|
520fdfe346 | ||
|
|
10b252dd05 | ||
|
|
eef4cd1b64 | ||
|
|
ac7994d8c7 | ||
|
|
8a7d1a69b3 | ||
|
|
76b20be2ea | ||
|
|
74cab14b8d | ||
|
|
c8aa5feb14 | ||
|
|
590c393680 | ||
|
|
5050d20b4d | ||
|
|
6ea44c466a | ||
|
|
097ba56df5 | ||
|
|
ba35362876 | ||
|
|
33ca8d7b8f | ||
|
|
3ad1daa70d | ||
|
|
3bc64b6b6e | ||
|
|
73c1c2c4af | ||
|
|
350b0b1f66 | ||
|
|
3ea0e904ad | ||
|
|
20c742e474 | ||
|
|
82a2e4fe28 | ||
|
|
6956b5104f | ||
|
|
a02dc4ccc3 | ||
|
|
77badc8c46 | ||
|
|
d2bb83833f | ||
|
|
e57989c0a6 | ||
|
|
b94dfc8d3a | ||
|
|
70a00d602e | ||
|
|
df238dc7ec | ||
|
|
abdf5e76f3 | ||
|
|
03fd832ee8 | ||
|
|
fc308b842e | ||
|
|
35f339e942 | ||
|
|
fd9b03a431 | ||
|
|
c090a77f1c | ||
|
|
50f5ba5b0c | ||
|
|
cbd785cfe8 | ||
|
|
0165c18330 | ||
|
|
e0f93c74c5 | ||
|
|
a6265cb49a | ||
|
|
793baf060a | ||
|
|
ec132749aa | ||
|
|
45d1052229 | ||
|
|
d5a7ba1626 | ||
|
|
3b1296077b | ||
|
|
dac128a029 | ||
|
|
4e95cecfb9 | ||
|
|
3976b52ed7 | ||
|
|
e183880d8b | ||
|
|
d7736a7bbb | ||
|
|
df2b70853f | ||
|
|
9e6411db31 | ||
|
|
751668571e | ||
|
|
3b70985284 | ||
|
|
fa84e50ddb | ||
|
|
ade980912d | ||
|
|
28570ef109 | ||
|
|
20cdb73862 | ||
|
|
36cdab2068 | ||
|
|
6906904896 | ||
|
|
10bbf265b2 | ||
|
|
dac4a8f113 | ||
|
|
93fcabd251 | ||
|
|
f5b8775bed | ||
|
|
0e687cee47 | ||
|
|
bb5038699e | ||
|
|
65cdb3436e | ||
|
|
86f789333a | ||
|
|
febec5ca4a | ||
|
|
70f7a0be11 | ||
|
|
0a99719a39 | ||
|
|
311c6f8a3f | ||
|
|
78a78e2e6c | ||
|
|
7227552f42 | ||
|
|
266d212094 | ||
|
|
3d177be73e | ||
|
|
0aea5fc4a3 | ||
|
|
7ca7938d8e | ||
|
|
f55e39cf1a | ||
|
|
393a92811b | ||
|
|
294b437414 | ||
|
|
c5bd32b0ad | ||
|
|
b315da618b | ||
|
|
03e082d4ac | ||
|
|
db6f4ab1cc | ||
|
|
0a76a3a312 | ||
|
|
1644b1e53e | ||
|
|
cfd1f0907f | ||
|
|
1f67385f13 | ||
|
|
7a7e198395 | ||
|
|
46eb6283ae | ||
|
|
2e894b668a | ||
|
|
8128190fb2 | ||
|
|
cb845b9bc8 | ||
|
|
56843ca0fc | ||
|
|
8d38d62d10 | ||
|
|
e02c0fa808 | ||
|
|
9b494c6869 | ||
|
|
3db6a8e92d | ||
|
|
6fec5bd32e | ||
|
|
6877660fe2 | ||
|
|
c1f8a640d3 | ||
|
|
ed6eba7c8e | ||
|
|
e83a999039 | ||
|
|
44674cb96c | ||
|
|
d451269977 | ||
|
|
7c9508ed71 | ||
|
|
a38dafcc57 | ||
|
|
2d72050db1 | ||
|
|
bd7aca76e1 | ||
|
|
4de3ad1712 | ||
|
|
83a4b8b49b | ||
|
|
b93d6ca5d2 | ||
|
|
9d86a49a73 | ||
|
|
f3196c915a | ||
|
|
9b60cf267a | ||
|
|
11ace54307 | ||
|
|
6de726f16c | ||
|
|
b417766b36 | ||
|
|
dfe66cab3f | ||
|
|
1a67a96cff | ||
|
|
ffd6bc97ad | ||
|
|
9779d67b8c | ||
|
|
a4f5f45228 | ||
|
|
b6d7cba499 | ||
|
|
865cb4083d | ||
|
|
b4fa28a3e6 | ||
|
|
d1a6084bf7 | ||
|
|
a9b857769d | ||
|
|
0015ce1e35 | ||
|
|
4ed94d3d51 | ||
|
|
49a9f47aec | ||
|
|
94a493b0d9 | ||
|
|
72853c4382 | ||
|
|
3b0ec436e4 | ||
|
|
222068b9ba | ||
|
|
c1696531a6 | ||
|
|
c95dfec5e4 | ||
|
|
aec3252b8e | ||
|
|
e17a909f70 | ||
|
|
33fcab5727 | ||
|
|
25f9fd542a | ||
|
|
2d561a5373 | ||
|
|
b0c48fa8d6 | ||
|
|
e100aa3c6c | ||
|
|
677836cbee | ||
|
|
a75c92000f | ||
|
|
b55e017e62 | ||
|
|
82be305496 | ||
|
|
3bc238b1ce | ||
|
|
5053ec2190 | ||
|
|
a34a971b50 | ||
|
|
5fa0173c41 | ||
|
|
6cae166f6f | ||
|
|
4ff906fbc2 | ||
|
|
3af211dd65 | ||
|
|
6db40ecb22 | ||
|
|
a3c66b2740 | ||
|
|
0cae9c3c1b | ||
|
|
68ccbefc94 | ||
|
|
5b3fee6806 | ||
|
|
ab6ede51d7 | ||
|
|
ea0357bf02 | ||
|
|
9cdd218083 | ||
|
|
44d50bc8d2 | ||
|
|
e20b113053 | ||
|
|
0acdeca3d6 | ||
|
|
a45e293267 | ||
|
|
41ae6f298e | ||
|
|
bd95fd770b | ||
|
|
b8354124be | ||
|
|
2b8eae9810 | ||
|
|
b2dc19155f | ||
|
|
7a5b279459 | ||
|
|
cf999c4622 | ||
|
|
68119d0929 | ||
|
|
9ed8dc7384 | ||
|
|
dc944f7518 | ||
|
|
d5d1e50365 | ||
|
|
2458697dad | ||
|
|
206672db5e | ||
|
|
5c2aa1d4f5 | ||
|
|
5cb4120ef5 | ||
|
|
496df5c29a | ||
|
|
3aeba50c38 | ||
|
|
29f5dd38e3 | ||
|
|
b8b1453392 | ||
|
|
ecdda01841 | ||
|
|
bb4495722f | ||
|
|
1118aaf840 | ||
|
|
1cb12296f6 | ||
|
|
96fd1ce270 | ||
|
|
544b7fba7f | ||
|
|
6ecbbe4006 | ||
|
|
cba2f6c2c4 | ||
|
|
1fe2d0d0e0 | ||
|
|
54558dd8ae | ||
|
|
60a8c9527c | ||
|
|
84690bfbbe | ||
|
|
d3a0bb4f35 | ||
|
|
ad13b402d7 | ||
|
|
b66fcf85df | ||
|
|
ba43364f36 | ||
|
|
57dc435f9b | ||
|
|
c582890590 | ||
|
|
615d20598a | ||
|
|
46a496428f | ||
|
|
acfb5b85fb | ||
|
|
70db149494 | ||
|
|
a4007f3b68 | ||
|
|
bc1a173d2f | ||
|
|
5c5db7d931 | ||
|
|
6800c3665a | ||
|
|
28ed968b46 | ||
|
|
ffbd5a35b5 | ||
|
|
b73c07dd80 | ||
|
|
ea67d853a8 | ||
|
|
ac5e86b7ae | ||
|
|
353b558536 | ||
|
|
8516e748ca | ||
|
|
8780deece9 | ||
|
|
29ca238a7a | ||
|
|
1b66e1c93a | ||
|
|
0705bb3fe5 | ||
|
|
48fd23dc10 | ||
|
|
6e4818d742 | ||
|
|
df30588eb6 | ||
|
|
ce149d2733 | ||
|
|
9ac4e23b66 | ||
|
|
154ca03228 | ||
|
|
c7d666ad61 | ||
|
|
7d08e4f7d1 | ||
|
|
2ae3bda029 | ||
|
|
d5262a3350 | ||
|
|
67dc3be54a | ||
|
|
c35950de47 | ||
|
|
761af68df4 | ||
|
|
1bc815e0b1 | ||
|
|
16871ae2b4 | ||
|
|
9ed5b4d90e | ||
|
|
430a489446 | ||
|
|
b4bd70c402 | ||
|
|
b65f29f8fa | ||
|
|
65a802c678 | ||
|
|
151f9c7f82 | ||
|
|
54c14f1ff3 | ||
|
|
d0af113aab | ||
|
|
8585e59718 | ||
|
|
ae1de6593c | ||
|
|
723074e71b | ||
|
|
80261c803a | ||
|
|
cb8261a78b | ||
|
|
e429e2614f | ||
|
|
2478f49c50 | ||
|
|
0a82e3b75b | ||
|
|
9689a2012b | ||
|
|
02ea68f1f3 | ||
|
|
d953415d91 | ||
|
|
06a9ee74bc | ||
|
|
a96c5986c5 | ||
|
|
863785a520 | ||
|
|
e077cad333 | ||
|
|
7280057228 | ||
|
|
b27100c8fc | ||
|
|
f3a93b046e | ||
|
|
b3834d8272 | ||
|
|
01863ebff0 | ||
|
|
e4cc365e89 | ||
|
|
a26c479182 | ||
|
|
9559b53228 | ||
|
|
eb32fe20c8 | ||
|
|
fd041d91ee | ||
|
|
15ded0bea9 | ||
|
|
1549a29c9d | ||
|
|
66e309c5c4 | ||
|
|
fb528c47c0 | ||
|
|
74de0f1f2a | ||
|
|
b89d9f6e90 | ||
|
|
d02024929a | ||
|
|
d22db77248 | ||
|
|
399256b384 | ||
|
|
33a0dec8a1 | ||
|
|
2f614900e8 | ||
|
|
4db4ec1621 | ||
|
|
74ef22d824 | ||
|
|
86d1a26b13 | ||
|
|
742a9b00bc | ||
|
|
9e89dacc64 | ||
|
|
f63cb27803 | ||
|
|
18bf586d55 | ||
|
|
3dfda15ef3 | ||
|
|
954ba211bf | ||
|
|
ddefa11695 | ||
|
|
91ca5d724e | ||
|
|
4b4830692a | ||
|
|
2fb57b2ea7 | ||
|
|
96cf6fc147 | ||
|
|
8ef17c2fb1 | ||
|
|
10564723b9 | ||
|
|
369e8c4150 | ||
|
|
c0187930dc | ||
|
|
2f362509b8 | ||
|
|
8ac1b85a0b | ||
|
|
7dacd7eb78 | ||
|
|
2949990016 | ||
|
|
893e9256a0 | ||
|
|
d91357d00c | ||
|
|
0fea62ec6d | ||
|
|
a63b74e345 | ||
|
|
0b6b6b52fe | ||
|
|
250d40bca0 | ||
|
|
adabd71a4a | ||
|
|
ff27df78fc | ||
|
|
627b7c9fd7 | ||
|
|
4e6defd657 | ||
|
|
1cdf0a2c51 | ||
|
|
e68c502f7a | ||
|
|
6afc16399f | ||
|
|
3f904bf3ac | ||
|
|
cdbc3ecc2a | ||
|
|
67af300383 | ||
|
|
ccea5fa948 | ||
|
|
fcc6f183a4 | ||
|
|
997e92191d | ||
|
|
4be75b1858 | ||
|
|
444c9effdb | ||
|
|
962255b373 | ||
|
|
ded013b7a7 | ||
|
|
d9d4f63cd4 | ||
|
|
56103f0751 | ||
|
|
be9bfb5536 | ||
|
|
5ac875b097 | ||
|
|
842f2cc8a0 | ||
|
|
77fd361c62 | ||
|
|
09c7d158d1 | ||
|
|
836ed9d6b7 | ||
|
|
a9f9a59416 | ||
|
|
42d43147ca | ||
|
|
93008e279d | ||
|
|
740081e2f7 | ||
|
|
088bbc6bb7 | ||
|
|
2d00027fd9 | ||
|
|
d03ab3c976 | ||
|
|
fb90ecc8bc | ||
|
|
9131a7c65e | ||
|
|
7855a233a7 | ||
|
|
b849547116 | ||
|
|
5196f9a340 | ||
|
|
6d171ff511 | ||
|
|
732573ba51 | ||
|
|
854d6d4e5c | ||
|
|
48a99d23cd | ||
|
|
a289a77d5d | ||
|
|
3def9258be | ||
|
|
0eb08693e9 | ||
|
|
cc6ad034f1 | ||
|
|
0af0f0d890 | ||
|
|
b3c975269e | ||
|
|
ed73fc0be3 | ||
|
|
cb65848fee | ||
|
|
1f59c37b89 | ||
|
|
c173e9f4ab | ||
|
|
be9912fae2 | ||
|
|
15ef3388c1 | ||
|
|
d90ae4d45b | ||
|
|
38cf52b62c | ||
|
|
b368549fd5 | ||
|
|
c44f4f32fe | ||
|
|
eaa2e8900d | ||
|
|
7c65560f20 | ||
|
|
79c64f6bca | ||
|
|
89c442cadb | ||
|
|
245ffb1123 | ||
|
|
55a2f35a64 | ||
|
|
fb49e5565a | ||
|
|
0eb1db0d17 | ||
|
|
ecc2c609d4 | ||
|
|
b97ea0e447 | ||
|
|
b0ae61c652 | ||
|
|
a8409b0a8b | ||
|
|
5ae3deea86 | ||
|
|
88655439a0 | ||
|
|
e12abfd43b | ||
|
|
793e666f36 | ||
|
|
4008ff32c9 | ||
|
|
d79387c27e | ||
|
|
27735bbdfc | ||
|
|
2eab964a00 | ||
|
|
4bd6003b7f | ||
|
|
8f1b461228 | ||
|
|
c2c8757bd1 | ||
|
|
7d95e8624a | ||
|
|
203c4b99a0 | ||
|
|
9f4886839f | ||
|
|
df0c43265e | ||
|
|
a6c4543c57 | ||
|
|
2b9f71c6ca | ||
|
|
d701b23230 | ||
|
|
f6a4f9c753 | ||
|
|
79bc628858 | ||
|
|
ace551030f | ||
|
|
c362172567 | ||
|
|
c7ee9844bd | ||
|
|
0fcc606569 | ||
|
|
aadc5be3ff | ||
|
|
07cfb7b64a | ||
|
|
0d733aa071 | ||
|
|
1fd69e9569 | ||
|
|
612b631823 | ||
|
|
3fd0337330 | ||
|
|
0283498140 | ||
|
|
14e4f1283c | ||
|
|
95ba340d07 | ||
|
|
fa881220ae | ||
|
|
d518423b9c | ||
|
|
3569e8d7df | ||
|
|
e85f3972b9 | ||
|
|
1fa792eae7 | ||
|
|
dc3b0e170c | ||
|
|
59d9746849 | ||
|
|
2e2f23a0ae | ||
|
|
0c9c79a89b | ||
|
|
ac14f002e6 | ||
|
|
c59d7a899b | ||
|
|
ce8f24e57a | ||
|
|
a760ce05b9 | ||
|
|
2e5d28c73f | ||
|
|
51a2087081 | ||
|
|
42d2bc28af | ||
|
|
024be32f06 | ||
|
|
27290e1277 | ||
|
|
c51db4c940 | ||
|
|
3fc24013ef | ||
|
|
4dc5855dfe | ||
|
|
d6b0ab3028 | ||
|
|
a915ba17ed | ||
|
|
7272577fe6 | ||
|
|
bbe896875e | ||
|
|
c7afb5fb72 | ||
|
|
852d1ee395 | ||
|
|
da50c75148 | ||
|
|
4edf7cfb05 | ||
|
|
3c78e418fb | ||
|
|
e71b198e3d | ||
|
|
4f0bda403e | ||
|
|
c215bbadf1 | ||
|
|
0f84b9c30d | ||
|
|
342cc122b4 | ||
|
|
03ce15df4c | ||
|
|
3debeb7236 | ||
|
|
3c319f93f2 | ||
|
|
2e7cf83522 | ||
|
|
8bed47a2d4 | ||
|
|
5ede1224e4 | ||
|
|
9831619881 | ||
|
|
34e937c976 | ||
|
|
834803f1e8 | ||
|
|
5501679642 | ||
|
|
5a2d62e4d9 | ||
|
|
42d47ecfb0 | ||
|
|
23f83f53cc | ||
|
|
1f9894c084 | ||
|
|
719b7784f3 | ||
|
|
5c9fd19105 | ||
|
|
27f8922653 | ||
|
|
74d7012025 | ||
|
|
5ca2938117 | ||
|
|
6fd2401cdf | ||
|
|
6e94c024e4 | ||
|
|
d1d2b660dc | ||
|
|
8e7c4f91e3 | ||
|
|
41bd38147c | ||
|
|
92ffc1cc4c | ||
|
|
d761af84c8 | ||
|
|
beca2234af | ||
|
|
b3f25a6ade | ||
|
|
97004f7eb2 | ||
|
|
54f9ea14e1 | ||
|
|
7ee49c32b7 | ||
|
|
44da1801d8 | ||
|
|
82a84dca80 | ||
|
|
0ca776a6b8 | ||
|
|
702cf5a3e1 | ||
|
|
2e39efbe7c | ||
|
|
a06a84d19b | ||
|
|
dcf4fad971 | ||
|
|
6d69ca36a7 | ||
|
|
a45c08f9fe | ||
|
|
3c3292d505 | ||
|
|
306b5bcff3 | ||
|
|
cbd71ef8f5 | ||
|
|
32d125131f | ||
|
|
958b482ada | ||
|
|
92b16618ed | ||
|
|
a3771e7d7b | ||
|
|
06ec80f394 | ||
|
|
e7a80ec681 | ||
|
|
5d57b78471 | ||
|
|
490ca410c0 | ||
|
|
4513623da1 | ||
|
|
9c86e99968 | ||
|
|
1e8b54abfb | ||
|
|
e8cb5c221d | ||
|
|
2f5c95610f | ||
|
|
20ee1ae65e | ||
|
|
74abc457ad | ||
|
|
eab0b2a90a | ||
|
|
194c58858c | ||
|
|
67528cf970 | ||
|
|
6774ddaba2 | ||
|
|
13cc220c0d | ||
|
|
9f7d8ff302 | ||
|
|
4d5a890b46 | ||
|
|
1e4af85a38 | ||
|
|
8f91d47bf3 | ||
|
|
5d2669dbd3 | ||
|
|
93261b98c2 | ||
|
|
15960a5c04 | ||
|
|
9f00aeae29 | ||
|
|
2762ec22d0 | ||
|
|
f702e27485 | ||
|
|
cd9b344506 | ||
|
|
61cc2ba7d9 | ||
|
|
0c5a747ef1 | ||
|
|
75df148ba2 | ||
|
|
dad29bcaa1 | ||
|
|
65650a5c66 | ||
|
|
4572d4940c | ||
|
|
2b9f16802d | ||
|
|
db8170def3 | ||
|
|
34e2ab9f9f | ||
|
|
449b9a9d68 | ||
|
|
44296c0b33 | ||
|
|
01d9107bce | ||
|
|
28a146d438 | ||
|
|
ba3fabda77 | ||
|
|
6a19b62db6 | ||
|
|
a626b7ebe1 | ||
|
|
edf10ef8c5 | ||
|
|
6c565eae74 | ||
|
|
3331bb29ea | ||
|
|
c951702423 | ||
|
|
16f6100500 | ||
|
|
7d64b589b4 | ||
|
|
90f63657cb | ||
|
|
0415e4a637 | ||
|
|
ed3424ff75 | ||
|
|
14c4f06100 | ||
|
|
c302afd411 | ||
|
|
8820d4e5ac | ||
|
|
7c0a27a0f4 | ||
|
|
7a410643ac | ||
|
|
34da3b4fa8 | ||
|
|
28948d061c | ||
|
|
223432fa1e | ||
|
|
4a2dd306c7 | ||
|
|
09bade6466 | ||
|
|
9a93169898 | ||
|
|
c0ae5c58a6 | ||
|
|
017d36e6b2 | ||
|
|
75a7a4c97c | ||
|
|
1735ec0362 | ||
|
|
0ecc5c815e | ||
|
|
94b12f7804 | ||
|
|
5ec62a5153 | ||
|
|
2784e256f1 | ||
|
|
50bc838047 | ||
|
|
69acda2c25 | ||
|
|
98f21d8973 | ||
|
|
767d24ea5d | ||
|
|
d1c89727dc | ||
|
|
3d5db7288f | ||
|
|
dc11b5c55e | ||
|
|
5c03adbded | ||
|
|
353ecbb7d7 | ||
|
|
e53acdc2ac | ||
|
|
dce0ccf490 | ||
|
|
e6a428f85f | ||
|
|
8845fb7eae | ||
|
|
98823c04b3 | ||
|
|
5a0c4ce295 | ||
|
|
04f8c455e2 | ||
|
|
2c46bfde8b | ||
|
|
5b2e5d180f | ||
|
|
357eb21e4d | ||
|
|
6426f3635e | ||
|
|
ee3ba0b1d6 | ||
|
|
00cd0cce8f | ||
|
|
54715586ab | ||
|
|
288f1c5387 | ||
|
|
d3e31a4a6d | ||
|
|
9010857677 | ||
|
|
fc8bd7229e | ||
|
|
ff151f9fbc | ||
|
|
5c7e96d895 | ||
|
|
04561c4ddc | ||
|
|
9688ebef52 | ||
|
|
d6753b2883 | ||
|
|
b7ff773ecf | ||
|
|
e504088b79 | ||
|
|
d52e5f7130 | ||
|
|
bea468f1e5 | ||
|
|
639f1fd339 | ||
|
|
67e5689f87 | ||
|
|
ddfa3af45d | ||
|
|
d659f469a9 | ||
|
|
c2bca5939d | ||
|
|
dcbd97d29c | ||
|
|
05c1899895 | ||
|
|
7e88dd4e6b | ||
|
|
61d5d107b6 | ||
|
|
7f9e614b5d | ||
|
|
79259c916d | ||
|
|
685aebc72e | ||
|
|
794e65b60e | ||
|
|
6cb35836a2 | ||
|
|
e4e704f480 | ||
|
|
14d13167a7 | ||
|
|
78aad9a192 | ||
|
|
b01cb2406f | ||
|
|
42bb3d8aae | ||
|
|
96ac061e68 | ||
|
|
890745e846 | ||
|
|
4d77b7face | ||
|
|
68fba4b781 | ||
|
|
0360e60dd5 | ||
|
|
239a5d3230 | ||
|
|
6fe9b4ab5e | ||
|
|
0c132e4c9e | ||
|
|
f9e2e5276f | ||
|
|
9dab7dcc3c | ||
|
|
d40cba3042 | ||
|
|
1199941475 | ||
|
|
ec040908e9 | ||
|
|
b958179263 | ||
|
|
5e83ea8228 | ||
|
|
a09aae0efe | ||
|
|
5a2afc5754 | ||
|
|
d4300c406c | ||
|
|
4fb2905b1e | ||
|
|
6b296d907b | ||
|
|
8e5117444e | ||
|
|
b232acd04e | ||
|
|
329887df99 | ||
|
|
1e4ae24126 | ||
|
|
44d0d6abd2 | ||
|
|
0c6f1c9c3a | ||
|
|
584d1c61ec | ||
|
|
af27264140 | ||
|
|
ec9a044a17 | ||
|
|
0ae3bbc3f5 | ||
|
|
b9fa4dada8 | ||
|
|
9754c01f56 | ||
|
|
043920d157 | ||
|
|
3ebcd36667 | ||
|
|
90eb4f1939 | ||
|
|
9e38ca555d | ||
|
|
de183e80db | ||
|
|
23b5b5fa36 | ||
|
|
d5bcc01eae | ||
|
|
ca395306e3 | ||
|
|
5e0123fbe1 | ||
|
|
24ff81d14e | ||
|
|
633027d980 | ||
|
|
d3d043dba0 | ||
|
|
db60ebbbd7 | ||
|
|
cb7ebdf821 | ||
|
|
70e1a1a4df | ||
|
|
7c41e413e4 | ||
|
|
2b6da2f5f2 | ||
|
|
9de30d96f0 | ||
|
|
a3c4823511 | ||
|
|
f02602d02d | ||
|
|
90c2064640 | ||
|
|
c833c3fec8 | ||
|
|
c64629964f | ||
|
|
de2da4fd19 | ||
|
|
198e5eeab9 | ||
|
|
8baa0f84e7 | ||
|
|
5d67139206 | ||
|
|
5b8dde9602 | ||
|
|
81bc721c5c | ||
|
|
4bb646117d | ||
|
|
bba38980bd | ||
|
|
0076fa583c | ||
|
|
35ae9e3aa8 | ||
|
|
2f9bc2ab75 | ||
|
|
8de099ae75 | ||
|
|
40e3d2ab55 | ||
|
|
a33b309d99 | ||
|
|
50318217ca | ||
|
|
57fa655522 | ||
|
|
a0dd1ebb6d | ||
|
|
6748158ab4 | ||
|
|
e4d2d00d41 | ||
|
|
50c0938226 | ||
|
|
98f21669c7 | ||
|
|
315d65280b | ||
|
|
7d0004f058 | ||
|
|
e5b45d1c86 | ||
|
|
d15952c867 | ||
|
|
677de48f6c | ||
|
|
c4f9151c67 | ||
|
|
1954ef47e6 | ||
|
|
fd1d0bbde7 | ||
|
|
d7e396a98c | ||
|
|
00d3935aac | ||
|
|
bb2433ca1a | ||
|
|
7238a77327 | ||
|
|
4918531dd5 | ||
|
|
2835321377 | ||
|
|
dd869064a6 | ||
|
|
7a2a63f32b | ||
|
|
28ef7d228c | ||
|
|
6151ae7db5 | ||
|
|
3889785017 | ||
|
|
7a9ff4f8d4 | ||
|
|
74ef489fe2 | ||
|
|
cb595fb63c | ||
|
|
5d3259587f | ||
|
|
29f613ef84 | ||
|
|
5e02d2b586 | ||
|
|
ff5703fd9b | ||
|
|
89630d2826 | ||
|
|
ce88a73aa6 | ||
|
|
550407b0ec | ||
|
|
d0959063d5 | ||
|
|
d294dedfad | ||
|
|
e798294a4b | ||
|
|
ea0eb0a8c8 | ||
|
|
114e715e3c | ||
|
|
253c23240b | ||
|
|
0ce9003ba7 | ||
|
|
2bbc204328 | ||
|
|
41a03b29ab | ||
|
|
92693e4459 | ||
|
|
0ed9528d76 | ||
|
|
39263b674c | ||
|
|
5f5910c603 | ||
|
|
ed276cd7c2 | ||
|
|
82272ee08a | ||
|
|
9ed0d389b2 | ||
|
|
25bb76b69c | ||
|
|
00bb68d7d2 | ||
|
|
c23074d5ad | ||
|
|
8ddd4c4c52 | ||
|
|
5a86892ecb | ||
|
|
74c6d8424e | ||
|
|
12972b4b65 | ||
|
|
098f7f23ce | ||
|
|
8aea468744 | ||
|
|
29cc1af2bc | ||
|
|
e43e4ff2c1 | ||
|
|
12fbb7ae5c | ||
|
|
2920795168 | ||
|
|
25314313f8 | ||
|
|
a8be0d9f48 | ||
|
|
ce4080faa7 | ||
|
|
cf7fcadeca | ||
|
|
9bd67de671 | ||
|
|
27e1352c85 | ||
|
|
0ea9595d41 | ||
|
|
e38b016547 | ||
|
|
dabaa4cce0 | ||
|
|
707d413761 | ||
|
|
4be3521727 | ||
|
|
e3b911652d | ||
|
|
5e50b50dc3 | ||
|
|
772e7e8c8d | ||
|
|
e1ea41ee9c | ||
|
|
d87857ffdb | ||
|
|
1db3e2241e | ||
|
|
d085133c6d | ||
|
|
5c1e0a6dc4 | ||
|
|
7489fb784e | ||
|
|
2d48fc1113 | ||
|
|
328ee9a3ec | ||
|
|
4fc60f340f | ||
|
|
9ea3a60291 | ||
|
|
5fc3ac0e92 | ||
|
|
edd3a00c2a | ||
|
|
2eae52ebd1 | ||
|
|
5021e0dd83 | ||
|
|
c818d13202 | ||
|
|
79009ca074 | ||
|
|
8151858e70 | ||
|
|
6c7e58643c | ||
|
|
423beddf57 | ||
|
|
30f5642c62 | ||
|
|
e3ad2a3969 | ||
|
|
8119d77a21 | ||
|
|
1b74b98f90 | ||
|
|
d57b7e8d5f | ||
|
|
2d274003b8 | ||
|
|
52ddf044ae | ||
|
|
214721ca01 | ||
|
|
cad98dc4d5 | ||
|
|
e46e7e7a9c | ||
|
|
bf2ac5acc5 | ||
|
|
d551a75c35 | ||
|
|
8935a93cf8 | ||
|
|
9d5a3f0131 | ||
|
|
42414cadaa | ||
|
|
3777ead25e | ||
|
|
a68bfd215f | ||
|
|
a98e6a262a | ||
|
|
fd89df4d38 | ||
|
|
491925b71e | ||
|
|
91bdf9e801 | ||
|
|
ae5ace1619 | ||
|
|
853053a3b2 | ||
|
|
21e389bec5 | ||
|
|
b57ee87485 | ||
|
|
8100903d92 | ||
|
|
da38faa8f7 | ||
|
|
648c418fcd | ||
|
|
21d86ca486 | ||
|
|
c0a05fcf89 | ||
|
|
b89076faa2 | ||
|
|
2f96652bb4 | ||
|
|
098136b681 | ||
|
|
0ed19d9f20 | ||
|
|
39cb34850a | ||
|
|
b3367ec0e3 | ||
|
|
782f780476 | ||
|
|
9a06efd080 | ||
|
|
6763d28a17 | ||
|
|
bf57e9603b | ||
|
|
a243e3b858 | ||
|
|
98f1ee9442 | ||
|
|
096427c3b1 | ||
|
|
8ee1abecb9 | ||
|
|
39c0f7f386 | ||
|
|
a02edf7a93 | ||
|
|
6465e4c3fd | ||
|
|
e75f7ae330 | ||
|
|
b0dc50c2a0 | ||
|
|
1268413ba7 | ||
|
|
6d32bef65a | ||
|
|
08de13a57b | ||
|
|
4141cc39d0 | ||
|
|
d8c675afbf | ||
|
|
9654b80912 | ||
|
|
8fe8175c78 | ||
|
|
589d27386a | ||
|
|
e58ba2fcfa | ||
|
|
9dae1a1732 | ||
|
|
1e965cb8f5 | ||
|
|
0c55a11318 | ||
|
|
fd1ddbce68 | ||
|
|
a13aa873c2 | ||
|
|
17e8d7519b | ||
|
|
bcb88e7352 | ||
|
|
f6aabb7a90 | ||
|
|
16e8fc7427 | ||
|
|
f58c7ac5a6 | ||
|
|
63157c798d | ||
|
|
b9e8a3e024 | ||
|
|
8e9cc36979 | ||
|
|
614624754d | ||
|
|
6f09a3e820 | ||
|
|
34284b7532 | ||
|
|
1024766514 | ||
|
|
456167aca0 | ||
|
|
c67cdab221 | ||
|
|
d060ae6a36 | ||
|
|
7bcf875c57 | ||
|
|
f90001e938 | ||
|
|
176b780251 | ||
|
|
d890258af6 | ||
|
|
803e4807ed | ||
|
|
a4e26bf7c2 | ||
|
|
9350ecd36f | ||
|
|
8c96c5662f | ||
|
|
842d52db7b | ||
|
|
bb1641e4ec | ||
|
|
299b50a0d4 | ||
|
|
931ae0f116 | ||
|
|
7fb5e993e3 | ||
|
|
0251fae5cc | ||
|
|
0c6b41f4c9 | ||
|
|
2408e38218 | ||
|
|
cba4796311 | ||
|
|
65cbea2b6a | ||
|
|
f63f3853bb | ||
|
|
3f1f8438ed | ||
|
|
7ad073fb30 | ||
|
|
09f37bd023 | ||
|
|
c89566a42f | ||
|
|
8f29f6a4d4 | ||
|
|
6fcc6a2f7c | ||
|
|
0b8ba1d55b | ||
|
|
933aa63b7d | ||
|
|
3ec0c719b9 | ||
|
|
80ffe1610c | ||
|
|
9104dcc29c | ||
|
|
7e6684d926 | ||
|
|
1b431f29e5 | ||
|
|
5ea7598408 | ||
|
|
731f55a05d | ||
|
|
a32a15ad93 | ||
|
|
509389be97 | ||
|
|
f911087eab | ||
|
|
c4af1340fa | ||
|
|
3bc57fe5b5 | ||
|
|
7f94bd09ae | ||
|
|
d179f31d4f | ||
|
|
fba6de834e | ||
|
|
1f79175898 | ||
|
|
2fbcfd8824 | ||
|
|
22e16f15a6 | ||
|
|
dc9c9369e0 | ||
|
|
2565a79575 | ||
|
|
8a885c2606 | ||
|
|
ca79360fd7 | ||
|
|
34c8045d5b | ||
|
|
a90ffe1af1 | ||
|
|
01e6f63e98 | ||
|
|
3621988e15 | ||
|
|
53e30f750d | ||
|
|
6656f99c54 | ||
|
|
5a0e751736 | ||
|
|
ff0f15f763 | ||
|
|
e517fb5f9d | ||
|
|
98335d2040 | ||
|
|
c1220e8729 | ||
|
|
887debb055 | ||
|
|
0d77632839 | ||
|
|
8b15732c1e | ||
|
|
48bca30e61 | ||
|
|
3744151359 | ||
|
|
9f62d441a7 | ||
|
|
b836267401 | ||
|
|
7b55bcf484 | ||
|
|
15d1f753f7 | ||
|
|
1d76e433f7 | ||
|
|
02d8ad030f | ||
|
|
58a0e8e3e2 | ||
|
|
dccef70728 | ||
|
|
1fbea2e438 | ||
|
|
8198fd7913 | ||
|
|
d80f999a21 | ||
|
|
5871dbaf5a | ||
|
|
b0e023e432 | ||
|
|
7ab735eb02 | ||
|
|
ef1b923b31 | ||
|
|
6d52da58d9 | ||
|
|
50fdfb127a | ||
|
|
63883bf27d | ||
|
|
8124547348 | ||
|
|
c734dde982 | ||
|
|
cebf4e3697 | ||
|
|
5e2bf12a31 | ||
|
|
d078e9b8c9 | ||
|
|
b855e5f7df | ||
|
|
6593c69424 | ||
|
|
3a9d7d318a | ||
|
|
e7a22af0e6 | ||
|
|
8a2e50ab2a | ||
|
|
9ee6295c75 | ||
|
|
1bf6f8b4a6 | ||
|
|
4d3209ad1d | ||
|
|
9ff97a98a7 | ||
|
|
1938bfcddf | ||
|
|
1d300bbc10 | ||
|
|
e36badd744 | ||
|
|
714770ffb3 | ||
|
|
71ab5d52b6 | ||
|
|
e090d131c3 | ||
|
|
57e3b1b093 | ||
|
|
97cc762143 | ||
|
|
0ee258bb75 | ||
|
|
bdc206885a | ||
|
|
69044fe577 | ||
|
|
753f749423 | ||
|
|
2e6cf42011 | ||
|
|
2995d6c281 | ||
|
|
1b40f69ce5 | ||
|
|
771f64397f | ||
|
|
66199497a0 | ||
|
|
aa8a86f0a6 | ||
|
|
d8339fa29a | ||
|
|
006ac772e6 | ||
|
|
d929c63474 | ||
|
|
a51dfe89c0 | ||
|
|
ba3623d0cc | ||
|
|
c7d1924c34 | ||
|
|
cc20b0e3a0 | ||
|
|
1153fd9a0c | ||
|
|
a107a5db05 | ||
|
|
964587b14a | ||
|
|
a56f78af67 | ||
|
|
7843390ecd | ||
|
|
307fe4a3cd | ||
|
|
3755616a29 | ||
|
|
d7b882977c | ||
|
|
cc1d043423 | ||
|
|
2010fea088 | ||
|
|
9e411d785b | ||
|
|
fb6ff61730 | ||
|
|
a6f4eef1da | ||
|
|
98811f11e5 | ||
|
|
d6acb74ac9 | ||
|
|
397e99fcc6 | ||
|
|
be27309dbb | ||
|
|
ff8a834ccc | ||
|
|
9e8127accb | ||
|
|
4dfce5d347 | ||
|
|
0bdb0a9d58 | ||
|
|
9345bc13d4 | ||
|
|
a2257f3471 | ||
|
|
78576dd3d3 | ||
|
|
6b7dfa1fb5 | ||
|
|
5f28013f79 | ||
|
|
17c825f53a | ||
|
|
b15e03acd7 | ||
|
|
65c5a20e1c | ||
|
|
1020d7ff67 | ||
|
|
e7c9b86a5a | ||
|
|
e0b6a31613 | ||
|
|
0938b56829 | ||
|
|
f382221b28 | ||
|
|
fcbf99a30a | ||
|
|
6c91ffcfbe | ||
|
|
15e0093e13 | ||
|
|
99797858a6 | ||
|
|
8fcba0eb1e | ||
|
|
40d72ff40b | ||
|
|
efadfbfb17 | ||
|
|
8ee6574d12 | ||
|
|
9bb7633254 | ||
|
|
efb3ee044b | ||
|
|
e7097641e3 | ||
|
|
a2d01d6af8 | ||
|
|
0b4c42d756 | ||
|
|
f0f205004c | ||
|
|
2ef3a98929 | ||
|
|
4d98762486 | ||
|
|
f802e17626 | ||
|
|
8fab7ce37d | ||
|
|
44db1a1eb2 | ||
|
|
0aee830bde | ||
|
|
06d41794f9 | ||
|
|
2114218ed8 | ||
|
|
73a42d34a5 | ||
|
|
95adac7522 | ||
|
|
76a59274bf | ||
|
|
58032d60e7 | ||
|
|
d4f9daa631 | ||
|
|
a453b5514d | ||
|
|
8601604a09 | ||
|
|
1eda1d25b0 | ||
|
|
b695c82520 | ||
|
|
a98e35d7a0 | ||
|
|
65722aeeca | ||
|
|
aaeb268522 | ||
|
|
540d39220d | ||
|
|
09728bf43c | ||
|
|
090447c664 | ||
|
|
8278ba5e45 | ||
|
|
6e98e5709a | ||
|
|
2fec1af275 | ||
|
|
cfb979b5e3 | ||
|
|
9988b1a047 | ||
|
|
73761f7af6 | ||
|
|
1c01e9c095 | ||
|
|
98d4b51120 | ||
|
|
d4af5a5763 | ||
|
|
198ef97108 | ||
|
|
138b7fe2d8 | ||
|
|
87a669aeda | ||
|
|
969b4a4a36 | ||
|
|
ab8c7252da | ||
|
|
818cbcbdd4 | ||
|
|
118860abb2 | ||
|
|
0dda955f90 | ||
|
|
a428533160 | ||
|
|
34b861c19c | ||
|
|
a0f73c2703 | ||
|
|
006c757a03 | ||
|
|
4eb1771e67 | ||
|
|
2be9823010 | ||
|
|
47417506c3 | ||
|
|
aba3066658 | ||
|
|
d0b31e2030 | ||
|
|
6fe42f007c | ||
|
|
1ab865a994 | ||
|
|
4fd267a778 | ||
|
|
07204f129e | ||
|
|
c1b09d639c | ||
|
|
817def000b | ||
|
|
47a58b40cd | ||
|
|
474c85bc9d | ||
|
|
6e24d603a1 | ||
|
|
5cdfee5143 | ||
|
|
d694e00a33 | ||
|
|
2232974cda | ||
|
|
f7eb4e587f | ||
|
|
5fc6ee6a4a | ||
|
|
aefcb83419 | ||
|
|
24a6d87c3f | ||
|
|
5374a95c58 | ||
|
|
4c7bd75c1a | ||
|
|
b1463b2dc2 | ||
|
|
26ecf4b780 | ||
|
|
0d89c1d212 | ||
|
|
818bc84591 | ||
|
|
1f3f76cb09 | ||
|
|
b42c70be9c | ||
|
|
3ebd7f1166 | ||
|
|
81ef40010f | ||
|
|
99fa9afaf1 | ||
|
|
72df038d25 | ||
|
|
d35380c19e | ||
|
|
36683f2e29 | ||
|
|
281559d427 | ||
|
|
cc8464ce80 | ||
|
|
230aafbf66 | ||
|
|
14787ac148 | ||
|
|
5f8911f7cb | ||
|
|
6b115659ca | ||
|
|
8419ba0ec0 | ||
|
|
125839e848 | ||
|
|
356a3296bc | ||
|
|
01b833146f | ||
|
|
4e1c6a8a22 | ||
|
|
f8f84ef095 | ||
|
|
b902de20c7 | ||
|
|
3f5b348451 | ||
|
|
42e14ec54f | ||
|
|
4300197a74 | ||
|
|
a0d01b1a0b | ||
|
|
e1b7bd51ee | ||
|
|
6bc2fc7405 | ||
|
|
93d79babc9 | ||
|
|
56c2f651fe | ||
|
|
c371f9a162 | ||
|
|
d6e398aba4 | ||
|
|
941e0ba60a | ||
|
|
7f1a4c377c | ||
|
|
7fe73deb2d | ||
|
|
8f5eddd0ba | ||
|
|
3ddaf56afd | ||
|
|
10e2c40b59 | ||
|
|
f5852b47d1 | ||
|
|
68f4a12a8b | ||
|
|
1275e5bdc9 | ||
|
|
86cf69648e | ||
|
|
d658a7f4ab | ||
|
|
0e9c8568fd | ||
|
|
2667cb3ab6 | ||
|
|
0c27c5eb7f | ||
|
|
34008da807 | ||
|
|
16bd88c10a | ||
|
|
05e4e97276 | ||
|
|
0bccf1c3cd | ||
|
|
07fe00c466 | ||
|
|
cbf221f6b7 | ||
|
|
734b2e4cf7 | ||
|
|
85793a4706 | ||
|
|
3c35ba7c31 | ||
|
|
c31a93c27a | ||
|
|
5ceb1620e9 | ||
|
|
e8b4585295 | ||
|
|
6ef2832083 | ||
|
|
6ba534af92 | ||
|
|
47fd4833ee | ||
|
|
64701e388c | ||
|
|
d16d56d39f | ||
|
|
93e12250c7 | ||
|
|
f4551a7e9f | ||
|
|
27aae60381 | ||
|
|
7dae955c1a | ||
|
|
3b38df085e | ||
|
|
563c035eb5 | ||
|
|
de87e436ab | ||
|
|
e837c9ab3f | ||
|
|
ad51c85e5d | ||
|
|
de1dfae717 | ||
|
|
66bc3665c1 | ||
|
|
ede5499da6 | ||
|
|
9562aba86a | ||
|
|
4b13f93a3e | ||
|
|
4198969302 | ||
|
|
c07c454935 | ||
|
|
c37b3cef7d | ||
|
|
34014c1c51 | ||
|
|
0cf617ef0c | ||
|
|
0c4040d191 | ||
|
|
2bd377a3de | ||
|
|
31e44c2ab9 | ||
|
|
f5d4414734 | ||
|
|
7d3e99a2ab | ||
|
|
b4e156e1d7 | ||
|
|
6a31d55b2e | ||
|
|
45b810450f | ||
|
|
f292e93e0e | ||
|
|
378815ee62 | ||
|
|
38b4dc2cdf | ||
|
|
530ab6b8fc | ||
|
|
0ef7f63729 | ||
|
|
a05adb1128 | ||
|
|
fafdd21e4f | ||
|
|
faa57ecaef | ||
|
|
2450398862 | ||
|
|
dfc3cb441b | ||
|
|
36c9c93720 | ||
|
|
12f30e6220 | ||
|
|
fd19142c0d | ||
|
|
5131429abb | ||
|
|
a2fb265563 | ||
|
|
92eaa98e83 | ||
|
|
017bbbb582 | ||
|
|
16421106d4 | ||
|
|
3b7707c3fd | ||
|
|
30842eb8d0 | ||
|
|
43f88b2bbb | ||
|
|
b8034f4d9e | ||
|
|
bd48690f63 | ||
|
|
f44a859331 | ||
|
|
770808ce0d | ||
|
|
8730dfdcc2 | ||
|
|
2ac292dc7a | ||
|
|
6a78e080e6 | ||
|
|
0a03484188 | ||
|
|
cbce882f5e | ||
|
|
88686cbed2 | ||
|
|
f95993e326 | ||
|
|
3a2bddc160 | ||
|
|
7bf2ae0b11 | ||
|
|
2734fc4079 | ||
|
|
9ba3c6d1af | ||
|
|
6efdd21633 | ||
|
|
942f552c62 | ||
|
|
ad4ffdc947 | ||
|
|
a73ae8727d | ||
|
|
65f570271c | ||
|
|
a6b9ea05e8 | ||
|
|
166853aed9 | ||
|
|
98a631b556 | ||
|
|
278ee3f16c | ||
|
|
9a057021c3 | ||
|
|
a1dcc5cd17 | ||
|
|
c9db87277b | ||
|
|
ff2cf2dacd | ||
|
|
3ac74b1e78 | ||
|
|
2c7b625daa | ||
|
|
f18ec51cb3 | ||
|
|
f4fa0d48cb | ||
|
|
9fce273ce9 | ||
|
|
2012e0c67a | ||
|
|
e8147cf7c6 | ||
|
|
0d9c948b9b | ||
|
|
0512113bdd | ||
|
|
7c0df348f8 | ||
|
|
0c1f732c64 | ||
|
|
faa3073625 | ||
|
|
283f4d8eb3 | ||
|
|
a4883a029f | ||
|
|
809b4ae0f6 | ||
|
|
7f94b266c7 | ||
|
|
b2181ac814 | ||
|
|
b0798e0a72 | ||
|
|
9831ba20b2 | ||
|
|
485e04d9df | ||
|
|
1adfc272a8 | ||
|
|
9caf53f8c6 | ||
|
|
86d6aba012 | ||
|
|
fca36cc03d | ||
|
|
b71094b01c | ||
|
|
edc281ac5f | ||
|
|
ee2cef3b2e | ||
|
|
54eff2d778 | ||
|
|
c9ac5b0f74 | ||
|
|
28357d657b | ||
|
|
20ea78945e | ||
|
|
dd60382fc3 | ||
|
|
32c6126593 | ||
|
|
8ec1bb382a | ||
|
|
cac9562c05 | ||
|
|
03371b74d7 | ||
|
|
c99aa7bdcf | ||
|
|
5208b04821 | ||
|
|
d31303a592 | ||
|
|
9a03df7bd8 | ||
|
|
67820506cb | ||
|
|
8c9e6746ce | ||
|
|
b9876df5dc | ||
|
|
a9d5656a46 | ||
|
|
3647cc5b07 | ||
|
|
a5963d1377 | ||
|
|
c3ad210846 | ||
|
|
618f523124 | ||
|
|
cc341b8734 | ||
|
|
52b664b0ae | ||
|
|
8fe0864680 | ||
|
|
5fcbaefd0b | ||
|
|
e1ae4ad449 | ||
|
|
7f9fd08792 | ||
|
|
c7132e5d22 | ||
|
|
c43ea30e75 | ||
|
|
cf7ab07264 | ||
|
|
8b4ed8c505 | ||
|
|
4eb3ad192e | ||
|
|
5d15563ea7 | ||
|
|
2b6c136dda | ||
|
|
a3cc4b0b80 | ||
|
|
721d3a9a57 | ||
|
|
36572f03a7 | ||
|
|
a32dffb0e8 | ||
|
|
e22e83b19a | ||
|
|
d3d9ed62e2 | ||
|
|
23fc50c61b | ||
|
|
be7da48dad | ||
|
|
3af35d922e | ||
|
|
faa3aa14ed | ||
|
|
b0023f66b0 | ||
|
|
109395daaa | ||
|
|
dbf8645aaf | ||
|
|
c03bf14e02 | ||
|
|
f73a5f067a | ||
|
|
1471585af0 | ||
|
|
afe83af219 | ||
|
|
0bf2d24cb0 | ||
|
|
cbccbf977c | ||
|
|
5a0bae1dae | ||
|
|
e8fb965ccb | ||
|
|
d709815106 | ||
|
|
f59f515def | ||
|
|
f0440e85dc | ||
|
|
71defc11fa | ||
|
|
554f4f6f7d | ||
|
|
6c66cb3fa9 | ||
|
|
45ce820b11 | ||
|
|
edbb8d407e | ||
|
|
76d7bad722 | ||
|
|
a0af7de58e | ||
|
|
050684450b | ||
|
|
e18b96b486 | ||
|
|
53eb59ed81 | ||
|
|
af6875f4b2 | ||
|
|
fb903619e8 | ||
|
|
a77dcd1041 | ||
|
|
66af749023 | ||
|
|
2096b3a9ed | ||
|
|
fedd4c906f | ||
|
|
70221c36e3 | ||
|
|
78cb04cca3 | ||
|
|
14a6e6a9ce | ||
|
|
3e5a7b34b1 | ||
|
|
a4ca9927ab | ||
|
|
c9852c4929 | ||
|
|
9b1f11695d | ||
|
|
cb9ca992de | ||
|
|
87a5e94525 | ||
|
|
e94e5ac75d | ||
|
|
b98cc2fb4e | ||
|
|
fde3e01f80 | ||
|
|
c496aad20b | ||
|
|
8adad0654a | ||
|
|
5757f5df2a | ||
|
|
91824af46b | ||
|
|
39b8c83ba6 | ||
|
|
7c91159449 | ||
|
|
dd45197bcd | ||
|
|
bcb3ad7332 | ||
|
|
4f20e8f649 | ||
|
|
1f6df0cd52 | ||
|
|
2582d719b2 | ||
|
|
69d83b1da5 | ||
|
|
231ad9b562 | ||
|
|
ed64434dcc | ||
|
|
e798f221dd | ||
|
|
c54788338a | ||
|
|
60f9966cd8 | ||
|
|
ebdf339a61 | ||
|
|
f1da6f0564 | ||
|
|
3424bf17ca | ||
|
|
70c8656640 | ||
|
|
ee04c6ff67 | ||
|
|
5a692b9f2b | ||
|
|
471bd398f3 | ||
|
|
1b597b8ca9 | ||
|
|
9e481804a7 | ||
|
|
76cd14ab7b | ||
|
|
17674fb888 | ||
|
|
91aa189ef3 | ||
|
|
e6a68f0c3a | ||
|
|
abb2bebf7f | ||
|
|
d2ab322267 | ||
|
|
c3293641e7 | ||
|
|
da7828f336 | ||
|
|
c5481b7654 | ||
|
|
21724f7ef9 | ||
|
|
183dbcc6a0 | ||
|
|
e85d5dd428 | ||
|
|
64c2550b31 | ||
|
|
38d6b67b5c | ||
|
|
922974c760 | ||
|
|
c0de11955b | ||
|
|
a0f35d3248 | ||
|
|
68e5568804 | ||
|
|
883810b533 | ||
|
|
5516efdfa0 | ||
|
|
21f8806eed | ||
|
|
bf850974f3 | ||
|
|
338b698091 | ||
|
|
16e52327a4 | ||
|
|
0e8ca84b67 | ||
|
|
45a0974f6f | ||
|
|
05d2d8f27d | ||
|
|
ca6e3f6def | ||
|
|
d3a159ad3d | ||
|
|
0f93da400a | ||
|
|
e16fd323e8 | ||
|
|
d0438ac10a | ||
|
|
6ca99709d2 | ||
|
|
bbde892d50 | ||
|
|
c535d0d246 | ||
|
|
f3818478e2 | ||
|
|
ee7c16a8d9 | ||
|
|
bb72347acf | ||
|
|
1c85d8c66b | ||
|
|
43f1214f97 | ||
|
|
0651af9dfd | ||
|
|
c81804444f | ||
|
|
ef7f3f36e2 | ||
|
|
f7d4e3cd6b | ||
|
|
6b08efabf8 | ||
|
|
b962779a13 | ||
|
|
a3c8f83562 | ||
|
|
3a9a252f6e | ||
|
|
61cd1594b5 | ||
|
|
11c26e3211 | ||
|
|
aec3e26ea0 | ||
|
|
6d5d539a85 | ||
|
|
a0c97b663d | ||
|
|
6930260962 | ||
|
|
5fd2a98fcb | ||
|
|
4ba150954e | ||
|
|
a96c8c8af9 | ||
|
|
59a7b13019 | ||
|
|
32b09d652d | ||
|
|
f4c13f8656 | ||
|
|
7f0c974008 | ||
|
|
9cf77cdbad | ||
|
|
1cd7d4456b | ||
|
|
c5729d7ecc | ||
|
|
d811920d8b | ||
|
|
9c6aca7893 | ||
|
|
6b644c17a7 | ||
|
|
ca13e3b105 | ||
|
|
7cb065489c | ||
|
|
c23a971a1f | ||
|
|
91c75c9305 | ||
|
|
28a48f1d9a | ||
|
|
8a2698ad5e | ||
|
|
086acd122b | ||
|
|
d092d05a31 | ||
|
|
ce43a9500f | ||
|
|
ab8d96258e | ||
|
|
3f82d5172f | ||
|
|
11aa7da6c3 | ||
|
|
5768b18a3b | ||
|
|
710bbed1a2 | ||
|
|
a9a6585913 | ||
|
|
4d18798468 | ||
|
|
116516158d | ||
|
|
cf1ae41bc0 | ||
|
|
8280dd65e6 | ||
|
|
3238894a3b | ||
|
|
ca747f2688 | ||
|
|
7d6ba88d2b | ||
|
|
d927c154e7 | ||
|
|
25dd46061f | ||
|
|
afc92fb7d7 | ||
|
|
891f725909 | ||
|
|
969e748dce | ||
|
|
e2bf5d1270 | ||
|
|
6a530ea371 | ||
|
|
0fccbeabcc | ||
|
|
720521ed4a | ||
|
|
e09f0a5f2c | ||
|
|
4f2e9c2640 | ||
|
|
834e43622c | ||
|
|
5714a82778 | ||
|
|
d9ce5f5f82 | ||
|
|
272b135b74 | ||
|
|
cc5501b12f | ||
|
|
52b63459e9 | ||
|
|
335dc9e687 | ||
|
|
03e139d23b | ||
|
|
1e94cb5286 | ||
|
|
6d28bf534f | ||
|
|
c0cad0b534 | ||
|
|
a83db489df | ||
|
|
035f0ffb8a | ||
|
|
b66a99e32d | ||
|
|
527a3bbc2a | ||
|
|
c0a030ef0a | ||
|
|
cd799926d2 | ||
|
|
35a82f8f4a | ||
|
|
2edf133b46 | ||
|
|
12643c7c57 | ||
|
|
5da03f2e36 | ||
|
|
90bb512f42 | ||
|
|
782910eaa7 | ||
|
|
3558dd5ed4 | ||
|
|
0a88010826 | ||
|
|
ee5e7f2b35 | ||
|
|
7d0348e4ba | ||
|
|
5660d598df | ||
|
|
5f49a659c3 | ||
|
|
7277c42047 | ||
|
|
e403b28eea | ||
|
|
97b98b1250 | ||
|
|
ebbc5e7cb8 | ||
|
|
7cc28c8b46 | ||
|
|
205e33bc83 | ||
|
|
6625b6ffbd | ||
|
|
b888652201 | ||
|
|
60fd2f3521 | ||
|
|
75e6406c1f | ||
|
|
3c3431d111 | ||
|
|
56a58ad70d | ||
|
|
00c5f9b9a6 | ||
|
|
3fb7ae2fa1 | ||
|
|
7660e1ed90 | ||
|
|
c5215fd4fb | ||
|
|
43cad69016 | ||
|
|
308c59320c | ||
|
|
1257e8b4b3 | ||
|
|
1323f60c07 | ||
|
|
e65c4ee93e | ||
|
|
49c710bf44 | ||
|
|
6253d10938 | ||
|
|
e0b6091d7e | ||
|
|
ec6ec62dd4 | ||
|
|
a30f5730b3 | ||
|
|
6724d27c0c | ||
|
|
97786d03d5 | ||
|
|
274d5cc91c | ||
|
|
642630db15 | ||
|
|
45ec9c88e4 | ||
|
|
6a86c517c4 | ||
|
|
fe79a8f724 | ||
|
|
1f2547b8a7 | ||
|
|
22b4e9b617 | ||
|
|
01c1bce9c5 | ||
|
|
9a9e252cab | ||
|
|
b52b1fca89 | ||
|
|
2ea4c632d1 | ||
|
|
fa1db8d2dc | ||
|
|
0db86e4485 | ||
|
|
9cf8ce9ef8 | ||
|
|
f567f89b99 | ||
|
|
7705b23f24 | ||
|
|
f3d27bf5d8 | ||
|
|
c68ff9886b | ||
|
|
f21eb88ad1 | ||
|
|
c642094cac | ||
|
|
3520771d68 | ||
|
|
c17381b853 | ||
|
|
59d8dc3950 | ||
|
|
38ea6a6d5d | ||
|
|
82d0f65dab | ||
|
|
c135b389fe | ||
|
|
bdc0d1b7ad | ||
|
|
ae837c4719 | ||
|
|
3002570085 | ||
|
|
344e827061 | ||
|
|
2be2fc7974 | ||
|
|
826c827e6b | ||
|
|
2b9b02812e | ||
|
|
07578fe25f | ||
|
|
07734c1e1c | ||
|
|
095d5baaed | ||
|
|
8ea7e21f64 | ||
|
|
3274e0a249 | ||
|
|
b15a4985e8 | ||
|
|
85e0447684 | ||
|
|
13e18e1d8f | ||
|
|
1c983ed80c | ||
|
|
96fcc1da32 | ||
|
|
d5efeab8f9 | ||
|
|
54bcee512d | ||
|
|
685ea3e9a9 | ||
|
|
694ef47041 | ||
|
|
9d887234ea | ||
|
|
e2e338929f | ||
|
|
8162aff8cf | ||
|
|
ea873304ca | ||
|
|
f80984491a | ||
|
|
e7770b2332 | ||
|
|
be543a6d17 | ||
|
|
6c6e8b0fd7 | ||
|
|
fbd53f0e34 | ||
|
|
79320e2868 | ||
|
|
f7fb5b902c | ||
|
|
8275059856 | ||
|
|
92f2abdf76 | ||
|
|
c1de7bcec5 | ||
|
|
8577e9116e | ||
|
|
5b1613d65b | ||
|
|
c1d0ea7366 | ||
|
|
833a1a4eab | ||
|
|
9d492b0509 | ||
|
|
bfed1c7cac | ||
|
|
d2bc57cd34 | ||
|
|
3d2c3b0107 | ||
|
|
a482b0cc1b | ||
|
|
00533003b7 | ||
|
|
b0be847416 | ||
|
|
d65b4cd0dd | ||
|
|
f1b354e6aa | ||
|
|
570ab249b3 | ||
|
|
c6d6ca283d | ||
|
|
30c5922aa4 | ||
|
|
59a68b316f | ||
|
|
893da20ead | ||
|
|
d7c5936ac4 | ||
|
|
ceada15290 | ||
|
|
b462ca4aad | ||
|
|
601340bd46 | ||
|
|
aa7c53b7ef | ||
|
|
15dd8fd794 | ||
|
|
a9d89d1f59 | ||
|
|
f6a9aa4110 | ||
|
|
8ee8ec8a36 | ||
|
|
33f80fef21 | ||
|
|
e1f5e12abb | ||
|
|
7de2c7f176 | ||
|
|
839bd73fbb | ||
|
|
b72d3528bf | ||
|
|
3f7ec1a83f | ||
|
|
8fa19664e6 | ||
|
|
9d06f9e6fb | ||
|
|
c0fcefa3a0 | ||
|
|
c9f3d1c00b | ||
|
|
f87ce15ad2 | ||
|
|
179255c3fe | ||
|
|
4fad5958d0 | ||
|
|
e98b53bbef | ||
|
|
4b8c50e2cd | ||
|
|
1e7b3cbb13 | ||
|
|
ce07d9bb4c | ||
|
|
507fc7b9d1 | ||
|
|
4f4175a3e2 | ||
|
|
c7e73ba12d | ||
|
|
b30b9ab8cb | ||
|
|
0afdedb01a | ||
|
|
6c7255cde2 | ||
|
|
f2234264ed | ||
|
|
95a8ebc249 | ||
|
|
88a9c62fcc | ||
|
|
b29c1eecd1 | ||
|
|
d69db6e617 | ||
|
|
d8b5bbd48c | ||
|
|
22e2c3429b | ||
|
|
4cc5b03137 | ||
|
|
a3fb7008b2 | ||
|
|
55c1c220d0 | ||
|
|
5971c82094 | ||
|
|
1a98bbf1c8 | ||
|
|
377c995103 | ||
|
|
c006ed4ffd | ||
|
|
8ecb24f114 | ||
|
|
3a45cdeaf9 | ||
|
|
a4a4ffbeff | ||
|
|
f5737b929a | ||
|
|
c66cf95b40 | ||
|
|
73b9ae9579 | ||
|
|
4bfd717ba2 | ||
|
|
510ff56363 | ||
|
|
a0ec843832 | ||
|
|
660cd26f31 | ||
|
|
6ad14c1a15 | ||
|
|
cca8585554 | ||
|
|
18cc35338a | ||
|
|
681eacaa7f | ||
|
|
b20c0b1d59 | ||
|
|
f2a1260294 | ||
|
|
06ea7fc830 | ||
|
|
ed05779adb | ||
|
|
8f69c2ac45 | ||
|
|
504d356232 | ||
|
|
059ad35215 | ||
|
|
9bc5c4a0c5 | ||
|
|
4afb624c45 | ||
|
|
39b6eaf51c | ||
|
|
d4cc125456 | ||
|
|
dc994b3518 | ||
|
|
8e7daec886 | ||
|
|
b3da104e56 | ||
|
|
0936e5ccf5 | ||
|
|
531b3a96eb | ||
|
|
3dae732f36 | ||
|
|
1e241e3a61 | ||
|
|
24f2b2afc3 | ||
|
|
357b4bc14c | ||
|
|
5adbd39946 | ||
|
|
6dac014978 | ||
|
|
4d405f6654 | ||
|
|
bbcf304b99 | ||
|
|
c866fcc5b3 | ||
|
|
d7eca7bcc1 | ||
|
|
68028f492f | ||
|
|
8629d9a418 | ||
|
|
c7623c3165 | ||
|
|
ba95849097 | ||
|
|
bb3e28310e | ||
|
|
a5b7279cb5 | ||
|
|
c5b009ba6f | ||
|
|
e72a782bf0 | ||
|
|
7413552a28 | ||
|
|
b7a636b894 | ||
|
|
e5b97fe03e | ||
|
|
2ea05292c0 | ||
|
|
e4a6ee3d7f | ||
|
|
7264044122 | ||
|
|
f1d6f1bd17 | ||
|
|
c95a27e394 | ||
|
|
066940f134 | ||
|
|
07c12f0b92 | ||
|
|
5883446b21 | ||
|
|
9bcb3d2216 | ||
|
|
424b0b8bac | ||
|
|
30ee32a725 | ||
|
|
f5fbbb147f | ||
|
|
147a74dff2 | ||
|
|
60afd02e59 | ||
|
|
fd1aa869e1 | ||
|
|
334c41d088 | ||
|
|
4a656eff7b | ||
|
|
73fd358d94 | ||
|
|
f247f0c518 | ||
|
|
f6d1bfe45b | ||
|
|
c2fb9f06ad | ||
|
|
67de76c217 | ||
|
|
02acef23d5 | ||
|
|
5a83114efd | ||
|
|
42123b4396 | ||
|
|
0ae6a38825 | ||
|
|
8ab6c53231 | ||
|
|
1d26ae2dea | ||
|
|
d2edc2bbf4 | ||
|
|
8db7d791f0 | ||
|
|
a50b4f6b11 | ||
|
|
156495732b | ||
|
|
3c4fb01da3 | ||
|
|
c00b1dd508 | ||
|
|
0de31a3898 | ||
|
|
24349bc431 | ||
|
|
1f7b13ff4e | ||
|
|
04c00f40f0 | ||
|
|
9e9b7a520e | ||
|
|
f995f5763b | ||
|
|
6292c5ad5a | ||
|
|
a9a564c226 | ||
|
|
04b6e413d9 | ||
|
|
aa9341570b | ||
|
|
f4a96ca588 | ||
|
|
48b41862ef | ||
|
|
3f503ffc7f | ||
|
|
ae0d4eb7aa | ||
|
|
cb8a7d979d | ||
|
|
b70fe3a9be | ||
|
|
dfa778fed6 | ||
|
|
8c4746a3df | ||
|
|
ce69334988 | ||
|
|
8c09602a8b | ||
|
|
da66eddfcc | ||
|
|
dfa38b3f91 | ||
|
|
36f221dbe7 | ||
|
|
7f100e9610 | ||
|
|
7ccf51fd30 | ||
|
|
3e400739a7 | ||
|
|
4a82230de5 | ||
|
|
884f792871 | ||
|
|
7931c6624c | ||
|
|
1b7cba1878 | ||
|
|
233f5200ef | ||
|
|
878e796c0a | ||
|
|
2b32f47d2c | ||
|
|
f91ad7b385 | ||
|
|
6da2954462 | ||
|
|
cc4224675f | ||
|
|
131c610da6 | ||
|
|
7613302b49 | ||
|
|
121632bedd | ||
|
|
ef6c5506c3 | ||
|
|
345e4bcfef | ||
|
|
2c81698f31 | ||
|
|
e4bbea400f |
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
||||
18
.github/CONTRIBUTING.md
vendored
Normal file
18
.github/CONTRIBUTING.md
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
## Can I have feature X
|
||||
|
||||
Before you do a feature request please check and make sure that it isn't possible
|
||||
through some other means. The JavaScript enabled console is a powerful feature
|
||||
in the right hands. Please check our [Bitchin' tricks](https://github.com/ethereum/go-ethereum/wiki/bitchin-tricks) wiki page for more info
|
||||
and help.
|
||||
|
||||
## Contributing
|
||||
|
||||
If you'd like to contribute to go-ethereum please fork, fix, commit and
|
||||
send a pull request. Commits which do not comply with the coding standards
|
||||
are ignored (use gofmt!). If you send pull requests make absolute sure that you
|
||||
commit on the `develop` branch and that you do not merge to master.
|
||||
Commits that are directly based on master are simply ignored.
|
||||
|
||||
See [Developers' Guide](https://github.com/ethereum/go-ethereum/wiki/Developers'-Guide)
|
||||
for more details on configuring your environment, testing, and
|
||||
dependency management.
|
||||
20
.github/ISSUE_TEMPLATE.md
vendored
Normal file
20
.github/ISSUE_TEMPLATE.md
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
#### System information
|
||||
|
||||
Geth version: `geth version`
|
||||
OS & Version: Windows/Linux/OSX
|
||||
Commit hash : (if `develop`)
|
||||
|
||||
#### Expected behaviour
|
||||
|
||||
|
||||
#### Actual behaviour
|
||||
|
||||
|
||||
#### Steps to reproduce the behaviour
|
||||
|
||||
|
||||
#### Backtrace
|
||||
|
||||
````
|
||||
[backtrace]
|
||||
````
|
||||
20
.gitignore
vendored
20
.gitignore
vendored
@@ -6,7 +6,27 @@
|
||||
|
||||
/tmp
|
||||
*/**/*un~
|
||||
*/**/*.test
|
||||
*un~
|
||||
.DS_Store
|
||||
*/**/.DS_Store
|
||||
.ethtest
|
||||
*/**/*tx_database*
|
||||
*/**/*dapps*
|
||||
build/_vendor/pkg
|
||||
|
||||
#*
|
||||
.#*
|
||||
*#
|
||||
*~
|
||||
.project
|
||||
.settings
|
||||
|
||||
# used by the Makefile
|
||||
/build/_workspace/
|
||||
/build/bin/
|
||||
/geth*.zip
|
||||
|
||||
# travis
|
||||
profile.tmp
|
||||
profile.cov
|
||||
|
||||
92
.mailmap
Normal file
92
.mailmap
Normal file
@@ -0,0 +1,92 @@
|
||||
Jeffrey Wilcke <jeffrey@ethereum.org>
|
||||
Jeffrey Wilcke <jeffrey@ethereum.org> <geffobscura@gmail.com>
|
||||
Jeffrey Wilcke <jeffrey@ethereum.org> <obscuren@obscura.com>
|
||||
Jeffrey Wilcke <jeffrey@ethereum.org> <obscuren@users.noreply.github.com>
|
||||
|
||||
Viktor Trón <viktor.tron@gmail.com>
|
||||
|
||||
Joseph Goulden <joegoulden@gmail.com>
|
||||
|
||||
Nick Savers <nicksavers@gmail.com>
|
||||
|
||||
Maran Hidskes <maran.hidskes@gmail.com>
|
||||
|
||||
Taylor Gerring <taylor.gerring@gmail.com>
|
||||
Taylor Gerring <taylor.gerring@gmail.com> <taylor.gerring@ethereum.org>
|
||||
|
||||
Bas van Kervel <bas@ethdev.com>
|
||||
Bas van Kervel <bas@ethdev.com> <basvankervel@ziggo.nl>
|
||||
Bas van Kervel <bas@ethdev.com> <basvankervel@gmail.com>
|
||||
Bas van Kervel <bas@ethdev.com> <bas-vk@users.noreply.github.com>
|
||||
|
||||
Sven Ehlert <sven@ethdev.com>
|
||||
|
||||
Vitalik Buterin <v@buterin.com>
|
||||
|
||||
Marian Oancea <contact@siteshop.ro>
|
||||
|
||||
Christoph Jentzsch <jentzsch.software@gmail.com>
|
||||
|
||||
Heiko Hees <heiko@heiko.org>
|
||||
|
||||
Alex Leverington <alex@ethdev.com>
|
||||
Alex Leverington <alex@ethdev.com> <subtly@users.noreply.github.com>
|
||||
|
||||
Zsolt Felföldi <zsfelfoldi@gmail.com>
|
||||
|
||||
Gavin Wood <i@gavwood.com>
|
||||
|
||||
Martin Becze <mjbecze@gmail.com>
|
||||
Martin Becze <mjbecze@gmail.com> <wanderer@users.noreply.github.com>
|
||||
|
||||
Dimitry Khokhlov <winsvega@mail.ru>
|
||||
|
||||
Roman Mandeleil <roman.mandeleil@gmail.com>
|
||||
|
||||
Alec Perseghin <aperseghin@gmail.com>
|
||||
|
||||
Alon Muroch <alonmuroch@gmail.com>
|
||||
|
||||
Arkadiy Paronyan <arkadiy@ethdev.com>
|
||||
|
||||
Jae Kwon <jkwon.work@gmail.com>
|
||||
|
||||
Aaron Kumavis <kumavis@users.noreply.github.com>
|
||||
|
||||
Nick Dodson <silentcicero@outlook.com>
|
||||
|
||||
Jason Carver <jacarver@linkedin.com>
|
||||
Jason Carver <jacarver@linkedin.com> <ut96caarrs@snkmail.com>
|
||||
|
||||
Joseph Chow <ethereum@outlook.com>
|
||||
Joseph Chow <ethereum@outlook.com> ethers <TODO>
|
||||
|
||||
Enrique Fynn <enriquefynn@gmail.com>
|
||||
|
||||
Vincent G <caktux@gmail.com>
|
||||
|
||||
RJ Catalano <rj@erisindustries.com>
|
||||
|
||||
Nchinda Nchinda <nchinda2@gmail.com>
|
||||
|
||||
Aron Fischer <homotopycolimit@users.noreply.github.com>
|
||||
|
||||
Vlad Gluhovsky <gluk256@users.noreply.github.com>
|
||||
|
||||
Ville Sundell <github@solarius.fi>
|
||||
|
||||
Elliot Shepherd <elliot@identitii.com>
|
||||
|
||||
Yohann Léon <sybiload@gmail.com>
|
||||
|
||||
Gregg Dourgarian <greggd@tempworks.com>
|
||||
|
||||
Casey Detrio <cdetrio@gmail.com>
|
||||
|
||||
Jens Agerberg <github@agerberg.me>
|
||||
|
||||
Nick Johnson <arachnid@notdot.net>
|
||||
|
||||
Henning Diedrich <hd@eonblast.com>
|
||||
Henning Diedrich <hd@eonblast.com> Drake Burroughs <wildfyre@hotmail.com>
|
||||
|
||||
102
.travis.yml
102
.travis.yml
@@ -1,4 +1,100 @@
|
||||
before_install: sudo apt-get install libgmp3-dev
|
||||
language: go
|
||||
go:
|
||||
- 1.2
|
||||
go_import_path: github.com/ethereum/go-ethereum
|
||||
sudo: false
|
||||
matrix:
|
||||
include:
|
||||
- os: linux
|
||||
dist: trusty
|
||||
go: 1.5.4
|
||||
env:
|
||||
- GO15VENDOREXPERIMENT=1
|
||||
- os: linux
|
||||
dist: trusty
|
||||
go: 1.6.2
|
||||
- os: linux
|
||||
dist: trusty
|
||||
go: 1.7
|
||||
- os: osx
|
||||
go: 1.7
|
||||
|
||||
# This builder does the Ubuntu PPA and Linux Azure uploads
|
||||
- os: linux
|
||||
dist: trusty
|
||||
sudo: required
|
||||
go: 1.7
|
||||
env:
|
||||
- ubuntu-ppa
|
||||
- azure-linux
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- devscripts
|
||||
- debhelper
|
||||
- dput
|
||||
- gcc-multilib
|
||||
script:
|
||||
# Build for the primary platforms that Trusty can manage
|
||||
- go run build/ci.go debsrc -signer "Go Ethereum Linux Builder <geth-ci@ethereum.org>" -upload ppa:ethereum/ethereum
|
||||
- go run build/ci.go install
|
||||
- go run build/ci.go archive -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
|
||||
- go run build/ci.go install -arch 386
|
||||
- go run build/ci.go archive -arch 386 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
|
||||
|
||||
# Switch over GCC to cross compilation (breaks 386, hence why do it here only)
|
||||
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install gcc-arm-linux-gnueabi libc6-dev-armel-cross gcc-arm-linux-gnueabihf libc6-dev-armhf-cross gcc-aarch64-linux-gnu libc6-dev-arm64-cross
|
||||
- sudo ln -s /usr/include/asm-generic /usr/include/asm
|
||||
|
||||
- GOARM=5 CC=arm-linux-gnueabi-gcc go run build/ci.go install -arch arm
|
||||
- GOARM=5 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
|
||||
- GOARM=6 CC=arm-linux-gnueabi-gcc go run build/ci.go install -arch arm
|
||||
- GOARM=6 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
|
||||
- GOARM=7 CC=arm-linux-gnueabihf-gcc go run build/ci.go install -arch arm
|
||||
- GOARM=7 go run build/ci.go archive -arch arm -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
|
||||
- CC=aarch64-linux-gnu-gcc go run build/ci.go install -arch arm64
|
||||
- go run build/ci.go archive -arch arm64 -type tar -signer LINUX_SIGNING_KEY -upload gethstore/builds
|
||||
|
||||
# This builder does the OSX Azure, Android Maven and Azure and iOS CocoaPods and Azure uploads
|
||||
- os: osx
|
||||
go: 1.7
|
||||
env:
|
||||
- azure-osx
|
||||
- mobile
|
||||
script:
|
||||
- go run build/ci.go install
|
||||
- go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -upload gethstore/builds
|
||||
|
||||
# Build the Android archive and upload it to Maven Central and Azure
|
||||
- brew update
|
||||
- brew install android-sdk maven gpg
|
||||
- alias gpg="gpg2"
|
||||
|
||||
- export ANDROID_HOME=/usr/local/opt/android-sdk
|
||||
- echo "y" | android update sdk --no-ui --filter `android list sdk | grep "SDK Platform Android" | grep -E 'API 15|API 19|API 24' | awk '{print $1}' | cut -d '-' -f 1 | tr '\n' ','`
|
||||
|
||||
- go run build/ci.go aar -signer ANDROID_SIGNING_KEY -deploy https://oss.sonatype.org -upload gethstore/builds
|
||||
|
||||
# Build the iOS framework and upload it to CocoaPods and Azure
|
||||
- gem uninstall cocoapods -a
|
||||
- gem install cocoapods --pre
|
||||
|
||||
- mv ~/.cocoapods/repos/master ~/.cocoapods/repos/master.bak
|
||||
- sed -i '.bak' 's/repo.join/!repo.join/g' $(dirname `gem which cocoapods`)/cocoapods/sources_manager.rb
|
||||
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git clone --depth=1 https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master && pod setup --verbose; fi
|
||||
|
||||
- xctool -version
|
||||
- xcrun simctl list
|
||||
|
||||
- go run build/ci.go xcode -signer IOS_SIGNING_KEY -deploy trunk -upload gethstore/builds
|
||||
|
||||
install:
|
||||
- go get golang.org/x/tools/cmd/cover
|
||||
script:
|
||||
- go run build/ci.go install
|
||||
- go run build/ci.go test -coverage -vet
|
||||
|
||||
notifications:
|
||||
webhooks:
|
||||
urls:
|
||||
- https://webhooks.gitter.im/e/e09ccdce1048c5e03445
|
||||
on_success: change
|
||||
on_failure: always
|
||||
|
||||
63
AUTHORS
Normal file
63
AUTHORS
Normal file
@@ -0,0 +1,63 @@
|
||||
# This is the official list of go-ethereum authors for copyright purposes.
|
||||
|
||||
Ales Katona <ales@coinbase.com>
|
||||
Alex Leverington <alex@ethdev.com>
|
||||
Alexandre Van de Sande <alex.vandesande@ethdev.com>
|
||||
Aron Fischer <homotopycolimit@users.noreply.github.com>
|
||||
Bas van Kervel <bas@ethdev.com>
|
||||
Benjamin Brent <benjamin@benjaminbrent.com>
|
||||
Casey Detrio <cdetrio@gmail.com>
|
||||
Christoph Jentzsch <jentzsch.software@gmail.com>
|
||||
Daniel A. Nagy <nagy.da@gmail.com>
|
||||
Elliot Shepherd <elliot@identitii.com>
|
||||
Enrique Fynn <enriquefynn@gmail.com>
|
||||
Ethan Buchman <ethan@coinculture.info>
|
||||
Fabian Vogelsteller <fabian@frozeman.de>
|
||||
Fabio Berger <fabioberger1991@gmail.com>
|
||||
Felix Lange <fjl@twurst.com>
|
||||
Gregg Dourgarian <greggd@tempworks.com>
|
||||
Gustav Simonsson <gustav.simonsson@gmail.com>
|
||||
Hao Bryan Cheng <haobcheng@gmail.com>
|
||||
Henning Diedrich <hd@eonblast.com>
|
||||
Isidoro Ghezzi <isidoro.ghezzi@icloud.com>
|
||||
Jae Kwon <jkwon.work@gmail.com>
|
||||
Jason Carver <jacarver@linkedin.com>
|
||||
Jeff R. Allen <jra@nella.org>
|
||||
Jeffrey Wilcke <jeffrey@ethereum.org>
|
||||
Jens Agerberg <github@agerberg.me>
|
||||
Jonathan Brown <jbrown@bluedroplet.com>
|
||||
Joseph Chow <ethereum@outlook.com>
|
||||
Justin Clark-Casey <justincc@justincc.org>
|
||||
Kenji Siu <kenji@isuntv.com>
|
||||
Kobi Gurkan <kobigurk@gmail.com>
|
||||
Lefteris Karapetsas <lefteris@refu.co>
|
||||
Leif Jurvetson <leijurv@gmail.com>
|
||||
Maran Hidskes <maran.hidskes@gmail.com>
|
||||
Marek Kotewicz <marek.kotewicz@gmail.com>
|
||||
Martin Holst Swende <martin@swende.se>
|
||||
Matthew Di Ferrante <mattdf@users.noreply.github.com>
|
||||
Matthew Wampler-Doty <matthew.wampler.doty@gmail.com>
|
||||
Nchinda Nchinda <nchinda2@gmail.com>
|
||||
Nick Dodson <silentcicero@outlook.com>
|
||||
Nick Johnson <arachnid@notdot.net>
|
||||
Paulo L F Casaretto <pcasaretto@gmail.com>
|
||||
Peter Pratscher <pratscher@gmail.com>
|
||||
Péter Szilágyi <peterke@gmail.com>
|
||||
RJ Catalano <rj@erisindustries.com>
|
||||
Ramesh Nair <ram@hiddentao.com>
|
||||
Ricardo Catalinas Jiménez <r@untroubled.be>
|
||||
Rémy Roy <remyroy@remyroy.com>
|
||||
Stein Dekker <dekker.stein@gmail.com>
|
||||
Steven Roose <stevenroose@gmail.com>
|
||||
Taylor Gerring <taylor.gerring@gmail.com>
|
||||
Thomas Bocek <tom@tomp2p.net>
|
||||
Tosh Camille <tochecamille@gmail.com>
|
||||
Viktor Trón <viktor.tron@gmail.com>
|
||||
Ville Sundell <github@solarius.fi>
|
||||
Vincent G <caktux@gmail.com>
|
||||
Vitalik Buterin <v@buterin.com>
|
||||
Vlad Gluhovsky <gluk256@users.noreply.github.com>
|
||||
Yohann Léon <sybiload@gmail.com>
|
||||
Yoichi Hirai <i@yoichihirai.com>
|
||||
Zsolt Felföldi <zsfelfoldi@gmail.com>
|
||||
ΞTHΞЯSPHΞЯΞ <{viktor.tron,nagydani,zsfelfoldi}@gmail.com>
|
||||
619
COPYING
Normal file
619
COPYING
Normal file
@@ -0,0 +1,619 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2014 The go-ethereum Authors.
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
165
COPYING.LESSER
Normal file
165
COPYING.LESSER
Normal file
@@ -0,0 +1,165 @@
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
|
||||
This version of the GNU Lesser General Public License incorporates
|
||||
the terms and conditions of version 3 of the GNU General Public
|
||||
License, supplemented by the additional permissions listed below.
|
||||
|
||||
0. Additional Definitions.
|
||||
|
||||
As used herein, "this License" refers to version 3 of the GNU Lesser
|
||||
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
||||
General Public License.
|
||||
|
||||
"The Library" refers to a covered work governed by this License,
|
||||
other than an Application or a Combined Work as defined below.
|
||||
|
||||
An "Application" is any work that makes use of an interface provided
|
||||
by the Library, but which is not otherwise based on the Library.
|
||||
Defining a subclass of a class defined by the Library is deemed a mode
|
||||
of using an interface provided by the Library.
|
||||
|
||||
A "Combined Work" is a work produced by combining or linking an
|
||||
Application with the Library. The particular version of the Library
|
||||
with which the Combined Work was made is also called the "Linked
|
||||
Version".
|
||||
|
||||
The "Minimal Corresponding Source" for a Combined Work means the
|
||||
Corresponding Source for the Combined Work, excluding any source code
|
||||
for portions of the Combined Work that, considered in isolation, are
|
||||
based on the Application, and not on the Linked Version.
|
||||
|
||||
The "Corresponding Application Code" for a Combined Work means the
|
||||
object code and/or source code for the Application, including any data
|
||||
and utility programs needed for reproducing the Combined Work from the
|
||||
Application, but excluding the System Libraries of the Combined Work.
|
||||
|
||||
1. Exception to Section 3 of the GNU GPL.
|
||||
|
||||
You may convey a covered work under sections 3 and 4 of this License
|
||||
without being bound by section 3 of the GNU GPL.
|
||||
|
||||
2. Conveying Modified Versions.
|
||||
|
||||
If you modify a copy of the Library, and, in your modifications, a
|
||||
facility refers to a function or data to be supplied by an Application
|
||||
that uses the facility (other than as an argument passed when the
|
||||
facility is invoked), then you may convey a copy of the modified
|
||||
version:
|
||||
|
||||
a) under this License, provided that you make a good faith effort to
|
||||
ensure that, in the event an Application does not supply the
|
||||
function or data, the facility still operates, and performs
|
||||
whatever part of its purpose remains meaningful, or
|
||||
|
||||
b) under the GNU GPL, with none of the additional permissions of
|
||||
this License applicable to that copy.
|
||||
|
||||
3. Object Code Incorporating Material from Library Header Files.
|
||||
|
||||
The object code form of an Application may incorporate material from
|
||||
a header file that is part of the Library. You may convey such object
|
||||
code under terms of your choice, provided that, if the incorporated
|
||||
material is not limited to numerical parameters, data structure
|
||||
layouts and accessors, or small macros, inline functions and templates
|
||||
(ten or fewer lines in length), you do both of the following:
|
||||
|
||||
a) Give prominent notice with each copy of the object code that the
|
||||
Library is used in it and that the Library and its use are
|
||||
covered by this License.
|
||||
|
||||
b) Accompany the object code with a copy of the GNU GPL and this license
|
||||
document.
|
||||
|
||||
4. Combined Works.
|
||||
|
||||
You may convey a Combined Work under terms of your choice that,
|
||||
taken together, effectively do not restrict modification of the
|
||||
portions of the Library contained in the Combined Work and reverse
|
||||
engineering for debugging such modifications, if you also do each of
|
||||
the following:
|
||||
|
||||
a) Give prominent notice with each copy of the Combined Work that
|
||||
the Library is used in it and that the Library and its use are
|
||||
covered by this License.
|
||||
|
||||
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
||||
document.
|
||||
|
||||
c) For a Combined Work that displays copyright notices during
|
||||
execution, include the copyright notice for the Library among
|
||||
these notices, as well as a reference directing the user to the
|
||||
copies of the GNU GPL and this license document.
|
||||
|
||||
d) Do one of the following:
|
||||
|
||||
0) Convey the Minimal Corresponding Source under the terms of this
|
||||
License, and the Corresponding Application Code in a form
|
||||
suitable for, and under terms that permit, the user to
|
||||
recombine or relink the Application with a modified version of
|
||||
the Linked Version to produce a modified Combined Work, in the
|
||||
manner specified by section 6 of the GNU GPL for conveying
|
||||
Corresponding Source.
|
||||
|
||||
1) Use a suitable shared library mechanism for linking with the
|
||||
Library. A suitable mechanism is one that (a) uses at run time
|
||||
a copy of the Library already present on the user's computer
|
||||
system, and (b) will operate properly with a modified version
|
||||
of the Library that is interface-compatible with the Linked
|
||||
Version.
|
||||
|
||||
e) Provide Installation Information, but only if you would otherwise
|
||||
be required to provide such information under section 6 of the
|
||||
GNU GPL, and only to the extent that such information is
|
||||
necessary to install and execute a modified version of the
|
||||
Combined Work produced by recombining or relinking the
|
||||
Application with a modified version of the Linked Version. (If
|
||||
you use option 4d0, the Installation Information must accompany
|
||||
the Minimal Corresponding Source and Corresponding Application
|
||||
Code. If you use option 4d1, you must provide the Installation
|
||||
Information in the manner specified by section 6 of the GNU GPL
|
||||
for conveying Corresponding Source.)
|
||||
|
||||
5. Combined Libraries.
|
||||
|
||||
You may place library facilities that are a work based on the
|
||||
Library side by side in a single library together with other library
|
||||
facilities that are not Applications and are not covered by this
|
||||
License, and convey such a combined library under terms of your
|
||||
choice, if you do both of the following:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work based
|
||||
on the Library, uncombined with any other library facilities,
|
||||
conveyed under the terms of this License.
|
||||
|
||||
b) Give prominent notice with the combined library that part of it
|
||||
is a work based on the Library, and explaining where to find the
|
||||
accompanying uncombined form of the same work.
|
||||
|
||||
6. Revised Versions of the GNU Lesser General Public License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions
|
||||
of the GNU Lesser General Public License from time to time. Such new
|
||||
versions will be similar in spirit to the present version, but may
|
||||
differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Library as you received it specifies that a certain numbered version
|
||||
of the GNU Lesser General Public License "or any later version"
|
||||
applies to it, you have the option of following the terms and
|
||||
conditions either of that published version or of any later version
|
||||
published by the Free Software Foundation. If the Library as you
|
||||
received it does not specify a version number of the GNU Lesser
|
||||
General Public License, you may choose any version of the GNU Lesser
|
||||
General Public License ever published by the Free Software Foundation.
|
||||
|
||||
If the Library as you received it specifies that a proxy can decide
|
||||
whether future versions of the GNU Lesser General Public License shall
|
||||
apply, that proxy's public statement of acceptance of any version is
|
||||
permanent authorization for you to choose that version for the
|
||||
Library.
|
||||
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM alpine:3.3
|
||||
|
||||
ADD . /go-ethereum
|
||||
RUN \
|
||||
apk add --update git go make gcc musl-dev && \
|
||||
(cd go-ethereum && make geth) && \
|
||||
cp go-ethereum/build/bin/geth /geth && \
|
||||
apk del git go make gcc musl-dev && \
|
||||
rm -rf /go-ethereum && rm -rf /var/cache/apk/*
|
||||
|
||||
EXPOSE 8545
|
||||
EXPOSE 30303
|
||||
|
||||
ENTRYPOINT ["/geth"]
|
||||
124
Makefile
Normal file
124
Makefile
Normal file
@@ -0,0 +1,124 @@
|
||||
# This Makefile is meant to be used by people that do not usually work
|
||||
# with Go source code. If you know what GOPATH is then you probably
|
||||
# don't need to bother with make.
|
||||
|
||||
.PHONY: geth geth-cross evm all test clean
|
||||
.PHONY: geth-linux geth-linux-386 geth-linux-amd64 geth-linux-mips64 geth-linux-mips64le
|
||||
.PHONY: geth-linux-arm geth-linux-arm-5 geth-linux-arm-6 geth-linux-arm-7 geth-linux-arm64
|
||||
.PHONY: geth-darwin geth-darwin-386 geth-darwin-amd64
|
||||
.PHONY: geth-windows geth-windows-386 geth-windows-amd64
|
||||
.PHONY: geth-android geth-ios
|
||||
|
||||
GOBIN = build/bin
|
||||
GO ?= latest
|
||||
|
||||
geth:
|
||||
build/env.sh go run build/ci.go install ./cmd/geth
|
||||
@echo "Done building."
|
||||
@echo "Run \"$(GOBIN)/geth\" to launch geth."
|
||||
|
||||
evm:
|
||||
build/env.sh go run build/ci.go install ./cmd/evm
|
||||
@echo "Done building."
|
||||
@echo "Run \"$(GOBIN)/evm to start the evm."
|
||||
|
||||
all:
|
||||
build/env.sh go run build/ci.go install
|
||||
|
||||
test: all
|
||||
build/env.sh go run build/ci.go test
|
||||
|
||||
clean:
|
||||
rm -fr build/_workspace/pkg/ $(GOBIN)/*
|
||||
|
||||
# Cross Compilation Targets (xgo)
|
||||
|
||||
geth-cross: geth-linux geth-darwin geth-windows geth-android geth-ios
|
||||
@echo "Full cross compilation done:"
|
||||
@ls -ld $(GOBIN)/geth-*
|
||||
|
||||
geth-linux: geth-linux-386 geth-linux-amd64 geth-linux-arm geth-linux-mips64 geth-linux-mips64le
|
||||
@echo "Linux cross compilation done:"
|
||||
@ls -ld $(GOBIN)/geth-linux-*
|
||||
|
||||
geth-linux-386:
|
||||
build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=linux/386 -v ./cmd/geth
|
||||
@echo "Linux 386 cross compilation done:"
|
||||
@ls -ld $(GOBIN)/geth-linux-* | grep 386
|
||||
|
||||
geth-linux-amd64:
|
||||
build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=linux/amd64 -v ./cmd/geth
|
||||
@echo "Linux amd64 cross compilation done:"
|
||||
@ls -ld $(GOBIN)/geth-linux-* | grep amd64
|
||||
|
||||
geth-linux-arm: geth-linux-arm-5 geth-linux-arm-6 geth-linux-arm-7 geth-linux-arm64
|
||||
@echo "Linux ARM cross compilation done:"
|
||||
@ls -ld $(GOBIN)/geth-linux-* | grep arm
|
||||
|
||||
geth-linux-arm-5:
|
||||
build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=linux/arm-5 -v ./cmd/geth
|
||||
@echo "Linux ARMv5 cross compilation done:"
|
||||
@ls -ld $(GOBIN)/geth-linux-* | grep arm-5
|
||||
|
||||
geth-linux-arm-6:
|
||||
build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=linux/arm-6 -v ./cmd/geth
|
||||
@echo "Linux ARMv6 cross compilation done:"
|
||||
@ls -ld $(GOBIN)/geth-linux-* | grep arm-6
|
||||
|
||||
geth-linux-arm-7:
|
||||
build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=linux/arm-7 -v ./cmd/geth
|
||||
@echo "Linux ARMv7 cross compilation done:"
|
||||
@ls -ld $(GOBIN)/geth-linux-* | grep arm-7
|
||||
|
||||
geth-linux-arm64:
|
||||
build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=linux/arm64 -v ./cmd/geth
|
||||
@echo "Linux ARM64 cross compilation done:"
|
||||
@ls -ld $(GOBIN)/geth-linux-* | grep arm64
|
||||
|
||||
geth-linux-mips64:
|
||||
build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=linux/mips64 -v ./cmd/geth
|
||||
@echo "Linux MIPS64 cross compilation done:"
|
||||
@ls -ld $(GOBIN)/geth-linux-* | grep mips64
|
||||
|
||||
geth-linux-mips64le:
|
||||
build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=linux/mips64le -v ./cmd/geth
|
||||
@echo "Linux MIPS64le cross compilation done:"
|
||||
@ls -ld $(GOBIN)/geth-linux-* | grep mips64le
|
||||
|
||||
geth-darwin: geth-darwin-386 geth-darwin-amd64
|
||||
@echo "Darwin cross compilation done:"
|
||||
@ls -ld $(GOBIN)/geth-darwin-*
|
||||
|
||||
geth-darwin-386:
|
||||
build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=darwin/386 -v ./cmd/geth
|
||||
@echo "Darwin 386 cross compilation done:"
|
||||
@ls -ld $(GOBIN)/geth-darwin-* | grep 386
|
||||
|
||||
geth-darwin-amd64:
|
||||
build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=darwin/amd64 -v ./cmd/geth
|
||||
@echo "Darwin amd64 cross compilation done:"
|
||||
@ls -ld $(GOBIN)/geth-darwin-* | grep amd64
|
||||
|
||||
geth-windows: geth-windows-386 geth-windows-amd64
|
||||
@echo "Windows cross compilation done:"
|
||||
@ls -ld $(GOBIN)/geth-windows-*
|
||||
|
||||
geth-windows-386:
|
||||
build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=windows/386 -v ./cmd/geth
|
||||
@echo "Windows 386 cross compilation done:"
|
||||
@ls -ld $(GOBIN)/geth-windows-* | grep 386
|
||||
|
||||
geth-windows-amd64:
|
||||
build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=windows/amd64 -v ./cmd/geth
|
||||
@echo "Windows amd64 cross compilation done:"
|
||||
@ls -ld $(GOBIN)/geth-windows-* | grep amd64
|
||||
|
||||
geth-android:
|
||||
build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=android-21/aar -v ./cmd/geth
|
||||
@echo "Android cross compilation done:"
|
||||
@ls -ld $(GOBIN)/geth-android-*
|
||||
|
||||
geth-ios:
|
||||
build/env.sh go run build/ci.go xgo -- --go=$(GO) --dest=$(GOBIN) --targets=ios-7.0/framework -v ./cmd/geth
|
||||
@echo "iOS framework cross compilation done:"
|
||||
@ls -ld $(GOBIN)/geth-ios-*
|
||||
307
README.md
307
README.md
@@ -1,85 +1,280 @@
|
||||
Ethereum
|
||||
========
|
||||
## Ethereum Go
|
||||
|
||||
[](https://travis-ci.org/ethereum/go-ethereum)
|
||||
Official golang implementation of the Ethereum protocol.
|
||||
|
||||
Ethereum Go Client (c) Jeffrey Wilcke
|
||||
[](https://godoc.org/github.com/ethereum/go-ethereum)
|
||||
[](https://gitter.im/ethereum/go-ethereum?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
|
||||
|
||||
The current state is "Proof of Concept 3". For build instructions see
|
||||
the [Wiki](https://github.com/ethereum/go-ethereum/wiki/Building-Edge).
|
||||
Automated builds are available for stable releases and the unstable master branch.
|
||||
Binary archives are published at https://geth.ethereum.org/downloads/.
|
||||
|
||||
For the development Go Package please see [eth-go package](https://github.com/ethereum/eth-go).
|
||||
## Building the source
|
||||
|
||||
Build
|
||||
=======
|
||||
For prerequisites and detailed build instructions please read the
|
||||
[Installation Instructions](https://github.com/ethereum/go-ethereum/wiki/Building-Ethereum)
|
||||
on the wiki.
|
||||
|
||||
For build instruction please see the [Wiki](https://github.com/ethereum/go-ethereum/wiki/Building-Edge)
|
||||
Building geth requires both a Go and a C compiler.
|
||||
You can install them using your favourite package manager.
|
||||
Once the dependencies are installed, run
|
||||
|
||||
Command line options
|
||||
====================
|
||||
make geth
|
||||
|
||||
or, to build the full suite of utilities:
|
||||
|
||||
make all
|
||||
|
||||
## Executables
|
||||
|
||||
The go-ethereum project comes with several wrappers/executables found in the `cmd` directory.
|
||||
|
||||
| Command | Description |
|
||||
|:----------:|-------------|
|
||||
| **`geth`** | Our main Ethereum CLI client. It is the entry point into the Ethereum network (main-, test- or private net), capable of running as a full node (default) archive node (retaining all historical state) or a light node (retrieving data live). It can be used by other processes as a gateway into the Ethereum network via JSON RPC endpoints exposed on top of HTTP, WebSocket and/or IPC transports. `geth --help` and the [CLI Wiki page](https://github.com/ethereum/go-ethereum/wiki/Command-Line-Options) for command line options |
|
||||
| `abigen` | Source code generator to convert Ethereum contract definitions into easy to use, compile-time type-safe Go packages. It operates on plain [Ethereum contract ABIs](https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI) with expanded functionality if the contract bytecode is also available. However it also accepts Solidity source files, making development much more streamlined. Please see our [Native DApps](https://github.com/ethereum/go-ethereum/wiki/Native-DApps:-Go-bindings-to-Ethereum-contracts) wiki page for details. |
|
||||
| `bootnode` | Stripped down version of our Ethereum client implementation that only takes part in the network node discovery protocol, but does not run any of the higher level application protocols. It can be used as a lightweight bootstrap node to aid in finding peers in private networks. |
|
||||
| `disasm` | Bytecode disassembler to convert EVM (Ethereum Virtual Machine) bytecode into more user friendly assembly-like opcodes (e.g. `echo "6001" | disasm`). For details on the individual opcodes, please see pages 22-30 of the [Ethereum Yellow Paper](http://gavwood.com/paper.pdf). |
|
||||
| `evm` | Developer utility version of the EVM (Ethereum Virtual Machine) that is capable of running bytecode snippets within a configurable environment and execution mode. Its purpose is to allow insolated, fine-grained debugging of EVM opcodes (e.g. `evm --code 60ff60ff --debug`). |
|
||||
| `gethrpctest` | Developer utility tool to support our [ethereum/rpc-test](https://github.com/ethereum/rpc-tests) test suite which validates baseline conformity to the [Ethereum JSON RPC](https://github.com/ethereum/wiki/wiki/JSON-RPC) specs. Please see the [test suite's readme](https://github.com/ethereum/rpc-tests/blob/master/README.md) for details. |
|
||||
| `rlpdump` | Developer utility tool to convert binary RLP ([Recursive Length Prefix](https://github.com/ethereum/wiki/wiki/RLP)) dumps (data encoding used by the Ethereum protocol both network as well as consensus wise) to user friendlier hierarchical representation (e.g. `rlpdump --hex CE0183FFFFFFC4C304050583616263`). |
|
||||
| `bzzd` | swarm daemon. This is the entrypoint for the swarm network. `bzzd --help` for command line options. See http://swarm-guide.readthedocs.io for swarm documentation. |
|
||||
| `bzzup` | swarm command line file uploader. `bzzup --help` for command line options |
|
||||
| `bzzhash` | command to calculate the swarm hash of a file or directory. `bzzhash --help` for command line options |
|
||||
|
||||
## Running geth
|
||||
|
||||
Going through all the possible command line flags is out of scope here (please consult our
|
||||
[CLI Wiki page](https://github.com/ethereum/go-ethereum/wiki/Command-Line-Options)), but we've
|
||||
enumerated a few common parameter combos to get you up to speed quickly on how you can run your
|
||||
own Geth instance.
|
||||
|
||||
### Full node on the main Ethereum network
|
||||
|
||||
By far the most common scenario is people wanting to simply interact with the Ethereum network:
|
||||
create accounts; transfer funds; deploy and interact with contracts. For this particular use-case
|
||||
the user doesn't care about years-old historical data, so we can fast-sync quickly to the current
|
||||
state of the network. To do so:
|
||||
|
||||
```
|
||||
-c Launch the developer console
|
||||
-m Start mining blocks
|
||||
-genaddr Generates a new address and private key (destructive action)
|
||||
-p Port on which the server will accept incomming connections (= 30303)
|
||||
-upnp Enable UPnP (= false)
|
||||
-x Desired amount of peers (= 5)
|
||||
-h This help
|
||||
-gui Launch with GUI (= true)
|
||||
-dir Data directory used to store configs and databases (=".ethereum")
|
||||
-import Import a private key (hex)
|
||||
$ geth --fast --cache=512 console
|
||||
```
|
||||
|
||||
Developer console commands
|
||||
==========================
|
||||
This command will:
|
||||
|
||||
* Start geth in fast sync mode (`--fast`), causing it to download more data in exchange for avoiding
|
||||
processing the entire history of the Ethereum network, which is very CPU intensive.
|
||||
* Bump the memory allowance of the database to 512MB (`--cache=512`), which can help significantly in
|
||||
sync times especially for HDD users. This flag is optional and you can set it as high or as low as
|
||||
you'd like, though we'd recommend the 512MB - 2GB range.
|
||||
* Start up Geth's built-in interactive [JavaScript console](https://github.com/ethereum/go-ethereum/wiki/JavaScript-Console),
|
||||
(via the trailing `console` subcommand) through which you can invoke all official [`web3` methods](https://github.com/ethereum/wiki/wiki/JavaScript-API)
|
||||
as well as Geth's own [management APIs](https://github.com/ethereum/go-ethereum/wiki/Management-APIs).
|
||||
This too is optional and if you leave it out you can always attach to an already running Geth instance
|
||||
with `geth --attach`.
|
||||
|
||||
### Full node on the Ethereum test network
|
||||
|
||||
Transitioning towards developers, if you'd like to play around with creating Ethereum contracts, you
|
||||
almost certainly would like to do that without any real money involved until you get the hang of the
|
||||
entire system. In other words, instead of attaching to the main network, you want to join the **test**
|
||||
network with your node, which is fully equivalent to the main network, but with play-Ether only.
|
||||
|
||||
```
|
||||
addp <host>:<port> Connect to the given host
|
||||
tx <addr> <amount> Send <amount> Wei to the specified <addr>
|
||||
$ geth --testnet --fast --cache=512 console
|
||||
```
|
||||
|
||||
See the "help" command for *developer* options.
|
||||
The `--fast`, `--cache` flags and `console` subcommand have the exact same meaning as above and they
|
||||
are equially useful on the testnet too. Please see above for their explanations if you've skipped to
|
||||
here.
|
||||
|
||||
Contribution
|
||||
============
|
||||
Specifying the `--testnet` flag however will reconfigure your Geth instance a bit:
|
||||
|
||||
If you'd like to contribute to Ethereum Go please fork, fix, commit and
|
||||
send a pull request. Commits who do not comply with the coding standards
|
||||
are ignored. If you send pull requests make absolute sure that you
|
||||
commit on the `develop` branch and that you do not merge to master.
|
||||
Commits that are directly based on master are simply ignored.
|
||||
* Instead of using the default data directory (`~/.ethereum` on Linux for example), Geth will nest
|
||||
itself one level deeper into a `testnet` subfolder (`~/.ethereum/testnet` on Linux).
|
||||
* Instead of connecting the main Ethereum network, the client will connect to the test network,
|
||||
which uses different P2P bootnodes, different network IDs and genesis states.
|
||||
|
||||
To make life easier try [git flow](http://nvie.com/posts/a-successful-git-branching-model/) it sets
|
||||
this all up and streamlines your work flow.
|
||||
*Note: Although there are some internal protective measures to prevent transactions from crossing
|
||||
over between the main network and test network (different starting nonces), you should make sure to
|
||||
always use separate accounts for play-money and real-money. Unless you manually move accounts, Geth
|
||||
will by default correctly separate the two networks and will not make any accounts available between
|
||||
them.*
|
||||
|
||||
Coding standards
|
||||
================
|
||||
#### Docker quick start
|
||||
|
||||
Sources should be formatted according to the [Go Formatting
|
||||
Style](http://golang.org/doc/effective_go.html#formatting).
|
||||
One of the quickest ways to get Ethereum up and running on your machine is by using Docker:
|
||||
|
||||
Unless structs fields are supposed to be directly accesible, provide
|
||||
Getters and hide the fields through Go's exporting facility.
|
||||
```
|
||||
docker run -d --name ethereum-node -v /Users/alice/ethereum:/root \
|
||||
-p 8545:8545 -p 30303:30303 \
|
||||
ethereum/client-go --fast --cache=512
|
||||
```
|
||||
|
||||
When you comment put meaningfull comments. Describe in detail what you
|
||||
want to achieve.
|
||||
This will start geth in fast sync mode with a DB memory allowance of 512MB just as the above command does. It will also create a persistent volume in your home directory for saving your blockchain as well as map the default ports. There is also an `alpine` tag available for a slim version of the image.
|
||||
|
||||
*wrong*
|
||||
### Programatically interfacing Geth nodes
|
||||
|
||||
```go
|
||||
// Check if the value at x is greater than y
|
||||
if x > y {
|
||||
// It's greater!
|
||||
As a developer, sooner rather than later you'll want to start interacting with Geth and the Ethereum
|
||||
network via your own programs and not manually through the console. To aid this, Geth has built in
|
||||
support for a JSON-RPC based APIs ([standard APIs](https://github.com/ethereum/wiki/wiki/JSON-RPC) and
|
||||
[Geth specific APIs](https://github.com/ethereum/go-ethereum/wiki/Management-APIs)). These can be
|
||||
exposed via HTTP, WebSockets and IPC (unix sockets on unix based platroms, and named pipes on Windows).
|
||||
|
||||
The IPC interface is enabled by default and exposes all the APIs supported by Geth, whereas the HTTP
|
||||
and WS interfaces need to manually be enabled and only expose a subset of APIs due to security reasons.
|
||||
These can be turned on/off and configured as you'd expect.
|
||||
|
||||
HTTP based JSON-RPC API options:
|
||||
|
||||
* `--rpc` Enable the HTTP-RPC server
|
||||
* `--rpcaddr` HTTP-RPC server listening interface (default: "localhost")
|
||||
* `--rpcport` HTTP-RPC server listening port (default: 8545)
|
||||
* `--rpcapi` API's offered over the HTTP-RPC interface (default: "eth,net,web3")
|
||||
* `--rpccorsdomain` Comma separated list of domains from which to accept cross origin requests (browser enforced)
|
||||
* `--ws` Enable the WS-RPC server
|
||||
* `--wsaddr` WS-RPC server listening interface (default: "localhost")
|
||||
* `--wsport` WS-RPC server listening port (default: 8546)
|
||||
* `--wsapi` API's offered over the WS-RPC interface (default: "eth,net,web3")
|
||||
* `--wsorigins` Origins from which to accept websockets requests
|
||||
* `--ipcdisable` Disable the IPC-RPC server
|
||||
* `--ipcapi` API's offered over the IPC-RPC interface (default: "admin,debug,eth,miner,net,personal,shh,txpool,web3")
|
||||
* `--ipcpath` Filename for IPC socket/pipe within the datadir (explicit paths escape it)
|
||||
|
||||
You'll need to use your own programming environments' capabilities (libraries, tools, etc) to connect
|
||||
via HTTP, WS or IPC to a Geth node configured with the above flags and you'll need to speak [JSON-RPC](http://www.jsonrpc.org/specification)
|
||||
on all transports. You can reuse the same connection for multiple requests!
|
||||
|
||||
**Note: Please understand the security implications of opening up an HTTP/WS based transport before
|
||||
doing so! Hackers on the internet are actively trying to subvert Ethereum nodes with exposed APIs!
|
||||
Further, all browser tabs can access locally running webservers, so malicious webpages could try to
|
||||
subvert locally available APIs!**
|
||||
|
||||
### Operating a private network
|
||||
|
||||
Maintaining your own private network is more involved as a lot of configurations taken for granted in
|
||||
the official networks need to be manually set up.
|
||||
|
||||
#### Defining the private genesis state
|
||||
|
||||
First, you'll need to create the genesis state of your networks, which all nodes need to be aware of
|
||||
and agree upon. This consists of a small JSON file (e.g. call it `genesis.json`):
|
||||
|
||||
```json
|
||||
{
|
||||
"alloc" : {},
|
||||
"coinbase" : "0x0000000000000000000000000000000000000000",
|
||||
"difficulty" : "0x20000",
|
||||
"extraData" : "",
|
||||
"gasLimit" : "0x2fefd8",
|
||||
"nonce" : "0x0000000000000042",
|
||||
"mixhash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"timestamp" : "0x00"
|
||||
}
|
||||
```
|
||||
|
||||
Everyone reading the source probably know what you wanted to achieve
|
||||
with above code. Those are **not** meaningful comments.
|
||||
The above fields should be fine for most purposes, although we'd recommend changing the `nonce` to
|
||||
some random value so you prevent unknown remote nodes from being able to connect to you. If you'd
|
||||
like to pre-fund some accounts for easier testing, you can populate the `alloc` field with account
|
||||
configs:
|
||||
|
||||
While the project isn't 100% tested I want you to write tests non the
|
||||
less. I haven't got time to evaluate everyone's code in detail so I
|
||||
expect you to write tests for me so I don't have to test your code
|
||||
manually. (If you want to contribute by just writing tests that's fine
|
||||
too!)
|
||||
```json
|
||||
"alloc": {
|
||||
"0x0000000000000000000000000000000000000001": {"balance": "111111111"},
|
||||
"0x0000000000000000000000000000000000000002": {"balance": "222222222"}
|
||||
}
|
||||
```
|
||||
|
||||
With the genesis state defined in the above JSON file, you'll need to initialize **every** Geth node
|
||||
with it prior to starting it up to ensure all blockchain parameters are correctly set:
|
||||
|
||||
```
|
||||
$ geth init path/to/genesis.json
|
||||
```
|
||||
|
||||
#### Creating the rendezvous point
|
||||
|
||||
With all nodes that you want to run initialized to the desired genesis state, you'll need to start a
|
||||
bootstrap node that others can use to find each other in your network and/or over the internet. The
|
||||
clean way is to configure and run a dedicated bootnode:
|
||||
|
||||
```
|
||||
$ bootnode --genkey=boot.key
|
||||
$ bootnode --nodekey=boot.key
|
||||
```
|
||||
|
||||
With the bootnode online, it will display an [`enode` URL](https://github.com/ethereum/wiki/wiki/enode-url-format)
|
||||
that other nodes can use to connect to it and exchange peer information. Make sure to replace the
|
||||
displayed IP address information (most probably `[::]`) with your externally accessible IP to get the
|
||||
actual `enode` URL.
|
||||
|
||||
*Note: You could also use a full fledged Geth node as a bootnode, but it's the less recommended way.*
|
||||
|
||||
#### Starting up your member nodes
|
||||
|
||||
With the bootnode operational and externally reachable (you can try `telnet <ip> <port>` to ensure
|
||||
it's indeed reachable), start every subsequent Geth node pointed to the bootnode for peer discovery
|
||||
via the `--bootnodes` flag. It will probably also be desirable to keep the data directory of your
|
||||
private network separated, so do also specify a custom `--datadir` flag.
|
||||
|
||||
```
|
||||
$ geth --datadir=path/to/custom/data/folder --bootnodes=<bootnode-enode-url-from-above>
|
||||
```
|
||||
|
||||
*Note: Since your network will be completely cut off from the main and test networks, you'll also
|
||||
need to configure a miner to process transactions and create new blocks for you.*
|
||||
|
||||
#### Running a private miner
|
||||
|
||||
Mining on the public Ethereum network is a complex task as it's only feasible using GPUs, requiring
|
||||
an OpenCL or CUDA enabled `ethminer` instance. For information on such a setup, please consult the
|
||||
[EtherMining subreddit](https://www.reddit.com/r/EtherMining/) and the [Genoil miner](https://github.com/Genoil/cpp-ethereum)
|
||||
repository.
|
||||
|
||||
In a private network setting however, a single CPU miner instance is more than enough for practical
|
||||
purposes as it can produce a stable stream of blocks at the correct intervals without needing heavy
|
||||
resources (consider running on a single thread, no need for multiple ones either). To start a Geth
|
||||
instance for mining, run it with all your usual flags, extended by:
|
||||
|
||||
```
|
||||
$ geth <usual-flags> --mine --minerthreads=1 --etherbase=0x0000000000000000000000000000000000000000
|
||||
```
|
||||
|
||||
Which will start mining bocks and transactions on a single CPU thread, crediting all proceedings to
|
||||
the account specified by `--etherbase`. You can further tune the mining by changing the default gas
|
||||
limit blocks converge to (`--targetgaslimit`) and the price transactions are accepted at (`--gasprice`).
|
||||
|
||||
## Contribution
|
||||
|
||||
Thank you for considering to help out with the source code! We welcome contributions from
|
||||
anyone on the internet, and are grateful for even the smallest of fixes!
|
||||
|
||||
If you'd like to contribute to go-ethereum, please fork, fix, commit and send a pull request
|
||||
for the maintainers to review and merge into the main code base. If you wish to submit more
|
||||
complex changes though, please check up with the core devs first on [our gitter channel](https://gitter.im/ethereum/go-ethereum)
|
||||
to ensure those changes are in line with the general philosophy of the project and/or get some
|
||||
early feedback which can make both your efforts much lighter as well as our review and merge
|
||||
procedures quick and simple.
|
||||
|
||||
Please make sure your contributions adhere to our coding guidelines:
|
||||
|
||||
* Code must adhere to the official Go [formatting](https://golang.org/doc/effective_go.html#formatting) guidelines (i.e. uses [gofmt](https://golang.org/cmd/gofmt/)).
|
||||
* Code must be documented adhering to the official Go [commentary](https://golang.org/doc/effective_go.html#commentary) guidelines.
|
||||
* Pull requests need to be based on and opened against the `master` branch.
|
||||
* Commit messages should be prefixed with the package(s) they modify.
|
||||
* E.g. "eth, rpc: make trace configs optional"
|
||||
|
||||
Please see the [Developers' Guide](https://github.com/ethereum/go-ethereum/wiki/Developers'-Guide)
|
||||
for more details on configuring your environment, managing project dependencies and testing procedures.
|
||||
|
||||
## License
|
||||
|
||||
The go-ethereum library (i.e. all code outside of the `cmd` directory) is licensed under the
|
||||
[GNU Lesser General Public License v3.0](https://www.gnu.org/licenses/lgpl-3.0.en.html), also
|
||||
included in our repository in the `COPYING.LESSER` file.
|
||||
|
||||
The go-ethereum binaries (i.e. all code inside of the `cmd` directory) is licensed under the
|
||||
[GNU General Public License v3.0](https://www.gnu.org/licenses/gpl-3.0.en.html), also included
|
||||
in our repository in the `COPYING` file.
|
||||
|
||||
385
accounts/abi/abi.go
Normal file
385
accounts/abi/abi.go
Normal file
@@ -0,0 +1,385 @@
|
||||
// Copyright 2015 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package abi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
"math/big"
|
||||
"reflect"
|
||||
"strings"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
)
|
||||
|
||||
// The ABI holds information about a contract's context and available
|
||||
// invokable methods. It will allow you to type check function calls and
|
||||
// packs data accordingly.
|
||||
type ABI struct {
|
||||
Constructor Method
|
||||
Methods map[string]Method
|
||||
Events map[string]Event
|
||||
}
|
||||
|
||||
// JSON returns a parsed ABI interface and error if it failed.
|
||||
func JSON(reader io.Reader) (ABI, error) {
|
||||
dec := json.NewDecoder(reader)
|
||||
|
||||
var abi ABI
|
||||
if err := dec.Decode(&abi); err != nil {
|
||||
return ABI{}, err
|
||||
}
|
||||
|
||||
return abi, nil
|
||||
}
|
||||
|
||||
// Pack the given method name to conform the ABI. Method call's data
|
||||
// will consist of method_id, args0, arg1, ... argN. Method id consists
|
||||
// of 4 bytes and arguments are all 32 bytes.
|
||||
// Method ids are created from the first 4 bytes of the hash of the
|
||||
// methods string signature. (signature = baz(uint32,string32))
|
||||
func (abi ABI) Pack(name string, args ...interface{}) ([]byte, error) {
|
||||
// Fetch the ABI of the requested method
|
||||
var method Method
|
||||
|
||||
if name == "" {
|
||||
method = abi.Constructor
|
||||
} else {
|
||||
m, exist := abi.Methods[name]
|
||||
if !exist {
|
||||
return nil, fmt.Errorf("method '%s' not found", name)
|
||||
}
|
||||
method = m
|
||||
}
|
||||
arguments, err := method.pack(method, args...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// Pack up the method ID too if not a constructor and return
|
||||
if name == "" {
|
||||
return arguments, nil
|
||||
}
|
||||
return append(method.Id(), arguments...), nil
|
||||
}
|
||||
|
||||
// toGoSliceType parses the input and casts it to the proper slice defined by the ABI
|
||||
// argument in T.
|
||||
func toGoSlice(i int, t Argument, output []byte) (interface{}, error) {
|
||||
index := i * 32
|
||||
// The slice must, at very least be large enough for the index+32 which is exactly the size required
|
||||
// for the [offset in output, size of offset].
|
||||
if index+32 > len(output) {
|
||||
return nil, fmt.Errorf("abi: cannot marshal in to go slice: insufficient size output %d require %d", len(output), index+32)
|
||||
}
|
||||
elem := t.Type.Elem
|
||||
|
||||
// first we need to create a slice of the type
|
||||
var refSlice reflect.Value
|
||||
switch elem.T {
|
||||
case IntTy, UintTy, BoolTy: // int, uint, bool can all be of type big int.
|
||||
refSlice = reflect.ValueOf([]*big.Int(nil))
|
||||
case AddressTy: // address must be of slice Address
|
||||
refSlice = reflect.ValueOf([]common.Address(nil))
|
||||
case HashTy: // hash must be of slice hash
|
||||
refSlice = reflect.ValueOf([]common.Hash(nil))
|
||||
case FixedBytesTy:
|
||||
refSlice = reflect.ValueOf([][]byte(nil))
|
||||
default: // no other types are supported
|
||||
return nil, fmt.Errorf("abi: unsupported slice type %v", elem.T)
|
||||
}
|
||||
|
||||
var slice []byte
|
||||
var size int
|
||||
var offset int
|
||||
if t.Type.IsSlice {
|
||||
|
||||
// get the offset which determines the start of this array ...
|
||||
offset = int(common.BytesToBig(output[index : index+32]).Uint64())
|
||||
if offset+32 > len(output) {
|
||||
return nil, fmt.Errorf("abi: cannot marshal in to go slice: offset %d would go over slice boundary (len=%d)", len(output), offset+32)
|
||||
}
|
||||
|
||||
slice = output[offset:]
|
||||
// ... starting with the size of the array in elements ...
|
||||
size = int(common.BytesToBig(slice[:32]).Uint64())
|
||||
slice = slice[32:]
|
||||
// ... and make sure that we've at the very least the amount of bytes
|
||||
// available in the buffer.
|
||||
if size*32 > len(slice) {
|
||||
return nil, fmt.Errorf("abi: cannot marshal in to go slice: insufficient size output %d require %d", len(output), offset+32+size*32)
|
||||
}
|
||||
|
||||
// reslice to match the required size
|
||||
slice = slice[:(size * 32)]
|
||||
} else if t.Type.IsArray {
|
||||
//get the number of elements in the array
|
||||
size = t.Type.SliceSize
|
||||
|
||||
//check to make sure array size matches up
|
||||
if index+32*size > len(output) {
|
||||
return nil, fmt.Errorf("abi: cannot marshal in to go array: offset %d would go over slice boundary (len=%d)", len(output), index+32*size)
|
||||
}
|
||||
//slice is there for a fixed amount of times
|
||||
slice = output[index : index+size*32]
|
||||
}
|
||||
|
||||
for i := 0; i < size; i++ {
|
||||
var (
|
||||
inter interface{} // interface type
|
||||
returnOutput = slice[i*32 : i*32+32] // the return output
|
||||
)
|
||||
|
||||
// set inter to the correct type (cast)
|
||||
switch elem.T {
|
||||
case IntTy, UintTy:
|
||||
inter = common.BytesToBig(returnOutput)
|
||||
case BoolTy:
|
||||
inter = common.BytesToBig(returnOutput).Uint64() > 0
|
||||
case AddressTy:
|
||||
inter = common.BytesToAddress(returnOutput)
|
||||
case HashTy:
|
||||
inter = common.BytesToHash(returnOutput)
|
||||
case FixedBytesTy:
|
||||
inter = returnOutput
|
||||
}
|
||||
// append the item to our reflect slice
|
||||
refSlice = reflect.Append(refSlice, reflect.ValueOf(inter))
|
||||
}
|
||||
|
||||
// return the interface
|
||||
return refSlice.Interface(), nil
|
||||
}
|
||||
|
||||
// toGoType parses the input and casts it to the proper type defined by the ABI
|
||||
// argument in T.
|
||||
func toGoType(i int, t Argument, output []byte) (interface{}, error) {
|
||||
// we need to treat slices differently
|
||||
if (t.Type.IsSlice || t.Type.IsArray) && t.Type.T != BytesTy && t.Type.T != StringTy && t.Type.T != FixedBytesTy {
|
||||
return toGoSlice(i, t, output)
|
||||
}
|
||||
|
||||
index := i * 32
|
||||
if index+32 > len(output) {
|
||||
return nil, fmt.Errorf("abi: cannot marshal in to go type: length insufficient %d require %d", len(output), index+32)
|
||||
}
|
||||
|
||||
// Parse the given index output and check whether we need to read
|
||||
// a different offset and length based on the type (i.e. string, bytes)
|
||||
var returnOutput []byte
|
||||
switch t.Type.T {
|
||||
case StringTy, BytesTy: // variable arrays are written at the end of the return bytes
|
||||
// parse offset from which we should start reading
|
||||
offset := int(common.BytesToBig(output[index : index+32]).Uint64())
|
||||
if offset+32 > len(output) {
|
||||
return nil, fmt.Errorf("abi: cannot marshal in to go type: length insufficient %d require %d", len(output), offset+32)
|
||||
}
|
||||
// parse the size up until we should be reading
|
||||
size := int(common.BytesToBig(output[offset : offset+32]).Uint64())
|
||||
if offset+32+size > len(output) {
|
||||
return nil, fmt.Errorf("abi: cannot marshal in to go type: length insufficient %d require %d", len(output), offset+32+size)
|
||||
}
|
||||
|
||||
// get the bytes for this return value
|
||||
returnOutput = output[offset+32 : offset+32+size]
|
||||
default:
|
||||
returnOutput = output[index : index+32]
|
||||
}
|
||||
|
||||
// convert the bytes to whatever is specified by the ABI.
|
||||
switch t.Type.T {
|
||||
case IntTy, UintTy:
|
||||
bigNum := common.BytesToBig(returnOutput)
|
||||
|
||||
// If the type is a integer convert to the integer type
|
||||
// specified by the ABI.
|
||||
switch t.Type.Kind {
|
||||
case reflect.Uint8:
|
||||
return uint8(bigNum.Uint64()), nil
|
||||
case reflect.Uint16:
|
||||
return uint16(bigNum.Uint64()), nil
|
||||
case reflect.Uint32:
|
||||
return uint32(bigNum.Uint64()), nil
|
||||
case reflect.Uint64:
|
||||
return uint64(bigNum.Uint64()), nil
|
||||
case reflect.Int8:
|
||||
return int8(bigNum.Int64()), nil
|
||||
case reflect.Int16:
|
||||
return int16(bigNum.Int64()), nil
|
||||
case reflect.Int32:
|
||||
return int32(bigNum.Int64()), nil
|
||||
case reflect.Int64:
|
||||
return int64(bigNum.Int64()), nil
|
||||
case reflect.Ptr:
|
||||
return bigNum, nil
|
||||
}
|
||||
case BoolTy:
|
||||
return common.BytesToBig(returnOutput).Uint64() > 0, nil
|
||||
case AddressTy:
|
||||
return common.BytesToAddress(returnOutput), nil
|
||||
case HashTy:
|
||||
return common.BytesToHash(returnOutput), nil
|
||||
case BytesTy, FixedBytesTy:
|
||||
return returnOutput, nil
|
||||
case StringTy:
|
||||
return string(returnOutput), nil
|
||||
}
|
||||
return nil, fmt.Errorf("abi: unknown type %v", t.Type.T)
|
||||
}
|
||||
|
||||
// these variable are used to determine certain types during type assertion for
|
||||
// assignment.
|
||||
var (
|
||||
r_interSlice = reflect.TypeOf([]interface{}{})
|
||||
r_hash = reflect.TypeOf(common.Hash{})
|
||||
r_bytes = reflect.TypeOf([]byte{})
|
||||
r_byte = reflect.TypeOf(byte(0))
|
||||
)
|
||||
|
||||
// Unpack output in v according to the abi specification
|
||||
func (abi ABI) Unpack(v interface{}, name string, output []byte) error {
|
||||
var method = abi.Methods[name]
|
||||
|
||||
if len(output) == 0 {
|
||||
return fmt.Errorf("abi: unmarshalling empty output")
|
||||
}
|
||||
|
||||
// make sure the passed value is a pointer
|
||||
valueOf := reflect.ValueOf(v)
|
||||
if reflect.Ptr != valueOf.Kind() {
|
||||
return fmt.Errorf("abi: Unpack(non-pointer %T)", v)
|
||||
}
|
||||
|
||||
var (
|
||||
value = valueOf.Elem()
|
||||
typ = value.Type()
|
||||
)
|
||||
|
||||
if len(method.Outputs) > 1 {
|
||||
switch value.Kind() {
|
||||
// struct will match named return values to the struct's field
|
||||
// names
|
||||
case reflect.Struct:
|
||||
for i := 0; i < len(method.Outputs); i++ {
|
||||
marshalledValue, err := toGoType(i, method.Outputs[i], output)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
reflectValue := reflect.ValueOf(marshalledValue)
|
||||
|
||||
for j := 0; j < typ.NumField(); j++ {
|
||||
field := typ.Field(j)
|
||||
// TODO read tags: `abi:"fieldName"`
|
||||
if field.Name == strings.ToUpper(method.Outputs[i].Name[:1])+method.Outputs[i].Name[1:] {
|
||||
if err := set(value.Field(j), reflectValue, method.Outputs[i]); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
case reflect.Slice:
|
||||
if !value.Type().AssignableTo(r_interSlice) {
|
||||
return fmt.Errorf("abi: cannot marshal tuple in to slice %T (only []interface{} is supported)", v)
|
||||
}
|
||||
|
||||
// if the slice already contains values, set those instead of the interface slice itself.
|
||||
if value.Len() > 0 {
|
||||
if len(method.Outputs) > value.Len() {
|
||||
return fmt.Errorf("abi: cannot marshal in to slices of unequal size (require: %v, got: %v)", len(method.Outputs), value.Len())
|
||||
}
|
||||
|
||||
for i := 0; i < len(method.Outputs); i++ {
|
||||
marshalledValue, err := toGoType(i, method.Outputs[i], output)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
reflectValue := reflect.ValueOf(marshalledValue)
|
||||
if err := set(value.Index(i).Elem(), reflectValue, method.Outputs[i]); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// create a new slice and start appending the unmarshalled
|
||||
// values to the new interface slice.
|
||||
z := reflect.MakeSlice(typ, 0, len(method.Outputs))
|
||||
for i := 0; i < len(method.Outputs); i++ {
|
||||
marshalledValue, err := toGoType(i, method.Outputs[i], output)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
z = reflect.Append(z, reflect.ValueOf(marshalledValue))
|
||||
}
|
||||
value.Set(z)
|
||||
default:
|
||||
return fmt.Errorf("abi: cannot unmarshal tuple in to %v", typ)
|
||||
}
|
||||
|
||||
} else {
|
||||
marshalledValue, err := toGoType(0, method.Outputs[0], output)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := set(value, reflect.ValueOf(marshalledValue), method.Outputs[0]); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (abi *ABI) UnmarshalJSON(data []byte) error {
|
||||
var fields []struct {
|
||||
Type string
|
||||
Name string
|
||||
Constant bool
|
||||
Indexed bool
|
||||
Inputs []Argument
|
||||
Outputs []Argument
|
||||
}
|
||||
|
||||
if err := json.Unmarshal(data, &fields); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
abi.Methods = make(map[string]Method)
|
||||
abi.Events = make(map[string]Event)
|
||||
for _, field := range fields {
|
||||
switch field.Type {
|
||||
case "constructor":
|
||||
abi.Constructor = Method{
|
||||
Inputs: field.Inputs,
|
||||
}
|
||||
// empty defaults to function according to the abi spec
|
||||
case "function", "":
|
||||
abi.Methods[field.Name] = Method{
|
||||
Name: field.Name,
|
||||
Const: field.Constant,
|
||||
Inputs: field.Inputs,
|
||||
Outputs: field.Outputs,
|
||||
}
|
||||
case "event":
|
||||
abi.Events[field.Name] = Event{
|
||||
Name: field.Name,
|
||||
Inputs: field.Inputs,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
1169
accounts/abi/abi_test.go
Normal file
1169
accounts/abi/abi_test.go
Normal file
File diff suppressed because it is too large
Load Diff
49
accounts/abi/argument.go
Normal file
49
accounts/abi/argument.go
Normal file
@@ -0,0 +1,49 @@
|
||||
// Copyright 2015 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package abi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// Argument holds the name of the argument and the corresponding type.
|
||||
// Types are used when packing and testing arguments.
|
||||
type Argument struct {
|
||||
Name string
|
||||
Type Type
|
||||
Indexed bool // indexed is only used by events
|
||||
}
|
||||
|
||||
func (a *Argument) UnmarshalJSON(data []byte) error {
|
||||
var extarg struct {
|
||||
Name string
|
||||
Type string
|
||||
}
|
||||
err := json.Unmarshal(data, &extarg)
|
||||
if err != nil {
|
||||
return fmt.Errorf("argument json err: %v", err)
|
||||
}
|
||||
|
||||
a.Type, err = NewType(extarg.Type)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
a.Name = extarg.Name
|
||||
|
||||
return nil
|
||||
}
|
||||
62
accounts/abi/bind/auth.go
Normal file
62
accounts/abi/bind/auth.go
Normal file
@@ -0,0 +1,62 @@
|
||||
// Copyright 2016 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package bind
|
||||
|
||||
import (
|
||||
"crypto/ecdsa"
|
||||
"errors"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
|
||||
"github.com/ethereum/go-ethereum/accounts"
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/core/types"
|
||||
"github.com/ethereum/go-ethereum/crypto"
|
||||
)
|
||||
|
||||
// NewTransactor is a utility method to easily create a transaction signer from
|
||||
// an encrypted json key stream and the associated passphrase.
|
||||
func NewTransactor(keyin io.Reader, passphrase string) (*TransactOpts, error) {
|
||||
json, err := ioutil.ReadAll(keyin)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
key, err := accounts.DecryptKey(json, passphrase)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return NewKeyedTransactor(key.PrivateKey), nil
|
||||
}
|
||||
|
||||
// NewKeyedTransactor is a utility method to easily create a transaction signer
|
||||
// from a single private key.
|
||||
func NewKeyedTransactor(key *ecdsa.PrivateKey) *TransactOpts {
|
||||
keyAddr := crypto.PubkeyToAddress(key.PublicKey)
|
||||
return &TransactOpts{
|
||||
From: keyAddr,
|
||||
Signer: func(signer types.Signer, address common.Address, tx *types.Transaction) (*types.Transaction, error) {
|
||||
if address != keyAddr {
|
||||
return nil, errors.New("not authorized to sign this account")
|
||||
}
|
||||
signature, err := crypto.SignEthereum(signer.Hash(tx).Bytes(), key)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return tx.WithSignature(signer, signature)
|
||||
},
|
||||
}
|
||||
}
|
||||
97
accounts/abi/bind/backend.go
Normal file
97
accounts/abi/bind/backend.go
Normal file
@@ -0,0 +1,97 @@
|
||||
// Copyright 2015 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package bind
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"math/big"
|
||||
|
||||
"github.com/ethereum/go-ethereum"
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/core/types"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
var (
|
||||
// ErrNoCode is returned by call and transact operations for which the requested
|
||||
// recipient contract to operate on does not exist in the state db or does not
|
||||
// have any code associated with it (i.e. suicided).
|
||||
ErrNoCode = errors.New("no contract code at given address")
|
||||
|
||||
// This error is raised when attempting to perform a pending state action
|
||||
// on a backend that doesn't implement PendingContractCaller.
|
||||
ErrNoPendingState = errors.New("backend does not support pending state")
|
||||
|
||||
// This error is returned by WaitDeployed if contract creation leaves an
|
||||
// empty contract behind.
|
||||
ErrNoCodeAfterDeploy = errors.New("no contract code after deployment")
|
||||
)
|
||||
|
||||
// ContractCaller defines the methods needed to allow operating with contract on a read
|
||||
// only basis.
|
||||
type ContractCaller interface {
|
||||
// CodeAt returns the code of the given account. This is needed to differentiate
|
||||
// between contract internal errors and the local chain being out of sync.
|
||||
CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)
|
||||
// ContractCall executes an Ethereum contract call with the specified data as the
|
||||
// input.
|
||||
CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
|
||||
}
|
||||
|
||||
// DeployBackend wraps the operations needed by WaitMined and WaitDeployed.
|
||||
type DeployBackend interface {
|
||||
TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
|
||||
CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
|
||||
}
|
||||
|
||||
// PendingContractCaller defines methods to perform contract calls on the pending state.
|
||||
// Call will try to discover this interface when access to the pending state is requested.
|
||||
// If the backend does not support the pending state, Call returns ErrNoPendingState.
|
||||
type PendingContractCaller interface {
|
||||
// PendingCodeAt returns the code of the given account in the pending state.
|
||||
PendingCodeAt(ctx context.Context, contract common.Address) ([]byte, error)
|
||||
// PendingCallContract executes an Ethereum contract call against the pending state.
|
||||
PendingCallContract(ctx context.Context, call ethereum.CallMsg) ([]byte, error)
|
||||
}
|
||||
|
||||
// ContractTransactor defines the methods needed to allow operating with contract
|
||||
// on a write only basis. Beside the transacting method, the remainder are helpers
|
||||
// used when the user does not provide some needed values, but rather leaves it up
|
||||
// to the transactor to decide.
|
||||
type ContractTransactor interface {
|
||||
// PendingCodeAt returns the code of the given account in the pending state.
|
||||
PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
|
||||
// PendingNonceAt retrieves the current pending nonce associated with an account.
|
||||
PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
|
||||
// SuggestGasPrice retrieves the currently suggested gas price to allow a timely
|
||||
// execution of a transaction.
|
||||
SuggestGasPrice(ctx context.Context) (*big.Int, error)
|
||||
// EstimateGas tries to estimate the gas needed to execute a specific
|
||||
// transaction based on the current pending state of the backend blockchain.
|
||||
// There is no guarantee that this is the true gas limit requirement as other
|
||||
// transactions may be added or removed by miners, but it should provide a basis
|
||||
// for setting a reasonable default.
|
||||
EstimateGas(ctx context.Context, call ethereum.CallMsg) (usedGas *big.Int, err error)
|
||||
// SendTransaction injects the transaction into the pending pool for execution.
|
||||
SendTransaction(ctx context.Context, tx *types.Transaction) error
|
||||
}
|
||||
|
||||
// ContractBackend defines the methods needed to work with contracts on a read-write basis.
|
||||
type ContractBackend interface {
|
||||
ContractCaller
|
||||
ContractTransactor
|
||||
}
|
||||
272
accounts/abi/bind/backends/simulated.go
Normal file
272
accounts/abi/bind/backends/simulated.go
Normal file
@@ -0,0 +1,272 @@
|
||||
// Copyright 2015 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package backends
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"math/big"
|
||||
"sync"
|
||||
|
||||
"github.com/ethereum/go-ethereum"
|
||||
"github.com/ethereum/go-ethereum/accounts/abi/bind"
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/core"
|
||||
"github.com/ethereum/go-ethereum/core/state"
|
||||
"github.com/ethereum/go-ethereum/core/types"
|
||||
"github.com/ethereum/go-ethereum/core/vm"
|
||||
"github.com/ethereum/go-ethereum/ethdb"
|
||||
"github.com/ethereum/go-ethereum/event"
|
||||
"github.com/ethereum/go-ethereum/params"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
// Default chain configuration which sets homestead phase at block 0 (i.e. no frontier)
|
||||
var chainConfig = ¶ms.ChainConfig{HomesteadBlock: big.NewInt(0), EIP150Block: new(big.Int), EIP158Block: new(big.Int)}
|
||||
|
||||
// This nil assignment ensures compile time that SimulatedBackend implements bind.ContractBackend.
|
||||
var _ bind.ContractBackend = (*SimulatedBackend)(nil)
|
||||
|
||||
var errBlockNumberUnsupported = errors.New("SimulatedBackend cannot access blocks other than the latest block")
|
||||
|
||||
// SimulatedBackend implements bind.ContractBackend, simulating a blockchain in
|
||||
// the background. Its main purpose is to allow easily testing contract bindings.
|
||||
type SimulatedBackend struct {
|
||||
database ethdb.Database // In memory database to store our testing data
|
||||
blockchain *core.BlockChain // Ethereum blockchain to handle the consensus
|
||||
|
||||
mu sync.Mutex
|
||||
pendingBlock *types.Block // Currently pending block that will be imported on request
|
||||
pendingState *state.StateDB // Currently pending state that will be the active on on request
|
||||
|
||||
config *params.ChainConfig
|
||||
}
|
||||
|
||||
// NewSimulatedBackend creates a new binding backend using a simulated blockchain
|
||||
// for testing purposes.
|
||||
func NewSimulatedBackend(accounts ...core.GenesisAccount) *SimulatedBackend {
|
||||
database, _ := ethdb.NewMemDatabase()
|
||||
core.WriteGenesisBlockForTesting(database, accounts...)
|
||||
blockchain, _ := core.NewBlockChain(database, chainConfig, new(core.FakePow), new(event.TypeMux))
|
||||
backend := &SimulatedBackend{database: database, blockchain: blockchain}
|
||||
backend.rollback()
|
||||
return backend
|
||||
}
|
||||
|
||||
// Commit imports all the pending transactions as a single block and starts a
|
||||
// fresh new state.
|
||||
func (b *SimulatedBackend) Commit() {
|
||||
b.mu.Lock()
|
||||
defer b.mu.Unlock()
|
||||
|
||||
if _, err := b.blockchain.InsertChain([]*types.Block{b.pendingBlock}); err != nil {
|
||||
panic(err) // This cannot happen unless the simulator is wrong, fail in that case
|
||||
}
|
||||
b.rollback()
|
||||
}
|
||||
|
||||
// Rollback aborts all pending transactions, reverting to the last committed state.
|
||||
func (b *SimulatedBackend) Rollback() {
|
||||
b.mu.Lock()
|
||||
defer b.mu.Unlock()
|
||||
|
||||
b.rollback()
|
||||
}
|
||||
|
||||
func (b *SimulatedBackend) rollback() {
|
||||
blocks, _ := core.GenerateChain(chainConfig, b.blockchain.CurrentBlock(), b.database, 1, func(int, *core.BlockGen) {})
|
||||
b.pendingBlock = blocks[0]
|
||||
b.pendingState, _ = state.New(b.pendingBlock.Root(), b.database)
|
||||
}
|
||||
|
||||
// CodeAt returns the code associated with a certain account in the blockchain.
|
||||
func (b *SimulatedBackend) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error) {
|
||||
b.mu.Lock()
|
||||
defer b.mu.Unlock()
|
||||
|
||||
if blockNumber != nil && blockNumber.Cmp(b.blockchain.CurrentBlock().Number()) != 0 {
|
||||
return nil, errBlockNumberUnsupported
|
||||
}
|
||||
statedb, _ := b.blockchain.State()
|
||||
return statedb.GetCode(contract), nil
|
||||
}
|
||||
|
||||
// BalanceAt returns the wei balance of a certain account in the blockchain.
|
||||
func (b *SimulatedBackend) BalanceAt(ctx context.Context, contract common.Address, blockNumber *big.Int) (*big.Int, error) {
|
||||
b.mu.Lock()
|
||||
defer b.mu.Unlock()
|
||||
|
||||
if blockNumber != nil && blockNumber.Cmp(b.blockchain.CurrentBlock().Number()) != 0 {
|
||||
return nil, errBlockNumberUnsupported
|
||||
}
|
||||
statedb, _ := b.blockchain.State()
|
||||
return statedb.GetBalance(contract), nil
|
||||
}
|
||||
|
||||
// NonceAt returns the nonce of a certain account in the blockchain.
|
||||
func (b *SimulatedBackend) NonceAt(ctx context.Context, contract common.Address, blockNumber *big.Int) (uint64, error) {
|
||||
b.mu.Lock()
|
||||
defer b.mu.Unlock()
|
||||
|
||||
if blockNumber != nil && blockNumber.Cmp(b.blockchain.CurrentBlock().Number()) != 0 {
|
||||
return 0, errBlockNumberUnsupported
|
||||
}
|
||||
statedb, _ := b.blockchain.State()
|
||||
return statedb.GetNonce(contract), nil
|
||||
}
|
||||
|
||||
// StorageAt returns the value of key in the storage of an account in the blockchain.
|
||||
func (b *SimulatedBackend) StorageAt(ctx context.Context, contract common.Address, key common.Hash, blockNumber *big.Int) ([]byte, error) {
|
||||
b.mu.Lock()
|
||||
defer b.mu.Unlock()
|
||||
|
||||
if blockNumber != nil && blockNumber.Cmp(b.blockchain.CurrentBlock().Number()) != 0 {
|
||||
return nil, errBlockNumberUnsupported
|
||||
}
|
||||
statedb, _ := b.blockchain.State()
|
||||
val := statedb.GetState(contract, key)
|
||||
return val[:], nil
|
||||
}
|
||||
|
||||
// TransactionReceipt returns the receipt of a transaction.
|
||||
func (b *SimulatedBackend) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error) {
|
||||
return core.GetReceipt(b.database, txHash), nil
|
||||
}
|
||||
|
||||
// PendingCodeAt returns the code associated with an account in the pending state.
|
||||
func (b *SimulatedBackend) PendingCodeAt(ctx context.Context, contract common.Address) ([]byte, error) {
|
||||
b.mu.Lock()
|
||||
defer b.mu.Unlock()
|
||||
|
||||
return b.pendingState.GetCode(contract), nil
|
||||
}
|
||||
|
||||
// CallContract executes a contract call.
|
||||
func (b *SimulatedBackend) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error) {
|
||||
b.mu.Lock()
|
||||
defer b.mu.Unlock()
|
||||
|
||||
if blockNumber != nil && blockNumber.Cmp(b.blockchain.CurrentBlock().Number()) != 0 {
|
||||
return nil, errBlockNumberUnsupported
|
||||
}
|
||||
state, err := b.blockchain.State()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
rval, _, err := b.callContract(ctx, call, b.blockchain.CurrentBlock(), state)
|
||||
return rval, err
|
||||
}
|
||||
|
||||
// PendingCallContract executes a contract call on the pending state.
|
||||
func (b *SimulatedBackend) PendingCallContract(ctx context.Context, call ethereum.CallMsg) ([]byte, error) {
|
||||
b.mu.Lock()
|
||||
defer b.mu.Unlock()
|
||||
defer b.pendingState.RevertToSnapshot(b.pendingState.Snapshot())
|
||||
|
||||
rval, _, err := b.callContract(ctx, call, b.pendingBlock, b.pendingState)
|
||||
return rval, err
|
||||
}
|
||||
|
||||
// PendingNonceAt implements PendingStateReader.PendingNonceAt, retrieving
|
||||
// the nonce currently pending for the account.
|
||||
func (b *SimulatedBackend) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error) {
|
||||
b.mu.Lock()
|
||||
defer b.mu.Unlock()
|
||||
|
||||
return b.pendingState.GetOrNewStateObject(account).Nonce(), nil
|
||||
}
|
||||
|
||||
// SuggestGasPrice implements ContractTransactor.SuggestGasPrice. Since the simulated
|
||||
// chain doens't have miners, we just return a gas price of 1 for any call.
|
||||
func (b *SimulatedBackend) SuggestGasPrice(ctx context.Context) (*big.Int, error) {
|
||||
return big.NewInt(1), nil
|
||||
}
|
||||
|
||||
// EstimateGas executes the requested code against the currently pending block/state and
|
||||
// returns the used amount of gas.
|
||||
func (b *SimulatedBackend) EstimateGas(ctx context.Context, call ethereum.CallMsg) (*big.Int, error) {
|
||||
b.mu.Lock()
|
||||
defer b.mu.Unlock()
|
||||
defer b.pendingState.RevertToSnapshot(b.pendingState.Snapshot())
|
||||
|
||||
_, gas, err := b.callContract(ctx, call, b.pendingBlock, b.pendingState)
|
||||
return gas, err
|
||||
}
|
||||
|
||||
// callContract implemens common code between normal and pending contract calls.
|
||||
// state is modified during execution, make sure to copy it if necessary.
|
||||
func (b *SimulatedBackend) callContract(ctx context.Context, call ethereum.CallMsg, block *types.Block, statedb *state.StateDB) ([]byte, *big.Int, error) {
|
||||
// Ensure message is initialized properly.
|
||||
if call.GasPrice == nil {
|
||||
call.GasPrice = big.NewInt(1)
|
||||
}
|
||||
if call.Gas == nil || call.Gas.BitLen() == 0 {
|
||||
call.Gas = big.NewInt(50000000)
|
||||
}
|
||||
if call.Value == nil {
|
||||
call.Value = new(big.Int)
|
||||
}
|
||||
// Set infinite balance to the fake caller account.
|
||||
from := statedb.GetOrNewStateObject(call.From)
|
||||
from.SetBalance(common.MaxBig)
|
||||
// Execute the call.
|
||||
msg := callmsg{call}
|
||||
vmenv := core.NewEnv(statedb, chainConfig, b.blockchain, msg, block.Header(), vm.Config{})
|
||||
gaspool := new(core.GasPool).AddGas(common.MaxBig)
|
||||
ret, gasUsed, _, err := core.NewStateTransition(vmenv, msg, gaspool).TransitionDb()
|
||||
return ret, gasUsed, err
|
||||
}
|
||||
|
||||
// SendTransaction updates the pending block to include the given transaction.
|
||||
// It panics if the transaction is invalid.
|
||||
func (b *SimulatedBackend) SendTransaction(ctx context.Context, tx *types.Transaction) error {
|
||||
b.mu.Lock()
|
||||
defer b.mu.Unlock()
|
||||
|
||||
sender, err := types.Sender(types.HomesteadSigner{}, tx)
|
||||
if err != nil {
|
||||
panic(fmt.Errorf("invalid transaction: %v", err))
|
||||
}
|
||||
nonce := b.pendingState.GetNonce(sender)
|
||||
if tx.Nonce() != nonce {
|
||||
panic(fmt.Errorf("invalid transaction nonce: got %d, want %d", tx.Nonce(), nonce))
|
||||
}
|
||||
|
||||
blocks, _ := core.GenerateChain(chainConfig, b.blockchain.CurrentBlock(), b.database, 1, func(number int, block *core.BlockGen) {
|
||||
for _, tx := range b.pendingBlock.Transactions() {
|
||||
block.AddTx(tx)
|
||||
}
|
||||
block.AddTx(tx)
|
||||
})
|
||||
b.pendingBlock = blocks[0]
|
||||
b.pendingState, _ = state.New(b.pendingBlock.Root(), b.database)
|
||||
return nil
|
||||
}
|
||||
|
||||
// callmsg implements core.Message to allow passing it as a transaction simulator.
|
||||
type callmsg struct {
|
||||
ethereum.CallMsg
|
||||
}
|
||||
|
||||
func (m callmsg) From() common.Address { return m.CallMsg.From }
|
||||
func (m callmsg) Nonce() uint64 { return 0 }
|
||||
func (m callmsg) CheckNonce() bool { return false }
|
||||
func (m callmsg) To() *common.Address { return m.CallMsg.To }
|
||||
func (m callmsg) GasPrice() *big.Int { return m.CallMsg.GasPrice }
|
||||
func (m callmsg) Gas() *big.Int { return m.CallMsg.Gas }
|
||||
func (m callmsg) Value() *big.Int { return m.CallMsg.Value }
|
||||
func (m callmsg) Data() []byte { return m.CallMsg.Data }
|
||||
232
accounts/abi/bind/base.go
Normal file
232
accounts/abi/bind/base.go
Normal file
@@ -0,0 +1,232 @@
|
||||
// Copyright 2015 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package bind
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"math/big"
|
||||
|
||||
"github.com/ethereum/go-ethereum"
|
||||
"github.com/ethereum/go-ethereum/accounts/abi"
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/core/types"
|
||||
"github.com/ethereum/go-ethereum/crypto"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
// SignerFn is a signer function callback when a contract requires a method to
|
||||
// sign the transaction before submission.
|
||||
type SignerFn func(types.Signer, common.Address, *types.Transaction) (*types.Transaction, error)
|
||||
|
||||
// CallOpts is the collection of options to fine tune a contract call request.
|
||||
type CallOpts struct {
|
||||
Pending bool // Whether to operate on the pending state or the last known one
|
||||
|
||||
Context context.Context // Network context to support cancellation and timeouts (nil = no timeout)
|
||||
}
|
||||
|
||||
// TransactOpts is the collection of authorization data required to create a
|
||||
// valid Ethereum transaction.
|
||||
type TransactOpts struct {
|
||||
From common.Address // Ethereum account to send the transaction from
|
||||
Nonce *big.Int // Nonce to use for the transaction execution (nil = use pending state)
|
||||
Signer SignerFn // Method to use for signing the transaction (mandatory)
|
||||
|
||||
Value *big.Int // Funds to transfer along along the transaction (nil = 0 = no funds)
|
||||
GasPrice *big.Int // Gas price to use for the transaction execution (nil = gas price oracle)
|
||||
GasLimit *big.Int // Gas limit to set for the transaction execution (nil = estimate + 10%)
|
||||
|
||||
Context context.Context // Network context to support cancellation and timeouts (nil = no timeout)
|
||||
}
|
||||
|
||||
// BoundContract is the base wrapper object that reflects a contract on the
|
||||
// Ethereum network. It contains a collection of methods that are used by the
|
||||
// higher level contract bindings to operate.
|
||||
type BoundContract struct {
|
||||
address common.Address // Deployment address of the contract on the Ethereum blockchain
|
||||
abi abi.ABI // Reflect based ABI to access the correct Ethereum methods
|
||||
caller ContractCaller // Read interface to interact with the blockchain
|
||||
transactor ContractTransactor // Write interface to interact with the blockchain
|
||||
}
|
||||
|
||||
// NewBoundContract creates a low level contract interface through which calls
|
||||
// and transactions may be made through.
|
||||
func NewBoundContract(address common.Address, abi abi.ABI, caller ContractCaller, transactor ContractTransactor) *BoundContract {
|
||||
return &BoundContract{
|
||||
address: address,
|
||||
abi: abi,
|
||||
caller: caller,
|
||||
transactor: transactor,
|
||||
}
|
||||
}
|
||||
|
||||
// DeployContract deploys a contract onto the Ethereum blockchain and binds the
|
||||
// deployment address with a Go wrapper.
|
||||
func DeployContract(opts *TransactOpts, abi abi.ABI, bytecode []byte, backend ContractBackend, params ...interface{}) (common.Address, *types.Transaction, *BoundContract, error) {
|
||||
// Otherwise try to deploy the contract
|
||||
c := NewBoundContract(common.Address{}, abi, backend, backend)
|
||||
|
||||
input, err := c.abi.Pack("", params...)
|
||||
if err != nil {
|
||||
return common.Address{}, nil, nil, err
|
||||
}
|
||||
tx, err := c.transact(opts, nil, append(bytecode, input...))
|
||||
if err != nil {
|
||||
return common.Address{}, nil, nil, err
|
||||
}
|
||||
c.address = crypto.CreateAddress(opts.From, tx.Nonce())
|
||||
return c.address, tx, c, nil
|
||||
}
|
||||
|
||||
// Call invokes the (constant) contract method with params as input values and
|
||||
// sets the output to result. The result type might be a single field for simple
|
||||
// returns, a slice of interfaces for anonymous returns and a struct for named
|
||||
// returns.
|
||||
func (c *BoundContract) Call(opts *CallOpts, result interface{}, method string, params ...interface{}) error {
|
||||
// Don't crash on a lazy user
|
||||
if opts == nil {
|
||||
opts = new(CallOpts)
|
||||
}
|
||||
// Pack the input, call and unpack the results
|
||||
input, err := c.abi.Pack(method, params...)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
var (
|
||||
msg = ethereum.CallMsg{To: &c.address, Data: input}
|
||||
ctx = ensureContext(opts.Context)
|
||||
code []byte
|
||||
output []byte
|
||||
)
|
||||
if opts.Pending {
|
||||
pb, ok := c.caller.(PendingContractCaller)
|
||||
if !ok {
|
||||
return ErrNoPendingState
|
||||
}
|
||||
output, err = pb.PendingCallContract(ctx, msg)
|
||||
if err == nil && len(output) == 0 {
|
||||
// Make sure we have a contract to operate on, and bail out otherwise.
|
||||
if code, err = pb.PendingCodeAt(ctx, c.address); err != nil {
|
||||
return err
|
||||
} else if len(code) == 0 {
|
||||
return ErrNoCode
|
||||
}
|
||||
}
|
||||
} else {
|
||||
output, err = c.caller.CallContract(ctx, msg, nil)
|
||||
if err == nil && len(output) == 0 {
|
||||
// Make sure we have a contract to operate on, and bail out otherwise.
|
||||
if code, err = c.caller.CodeAt(ctx, c.address, nil); err != nil {
|
||||
return err
|
||||
} else if len(code) == 0 {
|
||||
return ErrNoCode
|
||||
}
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return c.abi.Unpack(result, method, output)
|
||||
}
|
||||
|
||||
// Transact invokes the (paid) contract method with params as input values.
|
||||
func (c *BoundContract) Transact(opts *TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
|
||||
// Otherwise pack up the parameters and invoke the contract
|
||||
input, err := c.abi.Pack(method, params...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return c.transact(opts, &c.address, input)
|
||||
}
|
||||
|
||||
// Transfer initiates a plain transaction to move funds to the contract, calling
|
||||
// its default method if one is available.
|
||||
func (c *BoundContract) Transfer(opts *TransactOpts) (*types.Transaction, error) {
|
||||
return c.transact(opts, &c.address, nil)
|
||||
}
|
||||
|
||||
// transact executes an actual transaction invocation, first deriving any missing
|
||||
// authorization fields, and then scheduling the transaction for execution.
|
||||
func (c *BoundContract) transact(opts *TransactOpts, contract *common.Address, input []byte) (*types.Transaction, error) {
|
||||
var err error
|
||||
|
||||
// Ensure a valid value field and resolve the account nonce
|
||||
value := opts.Value
|
||||
if value == nil {
|
||||
value = new(big.Int)
|
||||
}
|
||||
nonce := uint64(0)
|
||||
if opts.Nonce == nil {
|
||||
nonce, err = c.transactor.PendingNonceAt(ensureContext(opts.Context), opts.From)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to retrieve account nonce: %v", err)
|
||||
}
|
||||
} else {
|
||||
nonce = opts.Nonce.Uint64()
|
||||
}
|
||||
// Figure out the gas allowance and gas price values
|
||||
gasPrice := opts.GasPrice
|
||||
if gasPrice == nil {
|
||||
gasPrice, err = c.transactor.SuggestGasPrice(ensureContext(opts.Context))
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to suggest gas price: %v", err)
|
||||
}
|
||||
}
|
||||
gasLimit := opts.GasLimit
|
||||
if gasLimit == nil {
|
||||
// Gas estimation cannot succeed without code for method invocations
|
||||
if contract != nil {
|
||||
if code, err := c.transactor.PendingCodeAt(ensureContext(opts.Context), c.address); err != nil {
|
||||
return nil, err
|
||||
} else if len(code) == 0 {
|
||||
return nil, ErrNoCode
|
||||
}
|
||||
}
|
||||
// If the contract surely has code (or code is not needed), estimate the transaction
|
||||
msg := ethereum.CallMsg{From: opts.From, To: contract, Value: value, Data: input}
|
||||
gasLimit, err = c.transactor.EstimateGas(ensureContext(opts.Context), msg)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to estimate gas needed: %v", err)
|
||||
}
|
||||
}
|
||||
// Create the transaction, sign it and schedule it for execution
|
||||
var rawTx *types.Transaction
|
||||
if contract == nil {
|
||||
rawTx = types.NewContractCreation(nonce, value, gasLimit, gasPrice, input)
|
||||
} else {
|
||||
rawTx = types.NewTransaction(nonce, c.address, value, gasLimit, gasPrice, input)
|
||||
}
|
||||
if opts.Signer == nil {
|
||||
return nil, errors.New("no signer to authorize the transaction with")
|
||||
}
|
||||
signedTx, err := opts.Signer(types.HomesteadSigner{}, opts.From, rawTx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err := c.transactor.SendTransaction(ensureContext(opts.Context), signedTx); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return signedTx, nil
|
||||
}
|
||||
|
||||
func ensureContext(ctx context.Context) context.Context {
|
||||
if ctx == nil {
|
||||
return context.TODO()
|
||||
}
|
||||
return ctx
|
||||
}
|
||||
329
accounts/abi/bind/bind.go
Normal file
329
accounts/abi/bind/bind.go
Normal file
@@ -0,0 +1,329 @@
|
||||
// Copyright 2016 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
// Package bind generates Ethereum contract Go bindings.
|
||||
//
|
||||
// Detailed usage document and tutorial available on the go-ethereum Wiki page:
|
||||
// https://github.com/ethereum/go-ethereum/wiki/Native-DApps:-Go-bindings-to-Ethereum-contracts
|
||||
package bind
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"regexp"
|
||||
"strings"
|
||||
"text/template"
|
||||
"unicode"
|
||||
|
||||
"github.com/ethereum/go-ethereum/accounts/abi"
|
||||
"golang.org/x/tools/imports"
|
||||
)
|
||||
|
||||
// Lang is a target programming language selector to generate bindings for.
|
||||
type Lang int
|
||||
|
||||
const (
|
||||
LangGo Lang = iota
|
||||
LangJava
|
||||
LangObjC
|
||||
)
|
||||
|
||||
// Bind generates a Go wrapper around a contract ABI. This wrapper isn't meant
|
||||
// to be used as is in client code, but rather as an intermediate struct which
|
||||
// enforces compile time type safety and naming convention opposed to having to
|
||||
// manually maintain hard coded strings that break on runtime.
|
||||
func Bind(types []string, abis []string, bytecodes []string, pkg string, lang Lang) (string, error) {
|
||||
// Process each individual contract requested binding
|
||||
contracts := make(map[string]*tmplContract)
|
||||
|
||||
for i := 0; i < len(types); i++ {
|
||||
// Parse the actual ABI to generate the binding for
|
||||
evmABI, err := abi.JSON(strings.NewReader(abis[i]))
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
// Strip any whitespace from the JSON ABI
|
||||
strippedABI := strings.Map(func(r rune) rune {
|
||||
if unicode.IsSpace(r) {
|
||||
return -1
|
||||
}
|
||||
return r
|
||||
}, abis[i])
|
||||
|
||||
// Extract the call and transact methods, and sort them alphabetically
|
||||
var (
|
||||
calls = make(map[string]*tmplMethod)
|
||||
transacts = make(map[string]*tmplMethod)
|
||||
)
|
||||
for _, original := range evmABI.Methods {
|
||||
// Normalize the method for capital cases and non-anonymous inputs/outputs
|
||||
normalized := original
|
||||
normalized.Name = methodNormalizer[lang](original.Name)
|
||||
|
||||
normalized.Inputs = make([]abi.Argument, len(original.Inputs))
|
||||
copy(normalized.Inputs, original.Inputs)
|
||||
for j, input := range normalized.Inputs {
|
||||
if input.Name == "" {
|
||||
normalized.Inputs[j].Name = fmt.Sprintf("arg%d", j)
|
||||
}
|
||||
}
|
||||
normalized.Outputs = make([]abi.Argument, len(original.Outputs))
|
||||
copy(normalized.Outputs, original.Outputs)
|
||||
for j, output := range normalized.Outputs {
|
||||
if output.Name != "" {
|
||||
normalized.Outputs[j].Name = capitalise(output.Name)
|
||||
}
|
||||
}
|
||||
// Append the methods to the call or transact lists
|
||||
if original.Const {
|
||||
calls[original.Name] = &tmplMethod{Original: original, Normalized: normalized, Structured: structured(original)}
|
||||
} else {
|
||||
transacts[original.Name] = &tmplMethod{Original: original, Normalized: normalized, Structured: structured(original)}
|
||||
}
|
||||
}
|
||||
contracts[types[i]] = &tmplContract{
|
||||
Type: capitalise(types[i]),
|
||||
InputABI: strings.Replace(strippedABI, "\"", "\\\"", -1),
|
||||
InputBin: strings.TrimSpace(bytecodes[i]),
|
||||
Constructor: evmABI.Constructor,
|
||||
Calls: calls,
|
||||
Transacts: transacts,
|
||||
}
|
||||
}
|
||||
// Generate the contract template data content and render it
|
||||
data := &tmplData{
|
||||
Package: pkg,
|
||||
Contracts: contracts,
|
||||
}
|
||||
buffer := new(bytes.Buffer)
|
||||
|
||||
funcs := map[string]interface{}{
|
||||
"bindtype": bindType[lang],
|
||||
"namedtype": namedType[lang],
|
||||
"capitalise": capitalise,
|
||||
"decapitalise": decapitalise,
|
||||
}
|
||||
tmpl := template.Must(template.New("").Funcs(funcs).Parse(tmplSource[lang]))
|
||||
if err := tmpl.Execute(buffer, data); err != nil {
|
||||
return "", err
|
||||
}
|
||||
// For Go bindings pass the code through goimports to clean it up and double check
|
||||
if lang == LangGo {
|
||||
code, err := imports.Process("", buffer.Bytes(), nil)
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("%v\n%s", err, buffer)
|
||||
}
|
||||
return string(code), nil
|
||||
}
|
||||
// For all others just return as is for now
|
||||
return string(buffer.Bytes()), nil
|
||||
}
|
||||
|
||||
// bindType is a set of type binders that convert Solidity types to some supported
|
||||
// programming language.
|
||||
var bindType = map[Lang]func(kind abi.Type) string{
|
||||
LangGo: bindTypeGo,
|
||||
LangJava: bindTypeJava,
|
||||
}
|
||||
|
||||
// bindTypeGo converts a Solidity type to a Go one. Since there is no clear mapping
|
||||
// from all Solidity types to Go ones (e.g. uint17), those that cannot be exactly
|
||||
// mapped will use an upscaled type (e.g. *big.Int).
|
||||
func bindTypeGo(kind abi.Type) string {
|
||||
stringKind := kind.String()
|
||||
|
||||
switch {
|
||||
case strings.HasPrefix(stringKind, "address"):
|
||||
parts := regexp.MustCompile("address(\\[[0-9]*\\])?").FindStringSubmatch(stringKind)
|
||||
if len(parts) != 2 {
|
||||
return stringKind
|
||||
}
|
||||
return fmt.Sprintf("%scommon.Address", parts[1])
|
||||
|
||||
case strings.HasPrefix(stringKind, "bytes"):
|
||||
parts := regexp.MustCompile("bytes([0-9]*)(\\[[0-9]*\\])?").FindStringSubmatch(stringKind)
|
||||
if len(parts) != 3 {
|
||||
return stringKind
|
||||
}
|
||||
return fmt.Sprintf("%s[%s]byte", parts[2], parts[1])
|
||||
|
||||
case strings.HasPrefix(stringKind, "int") || strings.HasPrefix(stringKind, "uint"):
|
||||
parts := regexp.MustCompile("(u)?int([0-9]*)(\\[[0-9]*\\])?").FindStringSubmatch(stringKind)
|
||||
if len(parts) != 4 {
|
||||
return stringKind
|
||||
}
|
||||
switch parts[2] {
|
||||
case "8", "16", "32", "64":
|
||||
return fmt.Sprintf("%s%sint%s", parts[3], parts[1], parts[2])
|
||||
}
|
||||
return fmt.Sprintf("%s*big.Int", parts[3])
|
||||
|
||||
case strings.HasPrefix(stringKind, "bool") || strings.HasPrefix(stringKind, "string"):
|
||||
parts := regexp.MustCompile("([a-z]+)(\\[[0-9]*\\])?").FindStringSubmatch(stringKind)
|
||||
if len(parts) != 3 {
|
||||
return stringKind
|
||||
}
|
||||
return fmt.Sprintf("%s%s", parts[2], parts[1])
|
||||
|
||||
default:
|
||||
return stringKind
|
||||
}
|
||||
}
|
||||
|
||||
// bindTypeJava converts a Solidity type to a Java one. Since there is no clear mapping
|
||||
// from all Solidity types to Java ones (e.g. uint17), those that cannot be exactly
|
||||
// mapped will use an upscaled type (e.g. BigDecimal).
|
||||
func bindTypeJava(kind abi.Type) string {
|
||||
stringKind := kind.String()
|
||||
|
||||
switch {
|
||||
case strings.HasPrefix(stringKind, "address"):
|
||||
parts := regexp.MustCompile("address(\\[[0-9]*\\])?").FindStringSubmatch(stringKind)
|
||||
if len(parts) != 2 {
|
||||
return stringKind
|
||||
}
|
||||
if parts[1] == "" {
|
||||
return fmt.Sprintf("Address")
|
||||
}
|
||||
return fmt.Sprintf("Addresses")
|
||||
|
||||
case strings.HasPrefix(stringKind, "bytes"):
|
||||
parts := regexp.MustCompile("bytes([0-9]*)(\\[[0-9]*\\])?").FindStringSubmatch(stringKind)
|
||||
if len(parts) != 3 {
|
||||
return stringKind
|
||||
}
|
||||
if parts[2] != "" {
|
||||
return "byte[][]"
|
||||
}
|
||||
return "byte[]"
|
||||
|
||||
case strings.HasPrefix(stringKind, "int") || strings.HasPrefix(stringKind, "uint"):
|
||||
parts := regexp.MustCompile("(u)?int([0-9]*)(\\[[0-9]*\\])?").FindStringSubmatch(stringKind)
|
||||
if len(parts) != 4 {
|
||||
return stringKind
|
||||
}
|
||||
switch parts[2] {
|
||||
case "8", "16", "32", "64":
|
||||
if parts[1] == "" {
|
||||
if parts[3] == "" {
|
||||
return fmt.Sprintf("int%s", parts[2])
|
||||
}
|
||||
return fmt.Sprintf("int%s[]", parts[2])
|
||||
}
|
||||
}
|
||||
if parts[3] == "" {
|
||||
return fmt.Sprintf("BigInt")
|
||||
}
|
||||
return fmt.Sprintf("BigInts")
|
||||
|
||||
case strings.HasPrefix(stringKind, "bool"):
|
||||
parts := regexp.MustCompile("bool(\\[[0-9]*\\])?").FindStringSubmatch(stringKind)
|
||||
if len(parts) != 2 {
|
||||
return stringKind
|
||||
}
|
||||
if parts[1] == "" {
|
||||
return fmt.Sprintf("bool")
|
||||
}
|
||||
return fmt.Sprintf("bool[]")
|
||||
|
||||
case strings.HasPrefix(stringKind, "string"):
|
||||
parts := regexp.MustCompile("string(\\[[0-9]*\\])?").FindStringSubmatch(stringKind)
|
||||
if len(parts) != 2 {
|
||||
return stringKind
|
||||
}
|
||||
if parts[1] == "" {
|
||||
return fmt.Sprintf("String")
|
||||
}
|
||||
return fmt.Sprintf("String[]")
|
||||
|
||||
default:
|
||||
return stringKind
|
||||
}
|
||||
}
|
||||
|
||||
// namedType is a set of functions that transform language specific types to
|
||||
// named versions that my be used inside method names.
|
||||
var namedType = map[Lang]func(string, abi.Type) string{
|
||||
LangGo: func(string, abi.Type) string { panic("this shouldn't be needed") },
|
||||
LangJava: namedTypeJava,
|
||||
}
|
||||
|
||||
// namedTypeJava converts some primitive data types to named variants that can
|
||||
// be used as parts of method names.
|
||||
func namedTypeJava(javaKind string, solKind abi.Type) string {
|
||||
switch javaKind {
|
||||
case "byte[]":
|
||||
return "Binary"
|
||||
case "byte[][]":
|
||||
return "Binaries"
|
||||
case "string":
|
||||
return "String"
|
||||
case "string[]":
|
||||
return "Strings"
|
||||
case "bool":
|
||||
return "Bool"
|
||||
case "bool[]":
|
||||
return "Bools"
|
||||
case "BigInt":
|
||||
parts := regexp.MustCompile("(u)?int([0-9]*)(\\[[0-9]*\\])?").FindStringSubmatch(solKind.String())
|
||||
if len(parts) != 4 {
|
||||
return javaKind
|
||||
}
|
||||
switch parts[2] {
|
||||
case "8", "16", "32", "64":
|
||||
if parts[3] == "" {
|
||||
return capitalise(fmt.Sprintf("%sint%s", parts[1], parts[2]))
|
||||
}
|
||||
return capitalise(fmt.Sprintf("%sint%ss", parts[1], parts[2]))
|
||||
|
||||
default:
|
||||
return javaKind
|
||||
}
|
||||
default:
|
||||
return javaKind
|
||||
}
|
||||
}
|
||||
|
||||
// methodNormalizer is a name transformer that modifies Solidity method names to
|
||||
// conform to target language naming concentions.
|
||||
var methodNormalizer = map[Lang]func(string) string{
|
||||
LangGo: capitalise,
|
||||
LangJava: decapitalise,
|
||||
}
|
||||
|
||||
// capitalise makes the first character of a string upper case.
|
||||
func capitalise(input string) string {
|
||||
return strings.ToUpper(input[:1]) + input[1:]
|
||||
}
|
||||
|
||||
// decapitalise makes the first character of a string lower case.
|
||||
func decapitalise(input string) string {
|
||||
return strings.ToLower(input[:1]) + input[1:]
|
||||
}
|
||||
|
||||
// structured checks whether a method has enough information to return a proper
|
||||
// Go struct ot if flat returns are needed.
|
||||
func structured(method abi.Method) bool {
|
||||
if len(method.Outputs) < 2 {
|
||||
return false
|
||||
}
|
||||
for _, out := range method.Outputs {
|
||||
if out.Name == "" {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
424
accounts/abi/bind/bind_test.go
Normal file
424
accounts/abi/bind/bind_test.go
Normal file
File diff suppressed because one or more lines are too long
369
accounts/abi/bind/template.go
Normal file
369
accounts/abi/bind/template.go
Normal file
@@ -0,0 +1,369 @@
|
||||
// Copyright 2016 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package bind
|
||||
|
||||
import "github.com/ethereum/go-ethereum/accounts/abi"
|
||||
|
||||
// tmplData is the data structure required to fill the binding template.
|
||||
type tmplData struct {
|
||||
Package string // Name of the package to place the generated file in
|
||||
Contracts map[string]*tmplContract // List of contracts to generate into this file
|
||||
}
|
||||
|
||||
// tmplContract contains the data needed to generate an individual contract binding.
|
||||
type tmplContract struct {
|
||||
Type string // Type name of the main contract binding
|
||||
InputABI string // JSON ABI used as the input to generate the binding from
|
||||
InputBin string // Optional EVM bytecode used to denetare deploy code from
|
||||
Constructor abi.Method // Contract constructor for deploy parametrization
|
||||
Calls map[string]*tmplMethod // Contract calls that only read state data
|
||||
Transacts map[string]*tmplMethod // Contract calls that write state data
|
||||
}
|
||||
|
||||
// tmplMethod is a wrapper around an abi.Method that contains a few preprocessed
|
||||
// and cached data fields.
|
||||
type tmplMethod struct {
|
||||
Original abi.Method // Original method as parsed by the abi package
|
||||
Normalized abi.Method // Normalized version of the parsed method (capitalized names, non-anonymous args/returns)
|
||||
Structured bool // Whether the returns should be accumulated into a contract
|
||||
}
|
||||
|
||||
// tmplSource is language to template mapping containing all the supported
|
||||
// programming languages the package can generate to.
|
||||
var tmplSource = map[Lang]string{
|
||||
LangGo: tmplSourceGo,
|
||||
LangJava: tmplSourceJava,
|
||||
}
|
||||
|
||||
// tmplSourceGo is the Go source template use to generate the contract binding
|
||||
// based on.
|
||||
const tmplSourceGo = `
|
||||
// This file is an automatically generated Go binding. Do not modify as any
|
||||
// change will likely be lost upon the next re-generation!
|
||||
|
||||
package {{.Package}}
|
||||
|
||||
{{range $contract := .Contracts}}
|
||||
// {{.Type}}ABI is the input ABI used to generate the binding from.
|
||||
const {{.Type}}ABI = "{{.InputABI}}"
|
||||
|
||||
{{if .InputBin}}
|
||||
// {{.Type}}Bin is the compiled bytecode used for deploying new contracts.
|
||||
const {{.Type}}Bin = ` + "`" + `{{.InputBin}}` + "`" + `
|
||||
|
||||
// Deploy{{.Type}} deploys a new Ethereum contract, binding an instance of {{.Type}} to it.
|
||||
func Deploy{{.Type}}(auth *bind.TransactOpts, backend bind.ContractBackend {{range .Constructor.Inputs}}, {{.Name}} {{bindtype .Type}}{{end}}) (common.Address, *types.Transaction, *{{.Type}}, error) {
|
||||
parsed, err := abi.JSON(strings.NewReader({{.Type}}ABI))
|
||||
if err != nil {
|
||||
return common.Address{}, nil, nil, err
|
||||
}
|
||||
address, tx, contract, err := bind.DeployContract(auth, parsed, common.FromHex({{.Type}}Bin), backend {{range .Constructor.Inputs}}, {{.Name}}{{end}})
|
||||
if err != nil {
|
||||
return common.Address{}, nil, nil, err
|
||||
}
|
||||
return address, tx, &{{.Type}}{ {{.Type}}Caller: {{.Type}}Caller{contract: contract}, {{.Type}}Transactor: {{.Type}}Transactor{contract: contract} }, nil
|
||||
}
|
||||
{{end}}
|
||||
|
||||
// {{.Type}} is an auto generated Go binding around an Ethereum contract.
|
||||
type {{.Type}} struct {
|
||||
{{.Type}}Caller // Read-only binding to the contract
|
||||
{{.Type}}Transactor // Write-only binding to the contract
|
||||
}
|
||||
|
||||
// {{.Type}}Caller is an auto generated read-only Go binding around an Ethereum contract.
|
||||
type {{.Type}}Caller struct {
|
||||
contract *bind.BoundContract // Generic contract wrapper for the low level calls
|
||||
}
|
||||
|
||||
// {{.Type}}Transactor is an auto generated write-only Go binding around an Ethereum contract.
|
||||
type {{.Type}}Transactor struct {
|
||||
contract *bind.BoundContract // Generic contract wrapper for the low level calls
|
||||
}
|
||||
|
||||
// {{.Type}}Session is an auto generated Go binding around an Ethereum contract,
|
||||
// with pre-set call and transact options.
|
||||
type {{.Type}}Session struct {
|
||||
Contract *{{.Type}} // Generic contract binding to set the session for
|
||||
CallOpts bind.CallOpts // Call options to use throughout this session
|
||||
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
|
||||
}
|
||||
|
||||
// {{.Type}}CallerSession is an auto generated read-only Go binding around an Ethereum contract,
|
||||
// with pre-set call options.
|
||||
type {{.Type}}CallerSession struct {
|
||||
Contract *{{.Type}}Caller // Generic contract caller binding to set the session for
|
||||
CallOpts bind.CallOpts // Call options to use throughout this session
|
||||
}
|
||||
|
||||
// {{.Type}}TransactorSession is an auto generated write-only Go binding around an Ethereum contract,
|
||||
// with pre-set transact options.
|
||||
type {{.Type}}TransactorSession struct {
|
||||
Contract *{{.Type}}Transactor // Generic contract transactor binding to set the session for
|
||||
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
|
||||
}
|
||||
|
||||
// {{.Type}}Raw is an auto generated low-level Go binding around an Ethereum contract.
|
||||
type {{.Type}}Raw struct {
|
||||
Contract *{{.Type}} // Generic contract binding to access the raw methods on
|
||||
}
|
||||
|
||||
// {{.Type}}CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
|
||||
type {{.Type}}CallerRaw struct {
|
||||
Contract *{{.Type}}Caller // Generic read-only contract binding to access the raw methods on
|
||||
}
|
||||
|
||||
// {{.Type}}TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
|
||||
type {{.Type}}TransactorRaw struct {
|
||||
Contract *{{.Type}}Transactor // Generic write-only contract binding to access the raw methods on
|
||||
}
|
||||
|
||||
// New{{.Type}} creates a new instance of {{.Type}}, bound to a specific deployed contract.
|
||||
func New{{.Type}}(address common.Address, backend bind.ContractBackend) (*{{.Type}}, error) {
|
||||
contract, err := bind{{.Type}}(address, backend, backend)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &{{.Type}}{ {{.Type}}Caller: {{.Type}}Caller{contract: contract}, {{.Type}}Transactor: {{.Type}}Transactor{contract: contract} }, nil
|
||||
}
|
||||
|
||||
// New{{.Type}}Caller creates a new read-only instance of {{.Type}}, bound to a specific deployed contract.
|
||||
func New{{.Type}}Caller(address common.Address, caller bind.ContractCaller) (*{{.Type}}Caller, error) {
|
||||
contract, err := bind{{.Type}}(address, caller, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &{{.Type}}Caller{contract: contract}, nil
|
||||
}
|
||||
|
||||
// New{{.Type}}Transactor creates a new write-only instance of {{.Type}}, bound to a specific deployed contract.
|
||||
func New{{.Type}}Transactor(address common.Address, transactor bind.ContractTransactor) (*{{.Type}}Transactor, error) {
|
||||
contract, err := bind{{.Type}}(address, nil, transactor)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &{{.Type}}Transactor{contract: contract}, nil
|
||||
}
|
||||
|
||||
// bind{{.Type}} binds a generic wrapper to an already deployed contract.
|
||||
func bind{{.Type}}(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor) (*bind.BoundContract, error) {
|
||||
parsed, err := abi.JSON(strings.NewReader({{.Type}}ABI))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return bind.NewBoundContract(address, parsed, caller, transactor), nil
|
||||
}
|
||||
|
||||
// Call invokes the (constant) contract method with params as input values and
|
||||
// sets the output to result. The result type might be a single field for simple
|
||||
// returns, a slice of interfaces for anonymous returns and a struct for named
|
||||
// returns.
|
||||
func (_{{$contract.Type}} *{{$contract.Type}}Raw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
|
||||
return _{{$contract.Type}}.Contract.{{$contract.Type}}Caller.contract.Call(opts, result, method, params...)
|
||||
}
|
||||
|
||||
// Transfer initiates a plain transaction to move funds to the contract, calling
|
||||
// its default method if one is available.
|
||||
func (_{{$contract.Type}} *{{$contract.Type}}Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
|
||||
return _{{$contract.Type}}.Contract.{{$contract.Type}}Transactor.contract.Transfer(opts)
|
||||
}
|
||||
|
||||
// Transact invokes the (paid) contract method with params as input values.
|
||||
func (_{{$contract.Type}} *{{$contract.Type}}Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
|
||||
return _{{$contract.Type}}.Contract.{{$contract.Type}}Transactor.contract.Transact(opts, method, params...)
|
||||
}
|
||||
|
||||
// Call invokes the (constant) contract method with params as input values and
|
||||
// sets the output to result. The result type might be a single field for simple
|
||||
// returns, a slice of interfaces for anonymous returns and a struct for named
|
||||
// returns.
|
||||
func (_{{$contract.Type}} *{{$contract.Type}}CallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
|
||||
return _{{$contract.Type}}.Contract.contract.Call(opts, result, method, params...)
|
||||
}
|
||||
|
||||
// Transfer initiates a plain transaction to move funds to the contract, calling
|
||||
// its default method if one is available.
|
||||
func (_{{$contract.Type}} *{{$contract.Type}}TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
|
||||
return _{{$contract.Type}}.Contract.contract.Transfer(opts)
|
||||
}
|
||||
|
||||
// Transact invokes the (paid) contract method with params as input values.
|
||||
func (_{{$contract.Type}} *{{$contract.Type}}TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
|
||||
return _{{$contract.Type}}.Contract.contract.Transact(opts, method, params...)
|
||||
}
|
||||
|
||||
{{range .Calls}}
|
||||
// {{.Normalized.Name}} is a free data retrieval call binding the contract method 0x{{printf "%x" .Original.Id}}.
|
||||
//
|
||||
// Solidity: {{.Original.String}}
|
||||
func (_{{$contract.Type}} *{{$contract.Type}}Caller) {{.Normalized.Name}}(opts *bind.CallOpts {{range .Normalized.Inputs}}, {{.Name}} {{bindtype .Type}} {{end}}) ({{if .Structured}}struct{ {{range .Normalized.Outputs}}{{.Name}} {{bindtype .Type}};{{end}} },{{else}}{{range .Normalized.Outputs}}{{bindtype .Type}},{{end}}{{end}} error) {
|
||||
{{if .Structured}}ret := new(struct{
|
||||
{{range .Normalized.Outputs}}{{.Name}} {{bindtype .Type}}
|
||||
{{end}}
|
||||
}){{else}}var (
|
||||
{{range $i, $_ := .Normalized.Outputs}}ret{{$i}} = new({{bindtype .Type}})
|
||||
{{end}}
|
||||
){{end}}
|
||||
out := {{if .Structured}}ret{{else}}{{if eq (len .Normalized.Outputs) 1}}ret0{{else}}&[]interface{}{
|
||||
{{range $i, $_ := .Normalized.Outputs}}ret{{$i}},
|
||||
{{end}}
|
||||
}{{end}}{{end}}
|
||||
err := _{{$contract.Type}}.contract.Call(opts, out, "{{.Original.Name}}" {{range .Normalized.Inputs}}, {{.Name}}{{end}})
|
||||
return {{if .Structured}}*ret,{{else}}{{range $i, $_ := .Normalized.Outputs}}*ret{{$i}},{{end}}{{end}} err
|
||||
}
|
||||
|
||||
// {{.Normalized.Name}} is a free data retrieval call binding the contract method 0x{{printf "%x" .Original.Id}}.
|
||||
//
|
||||
// Solidity: {{.Original.String}}
|
||||
func (_{{$contract.Type}} *{{$contract.Type}}Session) {{.Normalized.Name}}({{range $i, $_ := .Normalized.Inputs}}{{if ne $i 0}},{{end}} {{.Name}} {{bindtype .Type}} {{end}}) ({{if .Structured}}struct{ {{range .Normalized.Outputs}}{{.Name}} {{bindtype .Type}};{{end}} }, {{else}} {{range .Normalized.Outputs}}{{bindtype .Type}},{{end}} {{end}} error) {
|
||||
return _{{$contract.Type}}.Contract.{{.Normalized.Name}}(&_{{$contract.Type}}.CallOpts {{range .Normalized.Inputs}}, {{.Name}}{{end}})
|
||||
}
|
||||
|
||||
// {{.Normalized.Name}} is a free data retrieval call binding the contract method 0x{{printf "%x" .Original.Id}}.
|
||||
//
|
||||
// Solidity: {{.Original.String}}
|
||||
func (_{{$contract.Type}} *{{$contract.Type}}CallerSession) {{.Normalized.Name}}({{range $i, $_ := .Normalized.Inputs}}{{if ne $i 0}},{{end}} {{.Name}} {{bindtype .Type}} {{end}}) ({{if .Structured}}struct{ {{range .Normalized.Outputs}}{{.Name}} {{bindtype .Type}};{{end}} }, {{else}} {{range .Normalized.Outputs}}{{bindtype .Type}},{{end}} {{end}} error) {
|
||||
return _{{$contract.Type}}.Contract.{{.Normalized.Name}}(&_{{$contract.Type}}.CallOpts {{range .Normalized.Inputs}}, {{.Name}}{{end}})
|
||||
}
|
||||
{{end}}
|
||||
|
||||
{{range .Transacts}}
|
||||
// {{.Normalized.Name}} is a paid mutator transaction binding the contract method 0x{{printf "%x" .Original.Id}}.
|
||||
//
|
||||
// Solidity: {{.Original.String}}
|
||||
func (_{{$contract.Type}} *{{$contract.Type}}Transactor) {{.Normalized.Name}}(opts *bind.TransactOpts {{range .Normalized.Inputs}}, {{.Name}} {{bindtype .Type}} {{end}}) (*types.Transaction, error) {
|
||||
return _{{$contract.Type}}.contract.Transact(opts, "{{.Original.Name}}" {{range .Normalized.Inputs}}, {{.Name}}{{end}})
|
||||
}
|
||||
|
||||
// {{.Normalized.Name}} is a paid mutator transaction binding the contract method 0x{{printf "%x" .Original.Id}}.
|
||||
//
|
||||
// Solidity: {{.Original.String}}
|
||||
func (_{{$contract.Type}} *{{$contract.Type}}Session) {{.Normalized.Name}}({{range $i, $_ := .Normalized.Inputs}}{{if ne $i 0}},{{end}} {{.Name}} {{bindtype .Type}} {{end}}) (*types.Transaction, error) {
|
||||
return _{{$contract.Type}}.Contract.{{.Normalized.Name}}(&_{{$contract.Type}}.TransactOpts {{range $i, $_ := .Normalized.Inputs}}, {{.Name}}{{end}})
|
||||
}
|
||||
|
||||
// {{.Normalized.Name}} is a paid mutator transaction binding the contract method 0x{{printf "%x" .Original.Id}}.
|
||||
//
|
||||
// Solidity: {{.Original.String}}
|
||||
func (_{{$contract.Type}} *{{$contract.Type}}TransactorSession) {{.Normalized.Name}}({{range $i, $_ := .Normalized.Inputs}}{{if ne $i 0}},{{end}} {{.Name}} {{bindtype .Type}} {{end}}) (*types.Transaction, error) {
|
||||
return _{{$contract.Type}}.Contract.{{.Normalized.Name}}(&_{{$contract.Type}}.TransactOpts {{range $i, $_ := .Normalized.Inputs}}, {{.Name}}{{end}})
|
||||
}
|
||||
{{end}}
|
||||
{{end}}
|
||||
`
|
||||
|
||||
// tmplSourceJava is the Java source template use to generate the contract binding
|
||||
// based on.
|
||||
const tmplSourceJava = `
|
||||
// This file is an automatically generated Java binding. Do not modify as any
|
||||
// change will likely be lost upon the next re-generation!
|
||||
|
||||
package {{.Package}};
|
||||
|
||||
import org.ethereum.geth.*;
|
||||
import org.ethereum.geth.internal.*;
|
||||
|
||||
{{range $contract := .Contracts}}
|
||||
public class {{.Type}} {
|
||||
// ABI is the input ABI used to generate the binding from.
|
||||
public final static String ABI = "{{.InputABI}}";
|
||||
|
||||
{{if .InputBin}}
|
||||
// BYTECODE is the compiled bytecode used for deploying new contracts.
|
||||
public final static byte[] BYTECODE = "{{.InputBin}}".getBytes();
|
||||
|
||||
// deploy deploys a new Ethereum contract, binding an instance of {{.Type}} to it.
|
||||
public static {{.Type}} deploy(TransactOpts auth, EthereumClient client{{range .Constructor.Inputs}}, {{bindtype .Type}} {{.Name}}{{end}}) throws Exception {
|
||||
Interfaces args = Geth.newInterfaces({{(len .Constructor.Inputs)}});
|
||||
{{range $index, $element := .Constructor.Inputs}}
|
||||
args.set({{$index}}, Geth.newInterface()); args.get({{$index}}).set{{namedtype (bindtype .Type) .Type}}({{.Name}});
|
||||
{{end}}
|
||||
return new {{.Type}}(Geth.deployContract(auth, ABI, BYTECODE, client, args));
|
||||
}
|
||||
|
||||
// Internal constructor used by contract deployment.
|
||||
private {{.Type}}(BoundContract deployment) {
|
||||
this.Address = deployment.getAddress();
|
||||
this.Deployer = deployment.getDeployer();
|
||||
this.Contract = deployment;
|
||||
}
|
||||
{{end}}
|
||||
|
||||
// Ethereum address where this contract is located at.
|
||||
public final Address Address;
|
||||
|
||||
// Ethereum transaction in which this contract was deployed (if known!).
|
||||
public final Transaction Deployer;
|
||||
|
||||
// Contract instance bound to a blockchain address.
|
||||
private final BoundContract Contract;
|
||||
|
||||
// Creates a new instance of {{.Type}}, bound to a specific deployed contract.
|
||||
public {{.Type}}(Address address, EthereumClient client) throws Exception {
|
||||
this(Geth.bindContract(address, ABI, client));
|
||||
}
|
||||
|
||||
{{range .Calls}}
|
||||
{{if gt (len .Normalized.Outputs) 1}}
|
||||
// {{capitalise .Normalized.Name}}Results is the output of a call to {{.Normalized.Name}}.
|
||||
public class {{capitalise .Normalized.Name}}Results {
|
||||
{{range $index, $item := .Normalized.Outputs}}public {{bindtype .Type}} {{if ne .Name ""}}{{.Name}}{{else}}Return{{$index}}{{end}};
|
||||
{{end}}
|
||||
}
|
||||
{{end}}
|
||||
|
||||
// {{.Normalized.Name}} is a free data retrieval call binding the contract method 0x{{printf "%x" .Original.Id}}.
|
||||
//
|
||||
// Solidity: {{.Original.String}}
|
||||
public {{if gt (len .Normalized.Outputs) 1}}{{capitalise .Normalized.Name}}Results{{else}}{{range .Normalized.Outputs}}{{bindtype .Type}}{{end}}{{end}} {{.Normalized.Name}}(CallOpts opts{{range .Normalized.Inputs}}, {{bindtype .Type}} {{.Name}}{{end}}) throws Exception {
|
||||
Interfaces args = Geth.newInterfaces({{(len .Normalized.Inputs)}});
|
||||
{{range $index, $item := .Normalized.Inputs}}args.set({{$index}}, Geth.newInterface()); args.get({{$index}}).set{{namedtype (bindtype .Type) .Type}}({{.Name}});
|
||||
{{end}}
|
||||
|
||||
Interfaces results = Geth.newInterfaces({{(len .Normalized.Outputs)}});
|
||||
{{range $index, $item := .Normalized.Outputs}}Interface result{{$index}} = Geth.newInterface(); result{{$index}}.setDefault{{namedtype (bindtype .Type) .Type}}(); results.set({{$index}}, result{{$index}});
|
||||
{{end}}
|
||||
|
||||
if (opts == null) {
|
||||
opts = Geth.newCallOpts();
|
||||
}
|
||||
this.Contract.call(opts, results, "{{.Original.Name}}", args);
|
||||
{{if gt (len .Normalized.Outputs) 1}}
|
||||
{{capitalise .Normalized.Name}}Results result = new {{capitalise .Normalized.Name}}Results();
|
||||
{{range $index, $item := .Normalized.Outputs}}result.{{if ne .Name ""}}{{.Name}}{{else}}Return{{$index}}{{end}} = results.get({{$index}}).get{{namedtype (bindtype .Type) .Type}}();
|
||||
{{end}}
|
||||
return result;
|
||||
{{else}}{{range .Normalized.Outputs}}return results.get(0).get{{namedtype (bindtype .Type) .Type}}();{{end}}
|
||||
{{end}}
|
||||
}
|
||||
{{end}}
|
||||
|
||||
{{range .Transacts}}
|
||||
// {{.Normalized.Name}} is a paid mutator transaction binding the contract method 0x{{printf "%x" .Original.Id}}.
|
||||
//
|
||||
// Solidity: {{.Original.String}}
|
||||
public Transaction {{.Normalized.Name}}(TransactOpts opts{{range .Normalized.Inputs}}, {{bindtype .Type}} {{.Name}}{{end}}) throws Exception {
|
||||
Interfaces args = Geth.newInterfaces({{(len .Normalized.Inputs)}});
|
||||
{{range $index, $item := .Normalized.Inputs}}args.set({{$index}}, Geth.newInterface()); args.get({{$index}}).set{{namedtype (bindtype .Type) .Type}}({{.Name}});
|
||||
{{end}}
|
||||
|
||||
return this.Contract.transact(opts, "{{.Original.Name}}" , args);
|
||||
}
|
||||
{{end}}
|
||||
}
|
||||
{{end}}
|
||||
`
|
||||
76
accounts/abi/bind/util.go
Normal file
76
accounts/abi/bind/util.go
Normal file
@@ -0,0 +1,76 @@
|
||||
// Copyright 2016 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package bind
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/core/types"
|
||||
"github.com/ethereum/go-ethereum/logger"
|
||||
"github.com/ethereum/go-ethereum/logger/glog"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
// WaitMined waits for tx to be mined on the blockchain.
|
||||
// It stops waiting when the context is canceled.
|
||||
func WaitMined(ctx context.Context, b DeployBackend, tx *types.Transaction) (*types.Receipt, error) {
|
||||
queryTicker := time.NewTicker(1 * time.Second)
|
||||
defer queryTicker.Stop()
|
||||
loghash := tx.Hash().Hex()[:8]
|
||||
for {
|
||||
receipt, err := b.TransactionReceipt(ctx, tx.Hash())
|
||||
if receipt != nil {
|
||||
return receipt, nil
|
||||
}
|
||||
if err != nil {
|
||||
glog.V(logger.Detail).Infof("tx %x error: %v", loghash, err)
|
||||
} else {
|
||||
glog.V(logger.Detail).Infof("tx %x not yet mined...", loghash)
|
||||
}
|
||||
// Wait for the next round.
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return nil, ctx.Err()
|
||||
case <-queryTicker.C:
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// WaitDeployed waits for a contract deployment transaction and returns the on-chain
|
||||
// contract address when it is mined. It stops waiting when ctx is canceled.
|
||||
func WaitDeployed(ctx context.Context, b DeployBackend, tx *types.Transaction) (common.Address, error) {
|
||||
if tx.To() != nil {
|
||||
return common.Address{}, fmt.Errorf("tx is not contract creation")
|
||||
}
|
||||
receipt, err := WaitMined(ctx, b, tx)
|
||||
if err != nil {
|
||||
return common.Address{}, err
|
||||
}
|
||||
if receipt.ContractAddress == (common.Address{}) {
|
||||
return common.Address{}, fmt.Errorf("zero address")
|
||||
}
|
||||
// Check that code has indeed been deployed at the address.
|
||||
// This matters on pre-Homestead chains: OOG in the constructor
|
||||
// could leave an empty account behind.
|
||||
code, err := b.CodeAt(ctx, receipt.ContractAddress, nil)
|
||||
if err == nil && len(code) == 0 {
|
||||
err = ErrNoCodeAfterDeploy
|
||||
}
|
||||
return receipt.ContractAddress, err
|
||||
}
|
||||
93
accounts/abi/bind/util_test.go
Normal file
93
accounts/abi/bind/util_test.go
Normal file
@@ -0,0 +1,93 @@
|
||||
// Copyright 2016 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package bind_test
|
||||
|
||||
import (
|
||||
"math/big"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/ethereum/go-ethereum/accounts/abi/bind"
|
||||
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/core"
|
||||
"github.com/ethereum/go-ethereum/core/types"
|
||||
"github.com/ethereum/go-ethereum/crypto"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
var testKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")
|
||||
|
||||
var waitDeployedTests = map[string]struct {
|
||||
code string
|
||||
gas *big.Int
|
||||
wantAddress common.Address
|
||||
wantErr error
|
||||
}{
|
||||
"successful deploy": {
|
||||
code: `6060604052600a8060106000396000f360606040526008565b00`,
|
||||
gas: big.NewInt(3000000),
|
||||
wantAddress: common.HexToAddress("0x3a220f351252089d385b29beca14e27f204c296a"),
|
||||
},
|
||||
"empty code": {
|
||||
code: ``,
|
||||
gas: big.NewInt(300000),
|
||||
wantErr: bind.ErrNoCodeAfterDeploy,
|
||||
wantAddress: common.HexToAddress("0x3a220f351252089d385b29beca14e27f204c296a"),
|
||||
},
|
||||
}
|
||||
|
||||
func TestWaitDeployed(t *testing.T) {
|
||||
for name, test := range waitDeployedTests {
|
||||
backend := backends.NewSimulatedBackend(core.GenesisAccount{
|
||||
Address: crypto.PubkeyToAddress(testKey.PublicKey),
|
||||
Balance: big.NewInt(10000000000),
|
||||
})
|
||||
|
||||
// Create the transaction.
|
||||
tx := types.NewContractCreation(0, big.NewInt(0), test.gas, big.NewInt(1), common.FromHex(test.code))
|
||||
tx, _ = tx.SignECDSA(types.HomesteadSigner{}, testKey)
|
||||
|
||||
// Wait for it to get mined in the background.
|
||||
var (
|
||||
err error
|
||||
address common.Address
|
||||
mined = make(chan struct{})
|
||||
ctx = context.Background()
|
||||
)
|
||||
go func() {
|
||||
address, err = bind.WaitDeployed(ctx, backend, tx)
|
||||
close(mined)
|
||||
}()
|
||||
|
||||
// Send and mine the transaction.
|
||||
backend.SendTransaction(ctx, tx)
|
||||
backend.Commit()
|
||||
|
||||
select {
|
||||
case <-mined:
|
||||
if err != test.wantErr {
|
||||
t.Errorf("test %q: error mismatch: got %q, want %q", name, err, test.wantErr)
|
||||
}
|
||||
if address != test.wantAddress {
|
||||
t.Errorf("test %q: unexpected contract address %s", name, address.Hex())
|
||||
}
|
||||
case <-time.After(2 * time.Second):
|
||||
t.Errorf("test %q: timeout", name)
|
||||
}
|
||||
}
|
||||
}
|
||||
26
accounts/abi/doc.go
Normal file
26
accounts/abi/doc.go
Normal file
@@ -0,0 +1,26 @@
|
||||
// Copyright 2015 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
// Package abi implements the Ethereum ABI (Application Binary
|
||||
// Interface).
|
||||
//
|
||||
// The Ethereum ABI is strongly typed, known at compile time
|
||||
// and static. This ABI will handle basic type casting; unsigned
|
||||
// to signed and visa versa. It does not handle slice casting such
|
||||
// as unsigned slice to signed slice. Bit size type casting is also
|
||||
// handled. ints with a bit size of 32 will be properly cast to int256,
|
||||
// etc.
|
||||
package abi
|
||||
79
accounts/abi/error.go
Normal file
79
accounts/abi/error.go
Normal file
@@ -0,0 +1,79 @@
|
||||
// Copyright 2016 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package abi
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"reflect"
|
||||
)
|
||||
|
||||
// formatSliceString formats the reflection kind with the given slice size
|
||||
// and returns a formatted string representation.
|
||||
func formatSliceString(kind reflect.Kind, sliceSize int) string {
|
||||
if sliceSize == -1 {
|
||||
return fmt.Sprintf("[]%v", kind)
|
||||
}
|
||||
return fmt.Sprintf("[%d]%v", sliceSize, kind)
|
||||
}
|
||||
|
||||
// sliceTypeCheck checks that the given slice can by assigned to the reflection
|
||||
// type in t.
|
||||
func sliceTypeCheck(t Type, val reflect.Value) error {
|
||||
if val.Kind() != reflect.Slice && val.Kind() != reflect.Array {
|
||||
return typeErr(formatSliceString(t.Kind, t.SliceSize), val.Type())
|
||||
}
|
||||
if t.IsArray && val.Len() != t.SliceSize {
|
||||
return typeErr(formatSliceString(t.Elem.Kind, t.SliceSize), formatSliceString(val.Type().Elem().Kind(), val.Len()))
|
||||
}
|
||||
|
||||
if t.Elem.IsSlice {
|
||||
if val.Len() > 0 {
|
||||
return sliceTypeCheck(*t.Elem, val.Index(0))
|
||||
}
|
||||
} else if t.Elem.IsArray {
|
||||
return sliceTypeCheck(*t.Elem, val.Index(0))
|
||||
}
|
||||
|
||||
if elemKind := val.Type().Elem().Kind(); elemKind != t.Elem.Kind {
|
||||
return typeErr(formatSliceString(t.Elem.Kind, t.SliceSize), val.Type())
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// typeCheck checks that the given reflection value can be assigned to the reflection
|
||||
// type in t.
|
||||
func typeCheck(t Type, value reflect.Value) error {
|
||||
if t.IsSlice || t.IsArray {
|
||||
return sliceTypeCheck(t, value)
|
||||
}
|
||||
|
||||
// Check base type validity. Element types will be checked later on.
|
||||
if t.Kind != value.Kind() {
|
||||
return typeErr(t.Kind, value.Kind())
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// varErr returns a formatted error.
|
||||
func varErr(expected, got reflect.Kind) error {
|
||||
return typeErr(expected, got)
|
||||
}
|
||||
|
||||
// typeErr returns a formatted type casting error.
|
||||
func typeErr(expected, got interface{}) error {
|
||||
return fmt.Errorf("abi: cannot use %v as type %v as argument", got, expected)
|
||||
}
|
||||
44
accounts/abi/event.go
Normal file
44
accounts/abi/event.go
Normal file
@@ -0,0 +1,44 @@
|
||||
// Copyright 2016 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package abi
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/crypto"
|
||||
)
|
||||
|
||||
// Event is an event potentially triggered by the EVM's LOG mechanism. The Event
|
||||
// holds type information (inputs) about the yielded output
|
||||
type Event struct {
|
||||
Name string
|
||||
Inputs []Argument
|
||||
}
|
||||
|
||||
// Id returns the canonical representation of the event's signature used by the
|
||||
// abi definition to identify event names and types.
|
||||
func (e Event) Id() common.Hash {
|
||||
types := make([]string, len(e.Inputs))
|
||||
i := 0
|
||||
for _, input := range e.Inputs {
|
||||
types[i] = input.Type.String()
|
||||
i++
|
||||
}
|
||||
return common.BytesToHash(crypto.Keccak256([]byte(fmt.Sprintf("%v(%v)", e.Name, strings.Join(types, ",")))))
|
||||
}
|
||||
56
accounts/abi/event_test.go
Normal file
56
accounts/abi/event_test.go
Normal file
@@ -0,0 +1,56 @@
|
||||
// Copyright 2016 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package abi
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/crypto"
|
||||
)
|
||||
|
||||
func TestEventId(t *testing.T) {
|
||||
var table = []struct {
|
||||
definition string
|
||||
expectations map[string]common.Hash
|
||||
}{
|
||||
{
|
||||
definition: `[
|
||||
{ "type" : "event", "name" : "balance", "inputs": [{ "name" : "in", "type": "uint" }] },
|
||||
{ "type" : "event", "name" : "check", "inputs": [{ "name" : "t", "type": "address" }, { "name": "b", "type": "uint256" }] }
|
||||
]`,
|
||||
expectations: map[string]common.Hash{
|
||||
"balance": crypto.Keccak256Hash([]byte("balance(uint256)")),
|
||||
"check": crypto.Keccak256Hash([]byte("check(address,uint256)")),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
for _, test := range table {
|
||||
abi, err := JSON(strings.NewReader(test.definition))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
for name, event := range abi.Events {
|
||||
if event.Id() != test.expectations[name] {
|
||||
t.Errorf("expected id to be %x, got %x", test.expectations[name], event.Id())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
118
accounts/abi/method.go
Normal file
118
accounts/abi/method.go
Normal file
@@ -0,0 +1,118 @@
|
||||
// Copyright 2015 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package abi
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"reflect"
|
||||
"strings"
|
||||
|
||||
"github.com/ethereum/go-ethereum/crypto"
|
||||
)
|
||||
|
||||
// Callable method given a `Name` and whether the method is a constant.
|
||||
// If the method is `Const` no transaction needs to be created for this
|
||||
// particular Method call. It can easily be simulated using a local VM.
|
||||
// For example a `Balance()` method only needs to retrieve something
|
||||
// from the storage and therefor requires no Tx to be send to the
|
||||
// network. A method such as `Transact` does require a Tx and thus will
|
||||
// be flagged `true`.
|
||||
// Input specifies the required input parameters for this gives method.
|
||||
type Method struct {
|
||||
Name string
|
||||
Const bool
|
||||
Inputs []Argument
|
||||
Outputs []Argument
|
||||
}
|
||||
|
||||
func (m Method) pack(method Method, args ...interface{}) ([]byte, error) {
|
||||
// Make sure arguments match up and pack them
|
||||
if len(args) != len(method.Inputs) {
|
||||
return nil, fmt.Errorf("argument count mismatch: %d for %d", len(args), len(method.Inputs))
|
||||
}
|
||||
// variable input is the output appended at the end of packed
|
||||
// output. This is used for strings and bytes types input.
|
||||
var variableInput []byte
|
||||
|
||||
var ret []byte
|
||||
for i, a := range args {
|
||||
input := method.Inputs[i]
|
||||
// pack the input
|
||||
packed, err := input.Type.pack(reflect.ValueOf(a))
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("`%s` %v", method.Name, err)
|
||||
}
|
||||
|
||||
// check for a slice type (string, bytes, slice)
|
||||
if input.Type.requiresLengthPrefix() {
|
||||
// calculate the offset
|
||||
offset := len(method.Inputs)*32 + len(variableInput)
|
||||
// set the offset
|
||||
ret = append(ret, packNum(reflect.ValueOf(offset))...)
|
||||
// Append the packed output to the variable input. The variable input
|
||||
// will be appended at the end of the input.
|
||||
variableInput = append(variableInput, packed...)
|
||||
} else {
|
||||
// append the packed value to the input
|
||||
ret = append(ret, packed...)
|
||||
}
|
||||
}
|
||||
// append the variable input at the end of the packed input
|
||||
ret = append(ret, variableInput...)
|
||||
|
||||
return ret, nil
|
||||
}
|
||||
|
||||
// Sig returns the methods string signature according to the ABI spec.
|
||||
//
|
||||
// Example
|
||||
//
|
||||
// function foo(uint32 a, int b) = "foo(uint32,int256)"
|
||||
//
|
||||
// Please note that "int" is substitute for its canonical representation "int256"
|
||||
func (m Method) Sig() string {
|
||||
types := make([]string, len(m.Inputs))
|
||||
i := 0
|
||||
for _, input := range m.Inputs {
|
||||
types[i] = input.Type.String()
|
||||
i++
|
||||
}
|
||||
return fmt.Sprintf("%v(%v)", m.Name, strings.Join(types, ","))
|
||||
}
|
||||
|
||||
func (m Method) String() string {
|
||||
inputs := make([]string, len(m.Inputs))
|
||||
for i, input := range m.Inputs {
|
||||
inputs[i] = fmt.Sprintf("%v %v", input.Name, input.Type)
|
||||
}
|
||||
outputs := make([]string, len(m.Outputs))
|
||||
for i, output := range m.Outputs {
|
||||
if len(output.Name) > 0 {
|
||||
outputs[i] = fmt.Sprintf("%v ", output.Name)
|
||||
}
|
||||
outputs[i] += output.Type.String()
|
||||
}
|
||||
constant := ""
|
||||
if m.Const {
|
||||
constant = "constant "
|
||||
}
|
||||
return fmt.Sprintf("function %v(%v) %sreturns(%v)", m.Name, strings.Join(inputs, ", "), constant, strings.Join(outputs, ", "))
|
||||
}
|
||||
|
||||
func (m Method) Id() []byte {
|
||||
return crypto.Keccak256([]byte(m.Sig()))[:4]
|
||||
}
|
||||
84
accounts/abi/numbers.go
Normal file
84
accounts/abi/numbers.go
Normal file
@@ -0,0 +1,84 @@
|
||||
// Copyright 2015 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package abi
|
||||
|
||||
import (
|
||||
"math/big"
|
||||
"reflect"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
)
|
||||
|
||||
var (
|
||||
big_t = reflect.TypeOf(big.Int{})
|
||||
ubig_t = reflect.TypeOf(big.Int{})
|
||||
byte_t = reflect.TypeOf(byte(0))
|
||||
byte_ts = reflect.TypeOf([]byte(nil))
|
||||
uint_t = reflect.TypeOf(uint(0))
|
||||
uint8_t = reflect.TypeOf(uint8(0))
|
||||
uint16_t = reflect.TypeOf(uint16(0))
|
||||
uint32_t = reflect.TypeOf(uint32(0))
|
||||
uint64_t = reflect.TypeOf(uint64(0))
|
||||
int_t = reflect.TypeOf(int(0))
|
||||
int8_t = reflect.TypeOf(int8(0))
|
||||
int16_t = reflect.TypeOf(int16(0))
|
||||
int32_t = reflect.TypeOf(int32(0))
|
||||
int64_t = reflect.TypeOf(int64(0))
|
||||
hash_t = reflect.TypeOf(common.Hash{})
|
||||
address_t = reflect.TypeOf(common.Address{})
|
||||
|
||||
uint_ts = reflect.TypeOf([]uint(nil))
|
||||
uint8_ts = reflect.TypeOf([]uint8(nil))
|
||||
uint16_ts = reflect.TypeOf([]uint16(nil))
|
||||
uint32_ts = reflect.TypeOf([]uint32(nil))
|
||||
uint64_ts = reflect.TypeOf([]uint64(nil))
|
||||
ubig_ts = reflect.TypeOf([]*big.Int(nil))
|
||||
|
||||
int_ts = reflect.TypeOf([]int(nil))
|
||||
int8_ts = reflect.TypeOf([]int8(nil))
|
||||
int16_ts = reflect.TypeOf([]int16(nil))
|
||||
int32_ts = reflect.TypeOf([]int32(nil))
|
||||
int64_ts = reflect.TypeOf([]int64(nil))
|
||||
big_ts = reflect.TypeOf([]*big.Int(nil))
|
||||
)
|
||||
|
||||
// U256 converts a big Int into a 256bit EVM number.
|
||||
func U256(n *big.Int) []byte {
|
||||
return common.LeftPadBytes(common.U256(n).Bytes(), 32)
|
||||
}
|
||||
|
||||
// packNum packs the given number (using the reflect value) and will cast it to appropriate number representation
|
||||
func packNum(value reflect.Value) []byte {
|
||||
switch kind := value.Kind(); kind {
|
||||
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
|
||||
return U256(new(big.Int).SetUint64(value.Uint()))
|
||||
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
|
||||
return U256(big.NewInt(value.Int()))
|
||||
case reflect.Ptr:
|
||||
return U256(value.Interface().(*big.Int))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// checks whether the given reflect value is signed. This also works for slices with a number type
|
||||
func isSigned(v reflect.Value) bool {
|
||||
switch v.Type() {
|
||||
case int_ts, int8_ts, int16_ts, int32_ts, int64_ts, int_t, int8_t, int16_t, int32_t, int64_t:
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
82
accounts/abi/numbers_test.go
Normal file
82
accounts/abi/numbers_test.go
Normal file
@@ -0,0 +1,82 @@
|
||||
// Copyright 2015 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package abi
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"math"
|
||||
"math/big"
|
||||
"reflect"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestNumberTypes(t *testing.T) {
|
||||
ubytes := make([]byte, 32)
|
||||
ubytes[31] = 1
|
||||
|
||||
unsigned := U256(big.NewInt(1))
|
||||
if !bytes.Equal(unsigned, ubytes) {
|
||||
t.Errorf("expected %x got %x", ubytes, unsigned)
|
||||
}
|
||||
}
|
||||
|
||||
func TestPackNumber(t *testing.T) {
|
||||
tests := []struct {
|
||||
value reflect.Value
|
||||
packed []byte
|
||||
}{
|
||||
// Protocol limits
|
||||
{reflect.ValueOf(0), []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
|
||||
{reflect.ValueOf(1), []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}},
|
||||
{reflect.ValueOf(-1), []byte{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}},
|
||||
|
||||
// Type corner cases
|
||||
{reflect.ValueOf(uint8(math.MaxUint8)), []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255}},
|
||||
{reflect.ValueOf(uint16(math.MaxUint16)), []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255}},
|
||||
{reflect.ValueOf(uint32(math.MaxUint32)), []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255}},
|
||||
{reflect.ValueOf(uint64(math.MaxUint64)), []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255}},
|
||||
|
||||
{reflect.ValueOf(int8(math.MaxInt8)), []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 127}},
|
||||
{reflect.ValueOf(int16(math.MaxInt16)), []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 127, 255}},
|
||||
{reflect.ValueOf(int32(math.MaxInt32)), []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 127, 255, 255, 255}},
|
||||
{reflect.ValueOf(int64(math.MaxInt64)), []byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 127, 255, 255, 255, 255, 255, 255, 255}},
|
||||
|
||||
{reflect.ValueOf(int8(math.MinInt8)), []byte{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 128}},
|
||||
{reflect.ValueOf(int16(math.MinInt16)), []byte{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 128, 0}},
|
||||
{reflect.ValueOf(int32(math.MinInt32)), []byte{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 128, 0, 0, 0}},
|
||||
{reflect.ValueOf(int64(math.MinInt64)), []byte{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 128, 0, 0, 0, 0, 0, 0, 0}},
|
||||
}
|
||||
for i, tt := range tests {
|
||||
packed := packNum(tt.value)
|
||||
if !bytes.Equal(packed, tt.packed) {
|
||||
t.Errorf("test %d: pack mismatch: have %x, want %x", i, packed, tt.packed)
|
||||
}
|
||||
}
|
||||
if packed := packNum(reflect.ValueOf("string")); packed != nil {
|
||||
t.Errorf("expected 'string' to pack to nil. got %x instead", packed)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSigned(t *testing.T) {
|
||||
if isSigned(reflect.ValueOf(uint(10))) {
|
||||
t.Error("signed")
|
||||
}
|
||||
|
||||
if !isSigned(reflect.ValueOf(int(10))) {
|
||||
t.Error("not signed")
|
||||
}
|
||||
}
|
||||
65
accounts/abi/packing.go
Normal file
65
accounts/abi/packing.go
Normal file
@@ -0,0 +1,65 @@
|
||||
// Copyright 2016 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package abi
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
)
|
||||
|
||||
// packBytesSlice packs the given bytes as [L, V] as the canonical representation
|
||||
// bytes slice
|
||||
func packBytesSlice(bytes []byte, l int) []byte {
|
||||
len := packNum(reflect.ValueOf(l))
|
||||
return append(len, common.RightPadBytes(bytes, (l+31)/32*32)...)
|
||||
}
|
||||
|
||||
// packElement packs the given reflect value according to the abi specification in
|
||||
// t.
|
||||
func packElement(t Type, reflectValue reflect.Value) []byte {
|
||||
switch t.T {
|
||||
case IntTy, UintTy:
|
||||
return packNum(reflectValue)
|
||||
case StringTy:
|
||||
return packBytesSlice([]byte(reflectValue.String()), reflectValue.Len())
|
||||
case AddressTy:
|
||||
if reflectValue.Kind() == reflect.Array {
|
||||
reflectValue = mustArrayToByteSlice(reflectValue)
|
||||
}
|
||||
|
||||
return common.LeftPadBytes(reflectValue.Bytes(), 32)
|
||||
case BoolTy:
|
||||
if reflectValue.Bool() {
|
||||
return common.LeftPadBytes(common.Big1.Bytes(), 32)
|
||||
} else {
|
||||
return common.LeftPadBytes(common.Big0.Bytes(), 32)
|
||||
}
|
||||
case BytesTy:
|
||||
if reflectValue.Kind() == reflect.Array {
|
||||
reflectValue = mustArrayToByteSlice(reflectValue)
|
||||
}
|
||||
return packBytesSlice(reflectValue.Bytes(), reflectValue.Len())
|
||||
case FixedBytesTy:
|
||||
if reflectValue.Kind() == reflect.Array {
|
||||
reflectValue = mustArrayToByteSlice(reflectValue)
|
||||
}
|
||||
|
||||
return common.RightPadBytes(reflectValue.Bytes(), 32)
|
||||
}
|
||||
panic("abi: fatal error")
|
||||
}
|
||||
93
accounts/abi/reflect.go
Normal file
93
accounts/abi/reflect.go
Normal file
@@ -0,0 +1,93 @@
|
||||
// Copyright 2016 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package abi
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"reflect"
|
||||
)
|
||||
|
||||
// indirect recursively dereferences the value until it either gets the value
|
||||
// or finds a big.Int
|
||||
func indirect(v reflect.Value) reflect.Value {
|
||||
if v.Kind() == reflect.Ptr && v.Elem().Type() != big_t {
|
||||
return indirect(v.Elem())
|
||||
}
|
||||
return v
|
||||
}
|
||||
|
||||
// reflectIntKind returns the reflect using the given size and
|
||||
// unsignedness.
|
||||
func reflectIntKind(unsigned bool, size int) reflect.Kind {
|
||||
switch size {
|
||||
case 8:
|
||||
if unsigned {
|
||||
return reflect.Uint8
|
||||
}
|
||||
return reflect.Int8
|
||||
case 16:
|
||||
if unsigned {
|
||||
return reflect.Uint16
|
||||
}
|
||||
return reflect.Int16
|
||||
case 32:
|
||||
if unsigned {
|
||||
return reflect.Uint32
|
||||
}
|
||||
return reflect.Int32
|
||||
case 64:
|
||||
if unsigned {
|
||||
return reflect.Uint64
|
||||
}
|
||||
return reflect.Int64
|
||||
}
|
||||
return reflect.Ptr
|
||||
}
|
||||
|
||||
// mustArrayToBytesSlice creates a new byte slice with the exact same size as value
|
||||
// and copies the bytes in value to the new slice.
|
||||
func mustArrayToByteSlice(value reflect.Value) reflect.Value {
|
||||
slice := reflect.MakeSlice(reflect.TypeOf([]byte{}), value.Len(), value.Len())
|
||||
reflect.Copy(slice, value)
|
||||
return slice
|
||||
}
|
||||
|
||||
// set attempts to assign src to dst by either setting, copying or otherwise.
|
||||
//
|
||||
// set is a bit more lenient when it comes to assignment and doesn't force an as
|
||||
// strict ruleset as bare `reflect` does.
|
||||
func set(dst, src reflect.Value, output Argument) error {
|
||||
dstType := dst.Type()
|
||||
srcType := src.Type()
|
||||
|
||||
switch {
|
||||
case dstType.AssignableTo(src.Type()):
|
||||
dst.Set(src)
|
||||
case dstType.Kind() == reflect.Array && srcType.Kind() == reflect.Slice:
|
||||
if dst.Len() < output.Type.SliceSize {
|
||||
return fmt.Errorf("abi: cannot unmarshal src (len=%d) in to dst (len=%d)", output.Type.SliceSize, dst.Len())
|
||||
}
|
||||
reflect.Copy(dst, src)
|
||||
case dstType.Kind() == reflect.Interface:
|
||||
dst.Set(src)
|
||||
case dstType.Kind() == reflect.Ptr:
|
||||
return set(dst.Elem(), src, output)
|
||||
default:
|
||||
return fmt.Errorf("abi: cannot unmarshal %v in to %v", src.Type(), dst.Type())
|
||||
}
|
||||
return nil
|
||||
}
|
||||
195
accounts/abi/type.go
Normal file
195
accounts/abi/type.go
Normal file
@@ -0,0 +1,195 @@
|
||||
// Copyright 2015 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package abi
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"reflect"
|
||||
"regexp"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
const (
|
||||
IntTy byte = iota
|
||||
UintTy
|
||||
BoolTy
|
||||
StringTy
|
||||
SliceTy
|
||||
AddressTy
|
||||
FixedBytesTy
|
||||
BytesTy
|
||||
HashTy
|
||||
RealTy
|
||||
)
|
||||
|
||||
// Type is the reflection of the supported argument type
|
||||
type Type struct {
|
||||
IsSlice, IsArray bool
|
||||
SliceSize int
|
||||
|
||||
Elem *Type
|
||||
|
||||
Kind reflect.Kind
|
||||
Type reflect.Type
|
||||
Size int
|
||||
T byte // Our own type checking
|
||||
|
||||
stringKind string // holds the unparsed string for deriving signatures
|
||||
}
|
||||
|
||||
var (
|
||||
// fullTypeRegex parses the abi types
|
||||
//
|
||||
// Types can be in the format of:
|
||||
//
|
||||
// Input = Type [ "[" [ Number ] "]" ] Name .
|
||||
// Type = [ "u" ] "int" [ Number ] .
|
||||
//
|
||||
// Examples:
|
||||
//
|
||||
// string int uint real
|
||||
// string32 int8 uint8 uint[]
|
||||
// address int256 uint256 real[2]
|
||||
fullTypeRegex = regexp.MustCompile("([a-zA-Z0-9]+)(\\[([0-9]*)?\\])?")
|
||||
// typeRegex parses the abi sub types
|
||||
typeRegex = regexp.MustCompile("([a-zA-Z]+)([0-9]*)?")
|
||||
)
|
||||
|
||||
// NewType creates a new reflection type of abi type given in t.
|
||||
func NewType(t string) (typ Type, err error) {
|
||||
res := fullTypeRegex.FindAllStringSubmatch(t, -1)[0]
|
||||
// check if type is slice and parse type.
|
||||
switch {
|
||||
case res[3] != "":
|
||||
// err is ignored. Already checked for number through the regexp
|
||||
typ.SliceSize, _ = strconv.Atoi(res[3])
|
||||
typ.IsArray = true
|
||||
case res[2] != "":
|
||||
typ.IsSlice, typ.SliceSize = true, -1
|
||||
case res[0] == "":
|
||||
return Type{}, fmt.Errorf("abi: type parse error: %s", t)
|
||||
}
|
||||
if typ.IsArray || typ.IsSlice {
|
||||
sliceType, err := NewType(res[1])
|
||||
if err != nil {
|
||||
return Type{}, err
|
||||
}
|
||||
typ.Elem = &sliceType
|
||||
typ.stringKind = sliceType.stringKind + t[len(res[1]):]
|
||||
return typ, nil
|
||||
}
|
||||
|
||||
// parse the type and size of the abi-type.
|
||||
parsedType := typeRegex.FindAllStringSubmatch(res[1], -1)[0]
|
||||
// varSize is the size of the variable
|
||||
var varSize int
|
||||
if len(parsedType[2]) > 0 {
|
||||
var err error
|
||||
varSize, err = strconv.Atoi(parsedType[2])
|
||||
if err != nil {
|
||||
return Type{}, fmt.Errorf("abi: error parsing variable size: %v", err)
|
||||
}
|
||||
}
|
||||
// varType is the parsed abi type
|
||||
varType := parsedType[1]
|
||||
// substitute canonical integer
|
||||
if varSize == 0 && (varType == "int" || varType == "uint") {
|
||||
varSize = 256
|
||||
t += "256"
|
||||
}
|
||||
typ.stringKind = t
|
||||
|
||||
switch varType {
|
||||
case "int":
|
||||
typ.Kind = reflectIntKind(false, varSize)
|
||||
typ.Type = big_t
|
||||
typ.Size = varSize
|
||||
typ.T = IntTy
|
||||
case "uint":
|
||||
typ.Kind = reflectIntKind(true, varSize)
|
||||
typ.Type = ubig_t
|
||||
typ.Size = varSize
|
||||
typ.T = UintTy
|
||||
case "bool":
|
||||
typ.Kind = reflect.Bool
|
||||
typ.T = BoolTy
|
||||
case "address":
|
||||
typ.Kind = reflect.Array
|
||||
typ.Type = address_t
|
||||
typ.Size = 20
|
||||
typ.T = AddressTy
|
||||
case "string":
|
||||
typ.Kind = reflect.String
|
||||
typ.Size = -1
|
||||
typ.T = StringTy
|
||||
case "bytes":
|
||||
sliceType, _ := NewType("uint8")
|
||||
typ.Elem = &sliceType
|
||||
if varSize == 0 {
|
||||
typ.IsSlice = true
|
||||
typ.T = BytesTy
|
||||
typ.SliceSize = -1
|
||||
} else {
|
||||
typ.IsArray = true
|
||||
typ.T = FixedBytesTy
|
||||
typ.SliceSize = varSize
|
||||
}
|
||||
default:
|
||||
return Type{}, fmt.Errorf("unsupported arg type: %s", t)
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// String implements Stringer
|
||||
func (t Type) String() (out string) {
|
||||
return t.stringKind
|
||||
}
|
||||
|
||||
func (t Type) pack(v reflect.Value) ([]byte, error) {
|
||||
// dereference pointer first if it's a pointer
|
||||
v = indirect(v)
|
||||
|
||||
if err := typeCheck(t, v); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if (t.IsSlice || t.IsArray) && t.T != BytesTy && t.T != FixedBytesTy {
|
||||
var packed []byte
|
||||
|
||||
for i := 0; i < v.Len(); i++ {
|
||||
val, err := t.Elem.pack(v.Index(i))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
packed = append(packed, val...)
|
||||
}
|
||||
if t.IsSlice {
|
||||
return packBytesSlice(packed, v.Len()), nil
|
||||
} else if t.IsArray {
|
||||
return packed, nil
|
||||
}
|
||||
}
|
||||
|
||||
return packElement(t, v), nil
|
||||
}
|
||||
|
||||
// requireLengthPrefix returns whether the type requires any sort of length
|
||||
// prefixing.
|
||||
func (t Type) requiresLengthPrefix() bool {
|
||||
return t.T != FixedBytesTy && (t.T == StringTy || t.T == BytesTy || t.IsSlice)
|
||||
}
|
||||
363
accounts/account_manager.go
Normal file
363
accounts/account_manager.go
Normal file
@@ -0,0 +1,363 @@
|
||||
// Copyright 2015 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
// Package accounts implements encrypted storage of secp256k1 private keys.
|
||||
//
|
||||
// Keys are stored as encrypted JSON files according to the Web3 Secret Storage specification.
|
||||
// See https://github.com/ethereum/wiki/wiki/Web3-Secret-Storage-Definition for more information.
|
||||
package accounts
|
||||
|
||||
import (
|
||||
"crypto/ecdsa"
|
||||
crand "crypto/rand"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/crypto"
|
||||
)
|
||||
|
||||
var (
|
||||
ErrLocked = errors.New("account is locked")
|
||||
ErrNoMatch = errors.New("no key for given address or file")
|
||||
ErrDecrypt = errors.New("could not decrypt key with given passphrase")
|
||||
)
|
||||
|
||||
// Account represents a stored key.
|
||||
// When used as an argument, it selects a unique key file to act on.
|
||||
type Account struct {
|
||||
Address common.Address // Ethereum account address derived from the key
|
||||
|
||||
// File contains the key file name.
|
||||
// When Acccount is used as an argument to select a key, File can be left blank to
|
||||
// select just by address or set to the basename or absolute path of a file in the key
|
||||
// directory. Accounts returned by Manager will always contain an absolute path.
|
||||
File string
|
||||
}
|
||||
|
||||
func (acc *Account) MarshalJSON() ([]byte, error) {
|
||||
return []byte(`"` + acc.Address.Hex() + `"`), nil
|
||||
}
|
||||
|
||||
func (acc *Account) UnmarshalJSON(raw []byte) error {
|
||||
return json.Unmarshal(raw, &acc.Address)
|
||||
}
|
||||
|
||||
// Manager manages a key storage directory on disk.
|
||||
type Manager struct {
|
||||
cache *addrCache
|
||||
keyStore keyStore
|
||||
mu sync.RWMutex
|
||||
unlocked map[common.Address]*unlocked
|
||||
}
|
||||
|
||||
type unlocked struct {
|
||||
*Key
|
||||
abort chan struct{}
|
||||
}
|
||||
|
||||
// NewManager creates a manager for the given directory.
|
||||
func NewManager(keydir string, scryptN, scryptP int) *Manager {
|
||||
keydir, _ = filepath.Abs(keydir)
|
||||
am := &Manager{keyStore: &keyStorePassphrase{keydir, scryptN, scryptP}}
|
||||
am.init(keydir)
|
||||
return am
|
||||
}
|
||||
|
||||
// NewPlaintextManager creates a manager for the given directory.
|
||||
// Deprecated: Use NewManager.
|
||||
func NewPlaintextManager(keydir string) *Manager {
|
||||
keydir, _ = filepath.Abs(keydir)
|
||||
am := &Manager{keyStore: &keyStorePlain{keydir}}
|
||||
am.init(keydir)
|
||||
return am
|
||||
}
|
||||
|
||||
func (am *Manager) init(keydir string) {
|
||||
am.unlocked = make(map[common.Address]*unlocked)
|
||||
am.cache = newAddrCache(keydir)
|
||||
// TODO: In order for this finalizer to work, there must be no references
|
||||
// to am. addrCache doesn't keep a reference but unlocked keys do,
|
||||
// so the finalizer will not trigger until all timed unlocks have expired.
|
||||
runtime.SetFinalizer(am, func(m *Manager) {
|
||||
m.cache.close()
|
||||
})
|
||||
}
|
||||
|
||||
// HasAddress reports whether a key with the given address is present.
|
||||
func (am *Manager) HasAddress(addr common.Address) bool {
|
||||
return am.cache.hasAddress(addr)
|
||||
}
|
||||
|
||||
// Accounts returns all key files present in the directory.
|
||||
func (am *Manager) Accounts() []Account {
|
||||
return am.cache.accounts()
|
||||
}
|
||||
|
||||
// DeleteAccount deletes the key matched by account if the passphrase is correct.
|
||||
// If a contains no filename, the address must match a unique key.
|
||||
func (am *Manager) DeleteAccount(a Account, passphrase string) error {
|
||||
// Decrypting the key isn't really necessary, but we do
|
||||
// it anyway to check the password and zero out the key
|
||||
// immediately afterwards.
|
||||
a, key, err := am.getDecryptedKey(a, passphrase)
|
||||
if key != nil {
|
||||
zeroKey(key.PrivateKey)
|
||||
}
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
// The order is crucial here. The key is dropped from the
|
||||
// cache after the file is gone so that a reload happening in
|
||||
// between won't insert it into the cache again.
|
||||
err = os.Remove(a.File)
|
||||
if err == nil {
|
||||
am.cache.delete(a)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
// Sign calculates a ECDSA signature for the given hash.
|
||||
// Note, Ethereum signatures have a particular format as described in the
|
||||
// yellow paper. Use the SignEthereum function to calculate a signature
|
||||
// in Ethereum format.
|
||||
func (am *Manager) Sign(addr common.Address, hash []byte) ([]byte, error) {
|
||||
am.mu.RLock()
|
||||
defer am.mu.RUnlock()
|
||||
unlockedKey, found := am.unlocked[addr]
|
||||
if !found {
|
||||
return nil, ErrLocked
|
||||
}
|
||||
return crypto.Sign(hash, unlockedKey.PrivateKey)
|
||||
}
|
||||
|
||||
// SignEthereum calculates a ECDSA signature for the given hash.
|
||||
// The signature has the format as described in the Ethereum yellow paper.
|
||||
func (am *Manager) SignEthereum(addr common.Address, hash []byte) ([]byte, error) {
|
||||
am.mu.RLock()
|
||||
defer am.mu.RUnlock()
|
||||
unlockedKey, found := am.unlocked[addr]
|
||||
if !found {
|
||||
return nil, ErrLocked
|
||||
}
|
||||
return crypto.SignEthereum(hash, unlockedKey.PrivateKey)
|
||||
}
|
||||
|
||||
// SignWithPassphrase signs hash if the private key matching the given
|
||||
// address can be decrypted with the given passphrase.
|
||||
func (am *Manager) SignWithPassphrase(addr common.Address, passphrase string, hash []byte) (signature []byte, err error) {
|
||||
_, key, err := am.getDecryptedKey(Account{Address: addr}, passphrase)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
defer zeroKey(key.PrivateKey)
|
||||
return crypto.SignEthereum(hash, key.PrivateKey)
|
||||
}
|
||||
|
||||
// Unlock unlocks the given account indefinitely.
|
||||
func (am *Manager) Unlock(a Account, passphrase string) error {
|
||||
return am.TimedUnlock(a, passphrase, 0)
|
||||
}
|
||||
|
||||
// Lock removes the private key with the given address from memory.
|
||||
func (am *Manager) Lock(addr common.Address) error {
|
||||
am.mu.Lock()
|
||||
if unl, found := am.unlocked[addr]; found {
|
||||
am.mu.Unlock()
|
||||
am.expire(addr, unl, time.Duration(0)*time.Nanosecond)
|
||||
} else {
|
||||
am.mu.Unlock()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// TimedUnlock unlocks the given account with the passphrase. The account
|
||||
// stays unlocked for the duration of timeout. A timeout of 0 unlocks the account
|
||||
// until the program exits. The account must match a unique key file.
|
||||
//
|
||||
// If the account address is already unlocked for a duration, TimedUnlock extends or
|
||||
// shortens the active unlock timeout. If the address was previously unlocked
|
||||
// indefinitely the timeout is not altered.
|
||||
func (am *Manager) TimedUnlock(a Account, passphrase string, timeout time.Duration) error {
|
||||
a, key, err := am.getDecryptedKey(a, passphrase)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
am.mu.Lock()
|
||||
defer am.mu.Unlock()
|
||||
u, found := am.unlocked[a.Address]
|
||||
if found {
|
||||
if u.abort == nil {
|
||||
// The address was unlocked indefinitely, so unlocking
|
||||
// it with a timeout would be confusing.
|
||||
zeroKey(key.PrivateKey)
|
||||
return nil
|
||||
} else {
|
||||
// Terminate the expire goroutine and replace it below.
|
||||
close(u.abort)
|
||||
}
|
||||
}
|
||||
if timeout > 0 {
|
||||
u = &unlocked{Key: key, abort: make(chan struct{})}
|
||||
go am.expire(a.Address, u, timeout)
|
||||
} else {
|
||||
u = &unlocked{Key: key}
|
||||
}
|
||||
am.unlocked[a.Address] = u
|
||||
return nil
|
||||
}
|
||||
|
||||
// Find resolves the given account into a unique entry in the keystore.
|
||||
func (am *Manager) Find(a Account) (Account, error) {
|
||||
am.cache.maybeReload()
|
||||
am.cache.mu.Lock()
|
||||
a, err := am.cache.find(a)
|
||||
am.cache.mu.Unlock()
|
||||
return a, err
|
||||
}
|
||||
|
||||
func (am *Manager) getDecryptedKey(a Account, auth string) (Account, *Key, error) {
|
||||
a, err := am.Find(a)
|
||||
if err != nil {
|
||||
return a, nil, err
|
||||
}
|
||||
key, err := am.keyStore.GetKey(a.Address, a.File, auth)
|
||||
return a, key, err
|
||||
}
|
||||
|
||||
func (am *Manager) expire(addr common.Address, u *unlocked, timeout time.Duration) {
|
||||
t := time.NewTimer(timeout)
|
||||
defer t.Stop()
|
||||
select {
|
||||
case <-u.abort:
|
||||
// just quit
|
||||
case <-t.C:
|
||||
am.mu.Lock()
|
||||
// only drop if it's still the same key instance that dropLater
|
||||
// was launched with. we can check that using pointer equality
|
||||
// because the map stores a new pointer every time the key is
|
||||
// unlocked.
|
||||
if am.unlocked[addr] == u {
|
||||
zeroKey(u.PrivateKey)
|
||||
delete(am.unlocked, addr)
|
||||
}
|
||||
am.mu.Unlock()
|
||||
}
|
||||
}
|
||||
|
||||
// NewAccount generates a new key and stores it into the key directory,
|
||||
// encrypting it with the passphrase.
|
||||
func (am *Manager) NewAccount(passphrase string) (Account, error) {
|
||||
_, account, err := storeNewKey(am.keyStore, crand.Reader, passphrase)
|
||||
if err != nil {
|
||||
return Account{}, err
|
||||
}
|
||||
// Add the account to the cache immediately rather
|
||||
// than waiting for file system notifications to pick it up.
|
||||
am.cache.add(account)
|
||||
return account, nil
|
||||
}
|
||||
|
||||
// AccountByIndex returns the ith account.
|
||||
func (am *Manager) AccountByIndex(i int) (Account, error) {
|
||||
accounts := am.Accounts()
|
||||
if i < 0 || i >= len(accounts) {
|
||||
return Account{}, fmt.Errorf("account index %d out of range [0, %d]", i, len(accounts)-1)
|
||||
}
|
||||
return accounts[i], nil
|
||||
}
|
||||
|
||||
// Export exports as a JSON key, encrypted with newPassphrase.
|
||||
func (am *Manager) Export(a Account, passphrase, newPassphrase string) (keyJSON []byte, err error) {
|
||||
_, key, err := am.getDecryptedKey(a, passphrase)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
var N, P int
|
||||
if store, ok := am.keyStore.(*keyStorePassphrase); ok {
|
||||
N, P = store.scryptN, store.scryptP
|
||||
} else {
|
||||
N, P = StandardScryptN, StandardScryptP
|
||||
}
|
||||
return EncryptKey(key, newPassphrase, N, P)
|
||||
}
|
||||
|
||||
// Import stores the given encrypted JSON key into the key directory.
|
||||
func (am *Manager) Import(keyJSON []byte, passphrase, newPassphrase string) (Account, error) {
|
||||
key, err := DecryptKey(keyJSON, passphrase)
|
||||
if key != nil && key.PrivateKey != nil {
|
||||
defer zeroKey(key.PrivateKey)
|
||||
}
|
||||
if err != nil {
|
||||
return Account{}, err
|
||||
}
|
||||
return am.importKey(key, newPassphrase)
|
||||
}
|
||||
|
||||
// ImportECDSA stores the given key into the key directory, encrypting it with the passphrase.
|
||||
func (am *Manager) ImportECDSA(priv *ecdsa.PrivateKey, passphrase string) (Account, error) {
|
||||
key := newKeyFromECDSA(priv)
|
||||
if am.cache.hasAddress(key.Address) {
|
||||
return Account{}, fmt.Errorf("account already exists")
|
||||
}
|
||||
|
||||
return am.importKey(key, passphrase)
|
||||
}
|
||||
|
||||
func (am *Manager) importKey(key *Key, passphrase string) (Account, error) {
|
||||
a := Account{Address: key.Address, File: am.keyStore.JoinPath(keyFileName(key.Address))}
|
||||
if err := am.keyStore.StoreKey(a.File, key, passphrase); err != nil {
|
||||
return Account{}, err
|
||||
}
|
||||
am.cache.add(a)
|
||||
return a, nil
|
||||
}
|
||||
|
||||
// Update changes the passphrase of an existing account.
|
||||
func (am *Manager) Update(a Account, passphrase, newPassphrase string) error {
|
||||
a, key, err := am.getDecryptedKey(a, passphrase)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return am.keyStore.StoreKey(a.File, key, newPassphrase)
|
||||
}
|
||||
|
||||
// ImportPreSaleKey decrypts the given Ethereum presale wallet and stores
|
||||
// a key file in the key directory. The key file is encrypted with the same passphrase.
|
||||
func (am *Manager) ImportPreSaleKey(keyJSON []byte, passphrase string) (Account, error) {
|
||||
a, _, err := importPreSaleKey(am.keyStore, keyJSON, passphrase)
|
||||
if err != nil {
|
||||
return a, err
|
||||
}
|
||||
am.cache.add(a)
|
||||
return a, nil
|
||||
}
|
||||
|
||||
// zeroKey zeroes a private key in memory.
|
||||
func zeroKey(k *ecdsa.PrivateKey) {
|
||||
b := k.D.Bits()
|
||||
for i := range b {
|
||||
b[i] = 0
|
||||
}
|
||||
}
|
||||
218
accounts/accounts_test.go
Normal file
218
accounts/accounts_test.go
Normal file
@@ -0,0 +1,218 @@
|
||||
// Copyright 2015 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package accounts
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"runtime"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
)
|
||||
|
||||
var testSigData = make([]byte, 32)
|
||||
|
||||
func TestManager(t *testing.T) {
|
||||
dir, am := tmpManager(t, true)
|
||||
defer os.RemoveAll(dir)
|
||||
|
||||
a, err := am.NewAccount("foo")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if !strings.HasPrefix(a.File, dir) {
|
||||
t.Errorf("account file %s doesn't have dir prefix", a.File)
|
||||
}
|
||||
stat, err := os.Stat(a.File)
|
||||
if err != nil {
|
||||
t.Fatalf("account file %s doesn't exist (%v)", a.File, err)
|
||||
}
|
||||
if runtime.GOOS != "windows" && stat.Mode() != 0600 {
|
||||
t.Fatalf("account file has wrong mode: got %o, want %o", stat.Mode(), 0600)
|
||||
}
|
||||
if !am.HasAddress(a.Address) {
|
||||
t.Errorf("HasAccount(%x) should've returned true", a.Address)
|
||||
}
|
||||
if err := am.Update(a, "foo", "bar"); err != nil {
|
||||
t.Errorf("Update error: %v", err)
|
||||
}
|
||||
if err := am.DeleteAccount(a, "bar"); err != nil {
|
||||
t.Errorf("DeleteAccount error: %v", err)
|
||||
}
|
||||
if common.FileExist(a.File) {
|
||||
t.Errorf("account file %s should be gone after DeleteAccount", a.File)
|
||||
}
|
||||
if am.HasAddress(a.Address) {
|
||||
t.Errorf("HasAccount(%x) should've returned true after DeleteAccount", a.Address)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSign(t *testing.T) {
|
||||
dir, am := tmpManager(t, true)
|
||||
defer os.RemoveAll(dir)
|
||||
|
||||
pass := "" // not used but required by API
|
||||
a1, err := am.NewAccount(pass)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if err := am.Unlock(a1, ""); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if _, err := am.Sign(a1.Address, testSigData); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSignWithPassphrase(t *testing.T) {
|
||||
dir, am := tmpManager(t, true)
|
||||
defer os.RemoveAll(dir)
|
||||
|
||||
pass := "passwd"
|
||||
acc, err := am.NewAccount(pass)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if _, unlocked := am.unlocked[acc.Address]; unlocked {
|
||||
t.Fatal("expected account to be locked")
|
||||
}
|
||||
|
||||
_, err = am.SignWithPassphrase(acc.Address, pass, testSigData)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if _, unlocked := am.unlocked[acc.Address]; unlocked {
|
||||
t.Fatal("expected account to be locked")
|
||||
}
|
||||
|
||||
if _, err = am.SignWithPassphrase(acc.Address, "invalid passwd", testSigData); err == nil {
|
||||
t.Fatal("expected SignHash to fail with invalid password")
|
||||
}
|
||||
}
|
||||
|
||||
func TestTimedUnlock(t *testing.T) {
|
||||
dir, am := tmpManager(t, true)
|
||||
defer os.RemoveAll(dir)
|
||||
|
||||
pass := "foo"
|
||||
a1, err := am.NewAccount(pass)
|
||||
|
||||
// Signing without passphrase fails because account is locked
|
||||
_, err = am.Sign(a1.Address, testSigData)
|
||||
if err != ErrLocked {
|
||||
t.Fatal("Signing should've failed with ErrLocked before unlocking, got ", err)
|
||||
}
|
||||
|
||||
// Signing with passphrase works
|
||||
if err = am.TimedUnlock(a1, pass, 100*time.Millisecond); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
// Signing without passphrase works because account is temp unlocked
|
||||
_, err = am.Sign(a1.Address, testSigData)
|
||||
if err != nil {
|
||||
t.Fatal("Signing shouldn't return an error after unlocking, got ", err)
|
||||
}
|
||||
|
||||
// Signing fails again after automatic locking
|
||||
time.Sleep(250 * time.Millisecond)
|
||||
_, err = am.Sign(a1.Address, testSigData)
|
||||
if err != ErrLocked {
|
||||
t.Fatal("Signing should've failed with ErrLocked timeout expired, got ", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestOverrideUnlock(t *testing.T) {
|
||||
dir, am := tmpManager(t, false)
|
||||
defer os.RemoveAll(dir)
|
||||
|
||||
pass := "foo"
|
||||
a1, err := am.NewAccount(pass)
|
||||
|
||||
// Unlock indefinitely.
|
||||
if err = am.TimedUnlock(a1, pass, 5*time.Minute); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
// Signing without passphrase works because account is temp unlocked
|
||||
_, err = am.Sign(a1.Address, testSigData)
|
||||
if err != nil {
|
||||
t.Fatal("Signing shouldn't return an error after unlocking, got ", err)
|
||||
}
|
||||
|
||||
// reset unlock to a shorter period, invalidates the previous unlock
|
||||
if err = am.TimedUnlock(a1, pass, 100*time.Millisecond); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
// Signing without passphrase still works because account is temp unlocked
|
||||
_, err = am.Sign(a1.Address, testSigData)
|
||||
if err != nil {
|
||||
t.Fatal("Signing shouldn't return an error after unlocking, got ", err)
|
||||
}
|
||||
|
||||
// Signing fails again after automatic locking
|
||||
time.Sleep(250 * time.Millisecond)
|
||||
_, err = am.Sign(a1.Address, testSigData)
|
||||
if err != ErrLocked {
|
||||
t.Fatal("Signing should've failed with ErrLocked timeout expired, got ", err)
|
||||
}
|
||||
}
|
||||
|
||||
// This test should fail under -race if signing races the expiration goroutine.
|
||||
func TestSignRace(t *testing.T) {
|
||||
dir, am := tmpManager(t, false)
|
||||
defer os.RemoveAll(dir)
|
||||
|
||||
// Create a test account.
|
||||
a1, err := am.NewAccount("")
|
||||
if err != nil {
|
||||
t.Fatal("could not create the test account", err)
|
||||
}
|
||||
|
||||
if err := am.TimedUnlock(a1, "", 15*time.Millisecond); err != nil {
|
||||
t.Fatal("could not unlock the test account", err)
|
||||
}
|
||||
end := time.Now().Add(500 * time.Millisecond)
|
||||
for time.Now().Before(end) {
|
||||
if _, err := am.Sign(a1.Address, testSigData); err == ErrLocked {
|
||||
return
|
||||
} else if err != nil {
|
||||
t.Errorf("Sign error: %v", err)
|
||||
return
|
||||
}
|
||||
time.Sleep(1 * time.Millisecond)
|
||||
}
|
||||
t.Errorf("Account did not lock within the timeout")
|
||||
}
|
||||
|
||||
func tmpManager(t *testing.T, encrypted bool) (string, *Manager) {
|
||||
d, err := ioutil.TempDir("", "eth-keystore-test")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
new := NewPlaintextManager
|
||||
if encrypted {
|
||||
new = func(kd string) *Manager { return NewManager(kd, veryLightScryptN, veryLightScryptP) }
|
||||
}
|
||||
return d, new(d)
|
||||
}
|
||||
269
accounts/addrcache.go
Normal file
269
accounts/addrcache.go
Normal file
@@ -0,0 +1,269 @@
|
||||
// Copyright 2016 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package accounts
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"sort"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/logger"
|
||||
"github.com/ethereum/go-ethereum/logger/glog"
|
||||
)
|
||||
|
||||
// Minimum amount of time between cache reloads. This limit applies if the platform does
|
||||
// not support change notifications. It also applies if the keystore directory does not
|
||||
// exist yet, the code will attempt to create a watcher at most this often.
|
||||
const minReloadInterval = 2 * time.Second
|
||||
|
||||
type accountsByFile []Account
|
||||
|
||||
func (s accountsByFile) Len() int { return len(s) }
|
||||
func (s accountsByFile) Less(i, j int) bool { return s[i].File < s[j].File }
|
||||
func (s accountsByFile) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
|
||||
|
||||
// AmbiguousAddrError is returned when attempting to unlock
|
||||
// an address for which more than one file exists.
|
||||
type AmbiguousAddrError struct {
|
||||
Addr common.Address
|
||||
Matches []Account
|
||||
}
|
||||
|
||||
func (err *AmbiguousAddrError) Error() string {
|
||||
files := ""
|
||||
for i, a := range err.Matches {
|
||||
files += a.File
|
||||
if i < len(err.Matches)-1 {
|
||||
files += ", "
|
||||
}
|
||||
}
|
||||
return fmt.Sprintf("multiple keys match address (%s)", files)
|
||||
}
|
||||
|
||||
// addrCache is a live index of all accounts in the keystore.
|
||||
type addrCache struct {
|
||||
keydir string
|
||||
watcher *watcher
|
||||
mu sync.Mutex
|
||||
all accountsByFile
|
||||
byAddr map[common.Address][]Account
|
||||
throttle *time.Timer
|
||||
}
|
||||
|
||||
func newAddrCache(keydir string) *addrCache {
|
||||
ac := &addrCache{
|
||||
keydir: keydir,
|
||||
byAddr: make(map[common.Address][]Account),
|
||||
}
|
||||
ac.watcher = newWatcher(ac)
|
||||
return ac
|
||||
}
|
||||
|
||||
func (ac *addrCache) accounts() []Account {
|
||||
ac.maybeReload()
|
||||
ac.mu.Lock()
|
||||
defer ac.mu.Unlock()
|
||||
cpy := make([]Account, len(ac.all))
|
||||
copy(cpy, ac.all)
|
||||
return cpy
|
||||
}
|
||||
|
||||
func (ac *addrCache) hasAddress(addr common.Address) bool {
|
||||
ac.maybeReload()
|
||||
ac.mu.Lock()
|
||||
defer ac.mu.Unlock()
|
||||
return len(ac.byAddr[addr]) > 0
|
||||
}
|
||||
|
||||
func (ac *addrCache) add(newAccount Account) {
|
||||
ac.mu.Lock()
|
||||
defer ac.mu.Unlock()
|
||||
|
||||
i := sort.Search(len(ac.all), func(i int) bool { return ac.all[i].File >= newAccount.File })
|
||||
if i < len(ac.all) && ac.all[i] == newAccount {
|
||||
return
|
||||
}
|
||||
// newAccount is not in the cache.
|
||||
ac.all = append(ac.all, Account{})
|
||||
copy(ac.all[i+1:], ac.all[i:])
|
||||
ac.all[i] = newAccount
|
||||
ac.byAddr[newAccount.Address] = append(ac.byAddr[newAccount.Address], newAccount)
|
||||
}
|
||||
|
||||
// note: removed needs to be unique here (i.e. both File and Address must be set).
|
||||
func (ac *addrCache) delete(removed Account) {
|
||||
ac.mu.Lock()
|
||||
defer ac.mu.Unlock()
|
||||
ac.all = removeAccount(ac.all, removed)
|
||||
if ba := removeAccount(ac.byAddr[removed.Address], removed); len(ba) == 0 {
|
||||
delete(ac.byAddr, removed.Address)
|
||||
} else {
|
||||
ac.byAddr[removed.Address] = ba
|
||||
}
|
||||
}
|
||||
|
||||
func removeAccount(slice []Account, elem Account) []Account {
|
||||
for i := range slice {
|
||||
if slice[i] == elem {
|
||||
return append(slice[:i], slice[i+1:]...)
|
||||
}
|
||||
}
|
||||
return slice
|
||||
}
|
||||
|
||||
// find returns the cached account for address if there is a unique match.
|
||||
// The exact matching rules are explained by the documentation of Account.
|
||||
// Callers must hold ac.mu.
|
||||
func (ac *addrCache) find(a Account) (Account, error) {
|
||||
// Limit search to address candidates if possible.
|
||||
matches := ac.all
|
||||
if (a.Address != common.Address{}) {
|
||||
matches = ac.byAddr[a.Address]
|
||||
}
|
||||
if a.File != "" {
|
||||
// If only the basename is specified, complete the path.
|
||||
if !strings.ContainsRune(a.File, filepath.Separator) {
|
||||
a.File = filepath.Join(ac.keydir, a.File)
|
||||
}
|
||||
for i := range matches {
|
||||
if matches[i].File == a.File {
|
||||
return matches[i], nil
|
||||
}
|
||||
}
|
||||
if (a.Address == common.Address{}) {
|
||||
return Account{}, ErrNoMatch
|
||||
}
|
||||
}
|
||||
switch len(matches) {
|
||||
case 1:
|
||||
return matches[0], nil
|
||||
case 0:
|
||||
return Account{}, ErrNoMatch
|
||||
default:
|
||||
err := &AmbiguousAddrError{Addr: a.Address, Matches: make([]Account, len(matches))}
|
||||
copy(err.Matches, matches)
|
||||
return Account{}, err
|
||||
}
|
||||
}
|
||||
|
||||
func (ac *addrCache) maybeReload() {
|
||||
ac.mu.Lock()
|
||||
defer ac.mu.Unlock()
|
||||
if ac.watcher.running {
|
||||
return // A watcher is running and will keep the cache up-to-date.
|
||||
}
|
||||
if ac.throttle == nil {
|
||||
ac.throttle = time.NewTimer(0)
|
||||
} else {
|
||||
select {
|
||||
case <-ac.throttle.C:
|
||||
default:
|
||||
return // The cache was reloaded recently.
|
||||
}
|
||||
}
|
||||
ac.watcher.start()
|
||||
ac.reload()
|
||||
ac.throttle.Reset(minReloadInterval)
|
||||
}
|
||||
|
||||
func (ac *addrCache) close() {
|
||||
ac.mu.Lock()
|
||||
ac.watcher.close()
|
||||
if ac.throttle != nil {
|
||||
ac.throttle.Stop()
|
||||
}
|
||||
ac.mu.Unlock()
|
||||
}
|
||||
|
||||
// reload caches addresses of existing accounts.
|
||||
// Callers must hold ac.mu.
|
||||
func (ac *addrCache) reload() {
|
||||
accounts, err := ac.scan()
|
||||
if err != nil && glog.V(logger.Debug) {
|
||||
glog.Errorf("can't load keys: %v", err)
|
||||
}
|
||||
ac.all = accounts
|
||||
sort.Sort(ac.all)
|
||||
for k := range ac.byAddr {
|
||||
delete(ac.byAddr, k)
|
||||
}
|
||||
for _, a := range accounts {
|
||||
ac.byAddr[a.Address] = append(ac.byAddr[a.Address], a)
|
||||
}
|
||||
glog.V(logger.Debug).Infof("reloaded keys, cache has %d accounts", len(ac.all))
|
||||
}
|
||||
|
||||
func (ac *addrCache) scan() ([]Account, error) {
|
||||
files, err := ioutil.ReadDir(ac.keydir)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var (
|
||||
buf = new(bufio.Reader)
|
||||
addrs []Account
|
||||
keyJSON struct {
|
||||
Address common.Address `json:"address"`
|
||||
}
|
||||
)
|
||||
for _, fi := range files {
|
||||
path := filepath.Join(ac.keydir, fi.Name())
|
||||
if skipKeyFile(fi) {
|
||||
glog.V(logger.Detail).Infof("ignoring file %s", path)
|
||||
continue
|
||||
}
|
||||
fd, err := os.Open(path)
|
||||
if err != nil {
|
||||
glog.V(logger.Detail).Infoln(err)
|
||||
continue
|
||||
}
|
||||
buf.Reset(fd)
|
||||
// Parse the address.
|
||||
keyJSON.Address = common.Address{}
|
||||
err = json.NewDecoder(buf).Decode(&keyJSON)
|
||||
switch {
|
||||
case err != nil:
|
||||
glog.V(logger.Debug).Infof("can't decode key %s: %v", path, err)
|
||||
case (keyJSON.Address == common.Address{}):
|
||||
glog.V(logger.Debug).Infof("can't decode key %s: missing or zero address", path)
|
||||
default:
|
||||
addrs = append(addrs, Account{Address: keyJSON.Address, File: path})
|
||||
}
|
||||
fd.Close()
|
||||
}
|
||||
return addrs, err
|
||||
}
|
||||
|
||||
func skipKeyFile(fi os.FileInfo) bool {
|
||||
// Skip editor backups and UNIX-style hidden files.
|
||||
if strings.HasSuffix(fi.Name(), "~") || strings.HasPrefix(fi.Name(), ".") {
|
||||
return true
|
||||
}
|
||||
// Skip misc special files, directories (yes, symlinks too).
|
||||
if fi.IsDir() || fi.Mode()&os.ModeType != 0 {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
283
accounts/addrcache_test.go
Normal file
283
accounts/addrcache_test.go
Normal file
@@ -0,0 +1,283 @@
|
||||
// Copyright 2016 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package accounts
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"reflect"
|
||||
"sort"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/cespare/cp"
|
||||
"github.com/davecgh/go-spew/spew"
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
)
|
||||
|
||||
var (
|
||||
cachetestDir, _ = filepath.Abs(filepath.Join("testdata", "keystore"))
|
||||
cachetestAccounts = []Account{
|
||||
{
|
||||
Address: common.HexToAddress("7ef5a6135f1fd6a02593eedc869c6d41d934aef8"),
|
||||
File: filepath.Join(cachetestDir, "UTC--2016-03-22T12-57-55.920751759Z--7ef5a6135f1fd6a02593eedc869c6d41d934aef8"),
|
||||
},
|
||||
{
|
||||
Address: common.HexToAddress("f466859ead1932d743d622cb74fc058882e8648a"),
|
||||
File: filepath.Join(cachetestDir, "aaa"),
|
||||
},
|
||||
{
|
||||
Address: common.HexToAddress("289d485d9771714cce91d3393d764e1311907acc"),
|
||||
File: filepath.Join(cachetestDir, "zzz"),
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
func TestWatchNewFile(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
dir, am := tmpManager(t, false)
|
||||
defer os.RemoveAll(dir)
|
||||
|
||||
// Ensure the watcher is started before adding any files.
|
||||
am.Accounts()
|
||||
time.Sleep(200 * time.Millisecond)
|
||||
|
||||
// Move in the files.
|
||||
wantAccounts := make([]Account, len(cachetestAccounts))
|
||||
for i := range cachetestAccounts {
|
||||
a := cachetestAccounts[i]
|
||||
a.File = filepath.Join(dir, filepath.Base(a.File))
|
||||
wantAccounts[i] = a
|
||||
if err := cp.CopyFile(a.File, cachetestAccounts[i].File); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
// am should see the accounts.
|
||||
var list []Account
|
||||
for d := 200 * time.Millisecond; d < 5*time.Second; d *= 2 {
|
||||
list = am.Accounts()
|
||||
if reflect.DeepEqual(list, wantAccounts) {
|
||||
return
|
||||
}
|
||||
time.Sleep(d)
|
||||
}
|
||||
t.Errorf("got %s, want %s", spew.Sdump(list), spew.Sdump(wantAccounts))
|
||||
}
|
||||
|
||||
func TestWatchNoDir(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
// Create am but not the directory that it watches.
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
dir := filepath.Join(os.TempDir(), fmt.Sprintf("eth-keystore-watch-test-%d-%d", os.Getpid(), rand.Int()))
|
||||
am := NewManager(dir, LightScryptN, LightScryptP)
|
||||
|
||||
list := am.Accounts()
|
||||
if len(list) > 0 {
|
||||
t.Error("initial account list not empty:", list)
|
||||
}
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
|
||||
// Create the directory and copy a key file into it.
|
||||
os.MkdirAll(dir, 0700)
|
||||
defer os.RemoveAll(dir)
|
||||
file := filepath.Join(dir, "aaa")
|
||||
if err := cp.CopyFile(file, cachetestAccounts[0].File); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
// am should see the account.
|
||||
wantAccounts := []Account{cachetestAccounts[0]}
|
||||
wantAccounts[0].File = file
|
||||
for d := 200 * time.Millisecond; d < 8*time.Second; d *= 2 {
|
||||
list = am.Accounts()
|
||||
if reflect.DeepEqual(list, wantAccounts) {
|
||||
return
|
||||
}
|
||||
time.Sleep(d)
|
||||
}
|
||||
t.Errorf("\ngot %v\nwant %v", list, wantAccounts)
|
||||
}
|
||||
|
||||
func TestCacheInitialReload(t *testing.T) {
|
||||
cache := newAddrCache(cachetestDir)
|
||||
accounts := cache.accounts()
|
||||
if !reflect.DeepEqual(accounts, cachetestAccounts) {
|
||||
t.Fatalf("got initial accounts: %swant %s", spew.Sdump(accounts), spew.Sdump(cachetestAccounts))
|
||||
}
|
||||
}
|
||||
|
||||
func TestCacheAddDeleteOrder(t *testing.T) {
|
||||
cache := newAddrCache("testdata/no-such-dir")
|
||||
cache.watcher.running = true // prevent unexpected reloads
|
||||
|
||||
accounts := []Account{
|
||||
{
|
||||
Address: common.HexToAddress("095e7baea6a6c7c4c2dfeb977efac326af552d87"),
|
||||
File: "-309830980",
|
||||
},
|
||||
{
|
||||
Address: common.HexToAddress("2cac1adea150210703ba75ed097ddfe24e14f213"),
|
||||
File: "ggg",
|
||||
},
|
||||
{
|
||||
Address: common.HexToAddress("8bda78331c916a08481428e4b07c96d3e916d165"),
|
||||
File: "zzzzzz-the-very-last-one.keyXXX",
|
||||
},
|
||||
{
|
||||
Address: common.HexToAddress("d49ff4eeb0b2686ed89c0fc0f2b6ea533ddbbd5e"),
|
||||
File: "SOMETHING.key",
|
||||
},
|
||||
{
|
||||
Address: common.HexToAddress("7ef5a6135f1fd6a02593eedc869c6d41d934aef8"),
|
||||
File: "UTC--2016-03-22T12-57-55.920751759Z--7ef5a6135f1fd6a02593eedc869c6d41d934aef8",
|
||||
},
|
||||
{
|
||||
Address: common.HexToAddress("f466859ead1932d743d622cb74fc058882e8648a"),
|
||||
File: "aaa",
|
||||
},
|
||||
{
|
||||
Address: common.HexToAddress("289d485d9771714cce91d3393d764e1311907acc"),
|
||||
File: "zzz",
|
||||
},
|
||||
}
|
||||
for _, a := range accounts {
|
||||
cache.add(a)
|
||||
}
|
||||
// Add some of them twice to check that they don't get reinserted.
|
||||
cache.add(accounts[0])
|
||||
cache.add(accounts[2])
|
||||
|
||||
// Check that the account list is sorted by filename.
|
||||
wantAccounts := make([]Account, len(accounts))
|
||||
copy(wantAccounts, accounts)
|
||||
sort.Sort(accountsByFile(wantAccounts))
|
||||
list := cache.accounts()
|
||||
if !reflect.DeepEqual(list, wantAccounts) {
|
||||
t.Fatalf("got accounts: %s\nwant %s", spew.Sdump(accounts), spew.Sdump(wantAccounts))
|
||||
}
|
||||
for _, a := range accounts {
|
||||
if !cache.hasAddress(a.Address) {
|
||||
t.Errorf("expected hasAccount(%x) to return true", a.Address)
|
||||
}
|
||||
}
|
||||
if cache.hasAddress(common.HexToAddress("fd9bd350f08ee3c0c19b85a8e16114a11a60aa4e")) {
|
||||
t.Errorf("expected hasAccount(%x) to return false", common.HexToAddress("fd9bd350f08ee3c0c19b85a8e16114a11a60aa4e"))
|
||||
}
|
||||
|
||||
// Delete a few keys from the cache.
|
||||
for i := 0; i < len(accounts); i += 2 {
|
||||
cache.delete(wantAccounts[i])
|
||||
}
|
||||
cache.delete(Account{Address: common.HexToAddress("fd9bd350f08ee3c0c19b85a8e16114a11a60aa4e"), File: "something"})
|
||||
|
||||
// Check content again after deletion.
|
||||
wantAccountsAfterDelete := []Account{
|
||||
wantAccounts[1],
|
||||
wantAccounts[3],
|
||||
wantAccounts[5],
|
||||
}
|
||||
list = cache.accounts()
|
||||
if !reflect.DeepEqual(list, wantAccountsAfterDelete) {
|
||||
t.Fatalf("got accounts after delete: %s\nwant %s", spew.Sdump(list), spew.Sdump(wantAccountsAfterDelete))
|
||||
}
|
||||
for _, a := range wantAccountsAfterDelete {
|
||||
if !cache.hasAddress(a.Address) {
|
||||
t.Errorf("expected hasAccount(%x) to return true", a.Address)
|
||||
}
|
||||
}
|
||||
if cache.hasAddress(wantAccounts[0].Address) {
|
||||
t.Errorf("expected hasAccount(%x) to return false", wantAccounts[0].Address)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCacheFind(t *testing.T) {
|
||||
dir := filepath.Join("testdata", "dir")
|
||||
cache := newAddrCache(dir)
|
||||
cache.watcher.running = true // prevent unexpected reloads
|
||||
|
||||
accounts := []Account{
|
||||
{
|
||||
Address: common.HexToAddress("095e7baea6a6c7c4c2dfeb977efac326af552d87"),
|
||||
File: filepath.Join(dir, "a.key"),
|
||||
},
|
||||
{
|
||||
Address: common.HexToAddress("2cac1adea150210703ba75ed097ddfe24e14f213"),
|
||||
File: filepath.Join(dir, "b.key"),
|
||||
},
|
||||
{
|
||||
Address: common.HexToAddress("d49ff4eeb0b2686ed89c0fc0f2b6ea533ddbbd5e"),
|
||||
File: filepath.Join(dir, "c.key"),
|
||||
},
|
||||
{
|
||||
Address: common.HexToAddress("d49ff4eeb0b2686ed89c0fc0f2b6ea533ddbbd5e"),
|
||||
File: filepath.Join(dir, "c2.key"),
|
||||
},
|
||||
}
|
||||
for _, a := range accounts {
|
||||
cache.add(a)
|
||||
}
|
||||
|
||||
nomatchAccount := Account{
|
||||
Address: common.HexToAddress("f466859ead1932d743d622cb74fc058882e8648a"),
|
||||
File: filepath.Join(dir, "something"),
|
||||
}
|
||||
tests := []struct {
|
||||
Query Account
|
||||
WantResult Account
|
||||
WantError error
|
||||
}{
|
||||
// by address
|
||||
{Query: Account{Address: accounts[0].Address}, WantResult: accounts[0]},
|
||||
// by file
|
||||
{Query: Account{File: accounts[0].File}, WantResult: accounts[0]},
|
||||
// by basename
|
||||
{Query: Account{File: filepath.Base(accounts[0].File)}, WantResult: accounts[0]},
|
||||
// by file and address
|
||||
{Query: accounts[0], WantResult: accounts[0]},
|
||||
// ambiguous address, tie resolved by file
|
||||
{Query: accounts[2], WantResult: accounts[2]},
|
||||
// ambiguous address error
|
||||
{
|
||||
Query: Account{Address: accounts[2].Address},
|
||||
WantError: &AmbiguousAddrError{
|
||||
Addr: accounts[2].Address,
|
||||
Matches: []Account{accounts[2], accounts[3]},
|
||||
},
|
||||
},
|
||||
// no match error
|
||||
{Query: nomatchAccount, WantError: ErrNoMatch},
|
||||
{Query: Account{File: nomatchAccount.File}, WantError: ErrNoMatch},
|
||||
{Query: Account{File: filepath.Base(nomatchAccount.File)}, WantError: ErrNoMatch},
|
||||
{Query: Account{Address: nomatchAccount.Address}, WantError: ErrNoMatch},
|
||||
}
|
||||
for i, test := range tests {
|
||||
a, err := cache.find(test.Query)
|
||||
if !reflect.DeepEqual(err, test.WantError) {
|
||||
t.Errorf("test %d: error mismatch for query %v\ngot %q\nwant %q", i, test.Query, err, test.WantError)
|
||||
continue
|
||||
}
|
||||
if a != test.WantResult {
|
||||
t.Errorf("test %d: result mismatch for query %v\ngot %v\nwant %v", i, test.Query, a, test.WantResult)
|
||||
continue
|
||||
}
|
||||
}
|
||||
}
|
||||
229
accounts/key.go
Normal file
229
accounts/key.go
Normal file
@@ -0,0 +1,229 @@
|
||||
// Copyright 2014 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package accounts
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"crypto/ecdsa"
|
||||
"encoding/hex"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/crypto"
|
||||
"github.com/ethereum/go-ethereum/crypto/secp256k1"
|
||||
"github.com/pborman/uuid"
|
||||
)
|
||||
|
||||
const (
|
||||
version = 3
|
||||
)
|
||||
|
||||
type Key struct {
|
||||
Id uuid.UUID // Version 4 "random" for unique id not derived from key data
|
||||
// to simplify lookups we also store the address
|
||||
Address common.Address
|
||||
// we only store privkey as pubkey/address can be derived from it
|
||||
// privkey in this struct is always in plaintext
|
||||
PrivateKey *ecdsa.PrivateKey
|
||||
}
|
||||
|
||||
type keyStore interface {
|
||||
// Loads and decrypts the key from disk.
|
||||
GetKey(addr common.Address, filename string, auth string) (*Key, error)
|
||||
// Writes and encrypts the key.
|
||||
StoreKey(filename string, k *Key, auth string) error
|
||||
// Joins filename with the key directory unless it is already absolute.
|
||||
JoinPath(filename string) string
|
||||
}
|
||||
|
||||
type plainKeyJSON struct {
|
||||
Address string `json:"address"`
|
||||
PrivateKey string `json:"privatekey"`
|
||||
Id string `json:"id"`
|
||||
Version int `json:"version"`
|
||||
}
|
||||
|
||||
type encryptedKeyJSONV3 struct {
|
||||
Address string `json:"address"`
|
||||
Crypto cryptoJSON `json:"crypto"`
|
||||
Id string `json:"id"`
|
||||
Version int `json:"version"`
|
||||
}
|
||||
|
||||
type encryptedKeyJSONV1 struct {
|
||||
Address string `json:"address"`
|
||||
Crypto cryptoJSON `json:"crypto"`
|
||||
Id string `json:"id"`
|
||||
Version string `json:"version"`
|
||||
}
|
||||
|
||||
type cryptoJSON struct {
|
||||
Cipher string `json:"cipher"`
|
||||
CipherText string `json:"ciphertext"`
|
||||
CipherParams cipherparamsJSON `json:"cipherparams"`
|
||||
KDF string `json:"kdf"`
|
||||
KDFParams map[string]interface{} `json:"kdfparams"`
|
||||
MAC string `json:"mac"`
|
||||
}
|
||||
|
||||
type cipherparamsJSON struct {
|
||||
IV string `json:"iv"`
|
||||
}
|
||||
|
||||
type scryptParamsJSON struct {
|
||||
N int `json:"n"`
|
||||
R int `json:"r"`
|
||||
P int `json:"p"`
|
||||
DkLen int `json:"dklen"`
|
||||
Salt string `json:"salt"`
|
||||
}
|
||||
|
||||
func (k *Key) MarshalJSON() (j []byte, err error) {
|
||||
jStruct := plainKeyJSON{
|
||||
hex.EncodeToString(k.Address[:]),
|
||||
hex.EncodeToString(crypto.FromECDSA(k.PrivateKey)),
|
||||
k.Id.String(),
|
||||
version,
|
||||
}
|
||||
j, err = json.Marshal(jStruct)
|
||||
return j, err
|
||||
}
|
||||
|
||||
func (k *Key) UnmarshalJSON(j []byte) (err error) {
|
||||
keyJSON := new(plainKeyJSON)
|
||||
err = json.Unmarshal(j, &keyJSON)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
u := new(uuid.UUID)
|
||||
*u = uuid.Parse(keyJSON.Id)
|
||||
k.Id = *u
|
||||
addr, err := hex.DecodeString(keyJSON.Address)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
privkey, err := hex.DecodeString(keyJSON.PrivateKey)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
k.Address = common.BytesToAddress(addr)
|
||||
k.PrivateKey = crypto.ToECDSA(privkey)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func newKeyFromECDSA(privateKeyECDSA *ecdsa.PrivateKey) *Key {
|
||||
id := uuid.NewRandom()
|
||||
key := &Key{
|
||||
Id: id,
|
||||
Address: crypto.PubkeyToAddress(privateKeyECDSA.PublicKey),
|
||||
PrivateKey: privateKeyECDSA,
|
||||
}
|
||||
return key
|
||||
}
|
||||
|
||||
// NewKeyForDirectICAP generates a key whose address fits into < 155 bits so it can fit
|
||||
// into the Direct ICAP spec. for simplicity and easier compatibility with other libs, we
|
||||
// retry until the first byte is 0.
|
||||
func NewKeyForDirectICAP(rand io.Reader) *Key {
|
||||
randBytes := make([]byte, 64)
|
||||
_, err := rand.Read(randBytes)
|
||||
if err != nil {
|
||||
panic("key generation: could not read from random source: " + err.Error())
|
||||
}
|
||||
reader := bytes.NewReader(randBytes)
|
||||
privateKeyECDSA, err := ecdsa.GenerateKey(secp256k1.S256(), reader)
|
||||
if err != nil {
|
||||
panic("key generation: ecdsa.GenerateKey failed: " + err.Error())
|
||||
}
|
||||
key := newKeyFromECDSA(privateKeyECDSA)
|
||||
if !strings.HasPrefix(key.Address.Hex(), "0x00") {
|
||||
return NewKeyForDirectICAP(rand)
|
||||
}
|
||||
return key
|
||||
}
|
||||
|
||||
func newKey(rand io.Reader) (*Key, error) {
|
||||
privateKeyECDSA, err := ecdsa.GenerateKey(secp256k1.S256(), rand)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return newKeyFromECDSA(privateKeyECDSA), nil
|
||||
}
|
||||
|
||||
func storeNewKey(ks keyStore, rand io.Reader, auth string) (*Key, Account, error) {
|
||||
key, err := newKey(rand)
|
||||
if err != nil {
|
||||
return nil, Account{}, err
|
||||
}
|
||||
a := Account{Address: key.Address, File: ks.JoinPath(keyFileName(key.Address))}
|
||||
if err := ks.StoreKey(a.File, key, auth); err != nil {
|
||||
zeroKey(key.PrivateKey)
|
||||
return nil, a, err
|
||||
}
|
||||
return key, a, err
|
||||
}
|
||||
|
||||
func writeKeyFile(file string, content []byte) error {
|
||||
// Create the keystore directory with appropriate permissions
|
||||
// in case it is not present yet.
|
||||
const dirPerm = 0700
|
||||
if err := os.MkdirAll(filepath.Dir(file), dirPerm); err != nil {
|
||||
return err
|
||||
}
|
||||
// Atomic write: create a temporary hidden file first
|
||||
// then move it into place. TempFile assigns mode 0600.
|
||||
f, err := ioutil.TempFile(filepath.Dir(file), "."+filepath.Base(file)+".tmp")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if _, err := f.Write(content); err != nil {
|
||||
f.Close()
|
||||
os.Remove(f.Name())
|
||||
return err
|
||||
}
|
||||
f.Close()
|
||||
return os.Rename(f.Name(), file)
|
||||
}
|
||||
|
||||
// keyFileName implements the naming convention for keyfiles:
|
||||
// UTC--<created_at UTC ISO8601>-<address hex>
|
||||
func keyFileName(keyAddr common.Address) string {
|
||||
ts := time.Now().UTC()
|
||||
return fmt.Sprintf("UTC--%s--%s", toISO8601(ts), hex.EncodeToString(keyAddr[:]))
|
||||
}
|
||||
|
||||
func toISO8601(t time.Time) string {
|
||||
var tz string
|
||||
name, offset := t.Zone()
|
||||
if name == "UTC" {
|
||||
tz = "Z"
|
||||
} else {
|
||||
tz = fmt.Sprintf("%03d00", offset/3600)
|
||||
}
|
||||
return fmt.Sprintf("%04d-%02d-%02dT%02d-%02d-%02d.%09d%s", t.Year(), t.Month(), t.Day(), t.Hour(), t.Minute(), t.Second(), t.Nanosecond(), tz)
|
||||
}
|
||||
305
accounts/key_store_passphrase.go
Normal file
305
accounts/key_store_passphrase.go
Normal file
@@ -0,0 +1,305 @@
|
||||
// Copyright 2014 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/*
|
||||
|
||||
This key store behaves as KeyStorePlain with the difference that
|
||||
the private key is encrypted and on disk uses another JSON encoding.
|
||||
|
||||
The crypto is documented at https://github.com/ethereum/wiki/wiki/Web3-Secret-Storage-Definition
|
||||
|
||||
*/
|
||||
|
||||
package accounts
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"crypto/aes"
|
||||
"crypto/sha256"
|
||||
"encoding/hex"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/crypto"
|
||||
"github.com/ethereum/go-ethereum/crypto/randentropy"
|
||||
"github.com/pborman/uuid"
|
||||
"golang.org/x/crypto/pbkdf2"
|
||||
"golang.org/x/crypto/scrypt"
|
||||
)
|
||||
|
||||
const (
|
||||
keyHeaderKDF = "scrypt"
|
||||
|
||||
// StandardScryptN is the N parameter of Scrypt encryption algorithm, using 256MB
|
||||
// memory and taking approximately 1s CPU time on a modern processor.
|
||||
StandardScryptN = 1 << 18
|
||||
|
||||
// StandardScryptP is the P parameter of Scrypt encryption algorithm, using 256MB
|
||||
// memory and taking approximately 1s CPU time on a modern processor.
|
||||
StandardScryptP = 1
|
||||
|
||||
// LightScryptN is the N parameter of Scrypt encryption algorithm, using 4MB
|
||||
// memory and taking approximately 100ms CPU time on a modern processor.
|
||||
LightScryptN = 1 << 12
|
||||
|
||||
// LightScryptP is the P parameter of Scrypt encryption algorithm, using 4MB
|
||||
// memory and taking approximately 100ms CPU time on a modern processor.
|
||||
LightScryptP = 6
|
||||
|
||||
scryptR = 8
|
||||
scryptDKLen = 32
|
||||
)
|
||||
|
||||
type keyStorePassphrase struct {
|
||||
keysDirPath string
|
||||
scryptN int
|
||||
scryptP int
|
||||
}
|
||||
|
||||
func (ks keyStorePassphrase) GetKey(addr common.Address, filename, auth string) (*Key, error) {
|
||||
// Load the key from the keystore and decrypt its contents
|
||||
keyjson, err := ioutil.ReadFile(filename)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
key, err := DecryptKey(keyjson, auth)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// Make sure we're really operating on the requested key (no swap attacks)
|
||||
if key.Address != addr {
|
||||
return nil, fmt.Errorf("key content mismatch: have account %x, want %x", key.Address, addr)
|
||||
}
|
||||
return key, nil
|
||||
}
|
||||
|
||||
func (ks keyStorePassphrase) StoreKey(filename string, key *Key, auth string) error {
|
||||
keyjson, err := EncryptKey(key, auth, ks.scryptN, ks.scryptP)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return writeKeyFile(filename, keyjson)
|
||||
}
|
||||
|
||||
func (ks keyStorePassphrase) JoinPath(filename string) string {
|
||||
if filepath.IsAbs(filename) {
|
||||
return filename
|
||||
} else {
|
||||
return filepath.Join(ks.keysDirPath, filename)
|
||||
}
|
||||
}
|
||||
|
||||
// EncryptKey encrypts a key using the specified scrypt parameters into a json
|
||||
// blob that can be decrypted later on.
|
||||
func EncryptKey(key *Key, auth string, scryptN, scryptP int) ([]byte, error) {
|
||||
authArray := []byte(auth)
|
||||
salt := randentropy.GetEntropyCSPRNG(32)
|
||||
derivedKey, err := scrypt.Key(authArray, salt, scryptN, scryptR, scryptP, scryptDKLen)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
encryptKey := derivedKey[:16]
|
||||
keyBytes0 := crypto.FromECDSA(key.PrivateKey)
|
||||
keyBytes := common.LeftPadBytes(keyBytes0, 32)
|
||||
|
||||
iv := randentropy.GetEntropyCSPRNG(aes.BlockSize) // 16
|
||||
cipherText, err := aesCTRXOR(encryptKey, keyBytes, iv)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
mac := crypto.Keccak256(derivedKey[16:32], cipherText)
|
||||
|
||||
scryptParamsJSON := make(map[string]interface{}, 5)
|
||||
scryptParamsJSON["n"] = scryptN
|
||||
scryptParamsJSON["r"] = scryptR
|
||||
scryptParamsJSON["p"] = scryptP
|
||||
scryptParamsJSON["dklen"] = scryptDKLen
|
||||
scryptParamsJSON["salt"] = hex.EncodeToString(salt)
|
||||
|
||||
cipherParamsJSON := cipherparamsJSON{
|
||||
IV: hex.EncodeToString(iv),
|
||||
}
|
||||
|
||||
cryptoStruct := cryptoJSON{
|
||||
Cipher: "aes-128-ctr",
|
||||
CipherText: hex.EncodeToString(cipherText),
|
||||
CipherParams: cipherParamsJSON,
|
||||
KDF: "scrypt",
|
||||
KDFParams: scryptParamsJSON,
|
||||
MAC: hex.EncodeToString(mac),
|
||||
}
|
||||
encryptedKeyJSONV3 := encryptedKeyJSONV3{
|
||||
hex.EncodeToString(key.Address[:]),
|
||||
cryptoStruct,
|
||||
key.Id.String(),
|
||||
version,
|
||||
}
|
||||
return json.Marshal(encryptedKeyJSONV3)
|
||||
}
|
||||
|
||||
// DecryptKey decrypts a key from a json blob, returning the private key itself.
|
||||
func DecryptKey(keyjson []byte, auth string) (*Key, error) {
|
||||
// Parse the json into a simple map to fetch the key version
|
||||
m := make(map[string]interface{})
|
||||
if err := json.Unmarshal(keyjson, &m); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// Depending on the version try to parse one way or another
|
||||
var (
|
||||
keyBytes, keyId []byte
|
||||
err error
|
||||
)
|
||||
if version, ok := m["version"].(string); ok && version == "1" {
|
||||
k := new(encryptedKeyJSONV1)
|
||||
if err := json.Unmarshal(keyjson, k); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
keyBytes, keyId, err = decryptKeyV1(k, auth)
|
||||
} else {
|
||||
k := new(encryptedKeyJSONV3)
|
||||
if err := json.Unmarshal(keyjson, k); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
keyBytes, keyId, err = decryptKeyV3(k, auth)
|
||||
}
|
||||
// Handle any decryption errors and return the key
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
key := crypto.ToECDSA(keyBytes)
|
||||
return &Key{
|
||||
Id: uuid.UUID(keyId),
|
||||
Address: crypto.PubkeyToAddress(key.PublicKey),
|
||||
PrivateKey: key,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func decryptKeyV3(keyProtected *encryptedKeyJSONV3, auth string) (keyBytes []byte, keyId []byte, err error) {
|
||||
if keyProtected.Version != version {
|
||||
return nil, nil, fmt.Errorf("Version not supported: %v", keyProtected.Version)
|
||||
}
|
||||
|
||||
if keyProtected.Crypto.Cipher != "aes-128-ctr" {
|
||||
return nil, nil, fmt.Errorf("Cipher not supported: %v", keyProtected.Crypto.Cipher)
|
||||
}
|
||||
|
||||
keyId = uuid.Parse(keyProtected.Id)
|
||||
mac, err := hex.DecodeString(keyProtected.Crypto.MAC)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
iv, err := hex.DecodeString(keyProtected.Crypto.CipherParams.IV)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
cipherText, err := hex.DecodeString(keyProtected.Crypto.CipherText)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
derivedKey, err := getKDFKey(keyProtected.Crypto, auth)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
calculatedMAC := crypto.Keccak256(derivedKey[16:32], cipherText)
|
||||
if !bytes.Equal(calculatedMAC, mac) {
|
||||
return nil, nil, ErrDecrypt
|
||||
}
|
||||
|
||||
plainText, err := aesCTRXOR(derivedKey[:16], cipherText, iv)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
return plainText, keyId, err
|
||||
}
|
||||
|
||||
func decryptKeyV1(keyProtected *encryptedKeyJSONV1, auth string) (keyBytes []byte, keyId []byte, err error) {
|
||||
keyId = uuid.Parse(keyProtected.Id)
|
||||
mac, err := hex.DecodeString(keyProtected.Crypto.MAC)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
iv, err := hex.DecodeString(keyProtected.Crypto.CipherParams.IV)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
cipherText, err := hex.DecodeString(keyProtected.Crypto.CipherText)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
derivedKey, err := getKDFKey(keyProtected.Crypto, auth)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
calculatedMAC := crypto.Keccak256(derivedKey[16:32], cipherText)
|
||||
if !bytes.Equal(calculatedMAC, mac) {
|
||||
return nil, nil, ErrDecrypt
|
||||
}
|
||||
|
||||
plainText, err := aesCBCDecrypt(crypto.Keccak256(derivedKey[:16])[:16], cipherText, iv)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
return plainText, keyId, err
|
||||
}
|
||||
|
||||
func getKDFKey(cryptoJSON cryptoJSON, auth string) ([]byte, error) {
|
||||
authArray := []byte(auth)
|
||||
salt, err := hex.DecodeString(cryptoJSON.KDFParams["salt"].(string))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
dkLen := ensureInt(cryptoJSON.KDFParams["dklen"])
|
||||
|
||||
if cryptoJSON.KDF == "scrypt" {
|
||||
n := ensureInt(cryptoJSON.KDFParams["n"])
|
||||
r := ensureInt(cryptoJSON.KDFParams["r"])
|
||||
p := ensureInt(cryptoJSON.KDFParams["p"])
|
||||
return scrypt.Key(authArray, salt, n, r, p, dkLen)
|
||||
|
||||
} else if cryptoJSON.KDF == "pbkdf2" {
|
||||
c := ensureInt(cryptoJSON.KDFParams["c"])
|
||||
prf := cryptoJSON.KDFParams["prf"].(string)
|
||||
if prf != "hmac-sha256" {
|
||||
return nil, fmt.Errorf("Unsupported PBKDF2 PRF: %s", prf)
|
||||
}
|
||||
key := pbkdf2.Key(authArray, salt, c, dkLen, sha256.New)
|
||||
return key, nil
|
||||
}
|
||||
|
||||
return nil, fmt.Errorf("Unsupported KDF: %s", cryptoJSON.KDF)
|
||||
}
|
||||
|
||||
// TODO: can we do without this when unmarshalling dynamic JSON?
|
||||
// why do integers in KDF params end up as float64 and not int after
|
||||
// unmarshal?
|
||||
func ensureInt(x interface{}) int {
|
||||
res, ok := x.(int)
|
||||
if !ok {
|
||||
res = int(x.(float64))
|
||||
}
|
||||
return res
|
||||
}
|
||||
60
accounts/key_store_passphrase_test.go
Normal file
60
accounts/key_store_passphrase_test.go
Normal file
@@ -0,0 +1,60 @@
|
||||
// Copyright 2016 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package accounts
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"testing"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
)
|
||||
|
||||
const (
|
||||
veryLightScryptN = 2
|
||||
veryLightScryptP = 1
|
||||
)
|
||||
|
||||
// Tests that a json key file can be decrypted and encrypted in multiple rounds.
|
||||
func TestKeyEncryptDecrypt(t *testing.T) {
|
||||
keyjson, err := ioutil.ReadFile("testdata/very-light-scrypt.json")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
password := ""
|
||||
address := common.HexToAddress("45dea0fb0bba44f4fcf290bba71fd57d7117cbb8")
|
||||
|
||||
// Do a few rounds of decryption and encryption
|
||||
for i := 0; i < 3; i++ {
|
||||
// Try a bad password first
|
||||
if _, err := DecryptKey(keyjson, password+"bad"); err == nil {
|
||||
t.Errorf("test %d: json key decrypted with bad password", i)
|
||||
}
|
||||
// Decrypt with the correct password
|
||||
key, err := DecryptKey(keyjson, password)
|
||||
if err != nil {
|
||||
t.Errorf("test %d: json key failed to decrypt: %v", i, err)
|
||||
}
|
||||
if key.Address != address {
|
||||
t.Errorf("test %d: key address mismatch: have %x, want %x", i, key.Address, address)
|
||||
}
|
||||
// Recrypt with a new password and start over
|
||||
password += "new data appended"
|
||||
if keyjson, err = EncryptKey(key, password, veryLightScryptN, veryLightScryptP); err != nil {
|
||||
t.Errorf("test %d: failed to recrypt key %v", i, err)
|
||||
}
|
||||
}
|
||||
}
|
||||
62
accounts/key_store_plain.go
Normal file
62
accounts/key_store_plain.go
Normal file
@@ -0,0 +1,62 @@
|
||||
// Copyright 2015 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package accounts
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
)
|
||||
|
||||
type keyStorePlain struct {
|
||||
keysDirPath string
|
||||
}
|
||||
|
||||
func (ks keyStorePlain) GetKey(addr common.Address, filename, auth string) (*Key, error) {
|
||||
fd, err := os.Open(filename)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer fd.Close()
|
||||
key := new(Key)
|
||||
if err := json.NewDecoder(fd).Decode(key); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if key.Address != addr {
|
||||
return nil, fmt.Errorf("key content mismatch: have address %x, want %x", key.Address, addr)
|
||||
}
|
||||
return key, nil
|
||||
}
|
||||
|
||||
func (ks keyStorePlain) StoreKey(filename string, key *Key, auth string) error {
|
||||
content, err := json.Marshal(key)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return writeKeyFile(filename, content)
|
||||
}
|
||||
|
||||
func (ks keyStorePlain) JoinPath(filename string) string {
|
||||
if filepath.IsAbs(filename) {
|
||||
return filename
|
||||
} else {
|
||||
return filepath.Join(ks.keysDirPath, filename)
|
||||
}
|
||||
}
|
||||
253
accounts/key_store_test.go
Normal file
253
accounts/key_store_test.go
Normal file
@@ -0,0 +1,253 @@
|
||||
// Copyright 2014 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package accounts
|
||||
|
||||
import (
|
||||
"crypto/rand"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"reflect"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/crypto"
|
||||
)
|
||||
|
||||
func tmpKeyStore(t *testing.T, encrypted bool) (dir string, ks keyStore) {
|
||||
d, err := ioutil.TempDir("", "geth-keystore-test")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if encrypted {
|
||||
ks = &keyStorePassphrase{d, veryLightScryptN, veryLightScryptP}
|
||||
} else {
|
||||
ks = &keyStorePlain{d}
|
||||
}
|
||||
return d, ks
|
||||
}
|
||||
|
||||
func TestKeyStorePlain(t *testing.T) {
|
||||
dir, ks := tmpKeyStore(t, false)
|
||||
defer os.RemoveAll(dir)
|
||||
|
||||
pass := "" // not used but required by API
|
||||
k1, account, err := storeNewKey(ks, rand.Reader, pass)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
k2, err := ks.GetKey(k1.Address, account.File, pass)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if !reflect.DeepEqual(k1.Address, k2.Address) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if !reflect.DeepEqual(k1.PrivateKey, k2.PrivateKey) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestKeyStorePassphrase(t *testing.T) {
|
||||
dir, ks := tmpKeyStore(t, true)
|
||||
defer os.RemoveAll(dir)
|
||||
|
||||
pass := "foo"
|
||||
k1, account, err := storeNewKey(ks, rand.Reader, pass)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
k2, err := ks.GetKey(k1.Address, account.File, pass)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if !reflect.DeepEqual(k1.Address, k2.Address) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if !reflect.DeepEqual(k1.PrivateKey, k2.PrivateKey) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestKeyStorePassphraseDecryptionFail(t *testing.T) {
|
||||
dir, ks := tmpKeyStore(t, true)
|
||||
defer os.RemoveAll(dir)
|
||||
|
||||
pass := "foo"
|
||||
k1, account, err := storeNewKey(ks, rand.Reader, pass)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if _, err = ks.GetKey(k1.Address, account.File, "bar"); err != ErrDecrypt {
|
||||
t.Fatalf("wrong error for invalid passphrase\ngot %q\nwant %q", err, ErrDecrypt)
|
||||
}
|
||||
}
|
||||
|
||||
func TestImportPreSaleKey(t *testing.T) {
|
||||
dir, ks := tmpKeyStore(t, true)
|
||||
defer os.RemoveAll(dir)
|
||||
|
||||
// file content of a presale key file generated with:
|
||||
// python pyethsaletool.py genwallet
|
||||
// with password "foo"
|
||||
fileContent := "{\"encseed\": \"26d87f5f2bf9835f9a47eefae571bc09f9107bb13d54ff12a4ec095d01f83897494cf34f7bed2ed34126ecba9db7b62de56c9d7cd136520a0427bfb11b8954ba7ac39b90d4650d3448e31185affcd74226a68f1e94b1108e6e0a4a91cdd83eba\", \"ethaddr\": \"d4584b5f6229b7be90727b0fc8c6b91bb427821f\", \"email\": \"gustav.simonsson@gmail.com\", \"btcaddr\": \"1EVknXyFC68kKNLkh6YnKzW41svSRoaAcx\"}"
|
||||
pass := "foo"
|
||||
account, _, err := importPreSaleKey(ks, []byte(fileContent), pass)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if account.Address != common.HexToAddress("d4584b5f6229b7be90727b0fc8c6b91bb427821f") {
|
||||
t.Errorf("imported account has wrong address %x", account.Address)
|
||||
}
|
||||
if !strings.HasPrefix(account.File, dir) {
|
||||
t.Errorf("imported account file not in keystore directory: %q", account.File)
|
||||
}
|
||||
}
|
||||
|
||||
// Test and utils for the key store tests in the Ethereum JSON tests;
|
||||
// testdataKeyStoreTests/basic_tests.json
|
||||
type KeyStoreTestV3 struct {
|
||||
Json encryptedKeyJSONV3
|
||||
Password string
|
||||
Priv string
|
||||
}
|
||||
|
||||
type KeyStoreTestV1 struct {
|
||||
Json encryptedKeyJSONV1
|
||||
Password string
|
||||
Priv string
|
||||
}
|
||||
|
||||
func TestV3_PBKDF2_1(t *testing.T) {
|
||||
t.Parallel()
|
||||
tests := loadKeyStoreTestV3("testdata/v3_test_vector.json", t)
|
||||
testDecryptV3(tests["wikipage_test_vector_pbkdf2"], t)
|
||||
}
|
||||
|
||||
func TestV3_PBKDF2_2(t *testing.T) {
|
||||
t.Parallel()
|
||||
tests := loadKeyStoreTestV3("../tests/files/KeyStoreTests/basic_tests.json", t)
|
||||
testDecryptV3(tests["test1"], t)
|
||||
}
|
||||
|
||||
func TestV3_PBKDF2_3(t *testing.T) {
|
||||
t.Parallel()
|
||||
tests := loadKeyStoreTestV3("../tests/files/KeyStoreTests/basic_tests.json", t)
|
||||
testDecryptV3(tests["python_generated_test_with_odd_iv"], t)
|
||||
}
|
||||
|
||||
func TestV3_PBKDF2_4(t *testing.T) {
|
||||
t.Parallel()
|
||||
tests := loadKeyStoreTestV3("../tests/files/KeyStoreTests/basic_tests.json", t)
|
||||
testDecryptV3(tests["evilnonce"], t)
|
||||
}
|
||||
|
||||
func TestV3_Scrypt_1(t *testing.T) {
|
||||
t.Parallel()
|
||||
tests := loadKeyStoreTestV3("testdata/v3_test_vector.json", t)
|
||||
testDecryptV3(tests["wikipage_test_vector_scrypt"], t)
|
||||
}
|
||||
|
||||
func TestV3_Scrypt_2(t *testing.T) {
|
||||
t.Parallel()
|
||||
tests := loadKeyStoreTestV3("../tests/files/KeyStoreTests/basic_tests.json", t)
|
||||
testDecryptV3(tests["test2"], t)
|
||||
}
|
||||
|
||||
func TestV1_1(t *testing.T) {
|
||||
t.Parallel()
|
||||
tests := loadKeyStoreTestV1("testdata/v1_test_vector.json", t)
|
||||
testDecryptV1(tests["test1"], t)
|
||||
}
|
||||
|
||||
func TestV1_2(t *testing.T) {
|
||||
t.Parallel()
|
||||
ks := &keyStorePassphrase{"testdata/v1", LightScryptN, LightScryptP}
|
||||
addr := common.HexToAddress("cb61d5a9c4896fb9658090b597ef0e7be6f7b67e")
|
||||
file := "testdata/v1/cb61d5a9c4896fb9658090b597ef0e7be6f7b67e/cb61d5a9c4896fb9658090b597ef0e7be6f7b67e"
|
||||
k, err := ks.GetKey(addr, file, "g")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
privHex := hex.EncodeToString(crypto.FromECDSA(k.PrivateKey))
|
||||
expectedHex := "d1b1178d3529626a1a93e073f65028370d14c7eb0936eb42abef05db6f37ad7d"
|
||||
if privHex != expectedHex {
|
||||
t.Fatal(fmt.Errorf("Unexpected privkey: %v, expected %v", privHex, expectedHex))
|
||||
}
|
||||
}
|
||||
|
||||
func testDecryptV3(test KeyStoreTestV3, t *testing.T) {
|
||||
privBytes, _, err := decryptKeyV3(&test.Json, test.Password)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
privHex := hex.EncodeToString(privBytes)
|
||||
if test.Priv != privHex {
|
||||
t.Fatal(fmt.Errorf("Decrypted bytes not equal to test, expected %v have %v", test.Priv, privHex))
|
||||
}
|
||||
}
|
||||
|
||||
func testDecryptV1(test KeyStoreTestV1, t *testing.T) {
|
||||
privBytes, _, err := decryptKeyV1(&test.Json, test.Password)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
privHex := hex.EncodeToString(privBytes)
|
||||
if test.Priv != privHex {
|
||||
t.Fatal(fmt.Errorf("Decrypted bytes not equal to test, expected %v have %v", test.Priv, privHex))
|
||||
}
|
||||
}
|
||||
|
||||
func loadKeyStoreTestV3(file string, t *testing.T) map[string]KeyStoreTestV3 {
|
||||
tests := make(map[string]KeyStoreTestV3)
|
||||
err := common.LoadJSON(file, &tests)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
return tests
|
||||
}
|
||||
|
||||
func loadKeyStoreTestV1(file string, t *testing.T) map[string]KeyStoreTestV1 {
|
||||
tests := make(map[string]KeyStoreTestV1)
|
||||
err := common.LoadJSON(file, &tests)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
return tests
|
||||
}
|
||||
|
||||
func TestKeyForDirectICAP(t *testing.T) {
|
||||
t.Parallel()
|
||||
key := NewKeyForDirectICAP(rand.Reader)
|
||||
if !strings.HasPrefix(key.Address.Hex(), "0x00") {
|
||||
t.Errorf("Expected first address byte to be zero, have: %s", key.Address.Hex())
|
||||
}
|
||||
}
|
||||
|
||||
func TestV3_31_Byte_Key(t *testing.T) {
|
||||
t.Parallel()
|
||||
tests := loadKeyStoreTestV3("testdata/v3_test_vector.json", t)
|
||||
testDecryptV3(tests["31_byte_key"], t)
|
||||
}
|
||||
|
||||
func TestV3_30_Byte_Key(t *testing.T) {
|
||||
t.Parallel()
|
||||
tests := loadKeyStoreTestV3("testdata/v3_test_vector.json", t)
|
||||
testDecryptV3(tests["30_byte_key"], t)
|
||||
}
|
||||
132
accounts/presale.go
Normal file
132
accounts/presale.go
Normal file
@@ -0,0 +1,132 @@
|
||||
// Copyright 2016 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package accounts
|
||||
|
||||
import (
|
||||
"crypto/aes"
|
||||
"crypto/cipher"
|
||||
"crypto/sha256"
|
||||
"encoding/hex"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"github.com/ethereum/go-ethereum/crypto"
|
||||
"github.com/pborman/uuid"
|
||||
"golang.org/x/crypto/pbkdf2"
|
||||
)
|
||||
|
||||
// creates a Key and stores that in the given KeyStore by decrypting a presale key JSON
|
||||
func importPreSaleKey(keyStore keyStore, keyJSON []byte, password string) (Account, *Key, error) {
|
||||
key, err := decryptPreSaleKey(keyJSON, password)
|
||||
if err != nil {
|
||||
return Account{}, nil, err
|
||||
}
|
||||
key.Id = uuid.NewRandom()
|
||||
a := Account{Address: key.Address, File: keyStore.JoinPath(keyFileName(key.Address))}
|
||||
err = keyStore.StoreKey(a.File, key, password)
|
||||
return a, key, err
|
||||
}
|
||||
|
||||
func decryptPreSaleKey(fileContent []byte, password string) (key *Key, err error) {
|
||||
preSaleKeyStruct := struct {
|
||||
EncSeed string
|
||||
EthAddr string
|
||||
Email string
|
||||
BtcAddr string
|
||||
}{}
|
||||
err = json.Unmarshal(fileContent, &preSaleKeyStruct)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
encSeedBytes, err := hex.DecodeString(preSaleKeyStruct.EncSeed)
|
||||
iv := encSeedBytes[:16]
|
||||
cipherText := encSeedBytes[16:]
|
||||
/*
|
||||
See https://github.com/ethereum/pyethsaletool
|
||||
|
||||
pyethsaletool generates the encryption key from password by
|
||||
2000 rounds of PBKDF2 with HMAC-SHA-256 using password as salt (:().
|
||||
16 byte key length within PBKDF2 and resulting key is used as AES key
|
||||
*/
|
||||
passBytes := []byte(password)
|
||||
derivedKey := pbkdf2.Key(passBytes, passBytes, 2000, 16, sha256.New)
|
||||
plainText, err := aesCBCDecrypt(derivedKey, cipherText, iv)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ethPriv := crypto.Keccak256(plainText)
|
||||
ecKey := crypto.ToECDSA(ethPriv)
|
||||
key = &Key{
|
||||
Id: nil,
|
||||
Address: crypto.PubkeyToAddress(ecKey.PublicKey),
|
||||
PrivateKey: ecKey,
|
||||
}
|
||||
derivedAddr := hex.EncodeToString(key.Address.Bytes()) // needed because .Hex() gives leading "0x"
|
||||
expectedAddr := preSaleKeyStruct.EthAddr
|
||||
if derivedAddr != expectedAddr {
|
||||
err = fmt.Errorf("decrypted addr '%s' not equal to expected addr '%s'", derivedAddr, expectedAddr)
|
||||
}
|
||||
return key, err
|
||||
}
|
||||
|
||||
func aesCTRXOR(key, inText, iv []byte) ([]byte, error) {
|
||||
// AES-128 is selected due to size of encryptKey.
|
||||
aesBlock, err := aes.NewCipher(key)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
stream := cipher.NewCTR(aesBlock, iv)
|
||||
outText := make([]byte, len(inText))
|
||||
stream.XORKeyStream(outText, inText)
|
||||
return outText, err
|
||||
}
|
||||
|
||||
func aesCBCDecrypt(key, cipherText, iv []byte) ([]byte, error) {
|
||||
aesBlock, err := aes.NewCipher(key)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
decrypter := cipher.NewCBCDecrypter(aesBlock, iv)
|
||||
paddedPlaintext := make([]byte, len(cipherText))
|
||||
decrypter.CryptBlocks(paddedPlaintext, cipherText)
|
||||
plaintext := pkcs7Unpad(paddedPlaintext)
|
||||
if plaintext == nil {
|
||||
return nil, ErrDecrypt
|
||||
}
|
||||
return plaintext, err
|
||||
}
|
||||
|
||||
// From https://leanpub.com/gocrypto/read#leanpub-auto-block-cipher-modes
|
||||
func pkcs7Unpad(in []byte) []byte {
|
||||
if len(in) == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
padding := in[len(in)-1]
|
||||
if int(padding) > len(in) || padding > aes.BlockSize {
|
||||
return nil
|
||||
} else if padding == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
for i := len(in) - 1; i > len(in)-int(padding)-1; i-- {
|
||||
if in[i] != padding {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
return in[:len(in)-int(padding)]
|
||||
}
|
||||
1
accounts/testdata/dupes/1
vendored
Normal file
1
accounts/testdata/dupes/1
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"address":"f466859ead1932d743d622cb74fc058882e8648a","crypto":{"cipher":"aes-128-ctr","ciphertext":"cb664472deacb41a2e995fa7f96fe29ce744471deb8d146a0e43c7898c9ddd4d","cipherparams":{"iv":"dfd9ee70812add5f4b8f89d0811c9158"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"0d6769bf016d45c479213990d6a08d938469c4adad8a02ce507b4a4e7b7739f1"},"mac":"bac9af994b15a45dd39669fc66f9aa8a3b9dd8c22cb16e4d8d7ea089d0f1a1a9"},"id":"472e8b3d-afb6-45b5-8111-72c89895099a","version":3}
|
||||
1
accounts/testdata/dupes/2
vendored
Normal file
1
accounts/testdata/dupes/2
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"address":"f466859ead1932d743d622cb74fc058882e8648a","crypto":{"cipher":"aes-128-ctr","ciphertext":"cb664472deacb41a2e995fa7f96fe29ce744471deb8d146a0e43c7898c9ddd4d","cipherparams":{"iv":"dfd9ee70812add5f4b8f89d0811c9158"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"0d6769bf016d45c479213990d6a08d938469c4adad8a02ce507b4a4e7b7739f1"},"mac":"bac9af994b15a45dd39669fc66f9aa8a3b9dd8c22cb16e4d8d7ea089d0f1a1a9"},"id":"472e8b3d-afb6-45b5-8111-72c89895099a","version":3}
|
||||
1
accounts/testdata/dupes/foo
vendored
Normal file
1
accounts/testdata/dupes/foo
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"address":"7ef5a6135f1fd6a02593eedc869c6d41d934aef8","crypto":{"cipher":"aes-128-ctr","ciphertext":"1d0839166e7a15b9c1333fc865d69858b22df26815ccf601b28219b6192974e1","cipherparams":{"iv":"8df6caa7ff1b00c4e871f002cb7921ed"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"e5e6ef3f4ea695f496b643ebd3f75c0aa58ef4070e90c80c5d3fb0241bf1595c"},"mac":"6d16dfde774845e4585357f24bce530528bc69f4f84e1e22880d34fa45c273e5"},"id":"950077c7-71e3-4c44-a4a1-143919141ed4","version":3}
|
||||
1
accounts/testdata/keystore/.hiddenfile
vendored
Normal file
1
accounts/testdata/keystore/.hiddenfile
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"address":"f466859ead1932d743d622cb74fc058882e8648a","crypto":{"cipher":"aes-128-ctr","ciphertext":"cb664472deacb41a2e995fa7f96fe29ce744471deb8d146a0e43c7898c9ddd4d","cipherparams":{"iv":"dfd9ee70812add5f4b8f89d0811c9158"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"0d6769bf016d45c479213990d6a08d938469c4adad8a02ce507b4a4e7b7739f1"},"mac":"bac9af994b15a45dd39669fc66f9aa8a3b9dd8c22cb16e4d8d7ea089d0f1a1a9"},"id":"472e8b3d-afb6-45b5-8111-72c89895099a","version":3}
|
||||
21
accounts/testdata/keystore/README
vendored
Normal file
21
accounts/testdata/keystore/README
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
This directory contains accounts for testing.
|
||||
The passphrase that unlocks them is "foobar".
|
||||
|
||||
The "good" key files which are supposed to be loadable are:
|
||||
|
||||
- File: UTC--2016-03-22T12-57-55.920751759Z--7ef5a6135f1fd6a02593eedc869c6d41d934aef8
|
||||
Address: 0x7ef5a6135f1fd6a02593eedc869c6d41d934aef8
|
||||
- File: aaa
|
||||
Address: 0xf466859ead1932d743d622cb74fc058882e8648a
|
||||
- File: zzz
|
||||
Address: 0x289d485d9771714cce91d3393d764e1311907acc
|
||||
|
||||
The other files (including this README) are broken in various ways
|
||||
and should not be picked up by package accounts:
|
||||
|
||||
- File: no-address (missing address field, otherwise same as "aaa")
|
||||
- File: garbage (file with random data)
|
||||
- File: empty (file with no content)
|
||||
- File: swapfile~ (should be skipped)
|
||||
- File: .hiddenfile (should be skipped)
|
||||
- File: foo/... (should be skipped because it is a directory)
|
||||
@@ -0,0 +1 @@
|
||||
{"address":"7ef5a6135f1fd6a02593eedc869c6d41d934aef8","crypto":{"cipher":"aes-128-ctr","ciphertext":"1d0839166e7a15b9c1333fc865d69858b22df26815ccf601b28219b6192974e1","cipherparams":{"iv":"8df6caa7ff1b00c4e871f002cb7921ed"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"e5e6ef3f4ea695f496b643ebd3f75c0aa58ef4070e90c80c5d3fb0241bf1595c"},"mac":"6d16dfde774845e4585357f24bce530528bc69f4f84e1e22880d34fa45c273e5"},"id":"950077c7-71e3-4c44-a4a1-143919141ed4","version":3}
|
||||
1
accounts/testdata/keystore/aaa
vendored
Normal file
1
accounts/testdata/keystore/aaa
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"address":"f466859ead1932d743d622cb74fc058882e8648a","crypto":{"cipher":"aes-128-ctr","ciphertext":"cb664472deacb41a2e995fa7f96fe29ce744471deb8d146a0e43c7898c9ddd4d","cipherparams":{"iv":"dfd9ee70812add5f4b8f89d0811c9158"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"0d6769bf016d45c479213990d6a08d938469c4adad8a02ce507b4a4e7b7739f1"},"mac":"bac9af994b15a45dd39669fc66f9aa8a3b9dd8c22cb16e4d8d7ea089d0f1a1a9"},"id":"472e8b3d-afb6-45b5-8111-72c89895099a","version":3}
|
||||
0
accounts/testdata/keystore/empty
vendored
Normal file
0
accounts/testdata/keystore/empty
vendored
Normal file
1
accounts/testdata/keystore/foo/fd9bd350f08ee3c0c19b85a8e16114a11a60aa4e
vendored
Normal file
1
accounts/testdata/keystore/foo/fd9bd350f08ee3c0c19b85a8e16114a11a60aa4e
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"address":"fd9bd350f08ee3c0c19b85a8e16114a11a60aa4e","crypto":{"cipher":"aes-128-ctr","ciphertext":"8124d5134aa4a927c79fd852989e4b5419397566f04b0936a1eb1d168c7c68a5","cipherparams":{"iv":"e2febe17176414dd2cda28287947eb2f"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":4096,"p":6,"r":8,"salt":"44b415ede89f3bdd6830390a21b78965f571b347a589d1d943029f016c5e8bd5"},"mac":"5e149ff25bfd9dd45746a84bb2bcd2f015f2cbca2b6d25c5de8c29617f71fe5b"},"id":"d6ac5452-2b2c-4d3c-ad80-4bf0327d971c","version":3}
|
||||
BIN
accounts/testdata/keystore/garbage
vendored
Normal file
BIN
accounts/testdata/keystore/garbage
vendored
Normal file
Binary file not shown.
1
accounts/testdata/keystore/no-address
vendored
Normal file
1
accounts/testdata/keystore/no-address
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"crypto":{"cipher":"aes-128-ctr","ciphertext":"cb664472deacb41a2e995fa7f96fe29ce744471deb8d146a0e43c7898c9ddd4d","cipherparams":{"iv":"dfd9ee70812add5f4b8f89d0811c9158"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"0d6769bf016d45c479213990d6a08d938469c4adad8a02ce507b4a4e7b7739f1"},"mac":"bac9af994b15a45dd39669fc66f9aa8a3b9dd8c22cb16e4d8d7ea089d0f1a1a9"},"id":"472e8b3d-afb6-45b5-8111-72c89895099a","version":3}
|
||||
1
accounts/testdata/keystore/zero
vendored
Normal file
1
accounts/testdata/keystore/zero
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"address":"0000000000000000000000000000000000000000","crypto":{"cipher":"aes-128-ctr","ciphertext":"cb664472deacb41a2e995fa7f96fe29ce744471deb8d146a0e43c7898c9ddd4d","cipherparams":{"iv":"dfd9ee70812add5f4b8f89d0811c9158"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"0d6769bf016d45c479213990d6a08d938469c4adad8a02ce507b4a4e7b7739f1"},"mac":"bac9af994b15a45dd39669fc66f9aa8a3b9dd8c22cb16e4d8d7ea089d0f1a1a9"},"id":"472e8b3d-afb6-45b5-8111-72c89895099a","version":3}
|
||||
1
accounts/testdata/keystore/zzz
vendored
Normal file
1
accounts/testdata/keystore/zzz
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"address":"289d485d9771714cce91d3393d764e1311907acc","crypto":{"cipher":"aes-128-ctr","ciphertext":"faf32ca89d286b107f5e6d842802e05263c49b78d46eac74e6109e9a963378ab","cipherparams":{"iv":"558833eec4a665a8c55608d7d503407d"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"d571fff447ffb24314f9513f5160246f09997b857ac71348b73e785aab40dc04"},"mac":"21edb85ff7d0dab1767b9bf498f2c3cb7be7609490756bd32300bb213b59effe"},"id":"3279afcf-55ba-43ff-8997-02dcc46a6525","version":3}
|
||||
@@ -0,0 +1 @@
|
||||
{"address":"cb61d5a9c4896fb9658090b597ef0e7be6f7b67e","Crypto":{"cipher":"aes-128-cbc","ciphertext":"6143d3192db8b66eabd693d9c4e414dcfaee52abda451af79ccf474dafb35f1bfc7ea013aa9d2ee35969a1a2e8d752d0","cipherparams":{"iv":"35337770fc2117994ecdcad026bccff4"},"kdf":"scrypt","kdfparams":{"n":262144,"r":8,"p":1,"dklen":32,"salt":"9afcddebca541253a2f4053391c673ff9fe23097cd8555d149d929e4ccf1257f"},"mac":"3f3d5af884b17a100b0b3232c0636c230a54dc2ac8d986227219b0dd89197644","version":"1"},"id":"e25f7c1f-d318-4f29-b62c-687190d4d299","version":"1"}
|
||||
28
accounts/testdata/v1_test_vector.json
vendored
Normal file
28
accounts/testdata/v1_test_vector.json
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"test1": {
|
||||
"json": {
|
||||
"Crypto": {
|
||||
"cipher": "aes-128-cbc",
|
||||
"cipherparams": {
|
||||
"iv": "35337770fc2117994ecdcad026bccff4"
|
||||
},
|
||||
"ciphertext": "6143d3192db8b66eabd693d9c4e414dcfaee52abda451af79ccf474dafb35f1bfc7ea013aa9d2ee35969a1a2e8d752d0",
|
||||
"kdf": "scrypt",
|
||||
"kdfparams": {
|
||||
"dklen": 32,
|
||||
"n": 262144,
|
||||
"p": 1,
|
||||
"r": 8,
|
||||
"salt": "9afcddebca541253a2f4053391c673ff9fe23097cd8555d149d929e4ccf1257f"
|
||||
},
|
||||
"mac": "3f3d5af884b17a100b0b3232c0636c230a54dc2ac8d986227219b0dd89197644",
|
||||
"version": "1"
|
||||
},
|
||||
"address": "cb61d5a9c4896fb9658090b597ef0e7be6f7b67e",
|
||||
"id": "e25f7c1f-d318-4f29-b62c-687190d4d299",
|
||||
"version": "1"
|
||||
},
|
||||
"password": "g",
|
||||
"priv": "d1b1178d3529626a1a93e073f65028370d14c7eb0936eb42abef05db6f37ad7d"
|
||||
}
|
||||
}
|
||||
97
accounts/testdata/v3_test_vector.json
vendored
Normal file
97
accounts/testdata/v3_test_vector.json
vendored
Normal file
@@ -0,0 +1,97 @@
|
||||
{
|
||||
"wikipage_test_vector_scrypt": {
|
||||
"json": {
|
||||
"crypto" : {
|
||||
"cipher" : "aes-128-ctr",
|
||||
"cipherparams" : {
|
||||
"iv" : "83dbcc02d8ccb40e466191a123791e0e"
|
||||
},
|
||||
"ciphertext" : "d172bf743a674da9cdad04534d56926ef8358534d458fffccd4e6ad2fbde479c",
|
||||
"kdf" : "scrypt",
|
||||
"kdfparams" : {
|
||||
"dklen" : 32,
|
||||
"n" : 262144,
|
||||
"r" : 1,
|
||||
"p" : 8,
|
||||
"salt" : "ab0c7876052600dd703518d6fc3fe8984592145b591fc8fb5c6d43190334ba19"
|
||||
},
|
||||
"mac" : "2103ac29920d71da29f15d75b4a16dbe95cfd7ff8faea1056c33131d846e3097"
|
||||
},
|
||||
"id" : "3198bc9c-6672-5ab3-d995-4942343ae5b6",
|
||||
"version" : 3
|
||||
},
|
||||
"password": "testpassword",
|
||||
"priv": "7a28b5ba57c53603b0b07b56bba752f7784bf506fa95edc395f5cf6c7514fe9d"
|
||||
},
|
||||
"wikipage_test_vector_pbkdf2": {
|
||||
"json": {
|
||||
"crypto" : {
|
||||
"cipher" : "aes-128-ctr",
|
||||
"cipherparams" : {
|
||||
"iv" : "6087dab2f9fdbbfaddc31a909735c1e6"
|
||||
},
|
||||
"ciphertext" : "5318b4d5bcd28de64ee5559e671353e16f075ecae9f99c7a79a38af5f869aa46",
|
||||
"kdf" : "pbkdf2",
|
||||
"kdfparams" : {
|
||||
"c" : 262144,
|
||||
"dklen" : 32,
|
||||
"prf" : "hmac-sha256",
|
||||
"salt" : "ae3cd4e7013836a3df6bd7241b12db061dbe2c6785853cce422d148a624ce0bd"
|
||||
},
|
||||
"mac" : "517ead924a9d0dc3124507e3393d175ce3ff7c1e96529c6c555ce9e51205e9b2"
|
||||
},
|
||||
"id" : "3198bc9c-6672-5ab3-d995-4942343ae5b6",
|
||||
"version" : 3
|
||||
},
|
||||
"password": "testpassword",
|
||||
"priv": "7a28b5ba57c53603b0b07b56bba752f7784bf506fa95edc395f5cf6c7514fe9d"
|
||||
},
|
||||
"31_byte_key": {
|
||||
"json": {
|
||||
"crypto" : {
|
||||
"cipher" : "aes-128-ctr",
|
||||
"cipherparams" : {
|
||||
"iv" : "e0c41130a323adc1446fc82f724bca2f"
|
||||
},
|
||||
"ciphertext" : "9517cd5bdbe69076f9bf5057248c6c050141e970efa36ce53692d5d59a3984",
|
||||
"kdf" : "scrypt",
|
||||
"kdfparams" : {
|
||||
"dklen" : 32,
|
||||
"n" : 2,
|
||||
"r" : 8,
|
||||
"p" : 1,
|
||||
"salt" : "711f816911c92d649fb4c84b047915679933555030b3552c1212609b38208c63"
|
||||
},
|
||||
"mac" : "d5e116151c6aa71470e67a7d42c9620c75c4d23229847dcc127794f0732b0db5"
|
||||
},
|
||||
"id" : "fecfc4ce-e956-48fd-953b-30f8b52ed66c",
|
||||
"version" : 3
|
||||
},
|
||||
"password": "foo",
|
||||
"priv": "fa7b3db73dc7dfdf8c5fbdb796d741e4488628c41fc4febd9160a866ba0f35"
|
||||
},
|
||||
"30_byte_key": {
|
||||
"json": {
|
||||
"crypto" : {
|
||||
"cipher" : "aes-128-ctr",
|
||||
"cipherparams" : {
|
||||
"iv" : "3ca92af36ad7c2cd92454c59cea5ef00"
|
||||
},
|
||||
"ciphertext" : "108b7d34f3442fc26ab1ab90ca91476ba6bfa8c00975a49ef9051dc675aa",
|
||||
"kdf" : "scrypt",
|
||||
"kdfparams" : {
|
||||
"dklen" : 32,
|
||||
"n" : 2,
|
||||
"r" : 8,
|
||||
"p" : 1,
|
||||
"salt" : "d0769e608fb86cda848065642a9c6fa046845c928175662b8e356c77f914cd3b"
|
||||
},
|
||||
"mac" : "75d0e6759f7b3cefa319c3be41680ab6beea7d8328653474bd06706d4cc67420"
|
||||
},
|
||||
"id" : "a37e1559-5955-450d-8075-7b8931b392b2",
|
||||
"version" : 3
|
||||
},
|
||||
"password": "foo",
|
||||
"priv": "81c29e8142bb6a81bef5a92bda7a8328a5c85bb2f9542e76f9b0f94fc018"
|
||||
}
|
||||
}
|
||||
1
accounts/testdata/very-light-scrypt.json
vendored
Normal file
1
accounts/testdata/very-light-scrypt.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"address":"45dea0fb0bba44f4fcf290bba71fd57d7117cbb8","crypto":{"cipher":"aes-128-ctr","ciphertext":"b87781948a1befd247bff51ef4063f716cf6c2d3481163e9a8f42e1f9bb74145","cipherparams":{"iv":"dc4926b48a105133d2f16b96833abf1e"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":2,"p":1,"r":8,"salt":"004244bbdc51cadda545b1cfa43cff9ed2ae88e08c61f1479dbb45410722f8f0"},"mac":"39990c1684557447940d4c69e06b1b82b2aceacb43f284df65c956daf3046b85"},"id":"ce541d8d-c79b-40f8-9f8c-20f59616faba","version":3}
|
||||
113
accounts/watch.go
Normal file
113
accounts/watch.go
Normal file
@@ -0,0 +1,113 @@
|
||||
// Copyright 2016 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
// +build darwin,!ios freebsd linux,!arm64 netbsd solaris windows
|
||||
|
||||
package accounts
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/ethereum/go-ethereum/logger"
|
||||
"github.com/ethereum/go-ethereum/logger/glog"
|
||||
"github.com/rjeczalik/notify"
|
||||
)
|
||||
|
||||
type watcher struct {
|
||||
ac *addrCache
|
||||
starting bool
|
||||
running bool
|
||||
ev chan notify.EventInfo
|
||||
quit chan struct{}
|
||||
}
|
||||
|
||||
func newWatcher(ac *addrCache) *watcher {
|
||||
return &watcher{
|
||||
ac: ac,
|
||||
ev: make(chan notify.EventInfo, 10),
|
||||
quit: make(chan struct{}),
|
||||
}
|
||||
}
|
||||
|
||||
// starts the watcher loop in the background.
|
||||
// Start a watcher in the background if that's not already in progress.
|
||||
// The caller must hold w.ac.mu.
|
||||
func (w *watcher) start() {
|
||||
if w.starting || w.running {
|
||||
return
|
||||
}
|
||||
w.starting = true
|
||||
go w.loop()
|
||||
}
|
||||
|
||||
func (w *watcher) close() {
|
||||
close(w.quit)
|
||||
}
|
||||
|
||||
func (w *watcher) loop() {
|
||||
defer func() {
|
||||
w.ac.mu.Lock()
|
||||
w.running = false
|
||||
w.starting = false
|
||||
w.ac.mu.Unlock()
|
||||
}()
|
||||
|
||||
err := notify.Watch(w.ac.keydir, w.ev, notify.All)
|
||||
if err != nil {
|
||||
glog.V(logger.Detail).Infof("can't watch %s: %v", w.ac.keydir, err)
|
||||
return
|
||||
}
|
||||
defer notify.Stop(w.ev)
|
||||
glog.V(logger.Detail).Infof("now watching %s", w.ac.keydir)
|
||||
defer glog.V(logger.Detail).Infof("no longer watching %s", w.ac.keydir)
|
||||
|
||||
w.ac.mu.Lock()
|
||||
w.running = true
|
||||
w.ac.mu.Unlock()
|
||||
|
||||
// Wait for file system events and reload.
|
||||
// When an event occurs, the reload call is delayed a bit so that
|
||||
// multiple events arriving quickly only cause a single reload.
|
||||
var (
|
||||
debounce = time.NewTimer(0)
|
||||
debounceDuration = 500 * time.Millisecond
|
||||
inCycle, hadEvent bool
|
||||
)
|
||||
defer debounce.Stop()
|
||||
for {
|
||||
select {
|
||||
case <-w.quit:
|
||||
return
|
||||
case <-w.ev:
|
||||
if !inCycle {
|
||||
debounce.Reset(debounceDuration)
|
||||
inCycle = true
|
||||
} else {
|
||||
hadEvent = true
|
||||
}
|
||||
case <-debounce.C:
|
||||
w.ac.mu.Lock()
|
||||
w.ac.reload()
|
||||
w.ac.mu.Unlock()
|
||||
if hadEvent {
|
||||
debounce.Reset(debounceDuration)
|
||||
inCycle, hadEvent = true, false
|
||||
} else {
|
||||
inCycle, hadEvent = false, false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
28
accounts/watch_fallback.go
Normal file
28
accounts/watch_fallback.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// Copyright 2016 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
// +build ios linux,arm64 !darwin,!freebsd,!linux,!netbsd,!solaris,!windows
|
||||
|
||||
// This is the fallback implementation of directory watching.
|
||||
// It is used on unsupported platforms.
|
||||
|
||||
package accounts
|
||||
|
||||
type watcher struct{ running bool }
|
||||
|
||||
func newWatcher(*addrCache) *watcher { return new(watcher) }
|
||||
func (*watcher) start() {}
|
||||
func (*watcher) close() {}
|
||||
40
appveyor.yml
Normal file
40
appveyor.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
os: Visual Studio 2015
|
||||
|
||||
# Clone directly into GOPATH.
|
||||
clone_folder: C:\gopath\src\github.com\ethereum\go-ethereum
|
||||
clone_depth: 5
|
||||
version: "{branch}.{build}"
|
||||
environment:
|
||||
global:
|
||||
GOPATH: C:\gopath
|
||||
CC: gcc.exe
|
||||
matrix:
|
||||
- GETH_ARCH: amd64
|
||||
MSYS2_ARCH: x86_64
|
||||
MSYS2_BITS: 64
|
||||
MSYSTEM: MINGW64
|
||||
PATH: C:\msys64\mingw64\bin\;C:\Program Files (x86)\NSIS\;%PATH%
|
||||
- GETH_ARCH: 386
|
||||
MSYS2_ARCH: i686
|
||||
MSYS2_BITS: 32
|
||||
MSYSTEM: MINGW32
|
||||
PATH: C:\msys64\mingw32\bin\;C:\Program Files (x86)\NSIS\;%PATH%
|
||||
|
||||
install:
|
||||
- rmdir C:\go /s /q
|
||||
- appveyor DownloadFile https://storage.googleapis.com/golang/go1.7.3.windows-amd64.zip
|
||||
- 7z x go1.7.3.windows-amd64.zip -y -oC:\ > NUL
|
||||
- go version
|
||||
- gcc --version
|
||||
|
||||
build_script:
|
||||
- go run build\ci.go install -arch %GETH_ARCH%
|
||||
|
||||
after_build:
|
||||
- go run build\ci.go archive -arch %GETH_ARCH% -type zip -signer WINDOWS_SIGNING_KEY -upload gethstore/builds
|
||||
- go run build\ci.go nsis -arch %GETH_ARCH% -signer WINDOWS_SIGNING_KEY -upload gethstore/builds
|
||||
|
||||
test_script:
|
||||
- set GOARCH=%GETH_ARCH%
|
||||
- set CGO_ENABLED=1
|
||||
- go run build\ci.go test -vet -coverage
|
||||
27
build/_vendor/src/golang.org/x/net/LICENSE
Normal file
27
build/_vendor/src/golang.org/x/net/LICENSE
Normal file
@@ -0,0 +1,27 @@
|
||||
Copyright (c) 2009 The Go Authors. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following disclaimer
|
||||
in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* Neither the name of Google Inc. nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
156
build/_vendor/src/golang.org/x/net/context/context.go
Normal file
156
build/_vendor/src/golang.org/x/net/context/context.go
Normal file
@@ -0,0 +1,156 @@
|
||||
// Copyright 2014 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Package context defines the Context type, which carries deadlines,
|
||||
// cancelation signals, and other request-scoped values across API boundaries
|
||||
// and between processes.
|
||||
//
|
||||
// Incoming requests to a server should create a Context, and outgoing calls to
|
||||
// servers should accept a Context. The chain of function calls between must
|
||||
// propagate the Context, optionally replacing it with a modified copy created
|
||||
// using WithDeadline, WithTimeout, WithCancel, or WithValue.
|
||||
//
|
||||
// Programs that use Contexts should follow these rules to keep interfaces
|
||||
// consistent across packages and enable static analysis tools to check context
|
||||
// propagation:
|
||||
//
|
||||
// Do not store Contexts inside a struct type; instead, pass a Context
|
||||
// explicitly to each function that needs it. The Context should be the first
|
||||
// parameter, typically named ctx:
|
||||
//
|
||||
// func DoSomething(ctx context.Context, arg Arg) error {
|
||||
// // ... use ctx ...
|
||||
// }
|
||||
//
|
||||
// Do not pass a nil Context, even if a function permits it. Pass context.TODO
|
||||
// if you are unsure about which Context to use.
|
||||
//
|
||||
// Use context Values only for request-scoped data that transits processes and
|
||||
// APIs, not for passing optional parameters to functions.
|
||||
//
|
||||
// The same Context may be passed to functions running in different goroutines;
|
||||
// Contexts are safe for simultaneous use by multiple goroutines.
|
||||
//
|
||||
// See http://blog.golang.org/context for example code for a server that uses
|
||||
// Contexts.
|
||||
package context // import "golang.org/x/net/context"
|
||||
|
||||
import "time"
|
||||
|
||||
// A Context carries a deadline, a cancelation signal, and other values across
|
||||
// API boundaries.
|
||||
//
|
||||
// Context's methods may be called by multiple goroutines simultaneously.
|
||||
type Context interface {
|
||||
// Deadline returns the time when work done on behalf of this context
|
||||
// should be canceled. Deadline returns ok==false when no deadline is
|
||||
// set. Successive calls to Deadline return the same results.
|
||||
Deadline() (deadline time.Time, ok bool)
|
||||
|
||||
// Done returns a channel that's closed when work done on behalf of this
|
||||
// context should be canceled. Done may return nil if this context can
|
||||
// never be canceled. Successive calls to Done return the same value.
|
||||
//
|
||||
// WithCancel arranges for Done to be closed when cancel is called;
|
||||
// WithDeadline arranges for Done to be closed when the deadline
|
||||
// expires; WithTimeout arranges for Done to be closed when the timeout
|
||||
// elapses.
|
||||
//
|
||||
// Done is provided for use in select statements:
|
||||
//
|
||||
// // Stream generates values with DoSomething and sends them to out
|
||||
// // until DoSomething returns an error or ctx.Done is closed.
|
||||
// func Stream(ctx context.Context, out chan<- Value) error {
|
||||
// for {
|
||||
// v, err := DoSomething(ctx)
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// select {
|
||||
// case <-ctx.Done():
|
||||
// return ctx.Err()
|
||||
// case out <- v:
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// See http://blog.golang.org/pipelines for more examples of how to use
|
||||
// a Done channel for cancelation.
|
||||
Done() <-chan struct{}
|
||||
|
||||
// Err returns a non-nil error value after Done is closed. Err returns
|
||||
// Canceled if the context was canceled or DeadlineExceeded if the
|
||||
// context's deadline passed. No other values for Err are defined.
|
||||
// After Done is closed, successive calls to Err return the same value.
|
||||
Err() error
|
||||
|
||||
// Value returns the value associated with this context for key, or nil
|
||||
// if no value is associated with key. Successive calls to Value with
|
||||
// the same key returns the same result.
|
||||
//
|
||||
// Use context values only for request-scoped data that transits
|
||||
// processes and API boundaries, not for passing optional parameters to
|
||||
// functions.
|
||||
//
|
||||
// A key identifies a specific value in a Context. Functions that wish
|
||||
// to store values in Context typically allocate a key in a global
|
||||
// variable then use that key as the argument to context.WithValue and
|
||||
// Context.Value. A key can be any type that supports equality;
|
||||
// packages should define keys as an unexported type to avoid
|
||||
// collisions.
|
||||
//
|
||||
// Packages that define a Context key should provide type-safe accessors
|
||||
// for the values stores using that key:
|
||||
//
|
||||
// // Package user defines a User type that's stored in Contexts.
|
||||
// package user
|
||||
//
|
||||
// import "golang.org/x/net/context"
|
||||
//
|
||||
// // User is the type of value stored in the Contexts.
|
||||
// type User struct {...}
|
||||
//
|
||||
// // key is an unexported type for keys defined in this package.
|
||||
// // This prevents collisions with keys defined in other packages.
|
||||
// type key int
|
||||
//
|
||||
// // userKey is the key for user.User values in Contexts. It is
|
||||
// // unexported; clients use user.NewContext and user.FromContext
|
||||
// // instead of using this key directly.
|
||||
// var userKey key = 0
|
||||
//
|
||||
// // NewContext returns a new Context that carries value u.
|
||||
// func NewContext(ctx context.Context, u *User) context.Context {
|
||||
// return context.WithValue(ctx, userKey, u)
|
||||
// }
|
||||
//
|
||||
// // FromContext returns the User value stored in ctx, if any.
|
||||
// func FromContext(ctx context.Context) (*User, bool) {
|
||||
// u, ok := ctx.Value(userKey).(*User)
|
||||
// return u, ok
|
||||
// }
|
||||
Value(key interface{}) interface{}
|
||||
}
|
||||
|
||||
// Background returns a non-nil, empty Context. It is never canceled, has no
|
||||
// values, and has no deadline. It is typically used by the main function,
|
||||
// initialization, and tests, and as the top-level Context for incoming
|
||||
// requests.
|
||||
func Background() Context {
|
||||
return background
|
||||
}
|
||||
|
||||
// TODO returns a non-nil, empty Context. Code should use context.TODO when
|
||||
// it's unclear which Context to use or it is not yet available (because the
|
||||
// surrounding function has not yet been extended to accept a Context
|
||||
// parameter). TODO is recognized by static analysis tools that determine
|
||||
// whether Contexts are propagated correctly in a program.
|
||||
func TODO() Context {
|
||||
return todo
|
||||
}
|
||||
|
||||
// A CancelFunc tells an operation to abandon its work.
|
||||
// A CancelFunc does not wait for the work to stop.
|
||||
// After the first call, subsequent calls to a CancelFunc do nothing.
|
||||
type CancelFunc func()
|
||||
72
build/_vendor/src/golang.org/x/net/context/go17.go
Normal file
72
build/_vendor/src/golang.org/x/net/context/go17.go
Normal file
@@ -0,0 +1,72 @@
|
||||
// Copyright 2016 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build go1.7
|
||||
|
||||
package context
|
||||
|
||||
import (
|
||||
"context" // standard library's context, as of Go 1.7
|
||||
"time"
|
||||
)
|
||||
|
||||
var (
|
||||
todo = context.TODO()
|
||||
background = context.Background()
|
||||
)
|
||||
|
||||
// Canceled is the error returned by Context.Err when the context is canceled.
|
||||
var Canceled = context.Canceled
|
||||
|
||||
// DeadlineExceeded is the error returned by Context.Err when the context's
|
||||
// deadline passes.
|
||||
var DeadlineExceeded = context.DeadlineExceeded
|
||||
|
||||
// WithCancel returns a copy of parent with a new Done channel. The returned
|
||||
// context's Done channel is closed when the returned cancel function is called
|
||||
// or when the parent context's Done channel is closed, whichever happens first.
|
||||
//
|
||||
// Canceling this context releases resources associated with it, so code should
|
||||
// call cancel as soon as the operations running in this Context complete.
|
||||
func WithCancel(parent Context) (ctx Context, cancel CancelFunc) {
|
||||
ctx, f := context.WithCancel(parent)
|
||||
return ctx, CancelFunc(f)
|
||||
}
|
||||
|
||||
// WithDeadline returns a copy of the parent context with the deadline adjusted
|
||||
// to be no later than d. If the parent's deadline is already earlier than d,
|
||||
// WithDeadline(parent, d) is semantically equivalent to parent. The returned
|
||||
// context's Done channel is closed when the deadline expires, when the returned
|
||||
// cancel function is called, or when the parent context's Done channel is
|
||||
// closed, whichever happens first.
|
||||
//
|
||||
// Canceling this context releases resources associated with it, so code should
|
||||
// call cancel as soon as the operations running in this Context complete.
|
||||
func WithDeadline(parent Context, deadline time.Time) (Context, CancelFunc) {
|
||||
ctx, f := context.WithDeadline(parent, deadline)
|
||||
return ctx, CancelFunc(f)
|
||||
}
|
||||
|
||||
// WithTimeout returns WithDeadline(parent, time.Now().Add(timeout)).
|
||||
//
|
||||
// Canceling this context releases resources associated with it, so code should
|
||||
// call cancel as soon as the operations running in this Context complete:
|
||||
//
|
||||
// func slowOperationWithTimeout(ctx context.Context) (Result, error) {
|
||||
// ctx, cancel := context.WithTimeout(ctx, 100*time.Millisecond)
|
||||
// defer cancel() // releases resources if slowOperation completes before timeout elapses
|
||||
// return slowOperation(ctx)
|
||||
// }
|
||||
func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) {
|
||||
return WithDeadline(parent, time.Now().Add(timeout))
|
||||
}
|
||||
|
||||
// WithValue returns a copy of parent in which the value associated with key is
|
||||
// val.
|
||||
//
|
||||
// Use context Values only for request-scoped data that transits processes and
|
||||
// APIs, not for passing optional parameters to functions.
|
||||
func WithValue(parent Context, key interface{}, val interface{}) Context {
|
||||
return context.WithValue(parent, key, val)
|
||||
}
|
||||
300
build/_vendor/src/golang.org/x/net/context/pre_go17.go
Normal file
300
build/_vendor/src/golang.org/x/net/context/pre_go17.go
Normal file
@@ -0,0 +1,300 @@
|
||||
// Copyright 2014 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build !go1.7
|
||||
|
||||
package context
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"sync"
|
||||
"time"
|
||||
)
|
||||
|
||||
// An emptyCtx is never canceled, has no values, and has no deadline. It is not
|
||||
// struct{}, since vars of this type must have distinct addresses.
|
||||
type emptyCtx int
|
||||
|
||||
func (*emptyCtx) Deadline() (deadline time.Time, ok bool) {
|
||||
return
|
||||
}
|
||||
|
||||
func (*emptyCtx) Done() <-chan struct{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (*emptyCtx) Err() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (*emptyCtx) Value(key interface{}) interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (e *emptyCtx) String() string {
|
||||
switch e {
|
||||
case background:
|
||||
return "context.Background"
|
||||
case todo:
|
||||
return "context.TODO"
|
||||
}
|
||||
return "unknown empty Context"
|
||||
}
|
||||
|
||||
var (
|
||||
background = new(emptyCtx)
|
||||
todo = new(emptyCtx)
|
||||
)
|
||||
|
||||
// Canceled is the error returned by Context.Err when the context is canceled.
|
||||
var Canceled = errors.New("context canceled")
|
||||
|
||||
// DeadlineExceeded is the error returned by Context.Err when the context's
|
||||
// deadline passes.
|
||||
var DeadlineExceeded = errors.New("context deadline exceeded")
|
||||
|
||||
// WithCancel returns a copy of parent with a new Done channel. The returned
|
||||
// context's Done channel is closed when the returned cancel function is called
|
||||
// or when the parent context's Done channel is closed, whichever happens first.
|
||||
//
|
||||
// Canceling this context releases resources associated with it, so code should
|
||||
// call cancel as soon as the operations running in this Context complete.
|
||||
func WithCancel(parent Context) (ctx Context, cancel CancelFunc) {
|
||||
c := newCancelCtx(parent)
|
||||
propagateCancel(parent, c)
|
||||
return c, func() { c.cancel(true, Canceled) }
|
||||
}
|
||||
|
||||
// newCancelCtx returns an initialized cancelCtx.
|
||||
func newCancelCtx(parent Context) *cancelCtx {
|
||||
return &cancelCtx{
|
||||
Context: parent,
|
||||
done: make(chan struct{}),
|
||||
}
|
||||
}
|
||||
|
||||
// propagateCancel arranges for child to be canceled when parent is.
|
||||
func propagateCancel(parent Context, child canceler) {
|
||||
if parent.Done() == nil {
|
||||
return // parent is never canceled
|
||||
}
|
||||
if p, ok := parentCancelCtx(parent); ok {
|
||||
p.mu.Lock()
|
||||
if p.err != nil {
|
||||
// parent has already been canceled
|
||||
child.cancel(false, p.err)
|
||||
} else {
|
||||
if p.children == nil {
|
||||
p.children = make(map[canceler]bool)
|
||||
}
|
||||
p.children[child] = true
|
||||
}
|
||||
p.mu.Unlock()
|
||||
} else {
|
||||
go func() {
|
||||
select {
|
||||
case <-parent.Done():
|
||||
child.cancel(false, parent.Err())
|
||||
case <-child.Done():
|
||||
}
|
||||
}()
|
||||
}
|
||||
}
|
||||
|
||||
// parentCancelCtx follows a chain of parent references until it finds a
|
||||
// *cancelCtx. This function understands how each of the concrete types in this
|
||||
// package represents its parent.
|
||||
func parentCancelCtx(parent Context) (*cancelCtx, bool) {
|
||||
for {
|
||||
switch c := parent.(type) {
|
||||
case *cancelCtx:
|
||||
return c, true
|
||||
case *timerCtx:
|
||||
return c.cancelCtx, true
|
||||
case *valueCtx:
|
||||
parent = c.Context
|
||||
default:
|
||||
return nil, false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// removeChild removes a context from its parent.
|
||||
func removeChild(parent Context, child canceler) {
|
||||
p, ok := parentCancelCtx(parent)
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
p.mu.Lock()
|
||||
if p.children != nil {
|
||||
delete(p.children, child)
|
||||
}
|
||||
p.mu.Unlock()
|
||||
}
|
||||
|
||||
// A canceler is a context type that can be canceled directly. The
|
||||
// implementations are *cancelCtx and *timerCtx.
|
||||
type canceler interface {
|
||||
cancel(removeFromParent bool, err error)
|
||||
Done() <-chan struct{}
|
||||
}
|
||||
|
||||
// A cancelCtx can be canceled. When canceled, it also cancels any children
|
||||
// that implement canceler.
|
||||
type cancelCtx struct {
|
||||
Context
|
||||
|
||||
done chan struct{} // closed by the first cancel call.
|
||||
|
||||
mu sync.Mutex
|
||||
children map[canceler]bool // set to nil by the first cancel call
|
||||
err error // set to non-nil by the first cancel call
|
||||
}
|
||||
|
||||
func (c *cancelCtx) Done() <-chan struct{} {
|
||||
return c.done
|
||||
}
|
||||
|
||||
func (c *cancelCtx) Err() error {
|
||||
c.mu.Lock()
|
||||
defer c.mu.Unlock()
|
||||
return c.err
|
||||
}
|
||||
|
||||
func (c *cancelCtx) String() string {
|
||||
return fmt.Sprintf("%v.WithCancel", c.Context)
|
||||
}
|
||||
|
||||
// cancel closes c.done, cancels each of c's children, and, if
|
||||
// removeFromParent is true, removes c from its parent's children.
|
||||
func (c *cancelCtx) cancel(removeFromParent bool, err error) {
|
||||
if err == nil {
|
||||
panic("context: internal error: missing cancel error")
|
||||
}
|
||||
c.mu.Lock()
|
||||
if c.err != nil {
|
||||
c.mu.Unlock()
|
||||
return // already canceled
|
||||
}
|
||||
c.err = err
|
||||
close(c.done)
|
||||
for child := range c.children {
|
||||
// NOTE: acquiring the child's lock while holding parent's lock.
|
||||
child.cancel(false, err)
|
||||
}
|
||||
c.children = nil
|
||||
c.mu.Unlock()
|
||||
|
||||
if removeFromParent {
|
||||
removeChild(c.Context, c)
|
||||
}
|
||||
}
|
||||
|
||||
// WithDeadline returns a copy of the parent context with the deadline adjusted
|
||||
// to be no later than d. If the parent's deadline is already earlier than d,
|
||||
// WithDeadline(parent, d) is semantically equivalent to parent. The returned
|
||||
// context's Done channel is closed when the deadline expires, when the returned
|
||||
// cancel function is called, or when the parent context's Done channel is
|
||||
// closed, whichever happens first.
|
||||
//
|
||||
// Canceling this context releases resources associated with it, so code should
|
||||
// call cancel as soon as the operations running in this Context complete.
|
||||
func WithDeadline(parent Context, deadline time.Time) (Context, CancelFunc) {
|
||||
if cur, ok := parent.Deadline(); ok && cur.Before(deadline) {
|
||||
// The current deadline is already sooner than the new one.
|
||||
return WithCancel(parent)
|
||||
}
|
||||
c := &timerCtx{
|
||||
cancelCtx: newCancelCtx(parent),
|
||||
deadline: deadline,
|
||||
}
|
||||
propagateCancel(parent, c)
|
||||
d := deadline.Sub(time.Now())
|
||||
if d <= 0 {
|
||||
c.cancel(true, DeadlineExceeded) // deadline has already passed
|
||||
return c, func() { c.cancel(true, Canceled) }
|
||||
}
|
||||
c.mu.Lock()
|
||||
defer c.mu.Unlock()
|
||||
if c.err == nil {
|
||||
c.timer = time.AfterFunc(d, func() {
|
||||
c.cancel(true, DeadlineExceeded)
|
||||
})
|
||||
}
|
||||
return c, func() { c.cancel(true, Canceled) }
|
||||
}
|
||||
|
||||
// A timerCtx carries a timer and a deadline. It embeds a cancelCtx to
|
||||
// implement Done and Err. It implements cancel by stopping its timer then
|
||||
// delegating to cancelCtx.cancel.
|
||||
type timerCtx struct {
|
||||
*cancelCtx
|
||||
timer *time.Timer // Under cancelCtx.mu.
|
||||
|
||||
deadline time.Time
|
||||
}
|
||||
|
||||
func (c *timerCtx) Deadline() (deadline time.Time, ok bool) {
|
||||
return c.deadline, true
|
||||
}
|
||||
|
||||
func (c *timerCtx) String() string {
|
||||
return fmt.Sprintf("%v.WithDeadline(%s [%s])", c.cancelCtx.Context, c.deadline, c.deadline.Sub(time.Now()))
|
||||
}
|
||||
|
||||
func (c *timerCtx) cancel(removeFromParent bool, err error) {
|
||||
c.cancelCtx.cancel(false, err)
|
||||
if removeFromParent {
|
||||
// Remove this timerCtx from its parent cancelCtx's children.
|
||||
removeChild(c.cancelCtx.Context, c)
|
||||
}
|
||||
c.mu.Lock()
|
||||
if c.timer != nil {
|
||||
c.timer.Stop()
|
||||
c.timer = nil
|
||||
}
|
||||
c.mu.Unlock()
|
||||
}
|
||||
|
||||
// WithTimeout returns WithDeadline(parent, time.Now().Add(timeout)).
|
||||
//
|
||||
// Canceling this context releases resources associated with it, so code should
|
||||
// call cancel as soon as the operations running in this Context complete:
|
||||
//
|
||||
// func slowOperationWithTimeout(ctx context.Context) (Result, error) {
|
||||
// ctx, cancel := context.WithTimeout(ctx, 100*time.Millisecond)
|
||||
// defer cancel() // releases resources if slowOperation completes before timeout elapses
|
||||
// return slowOperation(ctx)
|
||||
// }
|
||||
func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) {
|
||||
return WithDeadline(parent, time.Now().Add(timeout))
|
||||
}
|
||||
|
||||
// WithValue returns a copy of parent in which the value associated with key is
|
||||
// val.
|
||||
//
|
||||
// Use context Values only for request-scoped data that transits processes and
|
||||
// APIs, not for passing optional parameters to functions.
|
||||
func WithValue(parent Context, key interface{}, val interface{}) Context {
|
||||
return &valueCtx{parent, key, val}
|
||||
}
|
||||
|
||||
// A valueCtx carries a key-value pair. It implements Value for that key and
|
||||
// delegates all other calls to the embedded Context.
|
||||
type valueCtx struct {
|
||||
Context
|
||||
key, val interface{}
|
||||
}
|
||||
|
||||
func (c *valueCtx) String() string {
|
||||
return fmt.Sprintf("%v.WithValue(%#v, %#v)", c.Context, c.key, c.val)
|
||||
}
|
||||
|
||||
func (c *valueCtx) Value(key interface{}) interface{} {
|
||||
if c.key == key {
|
||||
return c.val
|
||||
}
|
||||
return c.Context.Value(key)
|
||||
}
|
||||
64
build/ci-notes.md
Normal file
64
build/ci-notes.md
Normal file
@@ -0,0 +1,64 @@
|
||||
# Vendored Dependencies
|
||||
|
||||
Dependencies are almost all vendored in at the standard Go `/vendor` path. This allows
|
||||
people to build go-ethereum using the standard toolchain without any particular package
|
||||
manager. It also plays nicely with `go get`, not requiring external code to be relied on.
|
||||
|
||||
The one single dependent package missing from `vendor` is `golang.org/x/net/context`. As
|
||||
this is a package exposed via public library APIs, it must not be vendored as dependent
|
||||
code woulnd't be able to instantiate.
|
||||
|
||||
To allow reproducible builds of go-ethereum nonetheless that don't need network access
|
||||
during build time to fetch `golang.org/x/net/context`, a version was copied into our repo
|
||||
at the very specific `/build/_vendor` path, which is added automatically by all CI build
|
||||
scripts and the makefile too.
|
||||
|
||||
# Debian Packaging
|
||||
|
||||
Tagged releases and develop branch commits are available as installable Debian packages
|
||||
for Ubuntu. Packages are built for the all Ubuntu versions which are supported by
|
||||
Canonical:
|
||||
|
||||
- Trusty Tahr (14.04 LTS)
|
||||
- Wily Werewolf (15.10)
|
||||
- Xenial Xerus (16.04 LTS)
|
||||
- Yakkety Yak (16.10)
|
||||
|
||||
Packages of develop branch commits have suffix -unstable and cannot be installed alongside
|
||||
the stable version. Switching between release streams requires user intervention.
|
||||
|
||||
The packages are built and served by launchpad.net. We generate a Debian source package
|
||||
for each distribution and upload it. Their builder picks up the source package, builds it
|
||||
and installs the new version into the PPA repository. Launchpad requires a valid signature
|
||||
by a team member for source package uploads. The signing key is stored in an environment
|
||||
variable which Travis CI makes available to certain builds.
|
||||
|
||||
We want to build go-ethereum with the most recent version of Go, irrespective of the Go
|
||||
version that is available in the main Ubuntu repository. In order to make this possible,
|
||||
our PPA depends on the ~gophers/ubuntu/archive PPA. Our source package build-depends on
|
||||
golang-1.7, which is co-installable alongside the regular golang package. PPA dependencies
|
||||
can be edited at https://launchpad.net/%7Eethereum/+archive/ubuntu/ethereum/+edit-dependencies
|
||||
|
||||
## Building Packages Locally (for testing)
|
||||
|
||||
You need to run Ubuntu to do test packaging.
|
||||
|
||||
Add the gophers PPA and install Go 1.7 and Debian packaging tools:
|
||||
|
||||
$ sudo apt-add-repository ppa:gophers/ubuntu/archive
|
||||
$ sudo apt-get update
|
||||
$ sudo apt-get install build-essential golang-1.7 devscripts debhelper
|
||||
|
||||
Create the source packages:
|
||||
|
||||
$ go run build/ci.go debsrc -workdir dist
|
||||
|
||||
Then go into the source package directory for your running distribution and build the package:
|
||||
|
||||
$ cd dist/ethereum-unstable-1.5.0+xenial
|
||||
$ dpkg-buildpackage
|
||||
|
||||
Built packages are placed in the dist/ directory.
|
||||
|
||||
$ cd ..
|
||||
$ dpkg-deb -c geth-unstable_1.5.0+xenial_amd64.deb
|
||||
878
build/ci.go
Normal file
878
build/ci.go
Normal file
@@ -0,0 +1,878 @@
|
||||
// Copyright 2016 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// The go-ethereum library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
// +build none
|
||||
|
||||
/*
|
||||
The ci command is called from Continuous Integration scripts.
|
||||
|
||||
Usage: go run ci.go <command> <command flags/arguments>
|
||||
|
||||
Available commands are:
|
||||
|
||||
install [-arch architecture] [ packages... ] -- builds packages and executables
|
||||
test [ -coverage ] [ -vet ] [ packages... ] -- runs the tests
|
||||
archive [-arch architecture] [ -type zip|tar ] [ -signer key-envvar ] [ -upload dest ] -- archives build artefacts
|
||||
importkeys -- imports signing keys from env
|
||||
debsrc [ -signer key-id ] [ -upload dest ] -- creates a debian source package
|
||||
nsis -- creates a Windows NSIS installer
|
||||
aar [ -sign key-id ] [-deploy repo] [ -upload dest ] -- creates an Android archive
|
||||
xcode [ -sign key-id ] [-deploy repo] [ -upload dest ] -- creates an iOS XCode framework
|
||||
xgo [ options ] -- cross builds according to options
|
||||
|
||||
For all commands, -n prevents execution of external programs (dry run mode).
|
||||
|
||||
*/
|
||||
package main
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"bytes"
|
||||
"encoding/base64"
|
||||
"flag"
|
||||
"fmt"
|
||||
"go/parser"
|
||||
"go/token"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"regexp"
|
||||
"runtime"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/ethereum/go-ethereum/internal/build"
|
||||
)
|
||||
|
||||
var (
|
||||
// Files that end up in the geth*.zip archive.
|
||||
gethArchiveFiles = []string{
|
||||
"COPYING",
|
||||
executablePath("geth"),
|
||||
}
|
||||
|
||||
// Files that end up in the geth-alltools*.zip archive.
|
||||
allToolsArchiveFiles = []string{
|
||||
"COPYING",
|
||||
executablePath("abigen"),
|
||||
executablePath("evm"),
|
||||
executablePath("geth"),
|
||||
executablePath("rlpdump"),
|
||||
}
|
||||
|
||||
// A debian package is created for all executables listed here.
|
||||
debExecutables = []debExecutable{
|
||||
{
|
||||
Name: "geth",
|
||||
Description: "Ethereum CLI client.",
|
||||
},
|
||||
{
|
||||
Name: "rlpdump",
|
||||
Description: "Developer utility tool that prints RLP structures.",
|
||||
},
|
||||
{
|
||||
Name: "evm",
|
||||
Description: "Developer utility version of the EVM (Ethereum Virtual Machine) that is capable of running bytecode snippets within a configurable environment and execution mode.",
|
||||
},
|
||||
{
|
||||
Name: "abigen",
|
||||
Description: "Source code generator to convert Ethereum contract definitions into easy to use, compile-time type-safe Go packages.",
|
||||
},
|
||||
}
|
||||
|
||||
// Distros for which packages are created.
|
||||
// Note: vivid is unsupported because there is no golang-1.6 package for it.
|
||||
debDistros = []string{"trusty", "wily", "xenial", "yakkety"}
|
||||
)
|
||||
|
||||
var GOBIN, _ = filepath.Abs(filepath.Join("build", "bin"))
|
||||
|
||||
func executablePath(name string) string {
|
||||
if runtime.GOOS == "windows" {
|
||||
name += ".exe"
|
||||
}
|
||||
return filepath.Join(GOBIN, name)
|
||||
}
|
||||
|
||||
func main() {
|
||||
log.SetFlags(log.Lshortfile)
|
||||
|
||||
if _, err := os.Stat(filepath.Join("build", "ci.go")); os.IsNotExist(err) {
|
||||
log.Fatal("this script must be run from the root of the repository")
|
||||
}
|
||||
if len(os.Args) < 2 {
|
||||
log.Fatal("need subcommand as first argument")
|
||||
}
|
||||
switch os.Args[1] {
|
||||
case "install":
|
||||
doInstall(os.Args[2:])
|
||||
case "test":
|
||||
doTest(os.Args[2:])
|
||||
case "archive":
|
||||
doArchive(os.Args[2:])
|
||||
case "debsrc":
|
||||
doDebianSource(os.Args[2:])
|
||||
case "nsis":
|
||||
doWindowsInstaller(os.Args[2:])
|
||||
case "aar":
|
||||
doAndroidArchive(os.Args[2:])
|
||||
case "xcode":
|
||||
doXCodeFramework(os.Args[2:])
|
||||
case "xgo":
|
||||
doXgo(os.Args[2:])
|
||||
default:
|
||||
log.Fatal("unknown command ", os.Args[1])
|
||||
}
|
||||
}
|
||||
|
||||
// Compiling
|
||||
|
||||
func doInstall(cmdline []string) {
|
||||
var (
|
||||
arch = flag.String("arch", "", "Architecture to cross build for")
|
||||
)
|
||||
flag.CommandLine.Parse(cmdline)
|
||||
env := build.Env()
|
||||
|
||||
// Check Go version. People regularly open issues about compilation
|
||||
// failure with outdated Go. This should save them the trouble.
|
||||
if runtime.Version() < "go1.4" && !strings.HasPrefix(runtime.Version(), "devel") {
|
||||
log.Println("You have Go version", runtime.Version())
|
||||
log.Println("go-ethereum requires at least Go version 1.4 and cannot")
|
||||
log.Println("be compiled with an earlier version. Please upgrade your Go installation.")
|
||||
os.Exit(1)
|
||||
}
|
||||
// Compile packages given as arguments, or everything if there are no arguments.
|
||||
packages := []string{"./..."}
|
||||
if flag.NArg() > 0 {
|
||||
packages = flag.Args()
|
||||
}
|
||||
if *arch == "" || *arch == runtime.GOARCH {
|
||||
goinstall := goTool("install", buildFlags(env)...)
|
||||
goinstall.Args = append(goinstall.Args, "-v")
|
||||
goinstall.Args = append(goinstall.Args, packages...)
|
||||
build.MustRun(goinstall)
|
||||
return
|
||||
}
|
||||
// If we are cross compiling to ARMv5 ARMv6 or ARMv7, clean any prvious builds
|
||||
if *arch == "arm" {
|
||||
os.RemoveAll(filepath.Join(runtime.GOROOT(), "pkg", runtime.GOOS+"_arm"))
|
||||
for _, path := range filepath.SplitList(build.GOPATH()) {
|
||||
os.RemoveAll(filepath.Join(path, "pkg", runtime.GOOS+"_arm"))
|
||||
}
|
||||
}
|
||||
// Seems we are cross compiling, work around forbidden GOBIN
|
||||
goinstall := goToolArch(*arch, "install", buildFlags(env)...)
|
||||
goinstall.Args = append(goinstall.Args, "-v")
|
||||
goinstall.Args = append(goinstall.Args, []string{"-buildmode", "archive"}...)
|
||||
goinstall.Args = append(goinstall.Args, packages...)
|
||||
build.MustRun(goinstall)
|
||||
|
||||
if cmds, err := ioutil.ReadDir("cmd"); err == nil {
|
||||
for _, cmd := range cmds {
|
||||
pkgs, err := parser.ParseDir(token.NewFileSet(), filepath.Join(".", "cmd", cmd.Name()), nil, parser.PackageClauseOnly)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
for name, _ := range pkgs {
|
||||
if name == "main" {
|
||||
gobuild := goToolArch(*arch, "build", buildFlags(env)...)
|
||||
gobuild.Args = append(gobuild.Args, "-v")
|
||||
gobuild.Args = append(gobuild.Args, []string{"-o", executablePath(cmd.Name())}...)
|
||||
gobuild.Args = append(gobuild.Args, "."+string(filepath.Separator)+filepath.Join("cmd", cmd.Name()))
|
||||
build.MustRun(gobuild)
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func buildFlags(env build.Environment) (flags []string) {
|
||||
if os.Getenv("GO_OPENCL") != "" {
|
||||
flags = append(flags, "-tags", "opencl")
|
||||
}
|
||||
|
||||
// Since Go 1.5, the separator char for link time assignments
|
||||
// is '=' and using ' ' prints a warning. However, Go < 1.5 does
|
||||
// not support using '='.
|
||||
sep := " "
|
||||
if runtime.Version() > "go1.5" || strings.Contains(runtime.Version(), "devel") {
|
||||
sep = "="
|
||||
}
|
||||
// Set gitCommit constant via link-time assignment.
|
||||
if env.Commit != "" {
|
||||
flags = append(flags, "-ldflags", "-X main.gitCommit"+sep+env.Commit)
|
||||
}
|
||||
return flags
|
||||
}
|
||||
|
||||
func goTool(subcmd string, args ...string) *exec.Cmd {
|
||||
return goToolArch(runtime.GOARCH, subcmd, args...)
|
||||
}
|
||||
|
||||
func goToolArch(arch string, subcmd string, args ...string) *exec.Cmd {
|
||||
gocmd := filepath.Join(runtime.GOROOT(), "bin", "go")
|
||||
cmd := exec.Command(gocmd, subcmd)
|
||||
cmd.Args = append(cmd.Args, args...)
|
||||
cmd.Env = []string{
|
||||
"GO15VENDOREXPERIMENT=1",
|
||||
"GOPATH=" + build.GOPATH(),
|
||||
}
|
||||
if arch == "" || arch == runtime.GOARCH {
|
||||
cmd.Env = append(cmd.Env, "GOBIN="+GOBIN)
|
||||
} else {
|
||||
cmd.Env = append(cmd.Env, "CGO_ENABLED=1")
|
||||
cmd.Env = append(cmd.Env, "GOARCH="+arch)
|
||||
}
|
||||
for _, e := range os.Environ() {
|
||||
if strings.HasPrefix(e, "GOPATH=") || strings.HasPrefix(e, "GOBIN=") {
|
||||
continue
|
||||
}
|
||||
cmd.Env = append(cmd.Env, e)
|
||||
}
|
||||
return cmd
|
||||
}
|
||||
|
||||
// Running The Tests
|
||||
//
|
||||
// "tests" also includes static analysis tools such as vet.
|
||||
|
||||
func doTest(cmdline []string) {
|
||||
var (
|
||||
vet = flag.Bool("vet", false, "Whether to run go vet")
|
||||
coverage = flag.Bool("coverage", false, "Whether to record code coverage")
|
||||
)
|
||||
flag.CommandLine.Parse(cmdline)
|
||||
|
||||
packages := []string{"./..."}
|
||||
if len(flag.CommandLine.Args()) > 0 {
|
||||
packages = flag.CommandLine.Args()
|
||||
}
|
||||
if len(packages) == 1 && packages[0] == "./..." {
|
||||
// Resolve ./... manually since go vet will fail on vendored stuff
|
||||
out, err := goTool("list", "./...").CombinedOutput()
|
||||
if err != nil {
|
||||
log.Fatalf("package listing failed: %v\n%s", err, string(out))
|
||||
}
|
||||
packages = []string{}
|
||||
for _, line := range strings.Split(string(out), "\n") {
|
||||
if !strings.Contains(line, "vendor") {
|
||||
packages = append(packages, strings.TrimSpace(line))
|
||||
}
|
||||
}
|
||||
}
|
||||
// Run analysis tools before the tests.
|
||||
if *vet {
|
||||
build.MustRun(goTool("vet", packages...))
|
||||
}
|
||||
|
||||
// Run the actual tests.
|
||||
gotest := goTool("test")
|
||||
// Test a single package at a time. CI builders are slow
|
||||
// and some tests run into timeouts under load.
|
||||
gotest.Args = append(gotest.Args, "-p", "1")
|
||||
if *coverage {
|
||||
gotest.Args = append(gotest.Args, "-covermode=atomic", "-cover")
|
||||
}
|
||||
gotest.Args = append(gotest.Args, packages...)
|
||||
build.MustRun(gotest)
|
||||
}
|
||||
|
||||
// Release Packaging
|
||||
|
||||
func doArchive(cmdline []string) {
|
||||
var (
|
||||
arch = flag.String("arch", runtime.GOARCH, "Architecture cross packaging")
|
||||
atype = flag.String("type", "zip", "Type of archive to write (zip|tar)")
|
||||
signer = flag.String("signer", "", `Environment variable holding the signing key (e.g. LINUX_SIGNING_KEY)`)
|
||||
upload = flag.String("upload", "", `Destination to upload the archives (usually "gethstore/builds")`)
|
||||
ext string
|
||||
)
|
||||
flag.CommandLine.Parse(cmdline)
|
||||
switch *atype {
|
||||
case "zip":
|
||||
ext = ".zip"
|
||||
case "tar":
|
||||
ext = ".tar.gz"
|
||||
default:
|
||||
log.Fatal("unknown archive type: ", atype)
|
||||
}
|
||||
|
||||
var (
|
||||
env = build.Env()
|
||||
base = archiveBasename(*arch, env)
|
||||
geth = "geth-" + base + ext
|
||||
alltools = "geth-alltools-" + base + ext
|
||||
)
|
||||
maybeSkipArchive(env)
|
||||
if err := build.WriteArchive(geth, gethArchiveFiles); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
if err := build.WriteArchive(alltools, allToolsArchiveFiles); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
for _, archive := range []string{geth, alltools} {
|
||||
if err := archiveUpload(archive, *upload, *signer); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func archiveBasename(arch string, env build.Environment) string {
|
||||
platform := runtime.GOOS + "-" + arch
|
||||
if arch == "arm" {
|
||||
platform += os.Getenv("GOARM")
|
||||
}
|
||||
if arch == "android" {
|
||||
platform = "android-all"
|
||||
}
|
||||
if arch == "ios" {
|
||||
platform = "ios-all"
|
||||
}
|
||||
return platform + "-" + archiveVersion(env)
|
||||
}
|
||||
|
||||
func archiveVersion(env build.Environment) string {
|
||||
version := build.VERSION()
|
||||
if isUnstableBuild(env) {
|
||||
version += "-unstable"
|
||||
}
|
||||
if env.Commit != "" {
|
||||
version += "-" + env.Commit[:8]
|
||||
}
|
||||
return version
|
||||
}
|
||||
|
||||
func archiveUpload(archive string, blobstore string, signer string) error {
|
||||
// If signing was requested, generate the signature files
|
||||
if signer != "" {
|
||||
pgpkey, err := base64.StdEncoding.DecodeString(os.Getenv(signer))
|
||||
if err != nil {
|
||||
return fmt.Errorf("invalid base64 %s", signer)
|
||||
}
|
||||
if err := build.PGPSignFile(archive, archive+".asc", string(pgpkey)); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
// If uploading to Azure was requested, push the archive possibly with its signature
|
||||
if blobstore != "" {
|
||||
auth := build.AzureBlobstoreConfig{
|
||||
Account: strings.Split(blobstore, "/")[0],
|
||||
Token: os.Getenv("AZURE_BLOBSTORE_TOKEN"),
|
||||
Container: strings.SplitN(blobstore, "/", 2)[1],
|
||||
}
|
||||
if err := build.AzureBlobstoreUpload(archive, filepath.Base(archive), auth); err != nil {
|
||||
return err
|
||||
}
|
||||
if signer != "" {
|
||||
if err := build.AzureBlobstoreUpload(archive+".asc", filepath.Base(archive+".asc"), auth); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// skips archiving for some build configurations.
|
||||
func maybeSkipArchive(env build.Environment) {
|
||||
if env.IsPullRequest {
|
||||
log.Printf("skipping because this is a PR build")
|
||||
os.Exit(0)
|
||||
}
|
||||
if env.Branch != "master" && !strings.HasPrefix(env.Tag, "v1.") {
|
||||
log.Printf("skipping because branch %q, tag %q is not on the whitelist", env.Branch, env.Tag)
|
||||
os.Exit(0)
|
||||
}
|
||||
}
|
||||
|
||||
// Debian Packaging
|
||||
|
||||
func doDebianSource(cmdline []string) {
|
||||
var (
|
||||
signer = flag.String("signer", "", `Signing key name, also used as package author`)
|
||||
upload = flag.String("upload", "", `Where to upload the source package (usually "ppa:ethereum/ethereum")`)
|
||||
workdir = flag.String("workdir", "", `Output directory for packages (uses temp dir if unset)`)
|
||||
now = time.Now()
|
||||
)
|
||||
flag.CommandLine.Parse(cmdline)
|
||||
*workdir = makeWorkdir(*workdir)
|
||||
env := build.Env()
|
||||
maybeSkipArchive(env)
|
||||
|
||||
// Import the signing key.
|
||||
if b64key := os.Getenv("PPA_SIGNING_KEY"); b64key != "" {
|
||||
key, err := base64.StdEncoding.DecodeString(b64key)
|
||||
if err != nil {
|
||||
log.Fatal("invalid base64 PPA_SIGNING_KEY")
|
||||
}
|
||||
gpg := exec.Command("gpg", "--import")
|
||||
gpg.Stdin = bytes.NewReader(key)
|
||||
build.MustRun(gpg)
|
||||
}
|
||||
|
||||
// Create the packages.
|
||||
for _, distro := range debDistros {
|
||||
meta := newDebMetadata(distro, *signer, env, now)
|
||||
pkgdir := stageDebianSource(*workdir, meta)
|
||||
debuild := exec.Command("debuild", "-S", "-sa", "-us", "-uc")
|
||||
debuild.Dir = pkgdir
|
||||
build.MustRun(debuild)
|
||||
|
||||
changes := fmt.Sprintf("%s_%s_source.changes", meta.Name(), meta.VersionString())
|
||||
changes = filepath.Join(*workdir, changes)
|
||||
if *signer != "" {
|
||||
build.MustRunCommand("debsign", changes)
|
||||
}
|
||||
if *upload != "" {
|
||||
build.MustRunCommand("dput", *upload, changes)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func makeWorkdir(wdflag string) string {
|
||||
var err error
|
||||
if wdflag != "" {
|
||||
err = os.MkdirAll(wdflag, 0744)
|
||||
} else {
|
||||
wdflag, err = ioutil.TempDir("", "geth-build-")
|
||||
}
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
return wdflag
|
||||
}
|
||||
|
||||
func isUnstableBuild(env build.Environment) bool {
|
||||
if env.Branch != "master" && env.Tag != "" {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
type debMetadata struct {
|
||||
Env build.Environment
|
||||
|
||||
// go-ethereum version being built. Note that this
|
||||
// is not the debian package version. The package version
|
||||
// is constructed by VersionString.
|
||||
Version string
|
||||
|
||||
Author string // "name <email>", also selects signing key
|
||||
Distro, Time string
|
||||
Executables []debExecutable
|
||||
}
|
||||
|
||||
type debExecutable struct {
|
||||
Name, Description string
|
||||
}
|
||||
|
||||
func newDebMetadata(distro, author string, env build.Environment, t time.Time) debMetadata {
|
||||
if author == "" {
|
||||
// No signing key, use default author.
|
||||
author = "Ethereum Builds <fjl@ethereum.org>"
|
||||
}
|
||||
return debMetadata{
|
||||
Env: env,
|
||||
Author: author,
|
||||
Distro: distro,
|
||||
Version: build.VERSION(),
|
||||
Time: t.Format(time.RFC1123Z),
|
||||
Executables: debExecutables,
|
||||
}
|
||||
}
|
||||
|
||||
// Name returns the name of the metapackage that depends
|
||||
// on all executable packages.
|
||||
func (meta debMetadata) Name() string {
|
||||
if isUnstableBuild(meta.Env) {
|
||||
return "ethereum-unstable"
|
||||
}
|
||||
return "ethereum"
|
||||
}
|
||||
|
||||
// VersionString returns the debian version of the packages.
|
||||
func (meta debMetadata) VersionString() string {
|
||||
vsn := meta.Version
|
||||
if meta.Env.Buildnum != "" {
|
||||
vsn += "+build" + meta.Env.Buildnum
|
||||
}
|
||||
if meta.Distro != "" {
|
||||
vsn += "+" + meta.Distro
|
||||
}
|
||||
return vsn
|
||||
}
|
||||
|
||||
// ExeList returns the list of all executable packages.
|
||||
func (meta debMetadata) ExeList() string {
|
||||
names := make([]string, len(meta.Executables))
|
||||
for i, e := range meta.Executables {
|
||||
names[i] = meta.ExeName(e)
|
||||
}
|
||||
return strings.Join(names, ", ")
|
||||
}
|
||||
|
||||
// ExeName returns the package name of an executable package.
|
||||
func (meta debMetadata) ExeName(exe debExecutable) string {
|
||||
if isUnstableBuild(meta.Env) {
|
||||
return exe.Name + "-unstable"
|
||||
}
|
||||
return exe.Name
|
||||
}
|
||||
|
||||
// ExeConflicts returns the content of the Conflicts field
|
||||
// for executable packages.
|
||||
func (meta debMetadata) ExeConflicts(exe debExecutable) string {
|
||||
if isUnstableBuild(meta.Env) {
|
||||
// Set up the conflicts list so that the *-unstable packages
|
||||
// cannot be installed alongside the regular version.
|
||||
//
|
||||
// https://www.debian.org/doc/debian-policy/ch-relationships.html
|
||||
// is very explicit about Conflicts: and says that Breaks: should
|
||||
// be preferred and the conflicting files should be handled via
|
||||
// alternates. We might do this eventually but using a conflict is
|
||||
// easier now.
|
||||
return "ethereum, " + exe.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func stageDebianSource(tmpdir string, meta debMetadata) (pkgdir string) {
|
||||
pkg := meta.Name() + "-" + meta.VersionString()
|
||||
pkgdir = filepath.Join(tmpdir, pkg)
|
||||
if err := os.Mkdir(pkgdir, 0755); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
// Copy the source code.
|
||||
build.MustRunCommand("git", "checkout-index", "-a", "--prefix", pkgdir+string(filepath.Separator))
|
||||
|
||||
// Put the debian build files in place.
|
||||
debian := filepath.Join(pkgdir, "debian")
|
||||
build.Render("build/deb.rules", filepath.Join(debian, "rules"), 0755, meta)
|
||||
build.Render("build/deb.changelog", filepath.Join(debian, "changelog"), 0644, meta)
|
||||
build.Render("build/deb.control", filepath.Join(debian, "control"), 0644, meta)
|
||||
build.Render("build/deb.copyright", filepath.Join(debian, "copyright"), 0644, meta)
|
||||
build.RenderString("8\n", filepath.Join(debian, "compat"), 0644, meta)
|
||||
build.RenderString("3.0 (native)\n", filepath.Join(debian, "source/format"), 0644, meta)
|
||||
for _, exe := range meta.Executables {
|
||||
install := filepath.Join(debian, meta.ExeName(exe)+".install")
|
||||
docs := filepath.Join(debian, meta.ExeName(exe)+".docs")
|
||||
build.Render("build/deb.install", install, 0644, exe)
|
||||
build.Render("build/deb.docs", docs, 0644, exe)
|
||||
}
|
||||
|
||||
return pkgdir
|
||||
}
|
||||
|
||||
// Windows installer
|
||||
|
||||
func doWindowsInstaller(cmdline []string) {
|
||||
// Parse the flags and make skip installer generation on PRs
|
||||
var (
|
||||
arch = flag.String("arch", runtime.GOARCH, "Architecture for cross build packaging")
|
||||
signer = flag.String("signer", "", `Environment variable holding the signing key (e.g. WINDOWS_SIGNING_KEY)`)
|
||||
upload = flag.String("upload", "", `Destination to upload the archives (usually "gethstore/builds")`)
|
||||
workdir = flag.String("workdir", "", `Output directory for packages (uses temp dir if unset)`)
|
||||
)
|
||||
flag.CommandLine.Parse(cmdline)
|
||||
*workdir = makeWorkdir(*workdir)
|
||||
env := build.Env()
|
||||
maybeSkipArchive(env)
|
||||
|
||||
// Aggregate binaries that are included in the installer
|
||||
var (
|
||||
devTools []string
|
||||
allTools []string
|
||||
gethTool string
|
||||
)
|
||||
for _, file := range allToolsArchiveFiles {
|
||||
if file == "COPYING" { // license, copied later
|
||||
continue
|
||||
}
|
||||
allTools = append(allTools, filepath.Base(file))
|
||||
if filepath.Base(file) == "geth.exe" {
|
||||
gethTool = file
|
||||
} else {
|
||||
devTools = append(devTools, file)
|
||||
}
|
||||
}
|
||||
|
||||
// Render NSIS scripts: Installer NSIS contains two installer sections,
|
||||
// first section contains the geth binary, second section holds the dev tools.
|
||||
templateData := map[string]interface{}{
|
||||
"License": "COPYING",
|
||||
"Geth": gethTool,
|
||||
"DevTools": devTools,
|
||||
}
|
||||
build.Render("build/nsis.geth.nsi", filepath.Join(*workdir, "geth.nsi"), 0644, nil)
|
||||
build.Render("build/nsis.install.nsh", filepath.Join(*workdir, "install.nsh"), 0644, templateData)
|
||||
build.Render("build/nsis.uninstall.nsh", filepath.Join(*workdir, "uninstall.nsh"), 0644, allTools)
|
||||
build.Render("build/nsis.envvarupdate.nsh", filepath.Join(*workdir, "EnvVarUpdate.nsh"), 0644, nil)
|
||||
build.CopyFile(filepath.Join(*workdir, "SimpleFC.dll"), "build/nsis.simplefc.dll", 0755)
|
||||
build.CopyFile(filepath.Join(*workdir, "COPYING"), "COPYING", 0755)
|
||||
|
||||
// Build the installer. This assumes that all the needed files have been previously
|
||||
// built (don't mix building and packaging to keep cross compilation complexity to a
|
||||
// minimum).
|
||||
version := strings.Split(build.VERSION(), ".")
|
||||
if env.Commit != "" {
|
||||
version[2] += "-" + env.Commit[:8]
|
||||
}
|
||||
installer, _ := filepath.Abs("geth-" + archiveBasename(*arch, env) + ".exe")
|
||||
build.MustRunCommand("makensis.exe",
|
||||
"/DOUTPUTFILE="+installer,
|
||||
"/DMAJORVERSION="+version[0],
|
||||
"/DMINORVERSION="+version[1],
|
||||
"/DBUILDVERSION="+version[2],
|
||||
"/DARCH="+*arch,
|
||||
filepath.Join(*workdir, "geth.nsi"),
|
||||
)
|
||||
|
||||
// Sign and publish installer.
|
||||
if err := archiveUpload(installer, *upload, *signer); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
// Android archives
|
||||
|
||||
func doAndroidArchive(cmdline []string) {
|
||||
var (
|
||||
signer = flag.String("signer", "", `Environment variable holding the signing key (e.g. ANDROID_SIGNING_KEY)`)
|
||||
deploy = flag.String("deploy", "", `Destination to deploy the archive (usually "https://oss.sonatype.org")`)
|
||||
upload = flag.String("upload", "", `Destination to upload the archive (usually "gethstore/builds")`)
|
||||
)
|
||||
flag.CommandLine.Parse(cmdline)
|
||||
env := build.Env()
|
||||
|
||||
// Build the Android archive and Maven resources
|
||||
build.MustRun(goTool("get", "golang.org/x/mobile/cmd/gomobile"))
|
||||
build.MustRun(gomobileTool("init"))
|
||||
build.MustRun(gomobileTool("bind", "--target", "android", "--javapkg", "org.ethereum", "-v", "github.com/ethereum/go-ethereum/mobile"))
|
||||
|
||||
meta := newMavenMetadata(env)
|
||||
build.Render("build/mvn.pom", meta.Package+".pom", 0755, meta)
|
||||
|
||||
// Skip Maven deploy and Azure upload for PR builds
|
||||
maybeSkipArchive(env)
|
||||
|
||||
// Sign and upload the archive to Azure
|
||||
archive := "geth-" + archiveBasename("android", env) + ".aar"
|
||||
os.Rename("geth.aar", archive)
|
||||
|
||||
if err := archiveUpload(archive, *upload, *signer); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
// Sign and upload all the artifacts to Maven Central
|
||||
os.Rename(archive, meta.Package+".aar")
|
||||
if *signer != "" && *deploy != "" {
|
||||
// Import the signing key into the local GPG instance
|
||||
if b64key := os.Getenv(*signer); b64key != "" {
|
||||
key, err := base64.StdEncoding.DecodeString(b64key)
|
||||
if err != nil {
|
||||
log.Fatalf("invalid base64 %s", *signer)
|
||||
}
|
||||
gpg := exec.Command("gpg", "--import")
|
||||
gpg.Stdin = bytes.NewReader(key)
|
||||
build.MustRun(gpg)
|
||||
}
|
||||
// Upload the artifacts to Sonatype and/or Maven Central
|
||||
repo := *deploy + "/service/local/staging/deploy/maven2"
|
||||
if meta.Develop {
|
||||
repo = *deploy + "/content/repositories/snapshots"
|
||||
}
|
||||
build.MustRunCommand("mvn", "gpg:sign-and-deploy-file",
|
||||
"-settings=build/mvn.settings", "-Durl="+repo, "-DrepositoryId=ossrh",
|
||||
"-DpomFile="+meta.Package+".pom", "-Dfile="+meta.Package+".aar")
|
||||
}
|
||||
}
|
||||
|
||||
func gomobileTool(subcmd string, args ...string) *exec.Cmd {
|
||||
cmd := exec.Command(filepath.Join(GOBIN, "gomobile"), subcmd)
|
||||
cmd.Args = append(cmd.Args, args...)
|
||||
cmd.Env = []string{
|
||||
"GOPATH=" + build.GOPATH(),
|
||||
}
|
||||
for _, e := range os.Environ() {
|
||||
if strings.HasPrefix(e, "GOPATH=") {
|
||||
continue
|
||||
}
|
||||
cmd.Env = append(cmd.Env, e)
|
||||
}
|
||||
return cmd
|
||||
}
|
||||
|
||||
type mavenMetadata struct {
|
||||
Version string
|
||||
Package string
|
||||
Develop bool
|
||||
Contributors []mavenContributor
|
||||
}
|
||||
|
||||
type mavenContributor struct {
|
||||
Name string
|
||||
Email string
|
||||
}
|
||||
|
||||
func newMavenMetadata(env build.Environment) mavenMetadata {
|
||||
// Collect the list of authors from the repo root
|
||||
contribs := []mavenContributor{}
|
||||
if authors, err := os.Open("AUTHORS"); err == nil {
|
||||
defer authors.Close()
|
||||
|
||||
scanner := bufio.NewScanner(authors)
|
||||
for scanner.Scan() {
|
||||
// Skip any whitespace from the authors list
|
||||
line := strings.TrimSpace(scanner.Text())
|
||||
if line == "" || line[0] == '#' {
|
||||
continue
|
||||
}
|
||||
// Split the author and insert as a contributor
|
||||
re := regexp.MustCompile("([^<]+) <(.+>)")
|
||||
parts := re.FindStringSubmatch(line)
|
||||
if len(parts) == 3 {
|
||||
contribs = append(contribs, mavenContributor{Name: parts[1], Email: parts[2]})
|
||||
}
|
||||
}
|
||||
}
|
||||
// Render the version and package strings
|
||||
version := build.VERSION()
|
||||
if isUnstableBuild(env) {
|
||||
version += "-SNAPSHOT"
|
||||
}
|
||||
return mavenMetadata{
|
||||
Version: version,
|
||||
Package: "geth-" + version,
|
||||
Develop: isUnstableBuild(env),
|
||||
Contributors: contribs,
|
||||
}
|
||||
}
|
||||
|
||||
// XCode frameworks
|
||||
|
||||
func doXCodeFramework(cmdline []string) {
|
||||
var (
|
||||
signer = flag.String("signer", "", `Environment variable holding the signing key (e.g. IOS_SIGNING_KEY)`)
|
||||
deploy = flag.String("deploy", "", `Destination to deploy the archive (usually "trunk")`)
|
||||
upload = flag.String("upload", "", `Destination to upload the archives (usually "gethstore/builds")`)
|
||||
)
|
||||
flag.CommandLine.Parse(cmdline)
|
||||
env := build.Env()
|
||||
|
||||
// Build the iOS XCode framework
|
||||
build.MustRun(goTool("get", "golang.org/x/mobile/cmd/gomobile"))
|
||||
|
||||
archive := "geth-" + archiveBasename("ios", env)
|
||||
if err := os.Mkdir(archive, os.ModePerm); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
bind := gomobileTool("bind", "--target", "ios", "--tags", "ios", "--prefix", "GE", "-v", "github.com/ethereum/go-ethereum/mobile")
|
||||
bind.Dir, _ = filepath.Abs(archive)
|
||||
build.MustRun(bind)
|
||||
build.MustRunCommand("tar", "-zcvf", archive+".tar.gz", archive)
|
||||
|
||||
// Skip CocoaPods deploy and Azure upload for PR builds
|
||||
maybeSkipArchive(env)
|
||||
|
||||
// Sign and upload the framework to Azure
|
||||
if err := archiveUpload(archive+".tar.gz", *upload, *signer); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
// Prepare and upload a PodSpec to CocoaPods
|
||||
if *deploy != "" {
|
||||
meta := newPodMetadata(env)
|
||||
build.Render("build/pod.podspec", meta.Name+".podspec", 0755, meta)
|
||||
build.MustRunCommand("pod", *deploy, "push", meta.Name+".podspec", "--allow-warnings", "--verbose")
|
||||
}
|
||||
}
|
||||
|
||||
type podMetadata struct {
|
||||
Name string
|
||||
Version string
|
||||
Commit string
|
||||
Contributors []podContributor
|
||||
}
|
||||
|
||||
type podContributor struct {
|
||||
Name string
|
||||
Email string
|
||||
}
|
||||
|
||||
func newPodMetadata(env build.Environment) podMetadata {
|
||||
// Collect the list of authors from the repo root
|
||||
contribs := []podContributor{}
|
||||
if authors, err := os.Open("AUTHORS"); err == nil {
|
||||
defer authors.Close()
|
||||
|
||||
scanner := bufio.NewScanner(authors)
|
||||
for scanner.Scan() {
|
||||
// Skip any whitespace from the authors list
|
||||
line := strings.TrimSpace(scanner.Text())
|
||||
if line == "" || line[0] == '#' {
|
||||
continue
|
||||
}
|
||||
// Split the author and insert as a contributor
|
||||
re := regexp.MustCompile("([^<]+) <(.+>)")
|
||||
parts := re.FindStringSubmatch(line)
|
||||
if len(parts) == 3 {
|
||||
contribs = append(contribs, podContributor{Name: parts[1], Email: parts[2]})
|
||||
}
|
||||
}
|
||||
}
|
||||
name := "Geth"
|
||||
if isUnstableBuild(env) {
|
||||
name += "Develop"
|
||||
}
|
||||
return podMetadata{
|
||||
Name: name,
|
||||
Version: archiveVersion(env),
|
||||
Commit: env.Commit,
|
||||
Contributors: contribs,
|
||||
}
|
||||
}
|
||||
|
||||
// Cross compilation
|
||||
|
||||
func doXgo(cmdline []string) {
|
||||
flag.CommandLine.Parse(cmdline)
|
||||
env := build.Env()
|
||||
|
||||
// Make sure xgo is available for cross compilation
|
||||
gogetxgo := goTool("get", "github.com/karalabe/xgo")
|
||||
build.MustRun(gogetxgo)
|
||||
|
||||
// Execute the actual cross compilation
|
||||
xgo := xgoTool(append(buildFlags(env), flag.Args()...))
|
||||
build.MustRun(xgo)
|
||||
}
|
||||
|
||||
func xgoTool(args []string) *exec.Cmd {
|
||||
cmd := exec.Command(filepath.Join(GOBIN, "xgo"), args...)
|
||||
cmd.Env = []string{
|
||||
"GOPATH=" + build.GOPATH(),
|
||||
"GOBIN=" + GOBIN,
|
||||
}
|
||||
for _, e := range os.Environ() {
|
||||
if strings.HasPrefix(e, "GOPATH=") || strings.HasPrefix(e, "GOBIN=") {
|
||||
continue
|
||||
}
|
||||
cmd.Env = append(cmd.Env, e)
|
||||
}
|
||||
return cmd
|
||||
}
|
||||
5
build/deb.changelog
Normal file
5
build/deb.changelog
Normal file
@@ -0,0 +1,5 @@
|
||||
{{.Name}} ({{.VersionString}}) {{.Distro}}; urgency=low
|
||||
|
||||
* git build of {{.Env.Commit}}
|
||||
|
||||
-- {{.Author}} {{.Time}}
|
||||
25
build/deb.control
Normal file
25
build/deb.control
Normal file
@@ -0,0 +1,25 @@
|
||||
Source: {{.Name}}
|
||||
Section: science
|
||||
Priority: extra
|
||||
Maintainer: {{.Author}}
|
||||
Build-Depends: debhelper (>= 8.0.0), golang-1.7
|
||||
Standards-Version: 3.9.5
|
||||
Homepage: https://ethereum.org
|
||||
Vcs-Git: git://github.com/ethereum/go-ethereum.git
|
||||
Vcs-Browser: https://github.com/ethereum/go-ethereum
|
||||
|
||||
Package: {{.Name}}
|
||||
Architecture: any
|
||||
Depends: ${misc:Depends}, {{.ExeList}}
|
||||
Description: Meta-package to install geth and other tools
|
||||
Meta-package to install geth and other tools
|
||||
|
||||
{{range .Executables}}
|
||||
Package: {{$.ExeName .}}
|
||||
Conflicts: {{$.ExeConflicts .}}
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||
Built-Using: ${misc:Built-Using}
|
||||
Description: {{.Description}}
|
||||
{{.Description}}
|
||||
{{end}}
|
||||
14
build/deb.copyright
Normal file
14
build/deb.copyright
Normal file
@@ -0,0 +1,14 @@
|
||||
Copyright 2016 The go-ethereum Authors
|
||||
|
||||
go-ethereum is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
go-ethereum is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
|
||||
1
build/deb.docs
Normal file
1
build/deb.docs
Normal file
@@ -0,0 +1 @@
|
||||
AUTHORS
|
||||
1
build/deb.install
Normal file
1
build/deb.install
Normal file
@@ -0,0 +1 @@
|
||||
build/bin/{{.Name}} usr/bin
|
||||
13
build/deb.rules
Normal file
13
build/deb.rules
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
override_dh_auto_build:
|
||||
build/env.sh /usr/lib/go-1.7/bin/go run build/ci.go install -git-commit={{.Env.Commit}} -git-branch={{.Env.Branch}} -git-tag={{.Env.Tag}} -buildnum={{.Env.Buildnum}} -pull-request={{.Env.IsPullRequest}}
|
||||
|
||||
override_dh_auto_test:
|
||||
|
||||
%:
|
||||
dh $@
|
||||
31
build/env.sh
Executable file
31
build/env.sh
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
if [ ! -f "build/env.sh" ]; then
|
||||
echo "$0 must be run from the root of the repository."
|
||||
exit 2
|
||||
fi
|
||||
|
||||
# Create fake Go workspace if it doesn't exist yet.
|
||||
workspace="$PWD/build/_workspace"
|
||||
root="$PWD"
|
||||
ethdir="$workspace/src/github.com/ethereum"
|
||||
if [ ! -L "$ethdir/go-ethereum" ]; then
|
||||
mkdir -p "$ethdir"
|
||||
cd "$ethdir"
|
||||
ln -s ../../../../../. go-ethereum
|
||||
cd "$root"
|
||||
fi
|
||||
|
||||
# Set up the environment to use the workspace.
|
||||
GOPATH="$workspace"
|
||||
GO15VENDOREXPERIMENT=1
|
||||
export GOPATH GO15VENDOREXPERIMENT
|
||||
|
||||
# Run the command inside the workspace.
|
||||
cd "$ethdir/go-ethereum"
|
||||
PWD="$ethdir/go-ethereum"
|
||||
|
||||
# Launch the arguments with the configured environment.
|
||||
exec "$@"
|
||||
57
build/mvn.pom
Normal file
57
build/mvn.pom
Normal file
@@ -0,0 +1,57 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
|
||||
http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>org.ethereum</groupId>
|
||||
<artifactId>geth</artifactId>
|
||||
<version>{{.Version}}</version>
|
||||
<packaging>aar</packaging>
|
||||
|
||||
<name>Android Ethereum Client</name>
|
||||
<description>Android port of the go-ethereum libraries and node</description>
|
||||
<url>https://github.com/ethereum/go-ethereum</url>
|
||||
<inceptionYear>2015</inceptionYear>
|
||||
|
||||
<licenses>
|
||||
<license>
|
||||
<name>GNU Lesser General Public License, Version 3.0</name>
|
||||
<url>https://www.gnu.org/licenses/lgpl-3.0.en.html</url>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
|
||||
<organization>
|
||||
<name>Ethereum</name>
|
||||
<url>https://ethereum.org</url>
|
||||
</organization>
|
||||
|
||||
<developers>
|
||||
<developer>
|
||||
<id>karalabe</id>
|
||||
<name>Péter Szilágyi</name>
|
||||
<email>peterke@gmail.com</email>
|
||||
<url>https://github.com/karalabe</url>
|
||||
<properties>
|
||||
<picUrl>https://www.gravatar.com/avatar/2ecbf0f5b4b79eebf8c193e5d324357f?s=256</picUrl>
|
||||
</properties>
|
||||
</developer>
|
||||
</developers>
|
||||
|
||||
<contributors>{{range .Contributors}}
|
||||
<contributor>
|
||||
<name>{{.Name}}</name>
|
||||
<email>{{.Email}}</email>
|
||||
</contributor>{{end}}
|
||||
</contributors>
|
||||
|
||||
<issueManagement>
|
||||
<system>GitHub Issues</system>
|
||||
<url>https://github.com/ethereum/go-ethereum/issues/</url>
|
||||
</issueManagement>
|
||||
|
||||
<scm>
|
||||
<url>https://github.com/ethereum/go-ethereum</url>
|
||||
</scm>
|
||||
</project>
|
||||
24
build/mvn.settings
Normal file
24
build/mvn.settings
Normal file
@@ -0,0 +1,24 @@
|
||||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
|
||||
http://maven.apache.org/xsd/settings-1.0.0.xsd">
|
||||
<servers>
|
||||
<server>
|
||||
<id>ossrh</id>
|
||||
<username>${env.ANDROID_SONATYPE_USERNAME}</username>
|
||||
<password>${env.ANDROID_SONATYPE_PASSWORD}</password>
|
||||
</server>
|
||||
</servers>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>ossrh</id>
|
||||
<activation>
|
||||
<activeByDefault>true</activeByDefault>
|
||||
</activation>
|
||||
<properties>
|
||||
<gpg.executable>gpg</gpg.executable>
|
||||
<gpg.passphrase></gpg.passphrase>
|
||||
</properties>
|
||||
</profile>
|
||||
</profiles>
|
||||
</settings>
|
||||
327
build/nsis.envvarupdate.nsh
Normal file
327
build/nsis.envvarupdate.nsh
Normal file
@@ -0,0 +1,327 @@
|
||||
/**
|
||||
* EnvVarUpdate.nsh
|
||||
* : Environmental Variables: append, prepend, and remove entries
|
||||
*
|
||||
* WARNING: If you use StrFunc.nsh header then include it before this file
|
||||
* with all required definitions. This is to avoid conflicts
|
||||
*
|
||||
* Usage:
|
||||
* ${EnvVarUpdate} "ResultVar" "EnvVarName" "Action" "RegLoc" "PathString"
|
||||
*
|
||||
* Credits:
|
||||
* Version 1.0
|
||||
* * Cal Turney (turnec2)
|
||||
* * Amir Szekely (KiCHiK) and e-circ for developing the forerunners of this
|
||||
* function: AddToPath, un.RemoveFromPath, AddToEnvVar, un.RemoveFromEnvVar,
|
||||
* WriteEnvStr, and un.DeleteEnvStr
|
||||
* * Diego Pedroso (deguix) for StrTok
|
||||
* * Kevin English (kenglish_hi) for StrContains
|
||||
* * Hendri Adriaens (Smile2Me), Diego Pedroso (deguix), and Dan Fuhry
|
||||
* (dandaman32) for StrReplace
|
||||
*
|
||||
* Version 1.1 (compatibility with StrFunc.nsh)
|
||||
* * techtonik
|
||||
*
|
||||
* http://nsis.sourceforge.net/Environmental_Variables:_append%2C_prepend%2C_and_remove_entries
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
!ifndef ENVVARUPDATE_FUNCTION
|
||||
!define ENVVARUPDATE_FUNCTION
|
||||
!verbose push
|
||||
!verbose 3
|
||||
!include "LogicLib.nsh"
|
||||
!include "WinMessages.NSH"
|
||||
!include "StrFunc.nsh"
|
||||
|
||||
; ---- Fix for conflict if StrFunc.nsh is already includes in main file -----------------------
|
||||
!macro _IncludeStrFunction StrFuncName
|
||||
!ifndef ${StrFuncName}_INCLUDED
|
||||
${${StrFuncName}}
|
||||
!endif
|
||||
!ifndef Un${StrFuncName}_INCLUDED
|
||||
${Un${StrFuncName}}
|
||||
!endif
|
||||
!define un.${StrFuncName} "${Un${StrFuncName}}"
|
||||
!macroend
|
||||
|
||||
!insertmacro _IncludeStrFunction StrTok
|
||||
!insertmacro _IncludeStrFunction StrStr
|
||||
!insertmacro _IncludeStrFunction StrRep
|
||||
|
||||
; ---------------------------------- Macro Definitions ----------------------------------------
|
||||
!macro _EnvVarUpdateConstructor ResultVar EnvVarName Action Regloc PathString
|
||||
Push "${EnvVarName}"
|
||||
Push "${Action}"
|
||||
Push "${RegLoc}"
|
||||
Push "${PathString}"
|
||||
Call EnvVarUpdate
|
||||
Pop "${ResultVar}"
|
||||
!macroend
|
||||
!define EnvVarUpdate '!insertmacro "_EnvVarUpdateConstructor"'
|
||||
|
||||
!macro _unEnvVarUpdateConstructor ResultVar EnvVarName Action Regloc PathString
|
||||
Push "${EnvVarName}"
|
||||
Push "${Action}"
|
||||
Push "${RegLoc}"
|
||||
Push "${PathString}"
|
||||
Call un.EnvVarUpdate
|
||||
Pop "${ResultVar}"
|
||||
!macroend
|
||||
!define un.EnvVarUpdate '!insertmacro "_unEnvVarUpdateConstructor"'
|
||||
; ---------------------------------- Macro Definitions end-------------------------------------
|
||||
|
||||
;----------------------------------- EnvVarUpdate start----------------------------------------
|
||||
!define hklm_all_users 'HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"'
|
||||
!define hkcu_current_user 'HKCU "Environment"'
|
||||
|
||||
!macro EnvVarUpdate UN
|
||||
|
||||
Function ${UN}EnvVarUpdate
|
||||
|
||||
Push $0
|
||||
Exch 4
|
||||
Exch $1
|
||||
Exch 3
|
||||
Exch $2
|
||||
Exch 2
|
||||
Exch $3
|
||||
Exch
|
||||
Exch $4
|
||||
Push $5
|
||||
Push $6
|
||||
Push $7
|
||||
Push $8
|
||||
Push $9
|
||||
Push $R0
|
||||
|
||||
/* After this point:
|
||||
-------------------------
|
||||
$0 = ResultVar (returned)
|
||||
$1 = EnvVarName (input)
|
||||
$2 = Action (input)
|
||||
$3 = RegLoc (input)
|
||||
$4 = PathString (input)
|
||||
$5 = Orig EnvVar (read from registry)
|
||||
$6 = Len of $0 (temp)
|
||||
$7 = tempstr1 (temp)
|
||||
$8 = Entry counter (temp)
|
||||
$9 = tempstr2 (temp)
|
||||
$R0 = tempChar (temp) */
|
||||
|
||||
; Step 1: Read contents of EnvVarName from RegLoc
|
||||
;
|
||||
; Check for empty EnvVarName
|
||||
${If} $1 == ""
|
||||
SetErrors
|
||||
DetailPrint "ERROR: EnvVarName is blank"
|
||||
Goto EnvVarUpdate_Restore_Vars
|
||||
${EndIf}
|
||||
|
||||
; Check for valid Action
|
||||
${If} $2 != "A"
|
||||
${AndIf} $2 != "P"
|
||||
${AndIf} $2 != "R"
|
||||
SetErrors
|
||||
DetailPrint "ERROR: Invalid Action - must be A, P, or R"
|
||||
Goto EnvVarUpdate_Restore_Vars
|
||||
${EndIf}
|
||||
|
||||
${If} $3 == HKLM
|
||||
ReadRegStr $5 ${hklm_all_users} $1 ; Get EnvVarName from all users into $5
|
||||
${ElseIf} $3 == HKCU
|
||||
ReadRegStr $5 ${hkcu_current_user} $1 ; Read EnvVarName from current user into $5
|
||||
${Else}
|
||||
SetErrors
|
||||
DetailPrint 'ERROR: Action is [$3] but must be "HKLM" or HKCU"'
|
||||
Goto EnvVarUpdate_Restore_Vars
|
||||
${EndIf}
|
||||
|
||||
; Check for empty PathString
|
||||
${If} $4 == ""
|
||||
SetErrors
|
||||
DetailPrint "ERROR: PathString is blank"
|
||||
Goto EnvVarUpdate_Restore_Vars
|
||||
${EndIf}
|
||||
|
||||
; Make sure we've got some work to do
|
||||
${If} $5 == ""
|
||||
${AndIf} $2 == "R"
|
||||
SetErrors
|
||||
DetailPrint "$1 is empty - Nothing to remove"
|
||||
Goto EnvVarUpdate_Restore_Vars
|
||||
${EndIf}
|
||||
|
||||
; Step 2: Scrub EnvVar
|
||||
;
|
||||
StrCpy $0 $5 ; Copy the contents to $0
|
||||
; Remove spaces around semicolons (NOTE: spaces before the 1st entry or
|
||||
; after the last one are not removed here but instead in Step 3)
|
||||
${If} $0 != "" ; If EnvVar is not empty ...
|
||||
${Do}
|
||||
${${UN}StrStr} $7 $0 " ;"
|
||||
${If} $7 == ""
|
||||
${ExitDo}
|
||||
${EndIf}
|
||||
${${UN}StrRep} $0 $0 " ;" ";" ; Remove '<space>;'
|
||||
${Loop}
|
||||
${Do}
|
||||
${${UN}StrStr} $7 $0 "; "
|
||||
${If} $7 == ""
|
||||
${ExitDo}
|
||||
${EndIf}
|
||||
${${UN}StrRep} $0 $0 "; " ";" ; Remove ';<space>'
|
||||
${Loop}
|
||||
${Do}
|
||||
${${UN}StrStr} $7 $0 ";;"
|
||||
${If} $7 == ""
|
||||
${ExitDo}
|
||||
${EndIf}
|
||||
${${UN}StrRep} $0 $0 ";;" ";"
|
||||
${Loop}
|
||||
|
||||
; Remove a leading or trailing semicolon from EnvVar
|
||||
StrCpy $7 $0 1 0
|
||||
${If} $7 == ";"
|
||||
StrCpy $0 $0 "" 1 ; Change ';<EnvVar>' to '<EnvVar>'
|
||||
${EndIf}
|
||||
StrLen $6 $0
|
||||
IntOp $6 $6 - 1
|
||||
StrCpy $7 $0 1 $6
|
||||
${If} $7 == ";"
|
||||
StrCpy $0 $0 $6 ; Change ';<EnvVar>' to '<EnvVar>'
|
||||
${EndIf}
|
||||
; DetailPrint "Scrubbed $1: [$0]" ; Uncomment to debug
|
||||
${EndIf}
|
||||
|
||||
/* Step 3. Remove all instances of the target path/string (even if "A" or "P")
|
||||
$6 = bool flag (1 = found and removed PathString)
|
||||
$7 = a string (e.g. path) delimited by semicolon(s)
|
||||
$8 = entry counter starting at 0
|
||||
$9 = copy of $0
|
||||
$R0 = tempChar */
|
||||
|
||||
${If} $5 != "" ; If EnvVar is not empty ...
|
||||
StrCpy $9 $0
|
||||
StrCpy $0 ""
|
||||
StrCpy $8 0
|
||||
StrCpy $6 0
|
||||
|
||||
${Do}
|
||||
${${UN}StrTok} $7 $9 ";" $8 "0" ; $7 = next entry, $8 = entry counter
|
||||
|
||||
${If} $7 == "" ; If we've run out of entries,
|
||||
${ExitDo} ; were done
|
||||
${EndIf} ;
|
||||
|
||||
; Remove leading and trailing spaces from this entry (critical step for Action=Remove)
|
||||
${Do}
|
||||
StrCpy $R0 $7 1
|
||||
${If} $R0 != " "
|
||||
${ExitDo}
|
||||
${EndIf}
|
||||
StrCpy $7 $7 "" 1 ; Remove leading space
|
||||
${Loop}
|
||||
${Do}
|
||||
StrCpy $R0 $7 1 -1
|
||||
${If} $R0 != " "
|
||||
${ExitDo}
|
||||
${EndIf}
|
||||
StrCpy $7 $7 -1 ; Remove trailing space
|
||||
${Loop}
|
||||
${If} $7 == $4 ; If string matches, remove it by not appending it
|
||||
StrCpy $6 1 ; Set 'found' flag
|
||||
${ElseIf} $7 != $4 ; If string does NOT match
|
||||
${AndIf} $0 == "" ; and the 1st string being added to $0,
|
||||
StrCpy $0 $7 ; copy it to $0 without a prepended semicolon
|
||||
${ElseIf} $7 != $4 ; If string does NOT match
|
||||
${AndIf} $0 != "" ; and this is NOT the 1st string to be added to $0,
|
||||
StrCpy $0 $0;$7 ; append path to $0 with a prepended semicolon
|
||||
${EndIf} ;
|
||||
|
||||
IntOp $8 $8 + 1 ; Bump counter
|
||||
${Loop} ; Check for duplicates until we run out of paths
|
||||
${EndIf}
|
||||
|
||||
; Step 4: Perform the requested Action
|
||||
;
|
||||
${If} $2 != "R" ; If Append or Prepend
|
||||
${If} $6 == 1 ; And if we found the target
|
||||
DetailPrint "Target is already present in $1. It will be removed and"
|
||||
${EndIf}
|
||||
${If} $0 == "" ; If EnvVar is (now) empty
|
||||
StrCpy $0 $4 ; just copy PathString to EnvVar
|
||||
${If} $6 == 0 ; If found flag is either 0
|
||||
${OrIf} $6 == "" ; or blank (if EnvVarName is empty)
|
||||
DetailPrint "$1 was empty and has been updated with the target"
|
||||
${EndIf}
|
||||
${ElseIf} $2 == "A" ; If Append (and EnvVar is not empty),
|
||||
StrCpy $0 $0;$4 ; append PathString
|
||||
${If} $6 == 1
|
||||
DetailPrint "appended to $1"
|
||||
${Else}
|
||||
DetailPrint "Target was appended to $1"
|
||||
${EndIf}
|
||||
${Else} ; If Prepend (and EnvVar is not empty),
|
||||
StrCpy $0 $4;$0 ; prepend PathString
|
||||
${If} $6 == 1
|
||||
DetailPrint "prepended to $1"
|
||||
${Else}
|
||||
DetailPrint "Target was prepended to $1"
|
||||
${EndIf}
|
||||
${EndIf}
|
||||
${Else} ; If Action = Remove
|
||||
${If} $6 == 1 ; and we found the target
|
||||
DetailPrint "Target was found and removed from $1"
|
||||
${Else}
|
||||
DetailPrint "Target was NOT found in $1 (nothing to remove)"
|
||||
${EndIf}
|
||||
${If} $0 == ""
|
||||
DetailPrint "$1 is now empty"
|
||||
${EndIf}
|
||||
${EndIf}
|
||||
|
||||
; Step 5: Update the registry at RegLoc with the updated EnvVar and announce the change
|
||||
;
|
||||
ClearErrors
|
||||
${If} $3 == HKLM
|
||||
WriteRegExpandStr ${hklm_all_users} $1 $0 ; Write it in all users section
|
||||
${ElseIf} $3 == HKCU
|
||||
WriteRegExpandStr ${hkcu_current_user} $1 $0 ; Write it to current user section
|
||||
${EndIf}
|
||||
|
||||
IfErrors 0 +4
|
||||
MessageBox MB_OK|MB_ICONEXCLAMATION "Could not write updated $1 to $3"
|
||||
DetailPrint "Could not write updated $1 to $3"
|
||||
Goto EnvVarUpdate_Restore_Vars
|
||||
|
||||
; "Export" our change
|
||||
SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000
|
||||
|
||||
EnvVarUpdate_Restore_Vars:
|
||||
;
|
||||
; Restore the user's variables and return ResultVar
|
||||
Pop $R0
|
||||
Pop $9
|
||||
Pop $8
|
||||
Pop $7
|
||||
Pop $6
|
||||
Pop $5
|
||||
Pop $4
|
||||
Pop $3
|
||||
Pop $2
|
||||
Pop $1
|
||||
Push $0 ; Push my $0 (ResultVar)
|
||||
Exch
|
||||
Pop $0 ; Restore his $0
|
||||
|
||||
FunctionEnd
|
||||
|
||||
!macroend ; EnvVarUpdate UN
|
||||
!insertmacro EnvVarUpdate ""
|
||||
!insertmacro EnvVarUpdate "un."
|
||||
;----------------------------------- EnvVarUpdate end----------------------------------------
|
||||
|
||||
!verbose pop
|
||||
!endif
|
||||
65
build/nsis.geth.nsi
Normal file
65
build/nsis.geth.nsi
Normal file
@@ -0,0 +1,65 @@
|
||||
# Builds a Windows installer with NSIS.
|
||||
# It expects the following command line arguments:
|
||||
# - OUTPUTFILE, filename of the installer (without extension)
|
||||
# - MAJORVERSION, major build version
|
||||
# - MINORVERSION, minor build version
|
||||
# - BUILDVERSION, build id version
|
||||
#
|
||||
# The created installer executes the following steps:
|
||||
# 1. install geth for all users
|
||||
# 2. install optional development tools such as abigen
|
||||
# 3. create an uninstaller
|
||||
# 4. configures the Windows firewall for geth
|
||||
# 5. create geth, attach and uninstall start menu entries
|
||||
# 6. configures the registry that allows Windows to manage the package through its platform tools
|
||||
# 7. adds the environment system wide variable ETHEREUM_SOCKET
|
||||
# 8. adds the install directory to %PATH%
|
||||
#
|
||||
# Requirements:
|
||||
# - NSIS, http://nsis.sourceforge.net/Main_Page
|
||||
# - SFP, http://nsis.sourceforge.net/NSIS_Simple_Firewall_Plugin (put dll in NSIS\Plugins\x86-ansi)
|
||||
#
|
||||
# based on: http://nsis.sourceforge.net/A_simple_installer_with_start_menu_shortcut_and_uninstaller
|
||||
#
|
||||
# TODO:
|
||||
# - sign installer
|
||||
CRCCheck on
|
||||
|
||||
!define GROUPNAME "Ethereum"
|
||||
!define APPNAME "Geth"
|
||||
!define DESCRIPTION "Official Go implementation of the Ethereum protocol"
|
||||
!addplugindir .\
|
||||
|
||||
# Require admin rights on NT6+ (When UAC is turned on)
|
||||
RequestExecutionLevel admin
|
||||
|
||||
# Use LZMA compression
|
||||
SetCompressor /SOLID lzma
|
||||
|
||||
!include LogicLib.nsh
|
||||
!include EnvVarUpdate.nsh
|
||||
|
||||
!macro VerifyUserIsAdmin
|
||||
UserInfo::GetAccountType
|
||||
pop $0
|
||||
${If} $0 != "admin" # Require admin rights on NT4+
|
||||
messageBox mb_iconstop "Administrator rights required!"
|
||||
setErrorLevel 740 # ERROR_ELEVATION_REQUIRED
|
||||
quit
|
||||
${EndIf}
|
||||
!macroend
|
||||
|
||||
function .onInit
|
||||
# make vars are global for all users since geth is installed global
|
||||
setShellVarContext all
|
||||
!insertmacro VerifyUserIsAdmin
|
||||
|
||||
${If} ${ARCH} == "amd64"
|
||||
StrCpy $InstDir "$PROGRAMFILES64\${APPNAME}"
|
||||
${Else}
|
||||
StrCpy $InstDir "$PROGRAMFILES32\${APPNAME}"
|
||||
${Endif}
|
||||
functionEnd
|
||||
|
||||
!include install.nsh
|
||||
!include uninstall.nsh
|
||||
102
build/nsis.install.nsh
Normal file
102
build/nsis.install.nsh
Normal file
@@ -0,0 +1,102 @@
|
||||
Name "geth ${MAJORVERSION}.${MINORVERSION}.${BUILDVERSION}" # VERSION variables set through command line arguments
|
||||
InstallDir "$InstDir"
|
||||
OutFile "${OUTPUTFILE}" # set through command line arguments
|
||||
|
||||
# Links for "Add/Remove Programs"
|
||||
!define HELPURL "https://github.com/ethereum/go-ethereum/issues"
|
||||
!define UPDATEURL "https://github.com/ethereum/go-ethereum/releases"
|
||||
!define ABOUTURL "https://github.com/ethereum/go-ethereum#ethereum-go"
|
||||
!define /date NOW "%Y%m%d"
|
||||
|
||||
PageEx license
|
||||
LicenseData {{.License}}
|
||||
PageExEnd
|
||||
|
||||
# Install geth binary
|
||||
Section "Geth" GETH_IDX
|
||||
SetOutPath $INSTDIR
|
||||
file {{.Geth}}
|
||||
|
||||
# Create start menu launcher
|
||||
createDirectory "$SMPROGRAMS\${APPNAME}"
|
||||
createShortCut "$SMPROGRAMS\${APPNAME}\${APPNAME}.lnk" "$INSTDIR\geth.exe" "--fast" "--cache=512"
|
||||
createShortCut "$SMPROGRAMS\${APPNAME}\Attach.lnk" "$INSTDIR\geth.exe" "attach" "" ""
|
||||
createShortCut "$SMPROGRAMS\${APPNAME}\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "" ""
|
||||
|
||||
# Firewall - remove rules (if exists)
|
||||
SimpleFC::AdvRemoveRule "Geth incoming peers (TCP:30303)"
|
||||
SimpleFC::AdvRemoveRule "Geth outgoing peers (TCP:30303)"
|
||||
SimpleFC::AdvRemoveRule "Geth UDP discovery (UDP:30303)"
|
||||
|
||||
# Firewall - add rules
|
||||
SimpleFC::AdvAddRule "Geth incoming peers (TCP:30303)" "" 6 1 1 2147483647 1 "$INSTDIR\geth.exe" "" "" "Ethereum" 30303 "" "" ""
|
||||
SimpleFC::AdvAddRule "Geth outgoing peers (TCP:30303)" "" 6 2 1 2147483647 1 "$INSTDIR\geth.exe" "" "" "Ethereum" "" 30303 "" ""
|
||||
SimpleFC::AdvAddRule "Geth UDP discovery (UDP:30303)" "" 17 2 1 2147483647 1 "$INSTDIR\geth.exe" "" "" "Ethereum" "" 30303 "" ""
|
||||
|
||||
# Set default IPC endpoint (https://github.com/ethereum/EIPs/issues/147)
|
||||
${EnvVarUpdate} $0 "ETHEREUM_SOCKET" "R" "HKLM" "\\.\pipe\geth.ipc"
|
||||
${EnvVarUpdate} $0 "ETHEREUM_SOCKET" "A" "HKLM" "\\.\pipe\geth.ipc"
|
||||
|
||||
# Add geth to PATH
|
||||
${EnvVarUpdate} $0 "PATH" "A" "HKLM" $INSTDIR
|
||||
SectionEnd
|
||||
|
||||
# Install optional develop tools.
|
||||
Section /o "Development tools" DEV_TOOLS_IDX
|
||||
SetOutPath $INSTDIR
|
||||
{{range .DevTools}}file {{.}}
|
||||
{{end}}
|
||||
SectionEnd
|
||||
|
||||
# Return on top of stack the total size (as DWORD) of the selected/installed sections.
|
||||
Var GetInstalledSize.total
|
||||
Function GetInstalledSize
|
||||
StrCpy $GetInstalledSize.total 0
|
||||
|
||||
${if} ${SectionIsSelected} ${GETH_IDX}
|
||||
SectionGetSize ${GETH_IDX} $0
|
||||
IntOp $GetInstalledSize.total $GetInstalledSize.total + $0
|
||||
${endif}
|
||||
|
||||
${if} ${SectionIsSelected} ${DEV_TOOLS_IDX}
|
||||
SectionGetSize ${DEV_TOOLS_IDX} $0
|
||||
IntOp $GetInstalledSize.total $GetInstalledSize.total + $0
|
||||
${endif}
|
||||
|
||||
IntFmt $GetInstalledSize.total "0x%08X" $GetInstalledSize.total
|
||||
Push $GetInstalledSize.total
|
||||
FunctionEnd
|
||||
|
||||
# Write registry, Windows uses these values in various tools such as add/remove program.
|
||||
# PowerShell: Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, InstallLocation, InstallDate | Format-Table –AutoSize
|
||||
function .onInstSuccess
|
||||
# Save information in registry in HKEY_LOCAL_MACHINE branch, Windows add/remove functionality depends on this
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${GROUPNAME} ${APPNAME}" "DisplayName" "${GROUPNAME} - ${APPNAME} - ${DESCRIPTION}"
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${GROUPNAME} ${APPNAME}" "UninstallString" "$\"$INSTDIR\uninstall.exe$\""
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${GROUPNAME} ${APPNAME}" "QuietUninstallString" "$\"$INSTDIR\uninstall.exe$\" /S"
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${GROUPNAME} ${APPNAME}" "InstallLocation" "$INSTDIR"
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${GROUPNAME} ${APPNAME}" "InstallDate" "${NOW}"
|
||||
# Wait for Alex
|
||||
#WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${GROUPNAME} ${APPNAME}" "DisplayIcon" "$\"$INSTDIR\logo.ico$\""
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${GROUPNAME} ${APPNAME}" "Publisher" "${GROUPNAME}"
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${GROUPNAME} ${APPNAME}" "HelpLink" "${HELPURL}"
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${GROUPNAME} ${APPNAME}" "URLUpdateInfo" "${UPDATEURL}"
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${GROUPNAME} ${APPNAME}" "URLInfoAbout" "${ABOUTURL}"
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${GROUPNAME} ${APPNAME}" "DisplayVersion" "${MAJORVERSION}.${MINORVERSION}.${BUILDVERSION}"
|
||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${GROUPNAME} ${APPNAME}" "VersionMajor" ${MAJORVERSION}
|
||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${GROUPNAME} ${APPNAME}" "VersionMinor" ${MINORVERSION}
|
||||
# There is no option for modifying or repairing the install
|
||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${GROUPNAME} ${APPNAME}" "NoModify" 1
|
||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${GROUPNAME} ${APPNAME}" "NoRepair" 1
|
||||
|
||||
Call GetInstalledSize
|
||||
Pop $0
|
||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${GROUPNAME} ${APPNAME}" "EstimatedSize" "$0"
|
||||
|
||||
# Create uninstaller
|
||||
writeUninstaller "$INSTDIR\uninstall.exe"
|
||||
functionEnd
|
||||
|
||||
Page components
|
||||
Page directory
|
||||
Page instfiles
|
||||
BIN
build/nsis.simplefc.dll
Normal file
BIN
build/nsis.simplefc.dll
Normal file
Binary file not shown.
BIN
build/nsis.simplefc.source.zip
Normal file
BIN
build/nsis.simplefc.source.zip
Normal file
Binary file not shown.
32
build/nsis.uninstall.nsh
Normal file
32
build/nsis.uninstall.nsh
Normal file
@@ -0,0 +1,32 @@
|
||||
Section "Uninstall"
|
||||
# uninstall for all users
|
||||
setShellVarContext all
|
||||
|
||||
# Delete (optionally) installed files
|
||||
{{range $}}Delete $INSTDIR\{{.}}
|
||||
{{end}}
|
||||
Delete $INSTDIR\uninstall.exe
|
||||
|
||||
# Delete install directory
|
||||
rmDir $INSTDIR
|
||||
|
||||
# Delete start menu launcher
|
||||
Delete "$SMPROGRAMS\${APPNAME}\${APPNAME}.lnk"
|
||||
Delete "$SMPROGRAMS\${APPNAME}\Attach.lnk"
|
||||
Delete "$SMPROGRAMS\${APPNAME}\Uninstall.lnk"
|
||||
rmDir "$SMPROGRAMS\${APPNAME}"
|
||||
|
||||
# Firewall - remove rules if exists
|
||||
SimpleFC::AdvRemoveRule "Geth incoming peers (TCP:30303)"
|
||||
SimpleFC::AdvRemoveRule "Geth outgoing peers (TCP:30303)"
|
||||
SimpleFC::AdvRemoveRule "Geth UDP discovery (UDP:30303)"
|
||||
|
||||
# Remove IPC endpoint (https://github.com/ethereum/EIPs/issues/147)
|
||||
${un.EnvVarUpdate} $0 "ETHEREUM_SOCKET" "R" "HKLM" "\\.\pipe\geth.ipc"
|
||||
|
||||
# Remove install directory from PATH
|
||||
${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" $INSTDIR
|
||||
|
||||
# Cleanup registry (deletes all sub keys)
|
||||
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${GROUPNAME} ${APPNAME}"
|
||||
SectionEnd
|
||||
22
build/pod.podspec
Normal file
22
build/pod.podspec
Normal file
@@ -0,0 +1,22 @@
|
||||
Pod::Spec.new do |spec|
|
||||
spec.name = '{{.Name}}'
|
||||
spec.version = '{{.Version}}'
|
||||
spec.license = { :type => 'GNU Lesser General Public License, Version 3.0' }
|
||||
spec.homepage = 'https://github.com/ethereum/go-ethereum'
|
||||
spec.authors = { {{range .Contributors}}
|
||||
'{{.Name}}' => '{{.Email}}',{{end}}
|
||||
}
|
||||
spec.summary = 'iOS Ethereum Client'
|
||||
spec.source = { :git => 'https://github.com/ethereum/go-ethereum.git', :commit => '{{.Commit}}' }
|
||||
|
||||
spec.platform = :ios
|
||||
spec.ios.deployment_target = '9.0'
|
||||
spec.ios.vendored_frameworks = 'Frameworks/Geth.framework'
|
||||
|
||||
spec.prepare_command = <<-CMD
|
||||
curl https://gethstore.blob.core.windows.net/builds/geth-ios-all-{{.Version}}.tar.gz | tar -xvz
|
||||
mkdir Frameworks
|
||||
mv geth-ios-all-{{.Version}}/Geth.framework Frameworks
|
||||
rm -rf geth-ios-all-{{.Version}}
|
||||
CMD
|
||||
end
|
||||
371
build/update-license.go
Normal file
371
build/update-license.go
Normal file
@@ -0,0 +1,371 @@
|
||||
// +build none
|
||||
|
||||
/*
|
||||
This command generates GPL license headers on top of all source files.
|
||||
You can run it once per month, before cutting a release or just
|
||||
whenever you feel like it.
|
||||
|
||||
go run update-license.go
|
||||
|
||||
All authors (people who have contributed code) are listed in the
|
||||
AUTHORS file. The author names are mapped and deduplicated using the
|
||||
.mailmap file. You can use .mailmap to set the canonical name and
|
||||
address for each author. See git-shortlog(1) for an explanation of the
|
||||
.mailmap format.
|
||||
|
||||
Please review the resulting diff to check whether the correct
|
||||
copyright assignments are performed.
|
||||
*/
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"bytes"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"regexp"
|
||||
"runtime"
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync"
|
||||
"text/template"
|
||||
"time"
|
||||
)
|
||||
|
||||
var (
|
||||
// only files with these extensions will be considered
|
||||
extensions = []string{".go", ".js", ".qml"}
|
||||
|
||||
// paths with any of these prefixes will be skipped
|
||||
skipPrefixes = []string{
|
||||
// boring stuff
|
||||
"vendor/", "tests/files/", "build/",
|
||||
// don't relicense vendored sources
|
||||
"crypto/sha3/", "crypto/ecies/", "logger/glog/",
|
||||
"crypto/secp256k1/curve.go",
|
||||
// don't license generated files
|
||||
"contracts/chequebook/contract/",
|
||||
"contracts/ens/contract/",
|
||||
"contracts/release/contract.go",
|
||||
"p2p/discv5/nodeevent_string.go",
|
||||
}
|
||||
|
||||
// paths with this prefix are licensed as GPL. all other files are LGPL.
|
||||
gplPrefixes = []string{"cmd/"}
|
||||
|
||||
// this regexp must match the entire license comment at the
|
||||
// beginning of each file.
|
||||
licenseCommentRE = regexp.MustCompile(`^//\s*(Copyright|This file is part of).*?\n(?://.*?\n)*\n*`)
|
||||
|
||||
// this text appears at the start of AUTHORS
|
||||
authorsFileHeader = "# This is the official list of go-ethereum authors for copyright purposes.\n\n"
|
||||
)
|
||||
|
||||
// this template generates the license comment.
|
||||
// its input is an info structure.
|
||||
var licenseT = template.Must(template.New("").Parse(`
|
||||
// Copyright {{.Year}} The go-ethereum Authors
|
||||
// This file is part of {{.Whole false}}.
|
||||
//
|
||||
// {{.Whole true}} is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU {{.License}} as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// {{.Whole true}} is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU {{.License}} for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU {{.License}}
|
||||
// along with {{.Whole false}}. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
`[1:]))
|
||||
|
||||
type info struct {
|
||||
file string
|
||||
Year int64
|
||||
}
|
||||
|
||||
func (i info) License() string {
|
||||
if i.gpl() {
|
||||
return "General Public License"
|
||||
}
|
||||
return "Lesser General Public License"
|
||||
}
|
||||
|
||||
func (i info) ShortLicense() string {
|
||||
if i.gpl() {
|
||||
return "GPL"
|
||||
}
|
||||
return "LGPL"
|
||||
}
|
||||
|
||||
func (i info) Whole(startOfSentence bool) string {
|
||||
if i.gpl() {
|
||||
return "go-ethereum"
|
||||
}
|
||||
if startOfSentence {
|
||||
return "The go-ethereum library"
|
||||
}
|
||||
return "the go-ethereum library"
|
||||
}
|
||||
|
||||
func (i info) gpl() bool {
|
||||
for _, p := range gplPrefixes {
|
||||
if strings.HasPrefix(i.file, p) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func main() {
|
||||
var (
|
||||
files = getFiles()
|
||||
filec = make(chan string)
|
||||
infoc = make(chan *info, 20)
|
||||
wg sync.WaitGroup
|
||||
)
|
||||
|
||||
writeAuthors(files)
|
||||
|
||||
go func() {
|
||||
for _, f := range files {
|
||||
filec <- f
|
||||
}
|
||||
close(filec)
|
||||
}()
|
||||
for i := runtime.NumCPU(); i >= 0; i-- {
|
||||
// getting file info is slow and needs to be parallel.
|
||||
// it traverses git history for each file.
|
||||
wg.Add(1)
|
||||
go getInfo(filec, infoc, &wg)
|
||||
}
|
||||
go func() {
|
||||
wg.Wait()
|
||||
close(infoc)
|
||||
}()
|
||||
writeLicenses(infoc)
|
||||
}
|
||||
|
||||
func skipFile(path string) bool {
|
||||
if strings.Contains(path, "/testdata/") {
|
||||
return true
|
||||
}
|
||||
for _, p := range skipPrefixes {
|
||||
if strings.HasPrefix(path, p) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func getFiles() []string {
|
||||
cmd := exec.Command("git", "ls-tree", "-r", "--name-only", "HEAD")
|
||||
var files []string
|
||||
err := doLines(cmd, func(line string) {
|
||||
if skipFile(line) {
|
||||
return
|
||||
}
|
||||
ext := filepath.Ext(line)
|
||||
for _, wantExt := range extensions {
|
||||
if ext == wantExt {
|
||||
goto keep
|
||||
}
|
||||
}
|
||||
return
|
||||
keep:
|
||||
files = append(files, line)
|
||||
})
|
||||
if err != nil {
|
||||
log.Fatalf("error getting files:", err)
|
||||
}
|
||||
return files
|
||||
}
|
||||
|
||||
var authorRegexp = regexp.MustCompile(`\s*[0-9]+\s*(.*)`)
|
||||
|
||||
func gitAuthors(files []string) []string {
|
||||
cmds := []string{"shortlog", "-s", "-n", "-e", "HEAD", "--"}
|
||||
cmds = append(cmds, files...)
|
||||
cmd := exec.Command("git", cmds...)
|
||||
var authors []string
|
||||
err := doLines(cmd, func(line string) {
|
||||
m := authorRegexp.FindStringSubmatch(line)
|
||||
if len(m) > 1 {
|
||||
authors = append(authors, m[1])
|
||||
}
|
||||
})
|
||||
if err != nil {
|
||||
log.Fatalln("error getting authors:", err)
|
||||
}
|
||||
return authors
|
||||
}
|
||||
|
||||
func readAuthors() []string {
|
||||
content, err := ioutil.ReadFile("AUTHORS")
|
||||
if err != nil && !os.IsNotExist(err) {
|
||||
log.Fatalln("error reading AUTHORS:", err)
|
||||
}
|
||||
var authors []string
|
||||
for _, a := range bytes.Split(content, []byte("\n")) {
|
||||
if len(a) > 0 && a[0] != '#' {
|
||||
authors = append(authors, string(a))
|
||||
}
|
||||
}
|
||||
// Retranslate existing authors through .mailmap.
|
||||
// This should catch email address changes.
|
||||
authors = mailmapLookup(authors)
|
||||
return authors
|
||||
}
|
||||
|
||||
func mailmapLookup(authors []string) []string {
|
||||
if len(authors) == 0 {
|
||||
return nil
|
||||
}
|
||||
cmds := []string{"check-mailmap", "--"}
|
||||
cmds = append(cmds, authors...)
|
||||
cmd := exec.Command("git", cmds...)
|
||||
var translated []string
|
||||
err := doLines(cmd, func(line string) {
|
||||
translated = append(translated, line)
|
||||
})
|
||||
if err != nil {
|
||||
log.Fatalln("error translating authors:", err)
|
||||
}
|
||||
return translated
|
||||
}
|
||||
|
||||
func writeAuthors(files []string) {
|
||||
merge := make(map[string]bool)
|
||||
// Add authors that Git reports as contributorxs.
|
||||
// This is the primary source of author information.
|
||||
for _, a := range gitAuthors(files) {
|
||||
merge[a] = true
|
||||
}
|
||||
// Add existing authors from the file. This should ensure that we
|
||||
// never lose authors, even if Git stops listing them. We can also
|
||||
// add authors manually this way.
|
||||
for _, a := range readAuthors() {
|
||||
merge[a] = true
|
||||
}
|
||||
// Write sorted list of authors back to the file.
|
||||
var result []string
|
||||
for a := range merge {
|
||||
result = append(result, a)
|
||||
}
|
||||
sort.Strings(result)
|
||||
content := new(bytes.Buffer)
|
||||
content.WriteString(authorsFileHeader)
|
||||
for _, a := range result {
|
||||
content.WriteString(a)
|
||||
content.WriteString("\n")
|
||||
}
|
||||
fmt.Println("writing AUTHORS")
|
||||
if err := ioutil.WriteFile("AUTHORS", content.Bytes(), 0644); err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
}
|
||||
|
||||
func getInfo(files <-chan string, out chan<- *info, wg *sync.WaitGroup) {
|
||||
for file := range files {
|
||||
stat, err := os.Lstat(file)
|
||||
if err != nil {
|
||||
fmt.Printf("ERROR %s: %v\n", file, err)
|
||||
continue
|
||||
}
|
||||
if !stat.Mode().IsRegular() {
|
||||
continue
|
||||
}
|
||||
info, err := fileInfo(file)
|
||||
if err != nil {
|
||||
fmt.Printf("ERROR %s: %v\n", file, err)
|
||||
continue
|
||||
}
|
||||
out <- info
|
||||
}
|
||||
wg.Done()
|
||||
}
|
||||
|
||||
// fileInfo finds the lowest year in which the given file was commited.
|
||||
func fileInfo(file string) (*info, error) {
|
||||
info := &info{file: file, Year: int64(time.Now().Year())}
|
||||
cmd := exec.Command("git", "log", "--follow", "--find-renames=80", "--find-copies=80", "--pretty=format:%ai", "--", file)
|
||||
err := doLines(cmd, func(line string) {
|
||||
y, err := strconv.ParseInt(line[:4], 10, 64)
|
||||
if err != nil {
|
||||
fmt.Printf("cannot parse year: %q", line[:4])
|
||||
}
|
||||
if y < info.Year {
|
||||
info.Year = y
|
||||
}
|
||||
})
|
||||
return info, err
|
||||
}
|
||||
|
||||
func writeLicenses(infos <-chan *info) {
|
||||
for i := range infos {
|
||||
writeLicense(i)
|
||||
}
|
||||
}
|
||||
|
||||
func writeLicense(info *info) {
|
||||
fi, err := os.Stat(info.file)
|
||||
if os.IsNotExist(err) {
|
||||
fmt.Println("skipping (does not exist)", info.file)
|
||||
return
|
||||
}
|
||||
if err != nil {
|
||||
log.Fatalf("error stat'ing %s: %v\n", info.file, err)
|
||||
}
|
||||
content, err := ioutil.ReadFile(info.file)
|
||||
if err != nil {
|
||||
log.Fatalf("error reading %s: %v\n", info.file, err)
|
||||
}
|
||||
// Construct new file content.
|
||||
buf := new(bytes.Buffer)
|
||||
licenseT.Execute(buf, info)
|
||||
if m := licenseCommentRE.FindIndex(content); m != nil && m[0] == 0 {
|
||||
buf.Write(content[:m[0]])
|
||||
buf.Write(content[m[1]:])
|
||||
} else {
|
||||
buf.Write(content)
|
||||
}
|
||||
// Write it to the file.
|
||||
if bytes.Equal(content, buf.Bytes()) {
|
||||
fmt.Println("skipping (no changes)", info.file)
|
||||
return
|
||||
}
|
||||
fmt.Println("writing", info.ShortLicense(), info.file)
|
||||
if err := ioutil.WriteFile(info.file, buf.Bytes(), fi.Mode()); err != nil {
|
||||
log.Fatalf("error writing %s: %v", info.file, err)
|
||||
}
|
||||
}
|
||||
|
||||
func doLines(cmd *exec.Cmd, f func(string)) error {
|
||||
stdout, err := cmd.StdoutPipe()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := cmd.Start(); err != nil {
|
||||
return err
|
||||
}
|
||||
s := bufio.NewScanner(stdout)
|
||||
for s.Scan() {
|
||||
f(s.Text())
|
||||
}
|
||||
if s.Err() != nil {
|
||||
return s.Err()
|
||||
}
|
||||
if err := cmd.Wait(); err != nil {
|
||||
return fmt.Errorf("%v (for %s)", err, strings.Join(cmd.Args, " "))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
32
circle.yml
Normal file
32
circle.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
machine:
|
||||
services:
|
||||
- docker
|
||||
|
||||
dependencies:
|
||||
cache_directories:
|
||||
- "~/.ethash" # Cache the ethash DAG generated by hive for consecutive builds
|
||||
- "~/.docker" # Cache all docker images manually to avoid lengthy rebuilds
|
||||
override:
|
||||
# Restore all previously cached docker images
|
||||
- mkdir -p ~/.docker
|
||||
- for img in `ls ~/.docker`; do docker load -i ~/.docker/$img; done
|
||||
|
||||
# Pull in and hive, restore cached ethash DAGs and do a dry run
|
||||
- go get -u github.com/karalabe/hive
|
||||
- (cd ~/.go_workspace/src/github.com/karalabe/hive && mkdir -p workspace/ethash/ ~/.ethash)
|
||||
- (cd ~/.go_workspace/src/github.com/karalabe/hive && cp -r ~/.ethash/. workspace/ethash/)
|
||||
- (cd ~/.go_workspace/src/github.com/karalabe/hive && hive --docker-noshell --client=NONE --test=. --sim=. --loglevel=6)
|
||||
|
||||
# Cache all the docker images and the ethash DAGs
|
||||
- for img in `docker images | grep -v "^<none>" | tail -n +2 | awk '{print $1}'`; do docker save $img > ~/.docker/`echo $img | tr '/' ':'`.tar; done
|
||||
- cp -r ~/.go_workspace/src/github.com/karalabe/hive/workspace/ethash/. ~/.ethash
|
||||
|
||||
test:
|
||||
override:
|
||||
# Build Geth and move into a known folder
|
||||
- make geth
|
||||
- cp ./build/bin/geth $HOME/geth
|
||||
|
||||
# Run hive and move all generated logs into the public artifacts folder
|
||||
- (cd ~/.go_workspace/src/github.com/karalabe/hive && hive --docker-noshell --client=go-ethereum:local --override=$HOME/geth --test=. --sim=.)
|
||||
- cp -r ~/.go_workspace/src/github.com/karalabe/hive/workspace/logs/* $CIRCLE_ARTIFACTS
|
||||
138
cmd/abigen/main.go
Normal file
138
cmd/abigen/main.go
Normal file
@@ -0,0 +1,138 @@
|
||||
// Copyright 2016 The go-ethereum Authors
|
||||
// This file is part of go-ethereum.
|
||||
//
|
||||
// go-ethereum is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// go-ethereum is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"flag"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/ethereum/go-ethereum/accounts/abi/bind"
|
||||
"github.com/ethereum/go-ethereum/common/compiler"
|
||||
)
|
||||
|
||||
var (
|
||||
abiFlag = flag.String("abi", "", "Path to the Ethereum contract ABI json to bind")
|
||||
binFlag = flag.String("bin", "", "Path to the Ethereum contract bytecode (generate deploy method)")
|
||||
typFlag = flag.String("type", "", "Struct name for the binding (default = package name)")
|
||||
|
||||
solFlag = flag.String("sol", "", "Path to the Ethereum contract Solidity source to build and bind")
|
||||
solcFlag = flag.String("solc", "solc", "Solidity compiler to use if source builds are requested")
|
||||
excFlag = flag.String("exc", "", "Comma separated types to exclude from binding")
|
||||
|
||||
pkgFlag = flag.String("pkg", "", "Package name to generate the binding into")
|
||||
outFlag = flag.String("out", "", "Output file for the generated binding (default = stdout)")
|
||||
langFlag = flag.String("lang", "go", "Destination language for the bindings (go, java, objc)")
|
||||
)
|
||||
|
||||
func main() {
|
||||
// Parse and ensure all needed inputs are specified
|
||||
flag.Parse()
|
||||
|
||||
if *abiFlag == "" && *solFlag == "" {
|
||||
fmt.Printf("No contract ABI (--abi) or Solidity source (--sol) specified\n")
|
||||
os.Exit(-1)
|
||||
} else if (*abiFlag != "" || *binFlag != "" || *typFlag != "") && *solFlag != "" {
|
||||
fmt.Printf("Contract ABI (--abi), bytecode (--bin) and type (--type) flags are mutually exclusive with the Solidity source (--sol) flag\n")
|
||||
os.Exit(-1)
|
||||
}
|
||||
if *pkgFlag == "" {
|
||||
fmt.Printf("No destination package specified (--pkg)\n")
|
||||
os.Exit(-1)
|
||||
}
|
||||
var lang bind.Lang
|
||||
switch *langFlag {
|
||||
case "go":
|
||||
lang = bind.LangGo
|
||||
case "java":
|
||||
lang = bind.LangJava
|
||||
case "objc":
|
||||
lang = bind.LangObjC
|
||||
default:
|
||||
fmt.Printf("Unsupported destination language \"%s\" (--lang)\n", *langFlag)
|
||||
os.Exit(-1)
|
||||
}
|
||||
// If the entire solidity code was specified, build and bind based on that
|
||||
var (
|
||||
abis []string
|
||||
bins []string
|
||||
types []string
|
||||
)
|
||||
if *solFlag != "" {
|
||||
// Generate the list of types to exclude from binding
|
||||
exclude := make(map[string]bool)
|
||||
for _, kind := range strings.Split(*excFlag, ",") {
|
||||
exclude[strings.ToLower(kind)] = true
|
||||
}
|
||||
contracts, err := compiler.CompileSolidity(*solcFlag, *solFlag)
|
||||
if err != nil {
|
||||
fmt.Printf("Failed to build Solidity contract: %v\n", err)
|
||||
os.Exit(-1)
|
||||
}
|
||||
// Gather all non-excluded contract for binding
|
||||
for name, contract := range contracts {
|
||||
if exclude[strings.ToLower(name)] {
|
||||
continue
|
||||
}
|
||||
abi, _ := json.Marshal(contract.Info.AbiDefinition) // Flatten the compiler parse
|
||||
abis = append(abis, string(abi))
|
||||
bins = append(bins, contract.Code)
|
||||
types = append(types, name)
|
||||
}
|
||||
} else {
|
||||
// Otherwise load up the ABI, optional bytecode and type name from the parameters
|
||||
abi, err := ioutil.ReadFile(*abiFlag)
|
||||
if err != nil {
|
||||
fmt.Printf("Failed to read input ABI: %v\n", err)
|
||||
os.Exit(-1)
|
||||
}
|
||||
abis = append(abis, string(abi))
|
||||
|
||||
bin := []byte{}
|
||||
if *binFlag != "" {
|
||||
if bin, err = ioutil.ReadFile(*binFlag); err != nil {
|
||||
fmt.Printf("Failed to read input bytecode: %v\n", err)
|
||||
os.Exit(-1)
|
||||
}
|
||||
}
|
||||
bins = append(bins, string(bin))
|
||||
|
||||
kind := *typFlag
|
||||
if kind == "" {
|
||||
kind = *pkgFlag
|
||||
}
|
||||
types = append(types, kind)
|
||||
}
|
||||
// Generate the contract binding
|
||||
code, err := bind.Bind(types, abis, bins, *pkgFlag, lang)
|
||||
if err != nil {
|
||||
fmt.Printf("Failed to generate ABI binding: %v\n", err)
|
||||
os.Exit(-1)
|
||||
}
|
||||
// Either flush it out to a file or display on the standard output
|
||||
if *outFlag == "" {
|
||||
fmt.Printf("%s\n", code)
|
||||
return
|
||||
}
|
||||
if err := ioutil.WriteFile(*outFlag, []byte(code), 0600); err != nil {
|
||||
fmt.Printf("Failed to write ABI binding: %v\n", err)
|
||||
os.Exit(-1)
|
||||
}
|
||||
}
|
||||
95
cmd/bootnode/main.go
Normal file
95
cmd/bootnode/main.go
Normal file
@@ -0,0 +1,95 @@
|
||||
// Copyright 2015 The go-ethereum Authors
|
||||
// This file is part of go-ethereum.
|
||||
//
|
||||
// go-ethereum is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// go-ethereum is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
// bootnode runs a bootstrap node for the Ethereum Discovery Protocol.
|
||||
package main
|
||||
|
||||
import (
|
||||
"crypto/ecdsa"
|
||||
"flag"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/ethereum/go-ethereum/cmd/utils"
|
||||
"github.com/ethereum/go-ethereum/crypto"
|
||||
"github.com/ethereum/go-ethereum/logger/glog"
|
||||
"github.com/ethereum/go-ethereum/p2p/discover"
|
||||
"github.com/ethereum/go-ethereum/p2p/discv5"
|
||||
"github.com/ethereum/go-ethereum/p2p/nat"
|
||||
)
|
||||
|
||||
func main() {
|
||||
var (
|
||||
listenAddr = flag.String("addr", ":30301", "listen address")
|
||||
genKey = flag.String("genkey", "", "generate a node key")
|
||||
writeAddr = flag.Bool("writeaddress", false, "write out the node's pubkey hash and quit")
|
||||
nodeKeyFile = flag.String("nodekey", "", "private key filename")
|
||||
nodeKeyHex = flag.String("nodekeyhex", "", "private key as hex (for testing)")
|
||||
natdesc = flag.String("nat", "none", "port mapping mechanism (any|none|upnp|pmp|extip:<IP>)")
|
||||
runv5 = flag.Bool("v5", false, "run a v5 topic discovery bootnode")
|
||||
|
||||
nodeKey *ecdsa.PrivateKey
|
||||
err error
|
||||
)
|
||||
flag.Var(glog.GetVerbosity(), "verbosity", "log verbosity (0-9)")
|
||||
flag.Var(glog.GetVModule(), "vmodule", "log verbosity pattern")
|
||||
glog.SetToStderr(true)
|
||||
flag.Parse()
|
||||
|
||||
natm, err := nat.Parse(*natdesc)
|
||||
if err != nil {
|
||||
utils.Fatalf("-nat: %v", err)
|
||||
}
|
||||
switch {
|
||||
case *genKey != "":
|
||||
nodeKey, err = crypto.GenerateKey()
|
||||
if err != nil {
|
||||
utils.Fatalf("could not generate key: %v", err)
|
||||
}
|
||||
if err = crypto.SaveECDSA(*genKey, nodeKey); err != nil {
|
||||
utils.Fatalf("%v", err)
|
||||
}
|
||||
case *nodeKeyFile == "" && *nodeKeyHex == "":
|
||||
utils.Fatalf("Use -nodekey or -nodekeyhex to specify a private key")
|
||||
case *nodeKeyFile != "" && *nodeKeyHex != "":
|
||||
utils.Fatalf("Options -nodekey and -nodekeyhex are mutually exclusive")
|
||||
case *nodeKeyFile != "":
|
||||
if nodeKey, err = crypto.LoadECDSA(*nodeKeyFile); err != nil {
|
||||
utils.Fatalf("-nodekey: %v", err)
|
||||
}
|
||||
case *nodeKeyHex != "":
|
||||
if nodeKey, err = crypto.HexToECDSA(*nodeKeyHex); err != nil {
|
||||
utils.Fatalf("-nodekeyhex: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
if *writeAddr {
|
||||
fmt.Printf("%v\n", discover.PubkeyID(&nodeKey.PublicKey))
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
if *runv5 {
|
||||
if _, err := discv5.ListenUDP(nodeKey, *listenAddr, natm, ""); err != nil {
|
||||
utils.Fatalf("%v", err)
|
||||
}
|
||||
} else {
|
||||
if _, err := discover.ListenUDP(nodeKey, *listenAddr, natm, ""); err != nil {
|
||||
utils.Fatalf("%v", err)
|
||||
}
|
||||
}
|
||||
|
||||
select {}
|
||||
}
|
||||
246
cmd/bzzd/main.go
Normal file
246
cmd/bzzd/main.go
Normal file
@@ -0,0 +1,246 @@
|
||||
// Copyright 2016 The go-ethereum Authors
|
||||
// This file is part of go-ethereum.
|
||||
//
|
||||
// go-ethereum is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// go-ethereum is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"crypto/ecdsa"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"runtime"
|
||||
"strconv"
|
||||
|
||||
"github.com/ethereum/go-ethereum/accounts"
|
||||
"github.com/ethereum/go-ethereum/cmd/utils"
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/console"
|
||||
"github.com/ethereum/go-ethereum/crypto"
|
||||
"github.com/ethereum/go-ethereum/ethclient"
|
||||
"github.com/ethereum/go-ethereum/internal/debug"
|
||||
"github.com/ethereum/go-ethereum/logger"
|
||||
"github.com/ethereum/go-ethereum/logger/glog"
|
||||
"github.com/ethereum/go-ethereum/node"
|
||||
"github.com/ethereum/go-ethereum/p2p"
|
||||
"github.com/ethereum/go-ethereum/p2p/discover"
|
||||
"github.com/ethereum/go-ethereum/swarm"
|
||||
bzzapi "github.com/ethereum/go-ethereum/swarm/api"
|
||||
"gopkg.in/urfave/cli.v1"
|
||||
)
|
||||
|
||||
const clientIdentifier = "bzzd"
|
||||
|
||||
var (
|
||||
gitCommit string // Git SHA1 commit hash of the release (set via linker flags)
|
||||
app = utils.NewApp(gitCommit, "Ethereum Swarm server daemon")
|
||||
)
|
||||
|
||||
var (
|
||||
ChequebookAddrFlag = cli.StringFlag{
|
||||
Name: "chequebook",
|
||||
Usage: "chequebook contract address",
|
||||
}
|
||||
SwarmAccountFlag = cli.StringFlag{
|
||||
Name: "bzzaccount",
|
||||
Usage: "Swarm account key file",
|
||||
}
|
||||
SwarmPortFlag = cli.StringFlag{
|
||||
Name: "bzzport",
|
||||
Usage: "Swarm local http api port",
|
||||
}
|
||||
SwarmConfigPathFlag = cli.StringFlag{
|
||||
Name: "bzzconfig",
|
||||
Usage: "Swarm config file path (datadir/bzz)",
|
||||
}
|
||||
SwarmSwapDisabled = cli.BoolFlag{
|
||||
Name: "bzznoswap",
|
||||
Usage: "Swarm SWAP disabled (default false)",
|
||||
}
|
||||
SwarmSyncDisabled = cli.BoolFlag{
|
||||
Name: "bzznosync",
|
||||
Usage: "Swarm Syncing disabled (default false)",
|
||||
}
|
||||
EthAPI = cli.StringFlag{
|
||||
Name: "ethapi",
|
||||
Usage: "URL of the Ethereum API provider",
|
||||
Value: node.DefaultIPCEndpoint("geth"),
|
||||
}
|
||||
)
|
||||
|
||||
var defaultBootnodes = []string{}
|
||||
|
||||
func init() {
|
||||
// Override flag defaults so bzzd can run alongside geth.
|
||||
utils.ListenPortFlag.Value = 30399
|
||||
utils.IPCPathFlag.Value = utils.DirectoryString{Value: "bzzd.ipc"}
|
||||
|
||||
// Set up the cli app.
|
||||
app.Commands = nil
|
||||
app.Action = bzzd
|
||||
app.Flags = []cli.Flag{
|
||||
utils.IdentityFlag,
|
||||
utils.DataDirFlag,
|
||||
utils.BootnodesFlag,
|
||||
utils.KeyStoreDirFlag,
|
||||
utils.ListenPortFlag,
|
||||
utils.MaxPeersFlag,
|
||||
utils.NATFlag,
|
||||
utils.NodeKeyFileFlag,
|
||||
utils.NodeKeyHexFlag,
|
||||
utils.IPCDisabledFlag,
|
||||
utils.IPCApiFlag,
|
||||
utils.IPCPathFlag,
|
||||
// bzzd-specific flags
|
||||
EthAPI,
|
||||
SwarmConfigPathFlag,
|
||||
SwarmSwapDisabled,
|
||||
SwarmSyncDisabled,
|
||||
SwarmPortFlag,
|
||||
SwarmAccountFlag,
|
||||
ChequebookAddrFlag,
|
||||
}
|
||||
app.Flags = append(app.Flags, debug.Flags...)
|
||||
app.Before = func(ctx *cli.Context) error {
|
||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||
return debug.Setup(ctx)
|
||||
}
|
||||
app.After = func(ctx *cli.Context) error {
|
||||
debug.Exit()
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
func main() {
|
||||
if err := app.Run(os.Args); err != nil {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
func bzzd(ctx *cli.Context) error {
|
||||
stack := utils.MakeNode(ctx, clientIdentifier, gitCommit)
|
||||
registerBzzService(ctx, stack)
|
||||
utils.StartNode(stack)
|
||||
|
||||
// Add bootnodes as initial peers.
|
||||
if ctx.GlobalIsSet(utils.BootnodesFlag.Name) {
|
||||
injectBootnodes(stack.Server(), ctx.GlobalStringSlice(utils.BootnodesFlag.Name))
|
||||
} else {
|
||||
injectBootnodes(stack.Server(), defaultBootnodes)
|
||||
}
|
||||
|
||||
stack.Wait()
|
||||
return nil
|
||||
}
|
||||
|
||||
func registerBzzService(ctx *cli.Context, stack *node.Node) {
|
||||
prvkey := getAccount(ctx, stack)
|
||||
|
||||
chbookaddr := common.HexToAddress(ctx.GlobalString(ChequebookAddrFlag.Name))
|
||||
bzzdir := ctx.GlobalString(SwarmConfigPathFlag.Name)
|
||||
if bzzdir == "" {
|
||||
bzzdir = stack.InstanceDir()
|
||||
}
|
||||
bzzconfig, err := bzzapi.NewConfig(bzzdir, chbookaddr, prvkey)
|
||||
if err != nil {
|
||||
utils.Fatalf("unable to configure swarm: %v", err)
|
||||
}
|
||||
bzzport := ctx.GlobalString(SwarmPortFlag.Name)
|
||||
if len(bzzport) > 0 {
|
||||
bzzconfig.Port = bzzport
|
||||
}
|
||||
swapEnabled := !ctx.GlobalBool(SwarmSwapDisabled.Name)
|
||||
syncEnabled := !ctx.GlobalBool(SwarmSyncDisabled.Name)
|
||||
|
||||
ethapi := ctx.GlobalString(EthAPI.Name)
|
||||
if ethapi == "" {
|
||||
utils.Fatalf("Option %q must not be empty", EthAPI.Name)
|
||||
}
|
||||
|
||||
boot := func(ctx *node.ServiceContext) (node.Service, error) {
|
||||
client, err := ethclient.Dial(ethapi)
|
||||
if err != nil {
|
||||
utils.Fatalf("Can't connect: %v", err)
|
||||
}
|
||||
return swarm.NewSwarm(ctx, client, bzzconfig, swapEnabled, syncEnabled)
|
||||
}
|
||||
if err := stack.Register(boot); err != nil {
|
||||
utils.Fatalf("Failed to register the Swarm service: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func getAccount(ctx *cli.Context, stack *node.Node) *ecdsa.PrivateKey {
|
||||
keyid := ctx.GlobalString(SwarmAccountFlag.Name)
|
||||
if keyid == "" {
|
||||
utils.Fatalf("Option %q is required", SwarmAccountFlag.Name)
|
||||
}
|
||||
// Try to load the arg as a hex key file.
|
||||
if key, err := crypto.LoadECDSA(keyid); err == nil {
|
||||
glog.V(logger.Info).Infof("swarm account key loaded: %#x", crypto.PubkeyToAddress(key.PublicKey))
|
||||
return key
|
||||
}
|
||||
// Otherwise try getting it from the keystore.
|
||||
return decryptStoreAccount(stack.AccountManager(), keyid)
|
||||
}
|
||||
|
||||
func decryptStoreAccount(accman *accounts.Manager, account string) *ecdsa.PrivateKey {
|
||||
var a accounts.Account
|
||||
var err error
|
||||
if common.IsHexAddress(account) {
|
||||
a, err = accman.Find(accounts.Account{Address: common.HexToAddress(account)})
|
||||
} else if ix, ixerr := strconv.Atoi(account); ixerr == nil {
|
||||
a, err = accman.AccountByIndex(ix)
|
||||
} else {
|
||||
utils.Fatalf("Can't find swarm account key %s", account)
|
||||
}
|
||||
if err != nil {
|
||||
utils.Fatalf("Can't find swarm account key: %v", err)
|
||||
}
|
||||
keyjson, err := ioutil.ReadFile(a.File)
|
||||
if err != nil {
|
||||
utils.Fatalf("Can't load swarm account key: %v", err)
|
||||
}
|
||||
for i := 1; i <= 3; i++ {
|
||||
passphrase := promptPassphrase(fmt.Sprintf("Unlocking swarm account %s [%d/3]", a.Address.Hex(), i))
|
||||
key, err := accounts.DecryptKey(keyjson, passphrase)
|
||||
if err == nil {
|
||||
return key.PrivateKey
|
||||
}
|
||||
}
|
||||
utils.Fatalf("Can't decrypt swarm account key")
|
||||
return nil
|
||||
}
|
||||
|
||||
func promptPassphrase(prompt string) string {
|
||||
if prompt != "" {
|
||||
fmt.Println(prompt)
|
||||
}
|
||||
password, err := console.Stdin.PromptPassword("Passphrase: ")
|
||||
if err != nil {
|
||||
utils.Fatalf("Failed to read passphrase: %v", err)
|
||||
}
|
||||
return password
|
||||
}
|
||||
|
||||
func injectBootnodes(srv *p2p.Server, nodes []string) {
|
||||
for _, url := range nodes {
|
||||
n, err := discover.ParseNode(url)
|
||||
if err != nil {
|
||||
glog.Errorf("invalid bootnode %q", err)
|
||||
}
|
||||
srv.AddPeer(n)
|
||||
}
|
||||
}
|
||||
49
cmd/bzzhash/main.go
Normal file
49
cmd/bzzhash/main.go
Normal file
@@ -0,0 +1,49 @@
|
||||
// Copyright 2016 The go-ethereum Authors
|
||||
// This file is part of go-ethereum.
|
||||
//
|
||||
// go-ethereum is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// go-ethereum is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
// Command bzzhash computes a swarm tree hash.
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"runtime"
|
||||
|
||||
"github.com/ethereum/go-ethereum/swarm/storage"
|
||||
)
|
||||
|
||||
func main() {
|
||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||
|
||||
if len(os.Args) < 2 {
|
||||
fmt.Println("Usage: bzzhash <file name>")
|
||||
os.Exit(0)
|
||||
}
|
||||
f, err := os.Open(os.Args[1])
|
||||
if err != nil {
|
||||
fmt.Println("Error opening file " + os.Args[1])
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
stat, _ := f.Stat()
|
||||
chunker := storage.NewTreeChunker(storage.NewChunkerParams())
|
||||
key, err := chunker.Split(f, stat.Size(), nil, nil, nil)
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "%v\n", err)
|
||||
} else {
|
||||
fmt.Printf("%v\n", key)
|
||||
}
|
||||
}
|
||||
161
cmd/bzzup/main.go
Normal file
161
cmd/bzzup/main.go
Normal file
@@ -0,0 +1,161 @@
|
||||
// Copyright 2016 The go-ethereum Authors
|
||||
// This file is part of go-ethereum.
|
||||
//
|
||||
// go-ethereum is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// go-ethereum is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
// Command bzzup uploads files to the swarm HTTP API.
|
||||
package main
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"flag"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"mime"
|
||||
"net/http"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func main() {
|
||||
var (
|
||||
bzzapiFlag = flag.String("bzzapi", "http://127.0.0.1:8500", "Swarm HTTP endpoint")
|
||||
recursiveFlag = flag.Bool("recursive", false, "Upload directories recursively")
|
||||
manifestFlag = flag.Bool("manifest", true, "Skip automatic manifest upload")
|
||||
)
|
||||
log.SetOutput(os.Stderr)
|
||||
log.SetFlags(0)
|
||||
flag.Parse()
|
||||
if flag.NArg() != 1 {
|
||||
log.Fatal("need filename as the first and only argument")
|
||||
}
|
||||
|
||||
var (
|
||||
file = flag.Arg(0)
|
||||
client = &client{api: *bzzapiFlag}
|
||||
mroot manifest
|
||||
)
|
||||
fi, err := os.Stat(file)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
if fi.IsDir() {
|
||||
if !*recursiveFlag {
|
||||
log.Fatal("argument is a directory and recursive upload is disabled")
|
||||
}
|
||||
mroot, err = client.uploadDirectory(file)
|
||||
} else {
|
||||
mroot, err = client.uploadFile(file, fi)
|
||||
if *manifestFlag {
|
||||
// Wrap the raw file entry in a proper manifest so both hashes get printed.
|
||||
mroot = manifest{Entries: []manifest{mroot}}
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
log.Fatalln("upload failed:", err)
|
||||
}
|
||||
if *manifestFlag {
|
||||
hash, err := client.uploadManifest(mroot)
|
||||
if err != nil {
|
||||
log.Fatalln("manifest upload failed:", err)
|
||||
}
|
||||
mroot.Hash = hash
|
||||
}
|
||||
|
||||
// Print the manifest. This is the only output to stdout.
|
||||
mrootJSON, _ := json.MarshalIndent(mroot, "", " ")
|
||||
fmt.Println(string(mrootJSON))
|
||||
}
|
||||
|
||||
// client wraps interaction with the swarm HTTP gateway.
|
||||
type client struct {
|
||||
api string
|
||||
}
|
||||
|
||||
// manifest is the JSON representation of a swarm manifest.
|
||||
type manifest struct {
|
||||
Hash string `json:"hash,omitempty"`
|
||||
ContentType string `json:"contentType,omitempty"`
|
||||
Path string `json:"path,omitempty"`
|
||||
Entries []manifest `json:"entries,omitempty"`
|
||||
}
|
||||
|
||||
func (c *client) uploadFile(file string, fi os.FileInfo) (manifest, error) {
|
||||
hash, err := c.uploadFileContent(file, fi)
|
||||
m := manifest{
|
||||
Hash: hash,
|
||||
ContentType: mime.TypeByExtension(filepath.Ext(fi.Name())),
|
||||
}
|
||||
return m, err
|
||||
}
|
||||
|
||||
func (c *client) uploadDirectory(dir string) (manifest, error) {
|
||||
dirm := manifest{}
|
||||
prefix := filepath.ToSlash(dir) + "/"
|
||||
err := filepath.Walk(dir, func(path string, fi os.FileInfo, err error) error {
|
||||
if err != nil || fi.IsDir() {
|
||||
return err
|
||||
}
|
||||
if !strings.HasPrefix(path, dir) {
|
||||
return fmt.Errorf("path %s outside directory %s", path, dir)
|
||||
}
|
||||
entry, err := c.uploadFile(path, fi)
|
||||
entry.Path = strings.TrimPrefix(filepath.ToSlash(path), prefix)
|
||||
dirm.Entries = append(dirm.Entries, entry)
|
||||
return err
|
||||
})
|
||||
return dirm, err
|
||||
}
|
||||
|
||||
func (c *client) uploadFileContent(file string, fi os.FileInfo) (string, error) {
|
||||
fd, err := os.Open(file)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
defer fd.Close()
|
||||
log.Printf("uploading file %s (%d bytes)", file, fi.Size())
|
||||
return c.postRaw("application/octet-stream", fi.Size(), fd)
|
||||
}
|
||||
|
||||
func (c *client) uploadManifest(m manifest) (string, error) {
|
||||
jsm, err := json.Marshal(m)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
log.Println("uploading manifest")
|
||||
return c.postRaw("application/json", int64(len(jsm)), ioutil.NopCloser(bytes.NewReader(jsm)))
|
||||
}
|
||||
|
||||
func (c *client) postRaw(mimetype string, size int64, body io.ReadCloser) (string, error) {
|
||||
req, err := http.NewRequest("POST", c.api+"/bzzr:/", body)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
req.Header.Set("content-type", mimetype)
|
||||
req.ContentLength = size
|
||||
resp, err := http.DefaultClient.Do(req)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
if resp.StatusCode >= 400 {
|
||||
return "", fmt.Errorf("bad status: %s", resp.Status)
|
||||
}
|
||||
content, err := ioutil.ReadAll(resp.Body)
|
||||
return string(content), err
|
||||
}
|
||||
51
cmd/disasm/main.go
Normal file
51
cmd/disasm/main.go
Normal file
@@ -0,0 +1,51 @@
|
||||
// Copyright 2015 The go-ethereum Authors
|
||||
// This file is part of go-ethereum.
|
||||
//
|
||||
// go-ethereum is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// go-ethereum is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
// disasm is a pretty-printer for EVM bytecode.
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/core/vm"
|
||||
)
|
||||
|
||||
func main() {
|
||||
code, err := ioutil.ReadAll(os.Stdin)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
os.Exit(1)
|
||||
}
|
||||
code = common.Hex2Bytes(string(code[:len(code)-1]))
|
||||
fmt.Printf("%x\n", code)
|
||||
|
||||
for pc := uint64(0); pc < uint64(len(code)); pc++ {
|
||||
op := vm.OpCode(code[pc])
|
||||
fmt.Printf("%-5d %v", pc, op)
|
||||
|
||||
switch op {
|
||||
case vm.PUSH1, vm.PUSH2, vm.PUSH3, vm.PUSH4, vm.PUSH5, vm.PUSH6, vm.PUSH7, vm.PUSH8, vm.PUSH9, vm.PUSH10, vm.PUSH11, vm.PUSH12, vm.PUSH13, vm.PUSH14, vm.PUSH15, vm.PUSH16, vm.PUSH17, vm.PUSH18, vm.PUSH19, vm.PUSH20, vm.PUSH21, vm.PUSH22, vm.PUSH23, vm.PUSH24, vm.PUSH25, vm.PUSH26, vm.PUSH27, vm.PUSH28, vm.PUSH29, vm.PUSH30, vm.PUSH31, vm.PUSH32:
|
||||
a := uint64(op) - uint64(vm.PUSH1) + 1
|
||||
fmt.Printf(" => %x", code[pc+1:pc+1+a])
|
||||
|
||||
pc += a
|
||||
}
|
||||
fmt.Println()
|
||||
}
|
||||
}
|
||||
227
cmd/ethtest/main.go
Normal file
227
cmd/ethtest/main.go
Normal file
@@ -0,0 +1,227 @@
|
||||
// Copyright 2014 The go-ethereum Authors
|
||||
// This file is part of go-ethereum.
|
||||
//
|
||||
// go-ethereum is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// go-ethereum is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
// ethtest executes Ethereum JSON tests.
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/ethereum/go-ethereum/logger/glog"
|
||||
"github.com/ethereum/go-ethereum/params"
|
||||
"github.com/ethereum/go-ethereum/tests"
|
||||
"gopkg.in/urfave/cli.v1"
|
||||
)
|
||||
|
||||
var (
|
||||
continueOnError = false
|
||||
testExtension = ".json"
|
||||
defaultTest = "all"
|
||||
defaultDir = "."
|
||||
allTests = []string{"BlockTests", "StateTests", "TransactionTests", "VMTests", "RLPTests"}
|
||||
testDirMapping = map[string]string{"BlockTests": "BlockchainTests"}
|
||||
skipTests = []string{}
|
||||
|
||||
TestFlag = cli.StringFlag{
|
||||
Name: "test",
|
||||
Usage: "Test type (string): VMTests, TransactionTests, StateTests, BlockTests",
|
||||
Value: defaultTest,
|
||||
}
|
||||
FileFlag = cli.StringFlag{
|
||||
Name: "file",
|
||||
Usage: "Test file or directory. Directories are searched for .json files 1 level deep",
|
||||
Value: defaultDir,
|
||||
EnvVar: "ETHEREUM_TEST_PATH",
|
||||
}
|
||||
ContinueOnErrorFlag = cli.BoolFlag{
|
||||
Name: "continue",
|
||||
Usage: "Continue running tests on error (true) or [default] exit immediately (false)",
|
||||
}
|
||||
ReadStdInFlag = cli.BoolFlag{
|
||||
Name: "stdin",
|
||||
Usage: "Accept input from stdin instead of reading from file",
|
||||
}
|
||||
SkipTestsFlag = cli.StringFlag{
|
||||
Name: "skip",
|
||||
Usage: "Tests names to skip",
|
||||
}
|
||||
TraceFlag = cli.BoolFlag{
|
||||
Name: "trace",
|
||||
Usage: "Enable VM tracing",
|
||||
}
|
||||
)
|
||||
|
||||
func runTestWithReader(test string, r io.Reader) error {
|
||||
glog.Infoln("runTest", test)
|
||||
var err error
|
||||
switch strings.ToLower(test) {
|
||||
case "bk", "block", "blocktest", "blockchaintest", "blocktests", "blockchaintests":
|
||||
err = tests.RunBlockTestWithReader(params.MainNetHomesteadBlock, params.MainNetDAOForkBlock, params.MainNetHomesteadGasRepriceBlock, r, skipTests)
|
||||
case "st", "state", "statetest", "statetests":
|
||||
rs := ¶ms.ChainConfig{HomesteadBlock: params.MainNetHomesteadBlock, DAOForkBlock: params.MainNetDAOForkBlock, DAOForkSupport: true, EIP150Block: params.MainNetHomesteadGasRepriceBlock}
|
||||
err = tests.RunStateTestWithReader(rs, r, skipTests)
|
||||
case "tx", "transactiontest", "transactiontests":
|
||||
rs := ¶ms.ChainConfig{HomesteadBlock: params.MainNetHomesteadBlock, DAOForkBlock: params.MainNetDAOForkBlock, DAOForkSupport: true, EIP150Block: params.MainNetHomesteadGasRepriceBlock}
|
||||
err = tests.RunTransactionTestsWithReader(rs, r, skipTests)
|
||||
case "vm", "vmtest", "vmtests":
|
||||
err = tests.RunVmTestWithReader(r, skipTests)
|
||||
case "rlp", "rlptest", "rlptests":
|
||||
err = tests.RunRLPTestWithReader(r, skipTests)
|
||||
default:
|
||||
err = fmt.Errorf("Invalid test type specified: %v", test)
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func getFiles(path string) ([]string, error) {
|
||||
glog.Infoln("getFiles", path)
|
||||
var files []string
|
||||
f, err := os.Open(path)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer f.Close()
|
||||
|
||||
fi, err := f.Stat()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
switch mode := fi.Mode(); {
|
||||
case mode.IsDir():
|
||||
fi, _ := ioutil.ReadDir(path)
|
||||
files = make([]string, len(fi))
|
||||
for i, v := range fi {
|
||||
// only go 1 depth and leave directory entires blank
|
||||
if !v.IsDir() && v.Name()[len(v.Name())-len(testExtension):len(v.Name())] == testExtension {
|
||||
files[i] = filepath.Join(path, v.Name())
|
||||
glog.Infoln("Found file", files[i])
|
||||
}
|
||||
}
|
||||
case mode.IsRegular():
|
||||
files = make([]string, 1)
|
||||
files[0] = path
|
||||
}
|
||||
|
||||
return files, nil
|
||||
}
|
||||
|
||||
func runSuite(test, file string) {
|
||||
var tests []string
|
||||
|
||||
if test == defaultTest {
|
||||
tests = allTests
|
||||
} else {
|
||||
tests = []string{test}
|
||||
}
|
||||
|
||||
for _, curTest := range tests {
|
||||
glog.Infoln("runSuite", curTest, file)
|
||||
var err error
|
||||
var files []string
|
||||
if test == defaultTest {
|
||||
// check if we have an explicit directory mapping for the test
|
||||
if _, ok := testDirMapping[curTest]; ok {
|
||||
files, err = getFiles(filepath.Join(file, testDirMapping[curTest]))
|
||||
} else {
|
||||
// otherwise assume test name
|
||||
files, err = getFiles(filepath.Join(file, curTest))
|
||||
}
|
||||
} else {
|
||||
files, err = getFiles(file)
|
||||
}
|
||||
if err != nil {
|
||||
glog.Fatalln(err)
|
||||
}
|
||||
|
||||
if len(files) == 0 {
|
||||
glog.Warningln("No files matched path")
|
||||
}
|
||||
for _, curFile := range files {
|
||||
// Skip blank entries
|
||||
if len(curFile) == 0 {
|
||||
continue
|
||||
}
|
||||
|
||||
r, err := os.Open(curFile)
|
||||
if err != nil {
|
||||
glog.Fatalln(err)
|
||||
}
|
||||
defer r.Close()
|
||||
|
||||
err = runTestWithReader(curTest, r)
|
||||
if err != nil {
|
||||
if continueOnError {
|
||||
glog.Errorln(err)
|
||||
} else {
|
||||
glog.Fatalln(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func setupApp(c *cli.Context) error {
|
||||
flagTest := c.GlobalString(TestFlag.Name)
|
||||
flagFile := c.GlobalString(FileFlag.Name)
|
||||
continueOnError = c.GlobalBool(ContinueOnErrorFlag.Name)
|
||||
useStdIn := c.GlobalBool(ReadStdInFlag.Name)
|
||||
skipTests = strings.Split(c.GlobalString(SkipTestsFlag.Name), " ")
|
||||
|
||||
if !useStdIn {
|
||||
runSuite(flagTest, flagFile)
|
||||
} else {
|
||||
if err := runTestWithReader(flagTest, os.Stdin); err != nil {
|
||||
glog.Fatalln(err)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func main() {
|
||||
glog.SetToStderr(true)
|
||||
|
||||
app := cli.NewApp()
|
||||
app.Name = "ethtest"
|
||||
app.Usage = "go-ethereum test interface"
|
||||
app.Action = setupApp
|
||||
app.Version = "0.2.0"
|
||||
app.Author = "go-ethereum team"
|
||||
|
||||
app.Flags = []cli.Flag{
|
||||
TestFlag,
|
||||
FileFlag,
|
||||
ContinueOnErrorFlag,
|
||||
ReadStdInFlag,
|
||||
SkipTestsFlag,
|
||||
TraceFlag,
|
||||
}
|
||||
|
||||
if err := app.Run(os.Args); err != nil {
|
||||
glog.Fatalln(err)
|
||||
}
|
||||
|
||||
}
|
||||
309
cmd/evm/main.go
Normal file
309
cmd/evm/main.go
Normal file
@@ -0,0 +1,309 @@
|
||||
// Copyright 2014 The go-ethereum Authors
|
||||
// This file is part of go-ethereum.
|
||||
//
|
||||
// go-ethereum is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// go-ethereum is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
// evm executes EVM code snippets.
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"math/big"
|
||||
"os"
|
||||
"runtime"
|
||||
"time"
|
||||
|
||||
"github.com/ethereum/go-ethereum/cmd/utils"
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/core"
|
||||
"github.com/ethereum/go-ethereum/core/state"
|
||||
"github.com/ethereum/go-ethereum/core/types"
|
||||
"github.com/ethereum/go-ethereum/core/vm"
|
||||
"github.com/ethereum/go-ethereum/crypto"
|
||||
"github.com/ethereum/go-ethereum/ethdb"
|
||||
"github.com/ethereum/go-ethereum/logger/glog"
|
||||
"github.com/ethereum/go-ethereum/params"
|
||||
"gopkg.in/urfave/cli.v1"
|
||||
)
|
||||
|
||||
var gitCommit = "" // Git SHA1 commit hash of the release (set via linker flags)
|
||||
|
||||
var (
|
||||
app = utils.NewApp(gitCommit, "the evm command line interface")
|
||||
|
||||
DebugFlag = cli.BoolFlag{
|
||||
Name: "debug",
|
||||
Usage: "output full trace logs",
|
||||
}
|
||||
ForceJitFlag = cli.BoolFlag{
|
||||
Name: "forcejit",
|
||||
Usage: "forces jit compilation",
|
||||
}
|
||||
DisableJitFlag = cli.BoolFlag{
|
||||
Name: "nojit",
|
||||
Usage: "disabled jit compilation",
|
||||
}
|
||||
CodeFlag = cli.StringFlag{
|
||||
Name: "code",
|
||||
Usage: "EVM code",
|
||||
}
|
||||
CodeFileFlag = cli.StringFlag{
|
||||
Name: "codefile",
|
||||
Usage: "file containing EVM code",
|
||||
}
|
||||
GasFlag = cli.StringFlag{
|
||||
Name: "gas",
|
||||
Usage: "gas limit for the evm",
|
||||
Value: "10000000000",
|
||||
}
|
||||
PriceFlag = cli.StringFlag{
|
||||
Name: "price",
|
||||
Usage: "price set for the evm",
|
||||
Value: "0",
|
||||
}
|
||||
ValueFlag = cli.StringFlag{
|
||||
Name: "value",
|
||||
Usage: "value set for the evm",
|
||||
Value: "0",
|
||||
}
|
||||
DumpFlag = cli.BoolFlag{
|
||||
Name: "dump",
|
||||
Usage: "dumps the state after the run",
|
||||
}
|
||||
InputFlag = cli.StringFlag{
|
||||
Name: "input",
|
||||
Usage: "input for the EVM",
|
||||
}
|
||||
SysStatFlag = cli.BoolFlag{
|
||||
Name: "sysstat",
|
||||
Usage: "display system stats",
|
||||
}
|
||||
VerbosityFlag = cli.IntFlag{
|
||||
Name: "verbosity",
|
||||
Usage: "sets the verbosity level",
|
||||
}
|
||||
CreateFlag = cli.BoolFlag{
|
||||
Name: "create",
|
||||
Usage: "indicates the action should be create rather than call",
|
||||
}
|
||||
)
|
||||
|
||||
func init() {
|
||||
app.Flags = []cli.Flag{
|
||||
CreateFlag,
|
||||
DebugFlag,
|
||||
VerbosityFlag,
|
||||
ForceJitFlag,
|
||||
DisableJitFlag,
|
||||
SysStatFlag,
|
||||
CodeFlag,
|
||||
CodeFileFlag,
|
||||
GasFlag,
|
||||
PriceFlag,
|
||||
ValueFlag,
|
||||
DumpFlag,
|
||||
InputFlag,
|
||||
}
|
||||
app.Action = run
|
||||
}
|
||||
|
||||
func run(ctx *cli.Context) error {
|
||||
glog.SetToStderr(true)
|
||||
glog.SetV(ctx.GlobalInt(VerbosityFlag.Name))
|
||||
|
||||
db, _ := ethdb.NewMemDatabase()
|
||||
statedb, _ := state.New(common.Hash{}, db)
|
||||
sender := statedb.CreateAccount(common.StringToAddress("sender"))
|
||||
|
||||
logger := vm.NewStructLogger(nil)
|
||||
|
||||
vmenv := NewEnv(statedb, common.StringToAddress("evmuser"), common.Big(ctx.GlobalString(ValueFlag.Name)), vm.Config{
|
||||
Debug: ctx.GlobalBool(DebugFlag.Name),
|
||||
ForceJit: ctx.GlobalBool(ForceJitFlag.Name),
|
||||
EnableJit: !ctx.GlobalBool(DisableJitFlag.Name),
|
||||
Tracer: logger,
|
||||
})
|
||||
|
||||
tstart := time.Now()
|
||||
|
||||
var (
|
||||
code []byte
|
||||
ret []byte
|
||||
err error
|
||||
)
|
||||
|
||||
if ctx.GlobalString(CodeFlag.Name) != "" {
|
||||
code = common.Hex2Bytes(ctx.GlobalString(CodeFlag.Name))
|
||||
} else {
|
||||
var hexcode []byte
|
||||
if ctx.GlobalString(CodeFileFlag.Name) != "" {
|
||||
var err error
|
||||
hexcode, err = ioutil.ReadFile(ctx.GlobalString(CodeFileFlag.Name))
|
||||
if err != nil {
|
||||
fmt.Printf("Could not load code from file: %v\n", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
} else {
|
||||
var err error
|
||||
hexcode, err = ioutil.ReadAll(os.Stdin)
|
||||
if err != nil {
|
||||
fmt.Printf("Could not load code from stdin: %v\n", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
code = common.Hex2Bytes(string(hexcode[:]))
|
||||
}
|
||||
|
||||
if ctx.GlobalBool(CreateFlag.Name) {
|
||||
input := append(code, common.Hex2Bytes(ctx.GlobalString(InputFlag.Name))...)
|
||||
ret, _, err = vmenv.Create(
|
||||
sender,
|
||||
input,
|
||||
common.Big(ctx.GlobalString(GasFlag.Name)),
|
||||
common.Big(ctx.GlobalString(PriceFlag.Name)),
|
||||
common.Big(ctx.GlobalString(ValueFlag.Name)),
|
||||
)
|
||||
} else {
|
||||
receiver := statedb.CreateAccount(common.StringToAddress("receiver"))
|
||||
|
||||
receiver.SetCode(crypto.Keccak256Hash(code), code)
|
||||
ret, err = vmenv.Call(
|
||||
sender,
|
||||
receiver.Address(),
|
||||
common.Hex2Bytes(ctx.GlobalString(InputFlag.Name)),
|
||||
common.Big(ctx.GlobalString(GasFlag.Name)),
|
||||
common.Big(ctx.GlobalString(PriceFlag.Name)),
|
||||
common.Big(ctx.GlobalString(ValueFlag.Name)),
|
||||
)
|
||||
}
|
||||
vmdone := time.Since(tstart)
|
||||
|
||||
if ctx.GlobalBool(DumpFlag.Name) {
|
||||
statedb.Commit(true)
|
||||
fmt.Println(string(statedb.Dump()))
|
||||
}
|
||||
vm.StdErrFormat(logger.StructLogs())
|
||||
|
||||
if ctx.GlobalBool(SysStatFlag.Name) {
|
||||
var mem runtime.MemStats
|
||||
runtime.ReadMemStats(&mem)
|
||||
fmt.Printf("vm took %v\n", vmdone)
|
||||
fmt.Printf(`alloc: %d
|
||||
tot alloc: %d
|
||||
no. malloc: %d
|
||||
heap alloc: %d
|
||||
heap objs: %d
|
||||
num gc: %d
|
||||
`, mem.Alloc, mem.TotalAlloc, mem.Mallocs, mem.HeapAlloc, mem.HeapObjects, mem.NumGC)
|
||||
}
|
||||
|
||||
fmt.Printf("OUT: 0x%x", ret)
|
||||
if err != nil {
|
||||
fmt.Printf(" error: %v", err)
|
||||
}
|
||||
fmt.Println()
|
||||
return nil
|
||||
}
|
||||
|
||||
func main() {
|
||||
if err := app.Run(os.Args); err != nil {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
type VMEnv struct {
|
||||
state *state.StateDB
|
||||
block *types.Block
|
||||
|
||||
transactor *common.Address
|
||||
value *big.Int
|
||||
|
||||
depth int
|
||||
Gas *big.Int
|
||||
time *big.Int
|
||||
logs []vm.StructLog
|
||||
|
||||
evm *vm.EVM
|
||||
}
|
||||
|
||||
func NewEnv(state *state.StateDB, transactor common.Address, value *big.Int, cfg vm.Config) *VMEnv {
|
||||
env := &VMEnv{
|
||||
state: state,
|
||||
transactor: &transactor,
|
||||
value: value,
|
||||
time: big.NewInt(time.Now().Unix()),
|
||||
}
|
||||
|
||||
env.evm = vm.New(env, cfg)
|
||||
return env
|
||||
}
|
||||
|
||||
// ruleSet implements vm.ChainConfig and will always default to the homestead rule set.
|
||||
type ruleSet struct{}
|
||||
|
||||
func (ruleSet) IsHomestead(*big.Int) bool { return true }
|
||||
func (ruleSet) GasTable(*big.Int) params.GasTable {
|
||||
return params.GasTableHomesteadGasRepriceFork
|
||||
}
|
||||
|
||||
func (self *VMEnv) ChainConfig() *params.ChainConfig { return params.TestChainConfig }
|
||||
func (self *VMEnv) Vm() vm.Vm { return self.evm }
|
||||
func (self *VMEnv) Db() vm.Database { return self.state }
|
||||
func (self *VMEnv) SnapshotDatabase() int { return self.state.Snapshot() }
|
||||
func (self *VMEnv) RevertToSnapshot(snap int) { self.state.RevertToSnapshot(snap) }
|
||||
func (self *VMEnv) Origin() common.Address { return *self.transactor }
|
||||
func (self *VMEnv) BlockNumber() *big.Int { return common.Big0 }
|
||||
func (self *VMEnv) Coinbase() common.Address { return *self.transactor }
|
||||
func (self *VMEnv) Time() *big.Int { return self.time }
|
||||
func (self *VMEnv) Difficulty() *big.Int { return common.Big1 }
|
||||
func (self *VMEnv) BlockHash() []byte { return make([]byte, 32) }
|
||||
func (self *VMEnv) Value() *big.Int { return self.value }
|
||||
func (self *VMEnv) GasLimit() *big.Int { return big.NewInt(1000000000) }
|
||||
func (self *VMEnv) VmType() vm.Type { return vm.StdVmTy }
|
||||
func (self *VMEnv) Depth() int { return 0 }
|
||||
func (self *VMEnv) SetDepth(i int) { self.depth = i }
|
||||
func (self *VMEnv) GetHash(n uint64) common.Hash {
|
||||
if self.block.Number().Cmp(big.NewInt(int64(n))) == 0 {
|
||||
return self.block.Hash()
|
||||
}
|
||||
return common.Hash{}
|
||||
}
|
||||
func (self *VMEnv) AddLog(log *vm.Log) {
|
||||
self.state.AddLog(log)
|
||||
}
|
||||
func (self *VMEnv) CanTransfer(from common.Address, balance *big.Int) bool {
|
||||
return self.state.GetBalance(from).Cmp(balance) >= 0
|
||||
}
|
||||
func (self *VMEnv) Transfer(from, to vm.Account, amount *big.Int) {
|
||||
core.Transfer(from, to, amount)
|
||||
}
|
||||
|
||||
func (self *VMEnv) Call(caller vm.ContractRef, addr common.Address, data []byte, gas, price, value *big.Int) ([]byte, error) {
|
||||
self.Gas = gas
|
||||
return core.Call(self, caller, addr, data, gas, price, value)
|
||||
}
|
||||
|
||||
func (self *VMEnv) CallCode(caller vm.ContractRef, addr common.Address, data []byte, gas, price, value *big.Int) ([]byte, error) {
|
||||
return core.CallCode(self, caller, addr, data, gas, price, value)
|
||||
}
|
||||
|
||||
func (self *VMEnv) DelegateCall(caller vm.ContractRef, addr common.Address, data []byte, gas, price *big.Int) ([]byte, error) {
|
||||
return core.DelegateCall(self, caller, addr, data, gas, price)
|
||||
}
|
||||
|
||||
func (self *VMEnv) Create(caller vm.ContractRef, data []byte, gas, price, value *big.Int) ([]byte, common.Address, error) {
|
||||
return core.Create(self, caller, data, gas, price, value)
|
||||
}
|
||||
338
cmd/geth/accountcmd.go
Normal file
338
cmd/geth/accountcmd.go
Normal file
@@ -0,0 +1,338 @@
|
||||
// Copyright 2016 The go-ethereum Authors
|
||||
// This file is part of go-ethereum.
|
||||
//
|
||||
// go-ethereum is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// go-ethereum is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
|
||||
"github.com/ethereum/go-ethereum/accounts"
|
||||
"github.com/ethereum/go-ethereum/cmd/utils"
|
||||
"github.com/ethereum/go-ethereum/console"
|
||||
"github.com/ethereum/go-ethereum/crypto"
|
||||
"github.com/ethereum/go-ethereum/logger"
|
||||
"github.com/ethereum/go-ethereum/logger/glog"
|
||||
"gopkg.in/urfave/cli.v1"
|
||||
)
|
||||
|
||||
var (
|
||||
walletCommand = cli.Command{
|
||||
Name: "wallet",
|
||||
Usage: "Manage Ethereum presale wallets",
|
||||
ArgsUsage: "",
|
||||
Category: "ACCOUNT COMMANDS",
|
||||
Description: `
|
||||
geth wallet import /path/to/my/presale.wallet
|
||||
|
||||
will prompt for your password and imports your ether presale account.
|
||||
It can be used non-interactively with the --password option taking a
|
||||
passwordfile as argument containing the wallet password in plaintext.
|
||||
|
||||
`,
|
||||
Subcommands: []cli.Command{
|
||||
{
|
||||
Action: importWallet,
|
||||
Name: "import",
|
||||
Usage: "Import Ethereum presale wallet",
|
||||
ArgsUsage: "<keyFile>",
|
||||
Description: `
|
||||
TODO: Please write this
|
||||
`,
|
||||
},
|
||||
},
|
||||
}
|
||||
accountCommand = cli.Command{
|
||||
Action: accountList,
|
||||
Name: "account",
|
||||
Usage: "Manage accounts",
|
||||
ArgsUsage: "",
|
||||
Category: "ACCOUNT COMMANDS",
|
||||
Description: `
|
||||
Manage accounts lets you create new accounts, list all existing accounts,
|
||||
import a private key into a new account.
|
||||
|
||||
' help' shows a list of subcommands or help for one subcommand.
|
||||
|
||||
It supports interactive mode, when you are prompted for password as well as
|
||||
non-interactive mode where passwords are supplied via a given password file.
|
||||
Non-interactive mode is only meant for scripted use on test networks or known
|
||||
safe environments.
|
||||
|
||||
Make sure you remember the password you gave when creating a new account (with
|
||||
either new or import). Without it you are not able to unlock your account.
|
||||
|
||||
Note that exporting your key in unencrypted format is NOT supported.
|
||||
|
||||
Keys are stored under <DATADIR>/keystore.
|
||||
It is safe to transfer the entire directory or the individual keys therein
|
||||
between ethereum nodes by simply copying.
|
||||
Make sure you backup your keys regularly.
|
||||
|
||||
In order to use your account to send transactions, you need to unlock them using
|
||||
the '--unlock' option. The argument is a space separated list of addresses or
|
||||
indexes. If used non-interactively with a passwordfile, the file should contain
|
||||
the respective passwords one per line. If you unlock n accounts and the password
|
||||
file contains less than n entries, then the last password is meant to apply to
|
||||
all remaining accounts.
|
||||
|
||||
And finally. DO NOT FORGET YOUR PASSWORD.
|
||||
`,
|
||||
Subcommands: []cli.Command{
|
||||
{
|
||||
Action: accountList,
|
||||
Name: "list",
|
||||
Usage: "Print account addresses",
|
||||
ArgsUsage: " ",
|
||||
Description: `
|
||||
TODO: Please write this
|
||||
`,
|
||||
},
|
||||
{
|
||||
Action: accountCreate,
|
||||
Name: "new",
|
||||
Usage: "Create a new account",
|
||||
ArgsUsage: " ",
|
||||
Description: `
|
||||
geth account new
|
||||
|
||||
Creates a new account. Prints the address.
|
||||
|
||||
The account is saved in encrypted format, you are prompted for a passphrase.
|
||||
|
||||
You must remember this passphrase to unlock your account in the future.
|
||||
|
||||
For non-interactive use the passphrase can be specified with the --password flag:
|
||||
|
||||
geth --password <passwordfile> account new
|
||||
|
||||
Note, this is meant to be used for testing only, it is a bad idea to save your
|
||||
password to file or expose in any other way.
|
||||
`,
|
||||
},
|
||||
{
|
||||
Action: accountUpdate,
|
||||
Name: "update",
|
||||
Usage: "Update an existing account",
|
||||
ArgsUsage: "<address>",
|
||||
Description: `
|
||||
geth account update <address>
|
||||
|
||||
Update an existing account.
|
||||
|
||||
The account is saved in the newest version in encrypted format, you are prompted
|
||||
for a passphrase to unlock the account and another to save the updated file.
|
||||
|
||||
This same command can therefore be used to migrate an account of a deprecated
|
||||
format to the newest format or change the password for an account.
|
||||
|
||||
For non-interactive use the passphrase can be specified with the --password flag:
|
||||
|
||||
geth --password <passwordfile> account update <address>
|
||||
|
||||
Since only one password can be given, only format update can be performed,
|
||||
changing your password is only possible interactively.
|
||||
`,
|
||||
},
|
||||
{
|
||||
Action: accountImport,
|
||||
Name: "import",
|
||||
Usage: "Import a private key into a new account",
|
||||
ArgsUsage: "<keyFile>",
|
||||
Description: `
|
||||
geth account import <keyfile>
|
||||
|
||||
Imports an unencrypted private key from <keyfile> and creates a new account.
|
||||
Prints the address.
|
||||
|
||||
The keyfile is assumed to contain an unencrypted private key in hexadecimal format.
|
||||
|
||||
The account is saved in encrypted format, you are prompted for a passphrase.
|
||||
|
||||
You must remember this passphrase to unlock your account in the future.
|
||||
|
||||
For non-interactive use the passphrase can be specified with the -password flag:
|
||||
|
||||
geth --password <passwordfile> account import <keyfile>
|
||||
|
||||
Note:
|
||||
As you can directly copy your encrypted accounts to another ethereum instance,
|
||||
this import mechanism is not needed when you transfer an account between
|
||||
nodes.
|
||||
`,
|
||||
},
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
func accountList(ctx *cli.Context) error {
|
||||
stack := utils.MakeNode(ctx, clientIdentifier, gitCommit)
|
||||
for i, acct := range stack.AccountManager().Accounts() {
|
||||
fmt.Printf("Account #%d: {%x} %s\n", i, acct.Address, acct.File)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// tries unlocking the specified account a few times.
|
||||
func unlockAccount(ctx *cli.Context, accman *accounts.Manager, address string, i int, passwords []string) (accounts.Account, string) {
|
||||
account, err := utils.MakeAddress(accman, address)
|
||||
if err != nil {
|
||||
utils.Fatalf("Could not list accounts: %v", err)
|
||||
}
|
||||
for trials := 0; trials < 3; trials++ {
|
||||
prompt := fmt.Sprintf("Unlocking account %s | Attempt %d/%d", address, trials+1, 3)
|
||||
password := getPassPhrase(prompt, false, i, passwords)
|
||||
err = accman.Unlock(account, password)
|
||||
if err == nil {
|
||||
glog.V(logger.Info).Infof("Unlocked account %x", account.Address)
|
||||
return account, password
|
||||
}
|
||||
if err, ok := err.(*accounts.AmbiguousAddrError); ok {
|
||||
glog.V(logger.Info).Infof("Unlocked account %x", account.Address)
|
||||
return ambiguousAddrRecovery(accman, err, password), password
|
||||
}
|
||||
if err != accounts.ErrDecrypt {
|
||||
// No need to prompt again if the error is not decryption-related.
|
||||
break
|
||||
}
|
||||
}
|
||||
// All trials expended to unlock account, bail out
|
||||
utils.Fatalf("Failed to unlock account %s (%v)", address, err)
|
||||
return accounts.Account{}, ""
|
||||
}
|
||||
|
||||
// getPassPhrase retrieves the passwor associated with an account, either fetched
|
||||
// from a list of preloaded passphrases, or requested interactively from the user.
|
||||
func getPassPhrase(prompt string, confirmation bool, i int, passwords []string) string {
|
||||
// If a list of passwords was supplied, retrieve from them
|
||||
if len(passwords) > 0 {
|
||||
if i < len(passwords) {
|
||||
return passwords[i]
|
||||
}
|
||||
return passwords[len(passwords)-1]
|
||||
}
|
||||
// Otherwise prompt the user for the password
|
||||
if prompt != "" {
|
||||
fmt.Println(prompt)
|
||||
}
|
||||
password, err := console.Stdin.PromptPassword("Passphrase: ")
|
||||
if err != nil {
|
||||
utils.Fatalf("Failed to read passphrase: %v", err)
|
||||
}
|
||||
if confirmation {
|
||||
confirm, err := console.Stdin.PromptPassword("Repeat passphrase: ")
|
||||
if err != nil {
|
||||
utils.Fatalf("Failed to read passphrase confirmation: %v", err)
|
||||
}
|
||||
if password != confirm {
|
||||
utils.Fatalf("Passphrases do not match")
|
||||
}
|
||||
}
|
||||
return password
|
||||
}
|
||||
|
||||
func ambiguousAddrRecovery(am *accounts.Manager, err *accounts.AmbiguousAddrError, auth string) accounts.Account {
|
||||
fmt.Printf("Multiple key files exist for address %x:\n", err.Addr)
|
||||
for _, a := range err.Matches {
|
||||
fmt.Println(" ", a.File)
|
||||
}
|
||||
fmt.Println("Testing your passphrase against all of them...")
|
||||
var match *accounts.Account
|
||||
for _, a := range err.Matches {
|
||||
if err := am.Unlock(a, auth); err == nil {
|
||||
match = &a
|
||||
break
|
||||
}
|
||||
}
|
||||
if match == nil {
|
||||
utils.Fatalf("None of the listed files could be unlocked.")
|
||||
}
|
||||
fmt.Printf("Your passphrase unlocked %s\n", match.File)
|
||||
fmt.Println("In order to avoid this warning, you need to remove the following duplicate key files:")
|
||||
for _, a := range err.Matches {
|
||||
if a != *match {
|
||||
fmt.Println(" ", a.File)
|
||||
}
|
||||
}
|
||||
return *match
|
||||
}
|
||||
|
||||
// accountCreate creates a new account into the keystore defined by the CLI flags.
|
||||
func accountCreate(ctx *cli.Context) error {
|
||||
stack := utils.MakeNode(ctx, clientIdentifier, gitCommit)
|
||||
password := getPassPhrase("Your new account is locked with a password. Please give a password. Do not forget this password.", true, 0, utils.MakePasswordList(ctx))
|
||||
|
||||
account, err := stack.AccountManager().NewAccount(password)
|
||||
if err != nil {
|
||||
utils.Fatalf("Failed to create account: %v", err)
|
||||
}
|
||||
fmt.Printf("Address: {%x}\n", account.Address)
|
||||
return nil
|
||||
}
|
||||
|
||||
// accountUpdate transitions an account from a previous format to the current
|
||||
// one, also providing the possibility to change the pass-phrase.
|
||||
func accountUpdate(ctx *cli.Context) error {
|
||||
if len(ctx.Args()) == 0 {
|
||||
utils.Fatalf("No accounts specified to update")
|
||||
}
|
||||
stack := utils.MakeNode(ctx, clientIdentifier, gitCommit)
|
||||
account, oldPassword := unlockAccount(ctx, stack.AccountManager(), ctx.Args().First(), 0, nil)
|
||||
newPassword := getPassPhrase("Please give a new password. Do not forget this password.", true, 0, nil)
|
||||
if err := stack.AccountManager().Update(account, oldPassword, newPassword); err != nil {
|
||||
utils.Fatalf("Could not update the account: %v", err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func importWallet(ctx *cli.Context) error {
|
||||
keyfile := ctx.Args().First()
|
||||
if len(keyfile) == 0 {
|
||||
utils.Fatalf("keyfile must be given as argument")
|
||||
}
|
||||
keyJson, err := ioutil.ReadFile(keyfile)
|
||||
if err != nil {
|
||||
utils.Fatalf("Could not read wallet file: %v", err)
|
||||
}
|
||||
|
||||
stack := utils.MakeNode(ctx, clientIdentifier, gitCommit)
|
||||
passphrase := getPassPhrase("", false, 0, utils.MakePasswordList(ctx))
|
||||
acct, err := stack.AccountManager().ImportPreSaleKey(keyJson, passphrase)
|
||||
if err != nil {
|
||||
utils.Fatalf("%v", err)
|
||||
}
|
||||
fmt.Printf("Address: {%x}\n", acct.Address)
|
||||
return nil
|
||||
}
|
||||
|
||||
func accountImport(ctx *cli.Context) error {
|
||||
keyfile := ctx.Args().First()
|
||||
if len(keyfile) == 0 {
|
||||
utils.Fatalf("keyfile must be given as argument")
|
||||
}
|
||||
key, err := crypto.LoadECDSA(keyfile)
|
||||
if err != nil {
|
||||
utils.Fatalf("Failed to load the private key: %v", err)
|
||||
}
|
||||
stack := utils.MakeNode(ctx, clientIdentifier, gitCommit)
|
||||
passphrase := getPassPhrase("Your new account is locked with a password. Please give a password. Do not forget this password.", true, 0, utils.MakePasswordList(ctx))
|
||||
acct, err := stack.AccountManager().ImportECDSA(key, passphrase)
|
||||
if err != nil {
|
||||
utils.Fatalf("Could not create the account: %v", err)
|
||||
}
|
||||
fmt.Printf("Address: {%x}\n", acct.Address)
|
||||
return nil
|
||||
}
|
||||
292
cmd/geth/accountcmd_test.go
Normal file
292
cmd/geth/accountcmd_test.go
Normal file
@@ -0,0 +1,292 @@
|
||||
// Copyright 2016 The go-ethereum Authors
|
||||
// This file is part of go-ethereum.
|
||||
//
|
||||
// go-ethereum is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// go-ethereum is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/cespare/cp"
|
||||
)
|
||||
|
||||
// These tests are 'smoke tests' for the account related
|
||||
// subcommands and flags.
|
||||
//
|
||||
// For most tests, the test files from package accounts
|
||||
// are copied into a temporary keystore directory.
|
||||
|
||||
func tmpDatadirWithKeystore(t *testing.T) string {
|
||||
datadir := tmpdir(t)
|
||||
keystore := filepath.Join(datadir, "keystore")
|
||||
source := filepath.Join("..", "..", "accounts", "testdata", "keystore")
|
||||
if err := cp.CopyAll(keystore, source); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
return datadir
|
||||
}
|
||||
|
||||
func TestAccountListEmpty(t *testing.T) {
|
||||
geth := runGeth(t, "account")
|
||||
geth.expectExit()
|
||||
}
|
||||
|
||||
func TestAccountList(t *testing.T) {
|
||||
datadir := tmpDatadirWithKeystore(t)
|
||||
geth := runGeth(t, "--datadir", datadir, "account")
|
||||
defer geth.expectExit()
|
||||
if runtime.GOOS == "windows" {
|
||||
geth.expect(`
|
||||
Account #0: {7ef5a6135f1fd6a02593eedc869c6d41d934aef8} {{.Datadir}}\keystore\UTC--2016-03-22T12-57-55.920751759Z--7ef5a6135f1fd6a02593eedc869c6d41d934aef8
|
||||
Account #1: {f466859ead1932d743d622cb74fc058882e8648a} {{.Datadir}}\keystore\aaa
|
||||
Account #2: {289d485d9771714cce91d3393d764e1311907acc} {{.Datadir}}\keystore\zzz
|
||||
`)
|
||||
} else {
|
||||
geth.expect(`
|
||||
Account #0: {7ef5a6135f1fd6a02593eedc869c6d41d934aef8} {{.Datadir}}/keystore/UTC--2016-03-22T12-57-55.920751759Z--7ef5a6135f1fd6a02593eedc869c6d41d934aef8
|
||||
Account #1: {f466859ead1932d743d622cb74fc058882e8648a} {{.Datadir}}/keystore/aaa
|
||||
Account #2: {289d485d9771714cce91d3393d764e1311907acc} {{.Datadir}}/keystore/zzz
|
||||
`)
|
||||
}
|
||||
}
|
||||
|
||||
func TestAccountNew(t *testing.T) {
|
||||
geth := runGeth(t, "--lightkdf", "account", "new")
|
||||
defer geth.expectExit()
|
||||
geth.expect(`
|
||||
Your new account is locked with a password. Please give a password. Do not forget this password.
|
||||
!! Unsupported terminal, password will be echoed.
|
||||
Passphrase: {{.InputLine "foobar"}}
|
||||
Repeat passphrase: {{.InputLine "foobar"}}
|
||||
`)
|
||||
geth.expectRegexp(`Address: \{[0-9a-f]{40}\}\n`)
|
||||
}
|
||||
|
||||
func TestAccountNewBadRepeat(t *testing.T) {
|
||||
geth := runGeth(t, "--lightkdf", "account", "new")
|
||||
defer geth.expectExit()
|
||||
geth.expect(`
|
||||
Your new account is locked with a password. Please give a password. Do not forget this password.
|
||||
!! Unsupported terminal, password will be echoed.
|
||||
Passphrase: {{.InputLine "something"}}
|
||||
Repeat passphrase: {{.InputLine "something else"}}
|
||||
Fatal: Passphrases do not match
|
||||
`)
|
||||
}
|
||||
|
||||
func TestAccountUpdate(t *testing.T) {
|
||||
datadir := tmpDatadirWithKeystore(t)
|
||||
geth := runGeth(t,
|
||||
"--datadir", datadir, "--lightkdf",
|
||||
"account", "update", "f466859ead1932d743d622cb74fc058882e8648a")
|
||||
defer geth.expectExit()
|
||||
geth.expect(`
|
||||
Unlocking account f466859ead1932d743d622cb74fc058882e8648a | Attempt 1/3
|
||||
!! Unsupported terminal, password will be echoed.
|
||||
Passphrase: {{.InputLine "foobar"}}
|
||||
Please give a new password. Do not forget this password.
|
||||
Passphrase: {{.InputLine "foobar2"}}
|
||||
Repeat passphrase: {{.InputLine "foobar2"}}
|
||||
`)
|
||||
}
|
||||
|
||||
func TestWalletImport(t *testing.T) {
|
||||
geth := runGeth(t, "--lightkdf", "wallet", "import", "testdata/guswallet.json")
|
||||
defer geth.expectExit()
|
||||
geth.expect(`
|
||||
!! Unsupported terminal, password will be echoed.
|
||||
Passphrase: {{.InputLine "foo"}}
|
||||
Address: {d4584b5f6229b7be90727b0fc8c6b91bb427821f}
|
||||
`)
|
||||
|
||||
files, err := ioutil.ReadDir(filepath.Join(geth.Datadir, "keystore"))
|
||||
if len(files) != 1 {
|
||||
t.Errorf("expected one key file in keystore directory, found %d files (error: %v)", len(files), err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestWalletImportBadPassword(t *testing.T) {
|
||||
geth := runGeth(t, "--lightkdf", "wallet", "import", "testdata/guswallet.json")
|
||||
defer geth.expectExit()
|
||||
geth.expect(`
|
||||
!! Unsupported terminal, password will be echoed.
|
||||
Passphrase: {{.InputLine "wrong"}}
|
||||
Fatal: could not decrypt key with given passphrase
|
||||
`)
|
||||
}
|
||||
|
||||
func TestUnlockFlag(t *testing.T) {
|
||||
datadir := tmpDatadirWithKeystore(t)
|
||||
geth := runGeth(t,
|
||||
"--datadir", datadir, "--nat", "none", "--nodiscover", "--dev",
|
||||
"--unlock", "f466859ead1932d743d622cb74fc058882e8648a",
|
||||
"js", "testdata/empty.js")
|
||||
geth.expect(`
|
||||
Unlocking account f466859ead1932d743d622cb74fc058882e8648a | Attempt 1/3
|
||||
!! Unsupported terminal, password will be echoed.
|
||||
Passphrase: {{.InputLine "foobar"}}
|
||||
`)
|
||||
geth.expectExit()
|
||||
|
||||
wantMessages := []string{
|
||||
"Unlocked account f466859ead1932d743d622cb74fc058882e8648a",
|
||||
}
|
||||
for _, m := range wantMessages {
|
||||
if strings.Index(geth.stderrText(), m) == -1 {
|
||||
t.Errorf("stderr text does not contain %q", m)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestUnlockFlagWrongPassword(t *testing.T) {
|
||||
datadir := tmpDatadirWithKeystore(t)
|
||||
geth := runGeth(t,
|
||||
"--datadir", datadir, "--nat", "none", "--nodiscover", "--dev",
|
||||
"--unlock", "f466859ead1932d743d622cb74fc058882e8648a")
|
||||
defer geth.expectExit()
|
||||
geth.expect(`
|
||||
Unlocking account f466859ead1932d743d622cb74fc058882e8648a | Attempt 1/3
|
||||
!! Unsupported terminal, password will be echoed.
|
||||
Passphrase: {{.InputLine "wrong1"}}
|
||||
Unlocking account f466859ead1932d743d622cb74fc058882e8648a | Attempt 2/3
|
||||
Passphrase: {{.InputLine "wrong2"}}
|
||||
Unlocking account f466859ead1932d743d622cb74fc058882e8648a | Attempt 3/3
|
||||
Passphrase: {{.InputLine "wrong3"}}
|
||||
Fatal: Failed to unlock account f466859ead1932d743d622cb74fc058882e8648a (could not decrypt key with given passphrase)
|
||||
`)
|
||||
}
|
||||
|
||||
// https://github.com/ethereum/go-ethereum/issues/1785
|
||||
func TestUnlockFlagMultiIndex(t *testing.T) {
|
||||
datadir := tmpDatadirWithKeystore(t)
|
||||
geth := runGeth(t,
|
||||
"--datadir", datadir, "--nat", "none", "--nodiscover", "--dev",
|
||||
"--unlock", "0,2",
|
||||
"js", "testdata/empty.js")
|
||||
geth.expect(`
|
||||
Unlocking account 0 | Attempt 1/3
|
||||
!! Unsupported terminal, password will be echoed.
|
||||
Passphrase: {{.InputLine "foobar"}}
|
||||
Unlocking account 2 | Attempt 1/3
|
||||
Passphrase: {{.InputLine "foobar"}}
|
||||
`)
|
||||
geth.expectExit()
|
||||
|
||||
wantMessages := []string{
|
||||
"Unlocked account 7ef5a6135f1fd6a02593eedc869c6d41d934aef8",
|
||||
"Unlocked account 289d485d9771714cce91d3393d764e1311907acc",
|
||||
}
|
||||
for _, m := range wantMessages {
|
||||
if strings.Index(geth.stderrText(), m) == -1 {
|
||||
t.Errorf("stderr text does not contain %q", m)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestUnlockFlagPasswordFile(t *testing.T) {
|
||||
datadir := tmpDatadirWithKeystore(t)
|
||||
geth := runGeth(t,
|
||||
"--datadir", datadir, "--nat", "none", "--nodiscover", "--dev",
|
||||
"--password", "testdata/passwords.txt", "--unlock", "0,2",
|
||||
"js", "testdata/empty.js")
|
||||
geth.expectExit()
|
||||
|
||||
wantMessages := []string{
|
||||
"Unlocked account 7ef5a6135f1fd6a02593eedc869c6d41d934aef8",
|
||||
"Unlocked account 289d485d9771714cce91d3393d764e1311907acc",
|
||||
}
|
||||
for _, m := range wantMessages {
|
||||
if strings.Index(geth.stderrText(), m) == -1 {
|
||||
t.Errorf("stderr text does not contain %q", m)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestUnlockFlagPasswordFileWrongPassword(t *testing.T) {
|
||||
datadir := tmpDatadirWithKeystore(t)
|
||||
geth := runGeth(t,
|
||||
"--datadir", datadir, "--nat", "none", "--nodiscover", "--dev",
|
||||
"--password", "testdata/wrong-passwords.txt", "--unlock", "0,2")
|
||||
defer geth.expectExit()
|
||||
geth.expect(`
|
||||
Fatal: Failed to unlock account 0 (could not decrypt key with given passphrase)
|
||||
`)
|
||||
}
|
||||
|
||||
func TestUnlockFlagAmbiguous(t *testing.T) {
|
||||
store := filepath.Join("..", "..", "accounts", "testdata", "dupes")
|
||||
geth := runGeth(t,
|
||||
"--keystore", store, "--nat", "none", "--nodiscover", "--dev",
|
||||
"--unlock", "f466859ead1932d743d622cb74fc058882e8648a",
|
||||
"js", "testdata/empty.js")
|
||||
defer geth.expectExit()
|
||||
|
||||
// Helper for the expect template, returns absolute keystore path.
|
||||
geth.setTemplateFunc("keypath", func(file string) string {
|
||||
abs, _ := filepath.Abs(filepath.Join(store, file))
|
||||
return abs
|
||||
})
|
||||
geth.expect(`
|
||||
Unlocking account f466859ead1932d743d622cb74fc058882e8648a | Attempt 1/3
|
||||
!! Unsupported terminal, password will be echoed.
|
||||
Passphrase: {{.InputLine "foobar"}}
|
||||
Multiple key files exist for address f466859ead1932d743d622cb74fc058882e8648a:
|
||||
{{keypath "1"}}
|
||||
{{keypath "2"}}
|
||||
Testing your passphrase against all of them...
|
||||
Your passphrase unlocked {{keypath "1"}}
|
||||
In order to avoid this warning, you need to remove the following duplicate key files:
|
||||
{{keypath "2"}}
|
||||
`)
|
||||
geth.expectExit()
|
||||
|
||||
wantMessages := []string{
|
||||
"Unlocked account f466859ead1932d743d622cb74fc058882e8648a",
|
||||
}
|
||||
for _, m := range wantMessages {
|
||||
if strings.Index(geth.stderrText(), m) == -1 {
|
||||
t.Errorf("stderr text does not contain %q", m)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestUnlockFlagAmbiguousWrongPassword(t *testing.T) {
|
||||
store := filepath.Join("..", "..", "accounts", "testdata", "dupes")
|
||||
geth := runGeth(t,
|
||||
"--keystore", store, "--nat", "none", "--nodiscover", "--dev",
|
||||
"--unlock", "f466859ead1932d743d622cb74fc058882e8648a")
|
||||
defer geth.expectExit()
|
||||
|
||||
// Helper for the expect template, returns absolute keystore path.
|
||||
geth.setTemplateFunc("keypath", func(file string) string {
|
||||
abs, _ := filepath.Abs(filepath.Join(store, file))
|
||||
return abs
|
||||
})
|
||||
geth.expect(`
|
||||
Unlocking account f466859ead1932d743d622cb74fc058882e8648a | Attempt 1/3
|
||||
!! Unsupported terminal, password will be echoed.
|
||||
Passphrase: {{.InputLine "wrong"}}
|
||||
Multiple key files exist for address f466859ead1932d743d622cb74fc058882e8648a:
|
||||
{{keypath "1"}}
|
||||
{{keypath "2"}}
|
||||
Testing your passphrase against all of them...
|
||||
Fatal: None of the listed files could be unlocked.
|
||||
`)
|
||||
geth.expectExit()
|
||||
}
|
||||
303
cmd/geth/chaincmd.go
Normal file
303
cmd/geth/chaincmd.go
Normal file
@@ -0,0 +1,303 @@
|
||||
// Copyright 2015 The go-ethereum Authors
|
||||
// This file is part of go-ethereum.
|
||||
//
|
||||
// go-ethereum is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// go-ethereum is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"strconv"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/ethereum/go-ethereum/cmd/utils"
|
||||
"github.com/ethereum/go-ethereum/common"
|
||||
"github.com/ethereum/go-ethereum/console"
|
||||
"github.com/ethereum/go-ethereum/core"
|
||||
"github.com/ethereum/go-ethereum/core/state"
|
||||
"github.com/ethereum/go-ethereum/core/types"
|
||||
"github.com/ethereum/go-ethereum/ethdb"
|
||||
"github.com/ethereum/go-ethereum/logger/glog"
|
||||
"github.com/ethereum/go-ethereum/trie"
|
||||
"github.com/syndtr/goleveldb/leveldb/util"
|
||||
"gopkg.in/urfave/cli.v1"
|
||||
)
|
||||
|
||||
var (
|
||||
importCommand = cli.Command{
|
||||
Action: importChain,
|
||||
Name: "import",
|
||||
Usage: "Import a blockchain file",
|
||||
ArgsUsage: "<filename>",
|
||||
Category: "BLOCKCHAIN COMMANDS",
|
||||
Description: `
|
||||
TODO: Please write this
|
||||
`,
|
||||
}
|
||||
exportCommand = cli.Command{
|
||||
Action: exportChain,
|
||||
Name: "export",
|
||||
Usage: "Export blockchain into file",
|
||||
ArgsUsage: "<filename> [<blockNumFirst> <blockNumLast>]",
|
||||
Category: "BLOCKCHAIN COMMANDS",
|
||||
Description: `
|
||||
Requires a first argument of the file to write to.
|
||||
Optional second and third arguments control the first and
|
||||
last block to write. In this mode, the file will be appended
|
||||
if already existing.
|
||||
`,
|
||||
}
|
||||
upgradedbCommand = cli.Command{
|
||||
Action: upgradeDB,
|
||||
Name: "upgradedb",
|
||||
Usage: "Upgrade chainblock database",
|
||||
ArgsUsage: " ",
|
||||
Category: "BLOCKCHAIN COMMANDS",
|
||||
Description: `
|
||||
TODO: Please write this
|
||||
`,
|
||||
}
|
||||
removedbCommand = cli.Command{
|
||||
Action: removeDB,
|
||||
Name: "removedb",
|
||||
Usage: "Remove blockchain and state databases",
|
||||
ArgsUsage: " ",
|
||||
Category: "BLOCKCHAIN COMMANDS",
|
||||
Description: `
|
||||
TODO: Please write this
|
||||
`,
|
||||
}
|
||||
dumpCommand = cli.Command{
|
||||
Action: dump,
|
||||
Name: "dump",
|
||||
Usage: "Dump a specific block from storage",
|
||||
ArgsUsage: "[<blockHash> | <blockNum>]...",
|
||||
Category: "BLOCKCHAIN COMMANDS",
|
||||
Description: `
|
||||
The arguments are interpreted as block numbers or hashes.
|
||||
Use "ethereum dump 0" to dump the genesis block.
|
||||
`,
|
||||
}
|
||||
)
|
||||
|
||||
func importChain(ctx *cli.Context) error {
|
||||
if len(ctx.Args()) != 1 {
|
||||
utils.Fatalf("This command requires an argument.")
|
||||
}
|
||||
if ctx.GlobalBool(utils.TestNetFlag.Name) {
|
||||
state.StartingNonce = 1048576 // (2**20)
|
||||
}
|
||||
stack := makeFullNode(ctx)
|
||||
chain, chainDb := utils.MakeChain(ctx, stack)
|
||||
defer chainDb.Close()
|
||||
|
||||
// Start periodically gathering memory profiles
|
||||
var peakMemAlloc, peakMemSys uint64
|
||||
go func() {
|
||||
stats := new(runtime.MemStats)
|
||||
for {
|
||||
runtime.ReadMemStats(stats)
|
||||
if atomic.LoadUint64(&peakMemAlloc) < stats.Alloc {
|
||||
atomic.StoreUint64(&peakMemAlloc, stats.Alloc)
|
||||
}
|
||||
if atomic.LoadUint64(&peakMemSys) < stats.Sys {
|
||||
atomic.StoreUint64(&peakMemSys, stats.Sys)
|
||||
}
|
||||
time.Sleep(5 * time.Second)
|
||||
}
|
||||
}()
|
||||
// Import the chain
|
||||
start := time.Now()
|
||||
if err := utils.ImportChain(chain, ctx.Args().First()); err != nil {
|
||||
utils.Fatalf("Import error: %v", err)
|
||||
}
|
||||
fmt.Printf("Import done in %v.\n\n", time.Since(start))
|
||||
|
||||
// Output pre-compaction stats mostly to see the import trashing
|
||||
db := chainDb.(*ethdb.LDBDatabase)
|
||||
|
||||
stats, err := db.LDB().GetProperty("leveldb.stats")
|
||||
if err != nil {
|
||||
utils.Fatalf("Failed to read database stats: %v", err)
|
||||
}
|
||||
fmt.Println(stats)
|
||||
fmt.Printf("Trie cache misses: %d\n", trie.CacheMisses())
|
||||
fmt.Printf("Trie cache unloads: %d\n\n", trie.CacheUnloads())
|
||||
|
||||
// Print the memory statistics used by the importing
|
||||
mem := new(runtime.MemStats)
|
||||
runtime.ReadMemStats(mem)
|
||||
|
||||
fmt.Printf("Object memory: %.3f MB current, %.3f MB peak\n", float64(mem.Alloc)/1024/1024, float64(atomic.LoadUint64(&peakMemAlloc))/1024/1024)
|
||||
fmt.Printf("System memory: %.3f MB current, %.3f MB peak\n", float64(mem.Sys)/1024/1024, float64(atomic.LoadUint64(&peakMemSys))/1024/1024)
|
||||
fmt.Printf("Allocations: %.3f million\n", float64(mem.Mallocs)/1000000)
|
||||
fmt.Printf("GC pause: %v\n\n", time.Duration(mem.PauseTotalNs))
|
||||
|
||||
// Compact the entire database to more accurately measure disk io and print the stats
|
||||
start = time.Now()
|
||||
fmt.Println("Compacting entire database...")
|
||||
if err = db.LDB().CompactRange(util.Range{}); err != nil {
|
||||
utils.Fatalf("Compaction failed: %v", err)
|
||||
}
|
||||
fmt.Printf("Compaction done in %v.\n\n", time.Since(start))
|
||||
|
||||
stats, err = db.LDB().GetProperty("leveldb.stats")
|
||||
if err != nil {
|
||||
utils.Fatalf("Failed to read database stats: %v", err)
|
||||
}
|
||||
fmt.Println(stats)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func exportChain(ctx *cli.Context) error {
|
||||
if len(ctx.Args()) < 1 {
|
||||
utils.Fatalf("This command requires an argument.")
|
||||
}
|
||||
stack := makeFullNode(ctx)
|
||||
chain, _ := utils.MakeChain(ctx, stack)
|
||||
start := time.Now()
|
||||
|
||||
var err error
|
||||
fp := ctx.Args().First()
|
||||
if len(ctx.Args()) < 3 {
|
||||
err = utils.ExportChain(chain, fp)
|
||||
} else {
|
||||
// This can be improved to allow for numbers larger than 9223372036854775807
|
||||
first, ferr := strconv.ParseInt(ctx.Args().Get(1), 10, 64)
|
||||
last, lerr := strconv.ParseInt(ctx.Args().Get(2), 10, 64)
|
||||
if ferr != nil || lerr != nil {
|
||||
utils.Fatalf("Export error in parsing parameters: block number not an integer\n")
|
||||
}
|
||||
if first < 0 || last < 0 {
|
||||
utils.Fatalf("Export error: block number must be greater than 0\n")
|
||||
}
|
||||
err = utils.ExportAppendChain(chain, fp, uint64(first), uint64(last))
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
utils.Fatalf("Export error: %v\n", err)
|
||||
}
|
||||
fmt.Printf("Export done in %v", time.Since(start))
|
||||
return nil
|
||||
}
|
||||
|
||||
func removeDB(ctx *cli.Context) error {
|
||||
stack := utils.MakeNode(ctx, clientIdentifier, gitCommit)
|
||||
dbdir := stack.ResolvePath(utils.ChainDbName(ctx))
|
||||
if !common.FileExist(dbdir) {
|
||||
fmt.Println(dbdir, "does not exist")
|
||||
return nil
|
||||
}
|
||||
|
||||
fmt.Println(dbdir)
|
||||
confirm, err := console.Stdin.PromptConfirm("Remove this database?")
|
||||
switch {
|
||||
case err != nil:
|
||||
utils.Fatalf("%v", err)
|
||||
case !confirm:
|
||||
fmt.Println("Operation aborted")
|
||||
default:
|
||||
fmt.Println("Removing...")
|
||||
start := time.Now()
|
||||
os.RemoveAll(dbdir)
|
||||
fmt.Printf("Removed in %v\n", time.Since(start))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func upgradeDB(ctx *cli.Context) error {
|
||||
glog.Infoln("Upgrading blockchain database")
|
||||
|
||||
stack := utils.MakeNode(ctx, clientIdentifier, gitCommit)
|
||||
chain, chainDb := utils.MakeChain(ctx, stack)
|
||||
bcVersion := core.GetBlockChainVersion(chainDb)
|
||||
if bcVersion == 0 {
|
||||
bcVersion = core.BlockChainVersion
|
||||
}
|
||||
|
||||
// Export the current chain.
|
||||
filename := fmt.Sprintf("blockchain_%d_%s.chain", bcVersion, time.Now().Format("20060102_150405"))
|
||||
exportFile := filepath.Join(ctx.GlobalString(utils.DataDirFlag.Name), filename)
|
||||
if err := utils.ExportChain(chain, exportFile); err != nil {
|
||||
utils.Fatalf("Unable to export chain for reimport %s", err)
|
||||
}
|
||||
chainDb.Close()
|
||||
if dir := dbDirectory(chainDb); dir != "" {
|
||||
os.RemoveAll(dir)
|
||||
}
|
||||
|
||||
// Import the chain file.
|
||||
chain, chainDb = utils.MakeChain(ctx, stack)
|
||||
core.WriteBlockChainVersion(chainDb, core.BlockChainVersion)
|
||||
err := utils.ImportChain(chain, exportFile)
|
||||
chainDb.Close()
|
||||
if err != nil {
|
||||
utils.Fatalf("Import error %v (a backup is made in %s, use the import command to import it)", err, exportFile)
|
||||
} else {
|
||||
os.Remove(exportFile)
|
||||
glog.Infoln("Import finished")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func dbDirectory(db ethdb.Database) string {
|
||||
ldb, ok := db.(*ethdb.LDBDatabase)
|
||||
if !ok {
|
||||
return ""
|
||||
}
|
||||
return ldb.Path()
|
||||
}
|
||||
|
||||
func dump(ctx *cli.Context) error {
|
||||
stack := makeFullNode(ctx)
|
||||
chain, chainDb := utils.MakeChain(ctx, stack)
|
||||
for _, arg := range ctx.Args() {
|
||||
var block *types.Block
|
||||
if hashish(arg) {
|
||||
block = chain.GetBlockByHash(common.HexToHash(arg))
|
||||
} else {
|
||||
num, _ := strconv.Atoi(arg)
|
||||
block = chain.GetBlockByNumber(uint64(num))
|
||||
}
|
||||
if block == nil {
|
||||
fmt.Println("{}")
|
||||
utils.Fatalf("block not found")
|
||||
} else {
|
||||
state, err := state.New(block.Root(), chainDb)
|
||||
if err != nil {
|
||||
utils.Fatalf("could not create new state: %v", err)
|
||||
}
|
||||
fmt.Printf("%s\n", state.Dump())
|
||||
}
|
||||
}
|
||||
chainDb.Close()
|
||||
return nil
|
||||
}
|
||||
|
||||
// hashish returns true for strings that look like hashes.
|
||||
func hashish(x string) bool {
|
||||
_, err := strconv.Atoi(x)
|
||||
return err != nil
|
||||
}
|
||||
|
||||
func closeAll(dbs ...ethdb.Database) {
|
||||
for _, db := range dbs {
|
||||
db.Close()
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user