Skip to content
This repository was archived by the owner on Sep 18, 2020. It is now read-only.

Commit 2e3c55f

Browse files
committed
remove contracts from bridge and use external crate
1 parent 4394199 commit 2e3c55f

File tree

5 files changed

+14
-19
lines changed

5 files changed

+14
-19
lines changed

Cargo.lock

+11-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[workspace]
2-
members = ["tests", "cli", "bridge", "integration-tests", "deploy"]
2+
members = ["tests", "cli", "bridge", "integration-tests", "deploy", "contracts"]

bridge/Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ version = "0.4.0"
44
authors = ["debris <[email protected]>", "snd <[email protected]>"]
55

66
[dependencies]
7+
bridge-contracts = { path = "../contracts" }
78
futures = "0.1"
89
serde = "1.0"
910
serde_derive = "1.0"
@@ -14,8 +15,6 @@ toml = "0.4.2"
1415
web3 = { git = "https://github.com/tomusdrw/rust-web3", branch = "bridge" }
1516
error-chain = "0.11.0-rc.2"
1617
ethabi = "5.1"
17-
ethabi-derive = "5.0"
18-
ethabi-contract = "5.0"
1918
rustc-hex = "1.0"
2019
log = "0.3"
2120
ethereum-types = "0.2"

bridge/src/contracts.rs

-9
This file was deleted.

bridge/src/lib.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
#[macro_use]
22
extern crate error_chain;
33
extern crate ethabi;
4-
#[macro_use]
5-
extern crate ethabi_contract;
6-
#[macro_use]
7-
extern crate ethabi_derive;
84
extern crate ethereum_types;
95
#[macro_use]
106
extern crate futures;
@@ -25,6 +21,7 @@ extern crate tokio_core;
2521
extern crate tokio_timer;
2622
extern crate toml;
2723
extern crate web3;
24+
extern crate bridge_contracts as contracts;
2825

2926
#[macro_use]
3027
mod macros;
@@ -36,7 +33,6 @@ mod test;
3633
pub mod contract_connection;
3734
pub mod config;
3835
pub mod bridge;
39-
pub mod contracts;
4036
pub mod database;
4137
pub mod error;
4238
pub mod relay_stream;

0 commit comments

Comments
 (0)