Maximilian Krüger
5b446b48a3
remove `use` of symbols that no longer exist
2018-02-12 16:35:36 +01:00
Maximilian Krüger
c887668eda
remove tests for withdraw confirm payloads
...
- they test against raw hex strings
- hard to modify
- if we me it easier to modify by using ethabi to assemble data
the tests essentially become useless
- logic should already be covered by both integration test and RPC tests
2018-02-12 15:24:23 +01:00
Maximilian Krüger
4a3b4ba1f0
remove test for function that doesn't exist anymore
2018-02-12 15:23:41 +01:00
Maximilian Krüger
be18c96d31
remove conversion (web3 -> ethabi) that is no longer needed (ethereum-types)
2018-02-12 14:58:14 +01:00
Maximilian Krüger
87c57c9963
extract code dealing with signatures into module
2018-02-12 14:57:57 +01:00
Maximilian Krüger
b28944511c
message_to_mainnet.rs: fix from_bytes (respect little endian)
2018-02-12 14:55:02 +01:00
Maximilian Krüger
ed060ae85b
message_to_mainnet.rs: remove to_hex, add to_payload
2018-02-12 14:54:46 +01:00
Maximilian Krüger
78c6cf4472
bridge/src/helpers.rs: no longer needed
2018-02-12 14:51:16 +01:00
Maximilian Krüger
999a4a7a7e
use ethereum_types 0.2 everywhere
2018-02-12 14:50:44 +01:00
Maximilian Krüger
42993089f5
adapt to ethabi version bump
2018-02-12 10:11:39 +01:00
Maximilian Krüger
5000043930
extract code dealing with Withdraw message
...
remove ignoring of messages with insufficient value
because no longer needed.
use user specified gas price on withdraw.
2018-02-09 09:44:55 +01:00
Maximilian Krüger
c0d87f19c0
magic numbers -> constants
2018-02-09 09:41:46 +01:00
Maximilian Krüger
41543ca40e
user explicitely specifies homeGasPrice on withdraw. resolves #112
2018-02-09 09:41:45 +01:00
debris
f0dcb70cf3
remove redundant conversions between types
2018-02-07 14:58:50 +01:00
debris
5e90f850fd
updated web3 to latest version and resolved build issues
2018-02-07 14:50:49 +01:00
debris
cc2c3fea9b
bump ethabi and ethereum-types to latest versions
2018-02-06 22:57:06 +01:00
Maximilian Krüger
c91eae631f
deposit_relay.rs: add info level logging
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
8a8380e7a8
bridge/build.rs: make error messages helpful. resolves #98
2018-01-25 09:51:54 +01:00
Maximilian Krüger
ddc5ffcfd4
fix #87 by parsing rpc outputs with ethabi
2018-01-22 15:10:57 +01:00
Maximilian Krüger
c33126b961
withdraw_relay: break long type into several lines
2018-01-22 14:35:54 +01:00
Maximilian Krüger
1691841c3c
use just released ethabi 5.0 which fixes the InvalidData issue
2018-01-22 14:35:54 +01:00
Maximilian Krüger
b8fc1cd55c
withdraw_relay.rs: use rustc_hex::ToHex
2018-01-19 15:11:21 +01:00
Maximilian Krüger
ee786ccd2c
withdraw_relay.rs: add some info level logging to ease troubleshooting
2018-01-19 14:49:54 +01:00
Maximilian Krüger
798755db89
withdraw_confirm.rs: withdraw -> withdraw_message
2018-01-19 14:48:18 +01:00
Maximilian Krüger
e07485a792
withdraw_confirm.rs: fn withdraw_submit_signature_payload: assert lengths
2018-01-19 14:47:54 +01:00
Maximilian Krüger
0a27da3c33
withdraw_confirm.rs: add some info level logging
2018-01-19 14:47:29 +01:00
Maximilian Krüger
9389bf433a
bridge/build.rs: optimize compiled contracts
2018-01-18 16:14:19 +01:00
Maximilian Krüger
ccaac25d2f
compile contracts in build.rs and remove compiled from git so they don't get out of sync
2018-01-18 12:53:02 +01:00
Maximilian Krüger
0798bf181d
withdraw_relay.rs: add some docstrings
2018-01-09 13:11:02 +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
d9964a8472
address grumble
...
https://github.com/paritytech/parity-bridge/pull/77#discussion_r160170545
2018-01-08 17:43:38 +01:00
Maximilian Krüger
171bf29ba0
withdraw_relay.rs: make withdraw_relay_payload take references as we no longer necessarily own its inputs
2018-01-08 14:26:57 +01:00
Maximilian Krüger
20bc965604
withdraw_relay.rs: fetch whether message value is sufficient and filter out insufficient
2018-01-08 14:26:19 +01:00
Maximilian Krüger
d4d1b2d582
withdraw_relay.rs: add FetchMessageValueSufficient to WithdrawRelayState
2018-01-08 14:25:46 +01:00
Maximilian Krüger
24a926bdb6
withdraw_relay.rs: add message_value_sufficient_payload
2018-01-08 14:25:16 +01:00
Maximilian Krüger
bd6ff44ced
add comments
2018-01-08 14:16:33 +01:00
Maximilian Krüger
21bb9a6adc
add docstring
2018-01-08 14:15:41 +01:00
Maximilian Krüger
e71c9c53c9
withdraw_relay.rs: improve docstring
2018-01-08 14:14:39 +01:00
Maximilian Krüger
3d76ce0309
withdraw_relay.rs: improve var name and comments
2018-01-08 14:12:55 +01:00
Maximilian Krüger
b8246bfe4b
deploy.rs: hardcode estimatedGasCostOfWithdraw for now
2018-01-08 14:10:33 +01:00
Maximilian Krüger
5b98a06873
withdraw_relay.rs: add some docstrings
2018-01-08 11:43:55 +01:00
Maximilian Krüger
def974e0e3
WithdrawRelayState::Fetch -> WithdrawRelayState::FetchMessagesSignatures
2018-01-08 11:18:26 +01:00
debris
59403966fc
rename to home/foreign, closes #46
2017-10-10 11:02:58 +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
viktor
ef62bcc427
Function names typos
2017-09-28 15:59:19 -07:00
debris
6286a76708
timeouts
2017-08-31 17:32:34 +02:00
debris
ec0dcefc46
udpated futures, removed compiler warnings
2017-08-28 17:19:03 +02:00
debris
9456b5a08f
tests for FileBackend
2017-08-28 17:15:10 +02:00