From 3ad9825d33ede63a924adf3006820010655010ed Mon Sep 17 00:00:00 2001 From: 0xFable <86927513+0xFable@users.noreply.github.com> Date: Thu, 4 Apr 2024 13:04:53 +0100 Subject: [PATCH] fix: Update schemas for contracts to prevent collisions (#300) Avoids this problem warning: output filename collision. The bin target `schema` in package `vault-manager v0.1.0 (vault-manager)` has the same output filename as the bin target `schema` in package `epoch-manager v0.1.0 (epoch-manager)`. Colliding filename is: The targets should have unique names. Consider changing their names to be unique or compiling them separately. This may become a hard error in the future; see . --- contracts/liquidity_hub/epoch-manager/.cargo/config | 2 +- .../src/bin/{schema.rs => epoch_manager_schema.rs} | 0 contracts/liquidity_hub/pool-network/incentive/.cargo/config | 2 +- .../incentive/examples/{schema.rs => incentive_schema.rs} | 0 .../liquidity_hub/pool-network/incentive_factory/.cargo/config | 2 +- .../examples/{schema.rs => incentive_factory_schema.rs} | 0 .../liquidity_hub/pool-network/terraswap_token/.cargo/config | 2 +- .../examples/{schema.rs => terraswap_token_schema.rs} | 0 8 files changed, 4 insertions(+), 4 deletions(-) rename contracts/liquidity_hub/epoch-manager/src/bin/{schema.rs => epoch_manager_schema.rs} (100%) rename contracts/liquidity_hub/pool-network/incentive/examples/{schema.rs => incentive_schema.rs} (100%) rename contracts/liquidity_hub/pool-network/incentive_factory/examples/{schema.rs => incentive_factory_schema.rs} (100%) rename contracts/liquidity_hub/pool-network/terraswap_token/examples/{schema.rs => terraswap_token_schema.rs} (100%) diff --git a/contracts/liquidity_hub/epoch-manager/.cargo/config b/contracts/liquidity_hub/epoch-manager/.cargo/config index af5698e58..e5e6b50ea 100644 --- a/contracts/liquidity_hub/epoch-manager/.cargo/config +++ b/contracts/liquidity_hub/epoch-manager/.cargo/config @@ -1,4 +1,4 @@ [alias] wasm = "build --release --lib --target wasm32-unknown-unknown" unit-test = "test --lib" -schema = "run --bin schema" +schema = "run --bin epoch_manager_schema" diff --git a/contracts/liquidity_hub/epoch-manager/src/bin/schema.rs b/contracts/liquidity_hub/epoch-manager/src/bin/epoch_manager_schema.rs similarity index 100% rename from contracts/liquidity_hub/epoch-manager/src/bin/schema.rs rename to contracts/liquidity_hub/epoch-manager/src/bin/epoch_manager_schema.rs diff --git a/contracts/liquidity_hub/pool-network/incentive/.cargo/config b/contracts/liquidity_hub/pool-network/incentive/.cargo/config index 8d4bc738b..79bd37dbf 100644 --- a/contracts/liquidity_hub/pool-network/incentive/.cargo/config +++ b/contracts/liquidity_hub/pool-network/incentive/.cargo/config @@ -3,4 +3,4 @@ wasm = "build --release --target wasm32-unknown-unknown" wasm-debug = "build --target wasm32-unknown-unknown" unit-test = "test --lib" integration-test = "test --test integration" -schema = "run --example schema" +schema = "run --example incentive_schema" diff --git a/contracts/liquidity_hub/pool-network/incentive/examples/schema.rs b/contracts/liquidity_hub/pool-network/incentive/examples/incentive_schema.rs similarity index 100% rename from contracts/liquidity_hub/pool-network/incentive/examples/schema.rs rename to contracts/liquidity_hub/pool-network/incentive/examples/incentive_schema.rs diff --git a/contracts/liquidity_hub/pool-network/incentive_factory/.cargo/config b/contracts/liquidity_hub/pool-network/incentive_factory/.cargo/config index 8d4bc738b..bb1844033 100644 --- a/contracts/liquidity_hub/pool-network/incentive_factory/.cargo/config +++ b/contracts/liquidity_hub/pool-network/incentive_factory/.cargo/config @@ -3,4 +3,4 @@ wasm = "build --release --target wasm32-unknown-unknown" wasm-debug = "build --target wasm32-unknown-unknown" unit-test = "test --lib" integration-test = "test --test integration" -schema = "run --example schema" +schema = "run --example incentive_factory_schema" diff --git a/contracts/liquidity_hub/pool-network/incentive_factory/examples/schema.rs b/contracts/liquidity_hub/pool-network/incentive_factory/examples/incentive_factory_schema.rs similarity index 100% rename from contracts/liquidity_hub/pool-network/incentive_factory/examples/schema.rs rename to contracts/liquidity_hub/pool-network/incentive_factory/examples/incentive_factory_schema.rs diff --git a/contracts/liquidity_hub/pool-network/terraswap_token/.cargo/config b/contracts/liquidity_hub/pool-network/terraswap_token/.cargo/config index 8d4bc738b..633b2dd8a 100644 --- a/contracts/liquidity_hub/pool-network/terraswap_token/.cargo/config +++ b/contracts/liquidity_hub/pool-network/terraswap_token/.cargo/config @@ -3,4 +3,4 @@ wasm = "build --release --target wasm32-unknown-unknown" wasm-debug = "build --target wasm32-unknown-unknown" unit-test = "test --lib" integration-test = "test --test integration" -schema = "run --example schema" +schema = "run --example terraswap_token_schema" diff --git a/contracts/liquidity_hub/pool-network/terraswap_token/examples/schema.rs b/contracts/liquidity_hub/pool-network/terraswap_token/examples/terraswap_token_schema.rs similarity index 100% rename from contracts/liquidity_hub/pool-network/terraswap_token/examples/schema.rs rename to contracts/liquidity_hub/pool-network/terraswap_token/examples/terraswap_token_schema.rs