Commit Graph

123 Commits

Author SHA1 Message Date
Maximilian Krüger 23a919f2ef bridge.sol: solium: fix errors ala: Avoid using 'sha3(...)'. Use --fix to replace it with 'keccak256(...)' 2017-12-14 18:28:22 +01:00
Maximilian Krüger c917c95b40 bridge.sol: solium: fix errors ala "No visibility specified explicitly" 2017-12-14 18:28:22 +01:00
Maximilian Krüger 4da533e3ee bridge.sol: fix solium linter whitespace errors 2017-12-14 18:27:16 +01:00
Maximilian Krüger d27347380b Migrations.sol: fix solium linter errors 2017-12-14 18:27:16 +01:00
snd 58a80b4ace fix for #61 and tests for withdraw (#66)
* readme: add section on running truffle tests

* extract `sign` from test/foreign into test/helpers and improve it

* add test helper signatureToVRS

* add test helper bigNumberToHexString

* add test helper bigNumberToPaddedBytes32

* add test "should allow correct withdraw" which fails and exposes #61

* resolve #61 and document it

* fix typo

* fix typo

* use num.toString(16) instead of bigNumberToHexString

https://github.com/paritytech/parity-bridge/pull/66#discussion_r156030874

* add comment

* use explicit transaction hash

* add test "withdraw without funds on HomeBridge should fail"

* add test "should not allow withdraw with message.length != 84"

* add test ""should allow second withdraw with different transactionHash but same recipient and value"

* add test "should not allow second withdraw with same transactionHash but different recipient and value"

* fix typo

* bridge.sol: add note that anyone can call HomeBridge.withdraw

* test that anyone can call withdraw provided they have the message and signatures

