forked from Locipro/loci-coin-sale
-
Notifications
You must be signed in to change notification settings - Fork 1
/
test-results.txt
206 lines (197 loc) · 17.3 KB
/
test-results.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
Using network 'development'.
Compiling ./contracts/IRefundHandler.sol...
Compiling ./contracts/LOCIcoin.sol...
Compiling ./contracts/LOCIsale.sol...
Compiling ./contracts/Migrations.sol...
Compiling ./test/helpers/MockSale.sol...
Compiling ./test/helpers/MockToken.sol...
Compiling zeppelin-solidity/contracts/lifecycle/Pausable.sol...
Compiling zeppelin-solidity/contracts/math/SafeMath.sol...
Compiling zeppelin-solidity/contracts/ownership/Contactable.sol...
Compiling zeppelin-solidity/contracts/ownership/Ownable.sol...
Compiling zeppelin-solidity/contracts/token/BasicToken.sol...
Compiling zeppelin-solidity/contracts/token/ERC20.sol...
Compiling zeppelin-solidity/contracts/token/ERC20Basic.sol...
Compiling zeppelin-solidity/contracts/token/StandardToken.sol...
Compilation warnings encountered:
zeppelin-solidity/contracts/token/StandardToken.sol:73:3: Warning: No visibility specified. Defaulting to "public".
function increaseApproval (address _spender, uint _addedValue)
^
Spanning multiple lines.
,zeppelin-solidity/contracts/token/StandardToken.sol:80:3: Warning: No visibility specified. Defaulting to "public".
function decreaseApproval (address _spender, uint _subtractedValue)
^
Spanning multiple lines.
,zeppelin-solidity/contracts/ownership/Ownable.sol:20:3: Warning: No visibility specified. Defaulting to "public".
function Ownable() {
^
Spanning multiple lines.
,/Users/demmons/sandbox/locicoin/test/helpers/MockSale.sol:7:5: Warning: No visibility specified. Defaulting to "public".
function MockSale(
^
Spanning multiple lines.
,/Users/demmons/sandbox/locicoin/test/helpers/MockToken.sol:7:5: Warning: No visibility specified. Defaulting to "public".
function MockToken(uint256 _totalSupply) LOCIcoin(_totalSupply){}
^---------------------------------------------------------------^
,/Users/demmons/sandbox/locicoin/test/helpers/MockSale.sol:30:9: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
determineDiscountTranche(); // just to trigger the check and update
^------------------------^
,/Users/demmons/sandbox/locicoin/test/helpers/MockSale.sol:34:9: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
determineDiscountTranche(); // just to trigger the check and update
^------------------------^
,/Users/demmons/sandbox/locicoin/test/helpers/MockSale.sol:38:9: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
determineDiscountTranche(); // just to trigger the check and update
^------------------------^
,zeppelin-solidity/contracts/math/SafeMath.sol:9:3: Warning: Function state mutability can be restricted to pure
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
^
Spanning multiple lines.
,zeppelin-solidity/contracts/math/SafeMath.sol:15:3: Warning: Function state mutability can be restricted to pure
function div(uint256 a, uint256 b) internal constant returns (uint256) {
^
Spanning multiple lines.
,zeppelin-solidity/contracts/math/SafeMath.sol:22:3: Warning: Function state mutability can be restricted to pure
function sub(uint256 a, uint256 b) internal constant returns (uint256) {
^
Spanning multiple lines.
,zeppelin-solidity/contracts/math/SafeMath.sol:27:3: Warning: Function state mutability can be restricted to pure
function add(uint256 a, uint256 b) internal constant returns (uint256) {
^
Spanning multiple lines.
[0m[0m
[0m Contract: Sale Tests[0m
[0m Contract: LOCIsale tranche roundTokensSold cap moves us to the next trancheDiscount[0m
[32m ✓[0m[90m should have a peggedETHUSD[0m[31m (109ms)[0m
[32m ✓[0m[90m should have the correct initial settings[0m[31m (525ms)[0m
[32m ✓[0m[90m should have sane discount tranche values[0m[31m (496ms)[0m
[32m ✓[0m[90m should have the correct token balance after initial token transfer[0m[31m (255ms)[0m
[32m ✓[0m[90m should throw exception when less than minimum contribution[0m[31m (340ms)[0m
[32m ✓[0m[90m should throw exception when less than minimum contribution[0m[31m (364ms)[0m
[32m ✓[0m[90m should allow purchase of 14300 Ether @ 33 cents = 13,000,000 * Math.pow(10,18) tokens[0m[31m (1044ms)[0m
[32m ✓[0m[90m should have non-zero balance but still less than minimum goal after first successful transaction attempt[0m[31m (339ms)[0m
[32m ✓[0m[90m should move to the second discount tranche when advancing time[0m[31m (204ms)[0m
[32m ✓[0m[90m should allow purchase of 16133 Ether @ 44 cents ~ = 10999772 * Math.pow(10,18) tokens[0m[31m (963ms)[0m
[32m ✓[0m[90m Even though TIME has not elapsed, move to next tranche due to TOKEN CAP per round = (start-round1)/3 ~ = 5500001 * Math.pow(10,18) tokens[0m[31m (1084ms)[0m
[32m ✓[0m[90m should NOT move to the third discount tranche when advancing time because we ALREADY advanced due to TOKEN cap[0m[31m (253ms)[0m
[32m ✓[0m[90m should move to the fourth discount tranche when advancing time[0m[31m (216ms)[0m
[32m ✓[0m[90m should allow purchase of 12000 Ether @ 75 cents ~ = 4800000 * Math.pow(10,18) tokens[0m[31m (1160ms)[0m
[32m ✓[0m[90m should allow additional purchase of 12000 Ether @ 75 cents ~ = CAP(4180000) * Math.pow(10,18) tokens[0m[31m (1019ms)[0m
[32m ✓[0m[90m should have correct tokens accounted for[0m[31m (166ms)[0m
[32m ✓[0m[90m should have correct weiContributions accounted for[0m[31m (121ms)[0m
[0m Contract: LOCIsale hard cap ETH in wei[0m
[32m ✓[0m[90m should have the correct token balance after initial token transfer[0m[31m (236ms)[0m
[32m ✓[0m[90m should have the correct hard cap ETH settings[0m
[32m ✓[0m[90m should allow purchase up to the max tokens available & without going over hardCap[0m[31m (1028ms)[0m
[32m ✓[0m[90m should have correct weiContributions accounted for[0m[31m (122ms)[0m
[32m ✓[0m[90m should have correct tokens accounted for[0m[31m (130ms)[0m
[0m Contract: LOCIsale inputs with specific tests[0m
[32m ✓[0m[90m should have a peggedETHUSD[0m[31m (107ms)[0m
[32m ✓[0m[90m should have the correct initial settings[0m[31m (353ms)[0m
[32m ✓[0m[90m should have sane discount tranche values[0m[31m (469ms)[0m
[32m ✓[0m[90m should have the correct token balance after initial token transfer[0m[31m (247ms)[0m
[32m ✓[0m[90m should throw exception when less than minimum contribution[0m[31m (337ms)[0m
[32m ✓[0m[90m should throw exception when less than minimum contribution[0m[31m (337ms)[0m
[32m ✓[0m[90m should allow purchase of 14300 Ether @ 33 cents = 13,000,000 * Math.pow(10,18) tokens[0m[31m (963ms)[0m
[32m ✓[0m[90m should have non-zero balance but still less than minimum goal after first successful transaction attempt[0m[31m (339ms)[0m
[32m ✓[0m[90m should move to the second discount tranche when advancing time[0m[31m (219ms)[0m
[32m ✓[0m[90m should allow purchase of 16133 Ether @ 44 cents ~ = 10999772 * Math.pow(10,18) tokens[0m[31m (991ms)[0m
[32m ✓[0m[90m should move to the third discount tranche when advancing time[0m[31m (261ms)[0m
[32m ✓[0m[90m should allow purchase of 20900 Ether @ 57 cents ~ = 11000000 * Math.pow(10,18) tokens[0m[31m (975ms)[0m
[32m ✓[0m[90m should move to the fourth discount tranche when advancing time[0m[31m (221ms)[0m
[32m ✓[0m[90m should allow purchase of 12000 Ether @ 75 cents ~ = 4800000 * Math.pow(10,18) tokens[0m[31m (1041ms)[0m
[32m ✓[0m[90m should stop allowing contributions after the sale end date[0m[31m (191ms)[0m
[32m ✓[0m[90m should have correct weiContributions accounted for[0m[31m (131ms)[0m
[32m ✓[0m[90m should have correct tokens accounted for[0m[31m (131ms)[0m
[0m Contract: LOCIsale inputs with generic tests[0m
[32m ✓[0m[90m should have a peggedETHUSD[0m[31m (93ms)[0m
[32m ✓[0m[90m should have the correct initial settings[0m[31m (154ms)[0m
[32m ✓[0m[90m should have sane discount tranche values[0m[31m (453ms)[0m
[32m ✓[0m[90m should have the correct token balance after initial token transfer[0m[31m (228ms)[0m
[32m ✓[0m[90m should throw exception when less than minimum contribution[0m[31m (332ms)[0m
[32m ✓[0m[90m should throw exception when less than minimum contribution[0m[31m (334ms)[0m
[32m ✓[0m[90m should cap ether at max individual contribution (refund remaining ether & allocate max contribution # of tokens); verifies first tranche discount[0m[31m (1330ms)[0m
[32m ✓[0m[90m should not allow owner to transfer wei before minimum goal is met[0m[31m (341ms)[0m
[32m ✓[0m[90m should not allow owner to recover unsold tokens before end of sale[0m[31m (347ms)[0m
[32m ✓[0m[90m should have non-zero balance but still less than minimum goal after first successful transaction attempt[0m[31m (339ms)[0m
[32m ✓[0m[90m should move to the second discount tranche when advancing time[0m[31m (200ms)[0m
[0m Contract: Basics[0m
[32m ✓[0m[90m should have a peggedETHUSD[0m[31m (82ms)[0m
[32m ✓[0m[90m should have the correct initial settings[0m[31m (150ms)[0m
[32m ✓[0m[90m should have sane discount tranche values[0m[31m (248ms)[0m
[32m ✓[0m[90m should have the correct token balance after initial token transfer[0m[31m (254ms)[0m
[32m ✓[0m[90m should throw exception when less than minimum contribution[0m[31m (358ms)[0m
[32m ✓[0m[90m should cap ether at max individual contribution (refund remaining ether & allocate max contribution # of tokens); verifies first tranche discount[0m[31m (1335ms)[0m
[32m ✓[0m[90m should not allow owner to transfer wei before minimum goal is met[0m[31m (340ms)[0m
[32m ✓[0m[90m should not allow owner to recover unsold tokens before end of sale[0m[31m (344ms)[0m
[32m ✓[0m[90m should have non-zero balance but still less than minimum goal after first successful transaction attempt[0m[31m (327ms)[0m
[32m ✓[0m[90m should move to the second discount tranche when advancing time[0m[31m (212ms)[0m
[32m ✓[0m[90m should prevent any further contribution from someone who has hit their max limit[0m[31m (211ms)[0m
[32m ✓[0m[90m should allow minimum individual contribution; verifies second tranche discount[0m[31m (1355ms)[0m
[32m ✓[0m[90m should revert to zero discount after all tranche end dates have been passed[0m[31m (1455ms)[0m
[32m ✓[0m[90m should approach minimum goal without exceeding[0m[31m (816ms)[0m
[32m ✓[0m[90m should equal minimum goal[0m[31m (765ms)[0m
[32m ✓[0m[90m should allow owner to transfer wei after minimum goal is met[0m[31m (377ms)[0m
[32m ✓[0m[90m should not allow owner to transfer wei to invalid addresses[0m[31m (377ms)[0m
[32m ✓[0m[90m should not allow owner to recover unsold tokens to invalid addresses[0m[31m (130ms)[0m
[32m ✓[0m[90m should exceed minimum goal[0m[31m (757ms)[0m
[32m ✓[0m[90m should stop allowing contributions after the sale end date[0m[31m (191ms)[0m
[32m ✓[0m[90m should allow ether top-up after the sale end date[0m[31m (350ms)[0m
[0m Contract: Goal met, no minimum[0m
[32m ✓[0m[90m should have the correct initial settings[0m[31m (150ms)[0m
[32m ✓[0m[90m should have the correct token balance after initial token transfer[0m[31m (229ms)[0m
[32m ✓[0m[90m should allow a contribution[0m[31m (872ms)[0m
[32m ✓[0m[90m should not allow token recovery before end of sale[0m[31m (83ms)[0m
[32m ✓[0m[90m should not allow wei withdrawal by non-owner[0m
[32m ✓[0m[90m should allow wei withdrawal by owner at any time (because there is no minimum goal)[0m[31m (662ms)[0m
[32m ✓[0m[90m should not allow wei withdrawal by non-owner after sale end data either[0m[33m (47ms)[0m
[32m ✓[0m[90m should not allow token recovery by non-owner[0m[33m (65ms)[0m
[32m ✓[0m[90m should not allow token recovery to an invalid address (token address or 0x0)[0m[33m (57ms)[0m
[32m ✓[0m[90m should allow wei withdrawal by owner after sale end date[0m[31m (668ms)[0m
[32m ✓[0m[90m should allow owner token recovery after end of sale[0m[31m (129ms)[0m
[0m Contract: Goal met, no minimum, refunding prorata[0m
[32m ✓[0m[90m should have the correct initial settings[0m[31m (154ms)[0m
[32m ✓[0m[90m should have the correct token balance after initial token transfer[0m[31m (245ms)[0m
[32m ✓[0m[90m should allow contributions[0m[31m (1989ms)[0m
[32m ✓[0m[90m should allow wei withdrawal by owner at any time (because there is no minimum goal)[0m[31m (657ms)[0m
[32m ✓[0m[90m should prevent enabling refunding without pausing or being after end of sale[0m[33m (51ms)[0m
[32m ✓[0m[90m should prevent pausing if non-owner[0m[33m (61ms)[0m
[32m ✓[0m[90m should allow pausing sale[0m[33m (73ms)[0m
[32m ✓[0m[90m should not allow any contributions after pausing[0m[31m (479ms)[0m
[32m ✓[0m[90m should allow enabling refunding after pausing sale[0m[31m (285ms)[0m
[32m ✓[0m[90m should prevent pausing if already paused[0m[33m (51ms)[0m
[32m ✓[0m[90m should not allow any contributions while refunding and paused[0m[31m (481ms)[0m
[32m ✓[0m[90m should prevent unpausing if non-owner[0m[33m (72ms)[0m
[32m ✓[0m[90m should not allow any contributions while refunding, even after unpausing[0m[31m (544ms)[0m
[32m ✓[0m[90m should have proper token and eth balances for participants after refunding complete[0m[31m (3143ms)[0m
[0m Contract: Goal not met, refunding[0m
[32m ✓[0m[90m should have the correct initial settings[0m[31m (155ms)[0m
[32m ✓[0m[90m should have the correct token balance after initial token transfer[0m[31m (237ms)[0m
[32m ✓[0m[90m should remain below minimal goal after insufficient ether contributions[0m[31m (2914ms)[0m
[32m ✓[0m[90m should prevent enabling refunding without pausing or being after end of sale[0m[33m (73ms)[0m
[32m ✓[0m[90m should stop allowing contributions after the sale end date[0m[31m (259ms)[0m
[32m ✓[0m[90m should allow ether top-up after the sale end date and before enabling refunds[0m[31m (492ms)[0m
[32m ✓[0m[90m should allow refunding when minimum goal not met[0m[31m (370ms)[0m
[32m ✓[0m[90m should prevent enabling refunding a second time[0m[31m (92ms)[0m
[32m ✓[0m[90m should throw exception if invalid sale address is used by valid contributor[0m[33m (38ms)[0m
[32m ✓[0m[90m should prevent non-contributor from getting ether from the refund process[0m
[32m ✓[0m[90m should allow contributor to get ether from the refund process in exchange for their tokens[0m[31m (1189ms)[0m
[32m ✓[0m[90m should prevent already-refunded contributors from requesting refund again[0m
[32m ✓[0m[90m should have proper token and eth balances for participants after refunding complete[0m[31m (1541ms)[0m
[0m Contract: Token Tests[0m
[32m ✓[0m[90m should have the owner account set correctly[0m
[32m ✓[0m[90m should have blank name and symbol[0m[33m (62ms)[0m
[32m ✓[0m[90m should have correct totalSupply[0m
[32m ✓[0m[90m should put correct # of Token in the owner account[0m
[32m ✓[0m[90m should add an account as an override address[0m[31m (276ms)[0m
[32m ✓[0m[90m should successfully transfer tokens from owner account before ownerActivateToken[0m[31m (178ms)[0m
[32m ✓[0m[90m should successfully transfer tokens from an override account before ownerActivateToken[0m[31m (141ms)[0m
[32m ✓[0m[90m should fail to transfer tokens from non-owner/non-override account before ownerActivateToken[0m
[32m ✓[0m[90m should fail to approve token transfer from non-owner/non-override account before ownerActivateToken[0m
[32m ✓[0m[90m should approve token transfer from owner/override account before ownerActivateToken[0m[31m (145ms)[0m
[32m ✓[0m[90m should be allowed to transferFrom successfully an approved amount from a non owner/override account[0m[31m (194ms)[0m
[32m ✓[0m[90m should throw when calling ownerActivateToken without ownerSetVisible[0m[33m (54ms)[0m
[32m ✓[0m[90m should have blank symbol and token before, and be set after ownerSetVisible[0m[31m (160ms)[0m
[32m ✓[0m[90m should be inactive before, and be active after ownerActivateToken[0m[31m (84ms)[0m
[32m ✓[0m[90m non-owner account should transfer token correctly after ownerActivateToken[0m[31m (103ms)[0m
[32m ✓[0m[90m should fail to transfer tokens to 0x0 or the token's address[0m[33m (62ms)[0m
[92m [0m[32m 125 passing[0m[90m (1m)[0m