Skip to content

Commit

Permalink
chore: Remove redundant deps in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jawoznia committed Aug 27, 2024
1 parent e288914 commit 28df3d4
Show file tree
Hide file tree
Showing 19 changed files with 12 additions and 59 deletions.
18 changes: 0 additions & 18 deletions examples/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,9 @@ version = "0.5.0"
edition = "2021"

[workspace.dependencies]
anyhow = "1.0.86"
cw-multi-test = "2.1.1"
cw-storage-plus = "2.0.0"
cw-utils = "2.0.0"
cw2 = "2.0.0"
semver = "1.0.23"
serde = { version = "1.0.208", default-features = false, features = ["derive"] }
thiserror = "1.0.63"
assert_matches = "1.5.0"
6 changes: 1 addition & 5 deletions examples/contracts/custom/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,12 @@ crate-type = ["cdylib", "rlib"]

[features]
library = []
mt = ["library", "anyhow", "cw-multi-test"]

mt = ["library", "sylvia/mt"]

[dependencies]
cw1 = { path = "../../interfaces/cw1" }
cw-storage-plus = { workspace = true }
sylvia = { path = "../../../sylvia" }
cw-multi-test = { workspace = true, optional = true }
anyhow = { workspace = true, optional = true }

[dev-dependencies]
anyhow = { workspace = true }
sylvia = { path = "../../../sylvia", features = ["mt"] }
7 changes: 4 additions & 3 deletions examples/contracts/custom/src/multitest/custom_module.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use cw_storage_plus::Item;
use std::fmt::Debug;
use sylvia::anyhow::Result as AnyResult;
use sylvia::cw_multi_test::{AppResponse, CosmosRouter, Module};
use sylvia::cw_schema::schemars::JsonSchema;
use sylvia::cw_std::{
Expand Down Expand Up @@ -41,7 +42,7 @@ impl Module for CustomModule {
_block: &BlockInfo,
_sender: Addr,
msg: Self::ExecT,
) -> anyhow::Result<AppResponse>
) -> AnyResult<AppResponse>
where
ExecC: Debug + Clone + PartialEq + JsonSchema + DeserializeOwned + 'static,
QueryC: CustomQuery + DeserializeOwned + 'static,
Expand All @@ -62,7 +63,7 @@ impl Module for CustomModule {
_router: &dyn CosmosRouter<ExecC = ExecC, QueryC = QueryC>,
_block: &BlockInfo,
_msg: Self::SudoT,
) -> anyhow::Result<AppResponse>
) -> AnyResult<AppResponse>
where
ExecC: Debug + Clone + PartialEq + JsonSchema + DeserializeOwned + 'static,
QueryC: CustomQuery + DeserializeOwned + 'static,
Expand All @@ -77,7 +78,7 @@ impl Module for CustomModule {
_querier: &dyn Querier,
_block: &BlockInfo,
request: Self::QueryT,
) -> anyhow::Result<Binary> {
) -> AnyResult<Binary> {
match request {
CounterQuery::Count {} => {
let count = self.counter.load(storage)?;
Expand Down
4 changes: 1 addition & 3 deletions examples/contracts/cw1-subkeys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ crate-type = ["cdylib", "rlib"]

[features]
library = []
mt = ["library", "anyhow", "sylvia/mt"]
mt = ["library", "sylvia/mt"]

[dependencies]
anyhow = { workspace = true, optional = true }
cw-storage-plus = { workspace = true }
cw-utils = { workspace = true }
cw1 = { path = "../../interfaces/cw1" }
Expand All @@ -22,7 +21,6 @@ sylvia = { path = "../../../sylvia" }
thiserror = { workspace = true }

[dev-dependencies]
anyhow = { workspace = true }
sylvia = { path = "../../../sylvia", features = ["mt"] }
cw1-whitelist = { path = "../cw1-whitelist", features = ["mt"] }
cw1 = { path = "../../interfaces/cw1", features = ["mt"] }
4 changes: 1 addition & 3 deletions examples/contracts/cw1-whitelist/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ crate-type = ["cdylib", "rlib"]

[features]
library = []
mt = ["sylvia/mt", "library", "anyhow"]
mt = ["sylvia/mt", "library"]

[dependencies]
sylvia = { path = "../../../sylvia" }
Expand All @@ -22,9 +22,7 @@ whitelist = { path = "../../interfaces/whitelist" }
cw-storage-plus = { workspace = true }
thiserror = { workspace = true }
cw2 = { workspace = true }
anyhow = { workspace = true, optional = true }

[dev-dependencies]
anyhow = { workspace = true }
assert_matches = { workspace = true }
sylvia = { path = "../../../sylvia", features = ["mt"] }
4 changes: 1 addition & 3 deletions examples/contracts/cw20-base/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ crate-type = ["cdylib", "rlib"]

[features]
library = []
mt = ["library", "sylvia/mt", "anyhow"]
mt = ["library", "sylvia/mt"]

[dependencies]
anyhow = { workspace = true, optional = true }
cw-storage-plus = { workspace = true }
cw-utils = { workspace = true }
cw2 = { workspace = true }
Expand All @@ -28,7 +27,6 @@ sylvia = { path = "../../../sylvia" }
thiserror = { workspace = true }

[dev-dependencies]
anyhow = { workspace = true }
assert_matches = { workspace = true }
cw-utils = { workspace = true }
sylvia = { path = "../../../sylvia", features = ["mt"] }
Expand Down
5 changes: 1 addition & 4 deletions examples/contracts/entry-points-overriding/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,12 @@ crate-type = ["cdylib", "rlib"]

[features]
library = []
mt = ["library", "sylvia/mt", "anyhow"]
mt = ["library", "sylvia/mt"]

[dependencies]
anyhow = { workspace = true, optional = true }
cw-multi-test = { workspace = true, optional = true }
cw-storage-plus = { workspace = true }
cw-utils = { workspace = true }
sylvia = { path = "../../../sylvia" }

[dev-dependencies]
anyhow = { workspace = true }
sylvia = { path = "../../../sylvia", features = ["mt"] }
4 changes: 1 addition & 3 deletions examples/contracts/generic_contract/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ crate-type = ["cdylib", "rlib"]

[features]
library = []
mt = ["library", "sylvia/mt", "anyhow"]
mt = ["library", "sylvia/mt"]

[dependencies]
anyhow = { workspace = true, optional = true }
cw-storage-plus = { workspace = true }
cw-utils = { workspace = true }
sylvia = { path = "../../../sylvia" }
Expand All @@ -25,5 +24,4 @@ generic = { path = "../../interfaces/generic" }
custom-and-generic = { path = "../../interfaces/custom-and-generic" }

[dev-dependencies]
anyhow = { workspace = true }
sylvia = { path = "../../../sylvia", features = ["mt"] }
4 changes: 1 addition & 3 deletions examples/contracts/generic_iface_on_contract/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ crate-type = ["cdylib", "rlib"]

[features]
library = []
mt = ["library", "sylvia/mt", "anyhow"]
mt = ["library", "sylvia/mt"]

[dependencies]
anyhow = { workspace = true, optional = true }
cw-storage-plus = { workspace = true }
cw-utils = { workspace = true }
sylvia = { path = "../../../sylvia" }
Expand All @@ -25,5 +24,4 @@ generic = { path = "../../interfaces/generic" }
custom-and-generic = { path = "../../interfaces/custom-and-generic" }

[dev-dependencies]
anyhow = { workspace = true }
sylvia = { path = "../../../sylvia", features = ["mt"] }
4 changes: 1 addition & 3 deletions examples/contracts/generics_forwarded/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ crate-type = ["cdylib", "rlib"]

[features]
library = []
mt = ["library", "sylvia/mt", "anyhow"]
mt = ["library", "sylvia/mt"]

[dependencies]
anyhow = { workspace = true, optional = true }
cw-storage-plus = { workspace = true }
cw-utils = { workspace = true }
sylvia = { path = "../../../sylvia" }
Expand All @@ -26,5 +25,4 @@ cw1 = { path = "../../interfaces/cw1/" }
thiserror = { workspace = true }

[dev-dependencies]
anyhow = { workspace = true }
sylvia = { path = "../../../sylvia", features = ["mt"] }
1 change: 0 additions & 1 deletion examples/interfaces/custom-and-generic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ mt = ["sylvia/mt"]
sylvia = { path = "../../../sylvia" }

[dev-dependencies]
anyhow = { workspace = true }
sylvia = { path = "../../../sylvia", features = ["mt"] }
1 change: 0 additions & 1 deletion examples/interfaces/cw1/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ mt = ["sylvia/mt"]
sylvia = { path = "../../../sylvia" }

[dev-dependencies]
anyhow = { workspace = true }
sylvia = { path = "../../../sylvia", features = ["mt"] }
1 change: 0 additions & 1 deletion examples/interfaces/cw20-allowances/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ sylvia = { path = "../../../sylvia" }
cw-utils = { workspace = true }

[dev-dependencies]
anyhow = { workspace = true }
sylvia = { path = "../../../sylvia", features = ["mt"] }
1 change: 0 additions & 1 deletion examples/interfaces/cw20-marketing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ mt = ["sylvia/mt"]
sylvia = { path = "../../../sylvia" }

[dev-dependencies]
anyhow = { workspace = true }
sylvia = { path = "../../../sylvia", features = ["mt"] }
1 change: 0 additions & 1 deletion examples/interfaces/cw20-minting/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ mt = ["sylvia/mt"]
sylvia = { path = "../../../sylvia" }

[dev-dependencies]
anyhow = { workspace = true }
sylvia = { path = "../../../sylvia", features = ["mt"] }
1 change: 0 additions & 1 deletion examples/interfaces/cw4/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ mt = ["sylvia/mt"]
sylvia = { path = "../../../sylvia" }

[dev-dependencies]
anyhow = { workspace = true }
sylvia = { path = "../../../sylvia", features = ["mt"] }
1 change: 0 additions & 1 deletion examples/interfaces/generic/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ mt = ["sylvia/mt"]
sylvia = { path = "../../../sylvia" }

[dev-dependencies]
anyhow = { workspace = true }
sylvia = { path = "../../../sylvia", features = ["mt"] }
1 change: 0 additions & 1 deletion examples/interfaces/whitelist/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ mt = ["sylvia/mt"]
sylvia = { path = "../../../sylvia" }

[dev-dependencies]
anyhow = { workspace = true }
sylvia = { path = "../../../sylvia", features = ["mt"] }

0 comments on commit 28df3d4

Please sign in to comment.