Maximilian Krüger
|
e3bbe9eda3
|
truffle test for message: should extract homeGasPrice
|
2018-02-09 09:44:55 +01:00 |
Maximilian Krüger
|
88a117a5ba
|
fix test helpers.createMessage: allow setting of homeGasPrice
|
2018-02-09 09:44:55 +01:00 |
Maximilian Krüger
|
467c5dc2f2
|
remove contract code that dealt with removed ignoring of insufficient value withdraws
|
2018-02-09 09:44:55 +01:00 |
Maximilian Krüger
|
f2e29764c2
|
make existing truffle tests run again after 112
|
2018-02-09 09:41:46 +01:00 |
Maximilian Krüger
|
ddc54802dd
|
bridge.sol: check for overflow in transferFrom
|
2018-01-26 12:05:37 +01:00 |
Maximilian Krüger
|
4900eeb295
|
improve comment
|
2018-01-26 10:00:44 +01:00 |
Maximilian Krüger
|
0e13ed406b
|
bridge.sol: emit Tranfer to 0x0 if tokens are destroyed
|
2018-01-26 10:00:44 +01:00 |
Maximilian Krüger
|
2f75f3683f
|
bridge.sol: emit Transfer from 0x0 on token creation as laid out in ERC20
|
2018-01-26 10:00:44 +01:00 |
Maximilian Krüger
|
37af2d1c98
|
test/foreign-erc20.js: test that transferFrom(0) succeeds and add more assertions
|
2018-01-26 10:00:44 +01:00 |
Maximilian Krüger
|
9fee20e026
|
test/foreign-erc20.js: fix test for transfer with overflow
|
2018-01-26 10:00:44 +01:00 |
Maximilian Krüger
|
b8bf9bee54
|
remove unnecessary check for overflow in transferHomeViaRelay
resolve #88
|
2018-01-26 10:00:44 +01:00 |
Maximilian Krüger
|
1ae92517a3
|
more truffle tests
|
2018-01-26 10:00:44 +01:00 |
Maximilian Krüger
|
810f013140
|
foreign-erc20.js: more test cases
|
2018-01-26 10:00:44 +01:00 |
Maximilian Krüger
|
8a3a42a93a
|
add incomplete truffle/test/foreign-erc20.js
|
2018-01-26 10:00:44 +01:00 |
Maximilian Krüger
|
73dd502b88
|
bridge.sol: authority -> authorityResponsibleForRelay
|
2018-01-26 10:00:44 +01:00 |
Maximilian Krüger
|
ea18c198b4
|
make ForeignBridge.Transfer event conform to ERC20
|
2018-01-26 10:00:44 +01:00 |
Maximilian Krüger
|
ffc0b31eb3
|
ForeignBridge.transferLocal -> transfer to conform to ERC20
|
2018-01-26 10:00:44 +01:00 |
Maximilian Krüger
|
80d67642ad
|
add test "withdraw should fail if duplicate signature is provided"
|
2018-01-15 11:30:45 +01:00 |
Maximilian Krüger
|
6a052c12e3
|
add test "withdraw should fail if not enough signatures are provided"
|
2018-01-15 11:21:46 +01:00 |
Maximilian Krüger
|
8211007da2
|
Helpers.intToString -> Helpers.uintToString
|
2018-01-15 11:00:04 +01:00 |
Maximilian Krüger
|
43feb6065b
|
test/helpers: add test of intToString with really large uint
|
2018-01-15 10:57:05 +01:00 |
Maximilian Krüger
|
d432e73905
|
replace Helpers.intToString implementation by one that uses less gas and doesn't break for numbers with more than 8 digits
|
2018-01-15 10:47:50 +01:00 |
Maximilian Krüger
|
e87e189b9f
|
add tests for the Helpers library
|
2018-01-15 10:19:10 +01:00 |
Maximilian Krüger
|
263d846782
|
add test helper `range`
|
2018-01-15 10:18:52 +01:00 |
Maximilian Krüger
|
053e7876bd
|
test/foreign: improve test description
|
2018-01-15 09:29:58 +01:00 |
Maximilian Krüger
|
4fec6a4126
|
test/foreign: add test: should ignore deposits that are not from authorities
|
2018-01-13 16:04:36 +01:00 |
Maximilian Krüger
|
3f1d4950bf
|
test/home: fix test: should not allow withdraw with message.length != 84
|
2018-01-13 15:53:59 +01:00 |
Maximilian Krüger
|
5b742f492d
|
test/message_signing: add test: should fail to recover address from signature that is too short
|
2018-01-13 15:07:12 +01:00 |
Maximilian Krüger
|
30f4669b00
|
test/message_signing: improve test names
|
2018-01-13 15:06:57 +01:00 |
Maximilian Krüger
|
06e363dfca
|
bridge.sol: extract message related fns into `Message` library
|
2018-01-12 17:28:02 +01:00 |
Maximilian Krüger
|
d96ebc026e
|
truffle tests: move `createMessage` to helpers
|
2018-01-12 17:26:14 +01:00 |
Maximilian Krüger
|
067759faa2
|
bridge.sol: SignerTest -> MessageSigningTest
|
2018-01-12 16:51:51 +01:00 |
Maximilian Krüger
|
7011150651
|
bridge.sol: signer -> recoverAddressFromSignedMessage
|
2018-01-12 16:46:00 +01:00 |
Maximilian Krüger
|
868ee4a10b
|
test/foreign: increase coverage: add test "should not be possible to do same deposit twice for same authority"
|
2018-01-11 15:15:33 +01:00 |
Maximilian Krüger
|
f1c74da470
|
test/foreign: fix test "should not be possible to submit signature twice" increasing coverage
|
2018-01-11 15:06:03 +01:00 |
Maximilian Krüger
|
aed0a09ad8
|
test/foreign: should fail to transfer with value overflow both locally and to home
|
2018-01-11 15:00:30 +01:00 |
Maximilian Krüger
|
15c6e925d6
|
test/foreign: various improvements and more coverage for transferHomeViaRelay
|
2018-01-11 14:52:19 +01:00 |
Maximilian Krüger
|
23ea4be253
|
test/foreign: improve some variable names and test names
|
2018-01-11 14:51:17 +01:00 |
Maximilian Krüger
|
81a5d3f18d
|
test/foreign: underscore -> camelcase
|
2018-01-11 14:50:43 +01:00 |
Maximilian Krüger
|
c62cfd3692
|
adapt tests to split of ForeignBridge.transfer
|
2018-01-11 14:16:25 +01:00 |
Maximilian Krüger
|
56b5e6d22d
|
test: isMessageValueSufficientToCoverRelay should work correctly
|
2018-01-09 14:35:31 +01:00 |
Maximilian Krüger
|
22e70cc079
|
test: remove unused var
|
2018-01-09 14:35:17 +01:00 |
Maximilian Krüger
|
f7f78e7cfc
|
improve test description
|
2018-01-09 12:52:49 +01:00 |
Maximilian Krüger
|
68d02ac5fd
|
refactor test code a bit
|
2018-01-09 11:42:08 +01:00 |
Maximilian Krüger
|
ba8aedecb1
|
add test for message part getters (getRecipientFromMessage)
|
2018-01-09 11:36:00 +01:00 |
Maximilian Krüger
|
d66f51839c
|
add test: should revert withdraw if value <= estimatedWeiCostOfWithdraw
|
2018-01-05 15:12:06 +01:00 |
Maximilian Krüger
|
3fccc2ad7f
|
tests: add comment explaining gas price
|
2018-01-05 15:01:20 +01:00 |
Maximilian Krüger
|
5bfa568833
|
tests: remove console.log statements for debugging on travis
|
2018-01-05 15:00:59 +01:00 |
Maximilian Krüger
|
4ebe2a8e54
|
fix travis: remove assertion which fails during coverage testing
since coverage testing inserts instructions which increase the gas cost
|
2018-01-05 14:27:47 +01:00 |
Maximilian Krüger
|
0b12c2cc98
|
truffle: bump everything to newest version
|
2018-01-05 14:04:20 +01:00 |