Peter van Nostrand
aaa5bee49e
Problem: no functionality exists to dynamically fetch gas-prices
...
Currently, gas-prices are set upon bridge startup via the
Users's config TOML file; this value remains constant for the
life of the Bridge.
Solution: create a mechanism that asynchronously queries
gas-prices from an "Oracle" service on a timed interval. This
mechanism should be a stream of gas-prices that can be polled
from the Bridge.
2018-05-23 20:42:13 -04:00
Yurii Rashkovskii
c0715dadba
Merge branch 'raw-transactions' into rpc+raw-transactions
2018-04-26 18:21:07 -07:00
Yurii Rashkovskii
fe28e335e0
Problem: RPC transport doesn't support HTTPS
...
Solution: upgrade web3 to the version which has support for TLS
2018-04-26 18:12:01 -07:00
Yurii Rashkovskii
94b1343594
Problem: sending unsigned transactions over API
...
This means that the node has to sign the transaction itself.
It might be acceptable in a localized setup, but can't be used
with untrusted setups. For example, once HTTP RPC is supported,
we can't really use infrastructure like INFURA to send transactions.
Solution: switch to signing transactions in bridge
This absolutely requires separating the accounts used by validators
and administrative tasks as this will otherwise interfere with
management of nonces.
2018-04-26 17:50:07 -07:00
Yurii Rashkovskii
4151237c54
Problem: RPC transport change conflated with keystore
...
As a part of the original feature request, there was a need
for the bridge to be able to sign its own transactions. However,
this didn't fully materialize in the original patch, and only
configuration parameters were implemented.
Solution: remove these last conflated bits
and make this a pure transport change patch.
2018-04-19 10:13:45 -07:00
Yurii Rashkovskii
de6cabc534
Problem: non-integration tests don't compile anymore
...
Solution: remove `ipc` parameter to make them compile
2018-04-19 09:58:12 -07:00
Edward Mack
aacea235bb
Problem: IPC doesn't scale well
...
Using IPC means bridge has to run alognside the node
on the same machine. This, at times, presents problems
in terms of efficiency or coupling of deployment.
Solution: switch to RPC
2018-04-19 09:51:32 -07:00
Yurii Rashkovskii
c3894736b5
Problem: non-integration tests don't compile
...
Solution: use an updated version of the API
to make them compile
2018-04-17 07:53:42 -07:00
Maximilian Krüger
3cc6b29438
tests/tests/withdraw_confirm.rs: refactor: replace opaque data strings by something easily modifiable (json, ethabi use)
2018-02-12 16:15:19 +01:00
Maximilian Krüger
d7928c22cc
tests/tests/withdraw_relay.rs: refactor: replace opaque data strings by something easily modifiable (json, ethabi use)
2018-02-12 15:09:38 +01:00
Maximilian Krüger
999a4a7a7e
use ethereum_types 0.2 everywhere
2018-02-12 14:50:44 +01:00
Maximilian Krüger
9df576739b
tests/Cargo.toml: add more required deps
2018-02-09 09:44:55 +01:00
Maximilian Krüger
b3760ec322
tests/src/lib.rs: change order of assertions to see most meaningful failure first
2018-02-09 09:44:55 +01:00
Maximilian Krüger
793029974d
tests/tests/log_stream.rs: &str -> json!
2018-02-09 09:41:46 +01:00
Maximilian Krüger
b16644578f
tests/tests/deposit_relay.rs: &str -> json!
2018-02-09 09:41:46 +01:00
Maximilian Krüger
ef2a4bca42
make rpc stream tests more readable/modifiable by using json! instead of strings
2018-02-09 09:41:46 +01:00
debris
5e90f850fd
updated web3 to latest version and resolved build issues
2018-02-07 14:50:49 +01:00
Maximilian Krüger
92c7e794ec
tests/withdraw_relay.rs: adapt responses to fix for 87
2018-01-22 16:14:53 +01:00
Maximilian Krüger
55d2e1bf55
add config option `estimated_gas_cost_of_withdraw`
2018-01-09 12:53:50 +01:00
Maximilian Krüger
e64ed795c2
withdraw_relay_single_explicit_contract_addresses
2018-01-08 18:21:00 +01:00
Maximilian Krüger
95d8e80de2
add comments
2018-01-08 18:20:15 +01:00
Maximilian Krüger
5153cb9dae
withdraw_relay_check_gas -> with_relay_explicit_gas
2018-01-08 18:19:47 +01:00
Maximilian Krüger
5d99a39848
tests: add missing comma
2018-01-08 18:19:32 +01:00
Maximilian Krüger
c0cfcfe567
add test withdraw_relay_single_log_insufficient_value_no_relay
2018-01-08 18:13:59 +01:00
Maximilian Krüger
fa7959810b
tests: add comments
2018-01-08 18:12:56 +01:00
Maximilian Krüger
aa436c5885
tests: add comments
2018-01-08 18:11:50 +01:00
Maximilian Krüger
d094ca6c87
withdraw_relay_single_log_no_relay -> withdraw_relay_single_log_authority_not_responsible_no_relay
2018-01-08 18:10:23 +01:00
Maximilian Krüger
848e9fe200
withdraw_relay_single_log_relay -> withdraw_relay_single_log_sufficient_value_relay
2018-01-08 18:09:21 +01:00
Maximilian Krüger
3d06ee2655
withdraw_realy_basic -> withdraw_relay_no_log_no_relay & add comment
2018-01-08 17:59:47 +01:00
Maximilian Krüger
89c92bd490
tests/lib.rs: assert that expected stream len matches actual stream len
2018-01-08 17:44:44 +01:00
Maximilian Krüger
2b03faf04f
add call to `isMessageValueSufficientToCoverRelay` to withdraw relay transport tests
2018-01-08 15:08:55 +01:00
debris
59403966fc
rename to home/foreign, closes #46
2017-10-10 11:02:58 +02:00
debris
134bf5a620
fixed loading .bin files, filter topics and example gas amounts
2017-10-01 19:18:50 +02:00
debris
6286a76708
timeouts
2017-08-31 17:32:34 +02:00
Axel Chalon
65fda77a81
merge from master
2017-08-30 12:40:52 +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
debris
58cb8d1074
Merge branch 'wr'
2017-08-29 16:28:59 +02:00
debris
526ef740b9
removed commented out code
2017-08-29 16:27:27 +02:00
Axel Chalon
171ffb2b78
Replace bogus signature with actual signature in test
2017-08-29 16:26:46 +02:00
Marek Kotewicz
23162625e6
Merge pull request #23 from axelchalon/test-wd-confirm-payload
...
Add payload test for withdraw confirm
2017-08-29 16:24:51 +02:00
debris
52ed724bfa
withdraw_relay tests, more readable error messages for test macros, closes #9
2017-08-29 16:22:18 +02:00
Axel Chalon
a4199d726e
Add payload test for withdraw confirm
2017-08-29 16:08:01 +02:00
Axel Chalon
a2fd6aa88f
Test macro: check earlier if requests match
2017-08-29 15:51:27 +02:00
Marek Kotewicz
ca39ef9b71
Merge pull request #21 from axelchalon/withdraw-confirm-contract-address-test
...
Add test for contract_address in withdraw_confirm
2017-08-29 12:22:28 +02:00
Axel Chalon
b13d704f75
Fix test
2017-08-29 12:07:39 +02:00
Axel Chalon
e15485b1a3
Add test for contract_address in withdraw_confirm
2017-08-29 11:26:27 +02:00
debris
8f776f185f
added deposit_relay tests, closes #7
2017-08-29 11:20:39 +02:00
debris
318dfc0660
test_app_stream macro allows to configure transactions, closes #19
2017-08-28 18:40:58 +02:00
Axel Chalon
167d58f64b
Add one test for withdraw_confirm
2017-08-28 17:58:38 +02:00