diff --git a/examples/Cargo.lock b/examples/Cargo.lock index d1203ccc..d9a82503 100644 --- a/examples/Cargo.lock +++ b/examples/Cargo.lock @@ -405,8 +405,6 @@ dependencies = [ name = "custom" version = "0.5.0" dependencies = [ - "anyhow", - "cw-multi-test", "cw-storage-plus", "cw1", "sylvia", @@ -416,7 +414,6 @@ dependencies = [ name = "custom-and-generic" version = "0.5.0" dependencies = [ - "anyhow", "sylvia", ] @@ -468,7 +465,6 @@ dependencies = [ name = "cw1" version = "0.5.0" dependencies = [ - "anyhow", "sylvia", ] @@ -476,7 +472,6 @@ dependencies = [ name = "cw1-subkeys" version = "0.5.0" dependencies = [ - "anyhow", "cw-storage-plus", "cw-utils", "cw1", @@ -491,7 +486,6 @@ dependencies = [ name = "cw1-whitelist" version = "0.5.0" dependencies = [ - "anyhow", "assert_matches", "cw-storage-plus", "cw1", @@ -520,7 +514,6 @@ dependencies = [ name = "cw20-allowances" version = "0.5.0" dependencies = [ - "anyhow", "cw-utils", "sylvia", ] @@ -529,7 +522,6 @@ dependencies = [ name = "cw20-base" version = "0.5.0" dependencies = [ - "anyhow", "assert_matches", "cw-storage-plus", "cw-utils", @@ -546,7 +538,6 @@ dependencies = [ name = "cw20-marketing" version = "0.5.0" dependencies = [ - "anyhow", "sylvia", ] @@ -554,7 +545,6 @@ dependencies = [ name = "cw20-minting" version = "0.5.0" dependencies = [ - "anyhow", "sylvia", ] @@ -562,7 +552,6 @@ dependencies = [ name = "cw4" version = "0.5.0" dependencies = [ - "anyhow", "sylvia", ] @@ -691,8 +680,6 @@ dependencies = [ name = "entry-points-overriding" version = "0.5.0" dependencies = [ - "anyhow", - "cw-multi-test", "cw-storage-plus", "cw-utils", "sylvia", @@ -724,7 +711,6 @@ checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d" name = "generic" version = "0.5.0" dependencies = [ - "anyhow", "sylvia", ] @@ -743,7 +729,6 @@ dependencies = [ name = "generic_contract" version = "0.5.0" dependencies = [ - "anyhow", "custom-and-generic", "cw-storage-plus", "cw-utils", @@ -756,7 +741,6 @@ dependencies = [ name = "generic_iface_on_contract" version = "0.5.0" dependencies = [ - "anyhow", "custom-and-generic", "cw-storage-plus", "cw-utils", @@ -769,7 +753,6 @@ dependencies = [ name = "generics_forwarded" version = "0.5.0" dependencies = [ - "anyhow", "custom-and-generic", "cw-storage-plus", "cw-utils", @@ -1418,7 +1401,6 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" name = "whitelist" version = "0.5.0" dependencies = [ - "anyhow", "sylvia", ] diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 5f5c119f..f99702b2 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -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" diff --git a/examples/contracts/custom/Cargo.toml b/examples/contracts/custom/Cargo.toml index 968cd81d..9c0b744d 100644 --- a/examples/contracts/custom/Cargo.toml +++ b/examples/contracts/custom/Cargo.toml @@ -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"] } diff --git a/examples/contracts/custom/src/multitest/custom_module.rs b/examples/contracts/custom/src/multitest/custom_module.rs index 286ac331..04455b15 100644 --- a/examples/contracts/custom/src/multitest/custom_module.rs +++ b/examples/contracts/custom/src/multitest/custom_module.rs @@ -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::{ @@ -41,7 +42,7 @@ impl Module for CustomModule { _block: &BlockInfo, _sender: Addr, msg: Self::ExecT, - ) -> anyhow::Result + ) -> AnyResult where ExecC: Debug + Clone + PartialEq + JsonSchema + DeserializeOwned + 'static, QueryC: CustomQuery + DeserializeOwned + 'static, @@ -62,7 +63,7 @@ impl Module for CustomModule { _router: &dyn CosmosRouter, _block: &BlockInfo, _msg: Self::SudoT, - ) -> anyhow::Result + ) -> AnyResult where ExecC: Debug + Clone + PartialEq + JsonSchema + DeserializeOwned + 'static, QueryC: CustomQuery + DeserializeOwned + 'static, @@ -77,7 +78,7 @@ impl Module for CustomModule { _querier: &dyn Querier, _block: &BlockInfo, request: Self::QueryT, - ) -> anyhow::Result { + ) -> AnyResult { match request { CounterQuery::Count {} => { let count = self.counter.load(storage)?; diff --git a/examples/contracts/cw1-subkeys/Cargo.toml b/examples/contracts/cw1-subkeys/Cargo.toml index 4c7b0e82..bc9c0ff1 100644 --- a/examples/contracts/cw1-subkeys/Cargo.toml +++ b/examples/contracts/cw1-subkeys/Cargo.toml @@ -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" } @@ -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"] } diff --git a/examples/contracts/cw1-whitelist/Cargo.toml b/examples/contracts/cw1-whitelist/Cargo.toml index 3695fd71..abf4f881 100644 --- a/examples/contracts/cw1-whitelist/Cargo.toml +++ b/examples/contracts/cw1-whitelist/Cargo.toml @@ -13,7 +13,7 @@ crate-type = ["cdylib", "rlib"] [features] library = [] -mt = ["sylvia/mt", "library", "anyhow"] +mt = ["sylvia/mt", "library"] [dependencies] sylvia = { path = "../../../sylvia" } @@ -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"] } diff --git a/examples/contracts/cw20-base/Cargo.toml b/examples/contracts/cw20-base/Cargo.toml index 734a0706..7df2731f 100644 --- a/examples/contracts/cw20-base/Cargo.toml +++ b/examples/contracts/cw20-base/Cargo.toml @@ -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 } @@ -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"] } diff --git a/examples/contracts/entry-points-overriding/Cargo.toml b/examples/contracts/entry-points-overriding/Cargo.toml index bb9d57a5..db005f2f 100644 --- a/examples/contracts/entry-points-overriding/Cargo.toml +++ b/examples/contracts/entry-points-overriding/Cargo.toml @@ -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"] } diff --git a/examples/contracts/generic_contract/Cargo.toml b/examples/contracts/generic_contract/Cargo.toml index 0ce85f8a..b4581cac 100644 --- a/examples/contracts/generic_contract/Cargo.toml +++ b/examples/contracts/generic_contract/Cargo.toml @@ -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" } @@ -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"] } diff --git a/examples/contracts/generic_iface_on_contract/Cargo.toml b/examples/contracts/generic_iface_on_contract/Cargo.toml index cddbc2c9..a164a7e5 100644 --- a/examples/contracts/generic_iface_on_contract/Cargo.toml +++ b/examples/contracts/generic_iface_on_contract/Cargo.toml @@ -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" } @@ -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"] } diff --git a/examples/contracts/generics_forwarded/Cargo.toml b/examples/contracts/generics_forwarded/Cargo.toml index 2b2e1855..692e2435 100644 --- a/examples/contracts/generics_forwarded/Cargo.toml +++ b/examples/contracts/generics_forwarded/Cargo.toml @@ -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" } @@ -26,5 +25,4 @@ cw1 = { path = "../../interfaces/cw1/" } thiserror = { workspace = true } [dev-dependencies] -anyhow = { workspace = true } sylvia = { path = "../../../sylvia", features = ["mt"] } diff --git a/examples/interfaces/custom-and-generic/Cargo.toml b/examples/interfaces/custom-and-generic/Cargo.toml index b324e5bf..96043887 100644 --- a/examples/interfaces/custom-and-generic/Cargo.toml +++ b/examples/interfaces/custom-and-generic/Cargo.toml @@ -15,5 +15,4 @@ mt = ["sylvia/mt"] sylvia = { path = "../../../sylvia" } [dev-dependencies] -anyhow = { workspace = true } sylvia = { path = "../../../sylvia", features = ["mt"] } diff --git a/examples/interfaces/cw1/Cargo.toml b/examples/interfaces/cw1/Cargo.toml index 3b55826d..59c0b6ce 100644 --- a/examples/interfaces/cw1/Cargo.toml +++ b/examples/interfaces/cw1/Cargo.toml @@ -15,5 +15,4 @@ mt = ["sylvia/mt"] sylvia = { path = "../../../sylvia" } [dev-dependencies] -anyhow = { workspace = true } sylvia = { path = "../../../sylvia", features = ["mt"] } diff --git a/examples/interfaces/cw20-allowances/Cargo.toml b/examples/interfaces/cw20-allowances/Cargo.toml index e005adbc..9d092387 100644 --- a/examples/interfaces/cw20-allowances/Cargo.toml +++ b/examples/interfaces/cw20-allowances/Cargo.toml @@ -16,5 +16,4 @@ sylvia = { path = "../../../sylvia" } cw-utils = { workspace = true } [dev-dependencies] -anyhow = { workspace = true } sylvia = { path = "../../../sylvia", features = ["mt"] } diff --git a/examples/interfaces/cw20-marketing/Cargo.toml b/examples/interfaces/cw20-marketing/Cargo.toml index 0c3c558b..937490d1 100644 --- a/examples/interfaces/cw20-marketing/Cargo.toml +++ b/examples/interfaces/cw20-marketing/Cargo.toml @@ -15,5 +15,4 @@ mt = ["sylvia/mt"] sylvia = { path = "../../../sylvia" } [dev-dependencies] -anyhow = { workspace = true } sylvia = { path = "../../../sylvia", features = ["mt"] } diff --git a/examples/interfaces/cw20-minting/Cargo.toml b/examples/interfaces/cw20-minting/Cargo.toml index 2492c41d..7e06de53 100644 --- a/examples/interfaces/cw20-minting/Cargo.toml +++ b/examples/interfaces/cw20-minting/Cargo.toml @@ -15,5 +15,4 @@ mt = ["sylvia/mt"] sylvia = { path = "../../../sylvia" } [dev-dependencies] -anyhow = { workspace = true } sylvia = { path = "../../../sylvia", features = ["mt"] } diff --git a/examples/interfaces/cw4/Cargo.toml b/examples/interfaces/cw4/Cargo.toml index c5f1072e..52675131 100644 --- a/examples/interfaces/cw4/Cargo.toml +++ b/examples/interfaces/cw4/Cargo.toml @@ -15,5 +15,4 @@ mt = ["sylvia/mt"] sylvia = { path = "../../../sylvia" } [dev-dependencies] -anyhow = { workspace = true } sylvia = { path = "../../../sylvia", features = ["mt"] } diff --git a/examples/interfaces/generic/Cargo.toml b/examples/interfaces/generic/Cargo.toml index bbad322e..817ad943 100644 --- a/examples/interfaces/generic/Cargo.toml +++ b/examples/interfaces/generic/Cargo.toml @@ -15,5 +15,4 @@ mt = ["sylvia/mt"] sylvia = { path = "../../../sylvia" } [dev-dependencies] -anyhow = { workspace = true } sylvia = { path = "../../../sylvia", features = ["mt"] } diff --git a/examples/interfaces/whitelist/Cargo.toml b/examples/interfaces/whitelist/Cargo.toml index ce741504..409f213e 100644 --- a/examples/interfaces/whitelist/Cargo.toml +++ b/examples/interfaces/whitelist/Cargo.toml @@ -15,5 +15,4 @@ mt = ["sylvia/mt"] sylvia = { path = "../../../sylvia" } [dev-dependencies] -anyhow = { workspace = true } sylvia = { path = "../../../sylvia", features = ["mt"] }