Skip to content

Commit

Permalink
Move bridging contracts to subdir
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteNacked committed Sep 16, 2024
1 parent 19fb48b commit b75dbd5
Show file tree
Hide file tree
Showing 38 changed files with 17 additions and 16 deletions.
23 changes: 12 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@ members = [
"relayer",
"circuits/*",
"ethereum-common",
"gear-programs/bridging-payment",
"gear-programs/bridging-payment/src/wasm",
"gear-programs/bridging-payment-vara-supply",
"gear-programs/bridging-payment-vara-supply/src/wasm",
"gear-programs/bridging-payment-common",
"gear-programs/bridging-payment/eth-supply",
"gear-programs/bridging-payment/eth-supply/src/wasm",
"gear-programs/bridging-payment/vara-supply",
"gear-programs/bridging-payment/vara-supply/src/wasm",
"gear-programs/bridging-payment/common",
"gear-programs/vft-gateway",
"gear-programs/vft-gateway/src/wasm",
"gear-programs/vft-treasury",
"gear-programs/vft-treasury/src/wasm",
"gear-programs/*",
"gear-programs/checkpoint-light-client",
"gear-programs/checkpoint-light-client/io",
"gear-programs/proof-storage",
"utils-prometheus",
]

Expand All @@ -38,11 +39,11 @@ plonky2_u32 = { path = "./circuits/plonky2_u32" }
ethereum-client = { path = "./ethereum/client" }
ethereum-common = { path = "ethereum-common", default-features = false }

bridging_payment = { path = "gear-programs/bridging-payment" }
bridging_payment_wasm = { path = "gear-programs/bridging_payment/src/wasm" }
bridging_payment_vara_supply = { path = "gear-programs/bridging-payment-vara-supply" }
bridging_payment_vara_supply_wasm = { path = "gear-programs/bridging-payment-vara-supply/src/wasm" }
bridging_payment_common = { path = "gear-programs/bridging-payment-common" }
bridging_payment = { path = "gear-programs/bridging-payment/eth-supply" }
bridging_payment_wasm = { path = "gear-programs/bridging_payment/eth-supply/src/wasm" }
bridging_payment_vara_supply = { path = "gear-programs/bridging-payment/vara-supply" }
bridging_payment_vara_supply_wasm = { path = "gear-programs/bridging-payment/vara-supply/src/wasm" }
bridging_payment_common = { path = "gear-programs/bridging-payment/common" }
vft-gateway-app = { path = "gear-programs/vft-gateway" }
vft_gateway_wasm = { path = "gear-programs/vft-gateway/src/wasm" }
vft-treasury-app = { path = "gear-programs/vft-treasury" }
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::{env, path::PathBuf};
fn main() {
let out_dir_path = PathBuf::from(env::var("OUT_DIR").unwrap());

let idl_file_path = PathBuf::from("../vft-gateway/src/wasm/vft-gateway.idl");
let idl_file_path = PathBuf::from("../../vft-gateway/src/wasm/vft-gateway.idl");

let client_rs_file_path = out_dir_path.join("vft-gateway.rs");

Expand All @@ -26,7 +26,7 @@ fn main() {
// use local copy of `vft.idl` to build on windows
#[cfg(target_family = "windows")]
let idl_file_path =
PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap()).join("../vft-gateway/vft.idl");
PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap()).join("../../vft-gateway/vft.idl");

ClientGenerator::from_idl_path(&idl_file_path)
.generate_to(client_rs_file_path)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::{env, path::PathBuf};
fn main() {
let out_dir_path = PathBuf::from(env::var("OUT_DIR").unwrap());

let idl_file_path = PathBuf::from("../vft-treasury/src/wasm/vft-treasury.idl");
let idl_file_path = PathBuf::from("../../vft-treasury/src/wasm/vft-treasury.idl");

let client_rs_file_path = out_dir_path.join("vft-treasury.rs");

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions relayer/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ fn go_bindings() {

fn bridging_payment_client() {
println!(
"cargo:rerun-if-changed=../gear-programs/bridging-payment/src/wasm/bridging-payment.idl"
"cargo:rerun-if-changed=../gear-programs/bridging-payment/eth-supply/src/wasm/bridging-payment.idl"
);

let out_dir_path = PathBuf::from(env::var("OUT_DIR").unwrap());
let idl_file_path =
PathBuf::from("../gear-programs/bridging-payment/src/wasm/bridging-payment.idl");
PathBuf::from("../gear-programs/bridging-payment/eth-supply/src/wasm/bridging-payment.idl");
let client_rs_file_path = out_dir_path.join("bridging_payment_client.rs");

ClientGenerator::from_idl_path(&idl_file_path)
Expand Down

0 comments on commit b75dbd5

Please sign in to comment.