Skip to content

Commit

Permalink
feat: Expose cosmwasm features
Browse files Browse the repository at this point in the history
  • Loading branch information
jawoznia committed Nov 29, 2023
1 parent 3a2313a commit 2919c86
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 38 deletions.
38 changes: 24 additions & 14 deletions Cargo.lock

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

43 changes: 27 additions & 16 deletions examples/Cargo.lock

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

4 changes: 2 additions & 2 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ edition = "2021"
anyhow = "1.0.75"
cosmwasm-schema = "1.5.0"
cosmwasm-std = "1.5.0"
cw-multi-test = "0.18.0"
cw-multi-test = "0.19.0"
cw-storage-plus = "1.2.0"
cw-utils = "1.0.2"
cw2 = "1.1.1"
cw2 = "1.1.2"
getrandom = "0.2.11"
semver = "1.0.20"
serde = { version = "1.0.192", default-features = false, features = ["derive"] }
Expand Down
3 changes: 1 addition & 2 deletions examples/contracts/cw20-base/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ use cosmwasm_std::{
ensure, Addr, Binary, BlockInfo, DepsMut, Order, Response, StdError, StdResult, Storage,
Uint128,
};
use cw2::set_contract_version;
use cw2::{ensure_from_older_version, set_contract_version};
use cw20_allowances::responses::AllowanceResponse;
use cw20_marketing::responses::{LogoInfo, MarketingInfoResponse};
use cw20_marketing::Logo;
use cw20_minting::responses::MinterResponse;
use cw_storage_plus::{Item, Map};
use cw_utils::ensure_from_older_version;
use sylvia::types::{ExecCtx, InstantiateCtx, MigrateCtx, QueryCtx};
use sylvia::{contract, schemars};

Expand Down
23 changes: 19 additions & 4 deletions sylvia/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,30 @@ categories = ["api-bindings", "wasm"]

[features]
mt = ["sylvia-derive/mt", "dep:cw-multi-test", "dep:anyhow", "dep:derivative"]
stargate = ["cosmwasm-std/stargate"]
iterator = ["cosmwasm-std/iterator"]
cosmwasm_1_1 = [
"dep:cw-multi-test",
"cosmwasm-std/cosmwasm_1_1",
"cw-multi-test?/cosmwasm_1_1",
]
cosmwasm_1_2 = [
"dep:cw-multi-test",
"cosmwasm-std/cosmwasm_1_2",
"cw-multi-test?/cosmwasm_1_2",
"dep:cw-utils",
"sylvia-derive/cosmwasm_1_2",
]
stargate = ["cosmwasm-std/stargate", "cw-multi-test?/stargate"]
staking = ["cosmwasm-std/staking", "cw-multi-test?/staking"]
cosmwasm_1_3 = [
"dep:cw-multi-test",
"cosmwasm-std/cosmwasm_1_3",
"cw-multi-test?/cosmwasm_1_3",
]
cosmwasm_1_4 = [
"dep:cw-multi-test",
"cosmwasm-std/cosmwasm_1_4",
"cw-multi-test?/cosmwasm_1_4",
]

[dependencies]
sylvia-derive = { workspace = true }
Expand All @@ -31,14 +46,14 @@ serde = { version = "1.0", default-features = false, features = ["derive"] }
serde-cw-value = "0.7.0"
serde-json-wasm = "1.0.0"
konst = "0.3"
cw-multi-test = { version = "0.18.0", optional = true }
cw-multi-test = { version = "0.19.0", optional = true }
anyhow = { version = "1.0", optional = true }
derivative = { version = "2.2.0", optional = true }
cw-utils = { version = "1.0.2", optional = true }

[dev-dependencies]
anyhow = "1.0"
cw-multi-test = "0.18"
cw-multi-test = "0.19.0"
cw-storage-plus = "1.2.0"
cw-utils = "1.0.2"
thiserror = "1.0.50"

0 comments on commit 2919c86

Please sign in to comment.