* test/home.js: improve wording of test
2017-12-14 17:54:49 +01:00
snd 63b0745ea0 Issue 58 solidity test code coverage (#70)
* add initial package.json with test, ci and coverage scripts

inspired by 86794a866b/package.json

* .travis.yml: use ci script from package.json

* upload coverage to coveralls

* README.md: add coveralls badge

* .travis.yml: run npm install

* package.json: make ganache ports match up so truffle can connect

* .travis.yml: call coveralls script directly

* README.md: try to put badges on one line [ci skip]

* README.md: try to fix badge formatting [ci skip]

* package.json: remove directories prop which is not needed

* add notice that code coverage is for contracts only

* .gitignore: node_modules

* package.json: improve description

* package.json: add license

* package.json: replace npm with yarn

* .travis.yml: use yarn instead of npm

* add yarn.lock

* .travis.yml: cache cargo to speed things up
2017-12-14 17:52:36 +01:00
Robert Habermeier e3d7737323
Merge pull request #65 from zacwellmer/patch-1
mention home when should be foreign
2017-12-13 11:27:39 +01:00
Robert Habermeier fbfd7a9e6a
Merge pull request #67 from paritytech/issue-29-ci-truffle
#29 run truffle tests on travis
2017-12-12 18:18:30 +01:00
Maximilian Krüger 8095fda3e3 enable rust tests again 2017-12-12 17:02:13 +01:00
Maximilian Krüger ac9745d36d remove need for package.json for now 2017-12-12 16:59:39 +01:00
Maximilian Krüger 2e5da3e9cd change quoting of concurrent commands. see if that works 2017-12-12 16:57:29 +01:00
Maximilian Krüger 85a2c63e16 first attempt at running truffle tests on travis 2017-12-12 16:53:15 +01:00
Zac Wellmer 8e89bff3ff
debug -> release 2017-12-09 20:51:59 +08:00
Zac Wellmer 79ca831f1a
mention home when should be foreign 2017-12-09 16:11:40 +08:00
Marek Kotewicz 7406015300
Merge pull request #53 from paritytech/remove_truncate
remove unused truncate, closes #51
2017-11-16 17:06:15 +01:00
debris 0149ef8cef remove unused truncate, closes #51 2017-11-16 16:51:29 +01:00
Marek Kotewicz 8cc7156722 Merge pull request #50 from paritytech/foreign_overflow
check ForeignBridge transfer() overflow
2017-10-24 12:33:25 +07:00
debris e4f9f24792 check ForeignBridge transfer() overflow 2017-10-24 13:23:17 +08:00
Marek Kotewicz d721b1ff2b Merge pull request #47 from paritytech/rename
rename to home/foreign, closes #46
2017-10-10 11:10:46 +02:00
debris 59403966fc rename to home/foreign, closes #46 2017-10-10 11:02:58 +02:00
Marek Kotewicz f859c62175 Merge pull request #44 from paritytech/fixes
fixed loading .bin files, filter topics and example gas amounts
2017-10-02 18:00:22 +02:00
viktor 3fad3f4789 README typo 2017-10-02 17:52:53 +02:00
debris d34f0e5427 Merge branch 'master' into fixes 2017-10-02 17:52:49 +02:00
debris 134bf5a620 fixed loading .bin files, filter topics and example gas amounts 2017-10-01 19:18:50 +02:00
Marek Kotewicz 6b649b149d Merge pull request #38 from vbaranov/master
Function names typos
2017-09-29 18:21:04 +02:00
Marek Kotewicz 882292ac90 Update README.md 2017-09-29 01:32:31 +02:00
Marek Kotewicz 6e9e17ea7e Basic docs 2017-09-29 01:26:15 +02:00
viktor ef62bcc427 Function names typos 2017-09-28 15:59:19 -07:00
debris 40e76eecaa udpated links to travis in README.md 2017-09-29 00:51:53 +02:00
Marek Kotewicz a89a50b9c4 Merge pull request #37 from paritytech/license
LICENSE
2017-09-28 10:52:10 +02:00
debris b662888ff6 LICENSE 2017-09-28 10:51:23 +02:00
Marek Kotewicz ef5336404a Merge pull request #32 from paritytech/truffle
more solidity tests
2017-09-04 16:11:22 +02:00
debris 9a893c9842 test for submitting signature twice 2017-09-04 16:05:47 +02:00
debris 57c8427539 submitSignature tests 2017-09-04 16:02:41 +02:00
debris c475cb9009 tests for solidity contract transfer 2017-09-04 14:42:10 +02:00
debris 769c98e013 fixed sol files indentation 2017-09-04 12:50:43 +02:00
debris 9046cf8d62 fixed signature validation in solidity, added truffle tests for it 2017-09-04 12:49:05 +02:00
Marek Kotewicz b1983e3ff6 Merge pull request #28 from paritytech/truffle
first Truffle tests
2017-09-01 17:54:59 +02:00
debris f0d9e56699 fix KovanBridge vulnerability when one of the authorities is misbehaving 2017-09-01 16:26:06 +02:00
debris e69c9ce08d tests for solidity contract consturctor params 2017-09-01 15:44:36 +02:00
debris 9eadffcfdd first truffle tests for EthereumBridge 2017-09-01 15:11:20 +02:00
Marek Kotewicz ff3a90baf3 Merge pull request #27 from paritytech/timeouts
timeouts
2017-08-31 18:13:09 +02:00
debris 6286a76708 timeouts 2017-08-31 17:32:34 +02:00
debris 9d9feb756e tuned contract deploy 2017-08-31 14:57:43 +02:00
debris eeb08c1062 updated dependencies 2017-08-31 14:42:39 +02:00
Marek Kotewicz 25ff29b758 Merge pull request #24 from axelchalon/test-wd-confirm-payload
Replace bogus signature with actual signature in test
2017-08-30 14:11:54 +02:00
Axel Chalon 65fda77a81 merge from master 2017-08-30 12:40:52 +02:00
Marek Kotewicz 5f5a0cb298 Merge pull request #25 from axelchalon/wd-confirm-test-mult-payloads
Withdraw confirm: Add gas in test config & test multiple logs
2017-08-30 10:22:43 +02:00
Axel Chalon 61849b042e Fix multiple payload test in withdraw confirm 2017-08-29 18:24:53 +02:00
Axel Chalon 5f82fdd4c5 Add gas in test config & multiple logs 2017-08-29 18:21:30 +02:00