From 00ff6a53acb3a9179471f4537eb9f240119dc3b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Wo=C5=BAniak?= Date: Mon, 14 Aug 2023 17:19:53 +0200 Subject: [PATCH 1/3] feat: Provide native way to cast deps to empty --- CHANGELOG.md | 8 +++++++ packages/std/src/deps.rs | 45 +++++++++++++++++++++++++++++++++++--- packages/std/src/traits.rs | 23 +++++++++++++++++++ 3 files changed, 73 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 59558b3d68..9fa4d3c4cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Added + +- cosmwasm-std: Implement `into_empty` for `QuerierWrapper`, `Deps` and + `DepsMut`. + ## [1.3.2] - 2023-08-15 ### Fixed @@ -1790,6 +1797,7 @@ Some main points: All future Changelog entries will reference this base +[unreleased]: https://github.com/CosmWasm/cosmwasm/compare/v1.3.2...HEAD [1.3.2]: https://github.com/CosmWasm/cosmwasm/compare/v1.3.1...v1.3.2 [1.3.1]: https://github.com/CosmWasm/cosmwasm/compare/v1.3.0...v1.3.1 [1.3.0]: https://github.com/CosmWasm/cosmwasm/compare/v1.2.7...v1.3.0 diff --git a/packages/std/src/deps.rs b/packages/std/src/deps.rs index 4d9a9ecdce..bbae1b8871 100644 --- a/packages/std/src/deps.rs +++ b/packages/std/src/deps.rs @@ -69,6 +69,28 @@ impl<'a, C: CustomQuery> DepsMut<'a, C> { querier: self.querier, } } + + /// This allows to convert any `DepsMut` into one generic over `Empty` custom + /// query type. + pub fn into_empty(self) -> DepsMut<'a, Empty> { + DepsMut { + storage: self.storage, + api: self.api, + querier: self.querier.into_empty(), + } + } +} + +impl<'a, C: CustomQuery> Deps<'a, C> { + /// This allows to convert any `Deps` into one generic over `Empty` custom + /// query type. + pub fn into_empty(self) -> Deps<'a, Empty> { + Deps { + storage: self.storage, + api: self.api, + querier: self.querier.into_empty(), + } + } } #[cfg(test)] @@ -98,12 +120,13 @@ mod tests { query(deps.as_ref()) } + #[derive(Clone, Serialize, Deserialize)] + struct MyQuery; + impl CustomQuery for MyQuery {} + #[test] fn deps_implements_copy() { impl CustomQuery for u64 {} - #[derive(Clone, Serialize, Deserialize)] - struct MyQuery; - impl CustomQuery for MyQuery {} // With C: Copy let owned = OwnedDeps::<_, _, _, u64> { @@ -127,4 +150,20 @@ mod tests { let _copy1 = deps; let _copy2 = deps; } + + #[test] + fn deps_to_empty() { + let mut owned = OwnedDeps::<_, _, _, MyQuery> { + storage: MockStorage::default(), + api: MockApi::default(), + querier: MockQuerier::::new(&[]), + custom_query_type: PhantomData, + }; + + let deps_mut: DepsMut = owned.as_mut(); + let _: DepsMut = deps_mut.into_empty(); + + let deps: Deps = owned.as_ref(); + let _: Deps = deps.into_empty(); + } } diff --git a/packages/std/src/traits.rs b/packages/std/src/traits.rs index f7aca97ba4..e8e5998430 100644 --- a/packages/std/src/traits.rs +++ b/packages/std/src/traits.rs @@ -224,6 +224,15 @@ impl<'a, C: CustomQuery> QuerierWrapper<'a, C> { } } + /// This allows to convert any `QuerierWrapper` into a `QuerierWrapper` generic + /// over `Empty` custom query type. + pub fn into_empty(self) -> QuerierWrapper<'a, Empty> { + QuerierWrapper { + querier: self.querier, + custom_query_type: PhantomData, + } + } + /// Makes the query and parses the response. /// /// Any error (System Error, Error or called contract, or Parse Error) are flattened into @@ -442,6 +451,8 @@ impl<'a, C: CustomQuery> QuerierWrapper<'a, C> { #[cfg(test)] mod tests { + use serde::Deserialize; + use super::*; use crate::testing::MockQuerier; use crate::{coins, from_slice, Uint128}; @@ -572,4 +583,16 @@ mod tests { } if msg == "Querier system error: No such contract: foobar" )); } + + #[test] + fn querier_into_empty() { + #[derive(Clone, Serialize, Deserialize)] + struct MyQuery; + impl CustomQuery for MyQuery {} + + let querier: MockQuerier = MockQuerier::new(&[]); + let wrapper = QuerierWrapper::::new(&querier); + + let _: QuerierWrapper = wrapper.into_empty(); + } } From 943cdbfd28527b17dd35479e2d825bd012d37041 Mon Sep 17 00:00:00 2001 From: Christoph Otter Date: Tue, 22 Aug 2023 12:45:41 +0200 Subject: [PATCH 2/3] Set version: 1.3.3 --- Cargo.lock | 16 ++++++++-------- contracts/burner/Cargo.lock | 12 ++++++------ contracts/crypto-verify/Cargo.lock | 14 +++++++------- contracts/cyberpunk/Cargo.lock | 14 +++++++------- contracts/floaty/Cargo.lock | 14 +++++++------- contracts/hackatom/Cargo.lock | 14 +++++++------- contracts/ibc-reflect-send/Cargo.lock | 14 +++++++------- contracts/ibc-reflect/Cargo.lock | 14 +++++++------- contracts/queue/Cargo.lock | 12 ++++++------ contracts/reflect/Cargo.lock | 14 +++++++------- contracts/staking/Cargo.lock | 14 +++++++------- contracts/virus/Cargo.lock | 12 ++++++------ packages/check/Cargo.toml | 6 +++--- packages/crypto/Cargo.toml | 2 +- packages/derive/Cargo.toml | 2 +- packages/schema-derive/Cargo.toml | 2 +- packages/schema/Cargo.toml | 6 +++--- packages/std/Cargo.toml | 6 +++--- packages/storage/Cargo.toml | 4 ++-- packages/vm/Cargo.toml | 6 +++--- 20 files changed, 99 insertions(+), 99 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d2363377f5..3e6a1bdf50 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -291,7 +291,7 @@ dependencies = [ [[package]] name = "cosmwasm-check" -version = "1.3.2" +version = "1.3.3" dependencies = [ "anyhow", "clap 2.34.0", @@ -302,7 +302,7 @@ dependencies = [ [[package]] name = "cosmwasm-crypto" -version = "1.3.2" +version = "1.3.3" dependencies = [ "base64", "criterion", @@ -321,7 +321,7 @@ dependencies = [ [[package]] name = "cosmwasm-derive" -version = "1.3.2" +version = "1.3.3" dependencies = [ "cosmwasm-std", "syn", @@ -329,7 +329,7 @@ dependencies = [ [[package]] name = "cosmwasm-schema" -version = "1.3.2" +version = "1.3.3" dependencies = [ "anyhow", "cosmwasm-schema-derive", @@ -344,7 +344,7 @@ dependencies = [ [[package]] name = "cosmwasm-schema-derive" -version = "1.3.2" +version = "1.3.3" dependencies = [ "proc-macro2", "quote", @@ -353,7 +353,7 @@ dependencies = [ [[package]] name = "cosmwasm-std" -version = "1.3.2" +version = "1.3.3" dependencies = [ "base64", "bnum", @@ -375,7 +375,7 @@ dependencies = [ [[package]] name = "cosmwasm-storage" -version = "1.3.2" +version = "1.3.3" dependencies = [ "cosmwasm-std", "serde", @@ -383,7 +383,7 @@ dependencies = [ [[package]] name = "cosmwasm-vm" -version = "1.3.2" +version = "1.3.3" dependencies = [ "bitflags", "bytecheck", diff --git a/contracts/burner/Cargo.lock b/contracts/burner/Cargo.lock index d27f3c3386..d65d74accb 100644 --- a/contracts/burner/Cargo.lock +++ b/contracts/burner/Cargo.lock @@ -180,7 +180,7 @@ dependencies = [ [[package]] name = "cosmwasm-crypto" -version = "1.3.2" +version = "1.3.3" dependencies = [ "digest 0.10.3", "ed25519-zebra", @@ -191,14 +191,14 @@ dependencies = [ [[package]] name = "cosmwasm-derive" -version = "1.3.2" +version = "1.3.3" dependencies = [ "syn", ] [[package]] name = "cosmwasm-schema" -version = "1.3.2" +version = "1.3.3" dependencies = [ "cosmwasm-schema-derive", "schemars", @@ -209,7 +209,7 @@ dependencies = [ [[package]] name = "cosmwasm-schema-derive" -version = "1.3.2" +version = "1.3.3" dependencies = [ "proc-macro2", "quote", @@ -218,7 +218,7 @@ dependencies = [ [[package]] name = "cosmwasm-std" -version = "1.3.2" +version = "1.3.3" dependencies = [ "base64", "bnum", @@ -236,7 +236,7 @@ dependencies = [ [[package]] name = "cosmwasm-vm" -version = "1.3.2" +version = "1.3.3" dependencies = [ "bitflags", "bytecheck", diff --git a/contracts/crypto-verify/Cargo.lock b/contracts/crypto-verify/Cargo.lock index 6c01f72537..fb5ebb8157 100644 --- a/contracts/crypto-verify/Cargo.lock +++ b/contracts/crypto-verify/Cargo.lock @@ -175,7 +175,7 @@ dependencies = [ [[package]] name = "cosmwasm-crypto" -version = "1.3.2" +version = "1.3.3" dependencies = [ "digest 0.10.3", "ed25519-zebra", @@ -186,14 +186,14 @@ dependencies = [ [[package]] name = "cosmwasm-derive" -version = "1.3.2" +version = "1.3.3" dependencies = [ "syn", ] [[package]] name = "cosmwasm-schema" -version = "1.3.2" +version = "1.3.3" dependencies = [ "cosmwasm-schema-derive", "schemars", @@ -204,7 +204,7 @@ dependencies = [ [[package]] name = "cosmwasm-schema-derive" -version = "1.3.2" +version = "1.3.3" dependencies = [ "proc-macro2", "quote", @@ -213,7 +213,7 @@ dependencies = [ [[package]] name = "cosmwasm-std" -version = "1.3.2" +version = "1.3.3" dependencies = [ "base64", "bnum", @@ -231,7 +231,7 @@ dependencies = [ [[package]] name = "cosmwasm-storage" -version = "1.3.2" +version = "1.3.3" dependencies = [ "cosmwasm-std", "serde", @@ -239,7 +239,7 @@ dependencies = [ [[package]] name = "cosmwasm-vm" -version = "1.3.2" +version = "1.3.3" dependencies = [ "bitflags", "bytecheck", diff --git a/contracts/cyberpunk/Cargo.lock b/contracts/cyberpunk/Cargo.lock index 98349c9dc7..9225b45c66 100644 --- a/contracts/cyberpunk/Cargo.lock +++ b/contracts/cyberpunk/Cargo.lock @@ -198,7 +198,7 @@ dependencies = [ [[package]] name = "cosmwasm-crypto" -version = "1.3.2" +version = "1.3.3" dependencies = [ "digest 0.10.3", "ed25519-zebra", @@ -209,14 +209,14 @@ dependencies = [ [[package]] name = "cosmwasm-derive" -version = "1.3.2" +version = "1.3.3" dependencies = [ "syn", ] [[package]] name = "cosmwasm-schema" -version = "1.3.2" +version = "1.3.3" dependencies = [ "cosmwasm-schema-derive", "schemars", @@ -227,7 +227,7 @@ dependencies = [ [[package]] name = "cosmwasm-schema-derive" -version = "1.3.2" +version = "1.3.3" dependencies = [ "proc-macro2", "quote", @@ -236,7 +236,7 @@ dependencies = [ [[package]] name = "cosmwasm-std" -version = "1.3.2" +version = "1.3.3" dependencies = [ "base64", "bnum", @@ -254,7 +254,7 @@ dependencies = [ [[package]] name = "cosmwasm-storage" -version = "1.3.2" +version = "1.3.3" dependencies = [ "cosmwasm-std", "serde", @@ -262,7 +262,7 @@ dependencies = [ [[package]] name = "cosmwasm-vm" -version = "1.3.2" +version = "1.3.3" dependencies = [ "bitflags", "bytecheck", diff --git a/contracts/floaty/Cargo.lock b/contracts/floaty/Cargo.lock index 5b8ef9a533..e3d44962c6 100644 --- a/contracts/floaty/Cargo.lock +++ b/contracts/floaty/Cargo.lock @@ -169,7 +169,7 @@ dependencies = [ [[package]] name = "cosmwasm-crypto" -version = "1.3.2" +version = "1.3.3" dependencies = [ "digest 0.10.3", "ed25519-zebra", @@ -180,14 +180,14 @@ dependencies = [ [[package]] name = "cosmwasm-derive" -version = "1.3.2" +version = "1.3.3" dependencies = [ "syn", ] [[package]] name = "cosmwasm-schema" -version = "1.3.2" +version = "1.3.3" dependencies = [ "cosmwasm-schema-derive", "schemars", @@ -198,7 +198,7 @@ dependencies = [ [[package]] name = "cosmwasm-schema-derive" -version = "1.3.2" +version = "1.3.3" dependencies = [ "proc-macro2", "quote", @@ -207,7 +207,7 @@ dependencies = [ [[package]] name = "cosmwasm-std" -version = "1.3.2" +version = "1.3.3" dependencies = [ "base64", "bnum", @@ -225,7 +225,7 @@ dependencies = [ [[package]] name = "cosmwasm-storage" -version = "1.3.2" +version = "1.3.3" dependencies = [ "cosmwasm-std", "serde", @@ -233,7 +233,7 @@ dependencies = [ [[package]] name = "cosmwasm-vm" -version = "1.3.2" +version = "1.3.3" dependencies = [ "bitflags", "bytecheck", diff --git a/contracts/hackatom/Cargo.lock b/contracts/hackatom/Cargo.lock index 289d8a5495..1a9c02d3ad 100644 --- a/contracts/hackatom/Cargo.lock +++ b/contracts/hackatom/Cargo.lock @@ -169,7 +169,7 @@ dependencies = [ [[package]] name = "cosmwasm-crypto" -version = "1.3.2" +version = "1.3.3" dependencies = [ "digest 0.10.3", "ed25519-zebra", @@ -180,14 +180,14 @@ dependencies = [ [[package]] name = "cosmwasm-derive" -version = "1.3.2" +version = "1.3.3" dependencies = [ "syn", ] [[package]] name = "cosmwasm-schema" -version = "1.3.2" +version = "1.3.3" dependencies = [ "cosmwasm-schema-derive", "schemars", @@ -198,7 +198,7 @@ dependencies = [ [[package]] name = "cosmwasm-schema-derive" -version = "1.3.2" +version = "1.3.3" dependencies = [ "proc-macro2", "quote", @@ -207,7 +207,7 @@ dependencies = [ [[package]] name = "cosmwasm-std" -version = "1.3.2" +version = "1.3.3" dependencies = [ "base64", "bnum", @@ -225,7 +225,7 @@ dependencies = [ [[package]] name = "cosmwasm-storage" -version = "1.3.2" +version = "1.3.3" dependencies = [ "cosmwasm-std", "serde", @@ -233,7 +233,7 @@ dependencies = [ [[package]] name = "cosmwasm-vm" -version = "1.3.2" +version = "1.3.3" dependencies = [ "bitflags", "bytecheck", diff --git a/contracts/ibc-reflect-send/Cargo.lock b/contracts/ibc-reflect-send/Cargo.lock index 05b35892fd..d53f2e5987 100644 --- a/contracts/ibc-reflect-send/Cargo.lock +++ b/contracts/ibc-reflect-send/Cargo.lock @@ -169,7 +169,7 @@ dependencies = [ [[package]] name = "cosmwasm-crypto" -version = "1.3.2" +version = "1.3.3" dependencies = [ "digest 0.10.3", "ed25519-zebra", @@ -180,14 +180,14 @@ dependencies = [ [[package]] name = "cosmwasm-derive" -version = "1.3.2" +version = "1.3.3" dependencies = [ "syn", ] [[package]] name = "cosmwasm-schema" -version = "1.3.2" +version = "1.3.3" dependencies = [ "cosmwasm-schema-derive", "schemars", @@ -198,7 +198,7 @@ dependencies = [ [[package]] name = "cosmwasm-schema-derive" -version = "1.3.2" +version = "1.3.3" dependencies = [ "proc-macro2", "quote", @@ -207,7 +207,7 @@ dependencies = [ [[package]] name = "cosmwasm-std" -version = "1.3.2" +version = "1.3.3" dependencies = [ "base64", "bnum", @@ -225,7 +225,7 @@ dependencies = [ [[package]] name = "cosmwasm-storage" -version = "1.3.2" +version = "1.3.3" dependencies = [ "cosmwasm-std", "serde", @@ -233,7 +233,7 @@ dependencies = [ [[package]] name = "cosmwasm-vm" -version = "1.3.2" +version = "1.3.3" dependencies = [ "bitflags", "bytecheck", diff --git a/contracts/ibc-reflect/Cargo.lock b/contracts/ibc-reflect/Cargo.lock index 61a8c0a2c5..59941ae33f 100644 --- a/contracts/ibc-reflect/Cargo.lock +++ b/contracts/ibc-reflect/Cargo.lock @@ -169,7 +169,7 @@ dependencies = [ [[package]] name = "cosmwasm-crypto" -version = "1.3.2" +version = "1.3.3" dependencies = [ "digest 0.10.3", "ed25519-zebra", @@ -180,14 +180,14 @@ dependencies = [ [[package]] name = "cosmwasm-derive" -version = "1.3.2" +version = "1.3.3" dependencies = [ "syn", ] [[package]] name = "cosmwasm-schema" -version = "1.3.2" +version = "1.3.3" dependencies = [ "cosmwasm-schema-derive", "schemars", @@ -198,7 +198,7 @@ dependencies = [ [[package]] name = "cosmwasm-schema-derive" -version = "1.3.2" +version = "1.3.3" dependencies = [ "proc-macro2", "quote", @@ -207,7 +207,7 @@ dependencies = [ [[package]] name = "cosmwasm-std" -version = "1.3.2" +version = "1.3.3" dependencies = [ "base64", "bnum", @@ -225,7 +225,7 @@ dependencies = [ [[package]] name = "cosmwasm-storage" -version = "1.3.2" +version = "1.3.3" dependencies = [ "cosmwasm-std", "serde", @@ -233,7 +233,7 @@ dependencies = [ [[package]] name = "cosmwasm-vm" -version = "1.3.2" +version = "1.3.3" dependencies = [ "bitflags", "bytecheck", diff --git a/contracts/queue/Cargo.lock b/contracts/queue/Cargo.lock index b9b2c85f59..b8a21b1fb3 100644 --- a/contracts/queue/Cargo.lock +++ b/contracts/queue/Cargo.lock @@ -169,7 +169,7 @@ dependencies = [ [[package]] name = "cosmwasm-crypto" -version = "1.3.2" +version = "1.3.3" dependencies = [ "digest 0.10.3", "ed25519-zebra", @@ -180,14 +180,14 @@ dependencies = [ [[package]] name = "cosmwasm-derive" -version = "1.3.2" +version = "1.3.3" dependencies = [ "syn", ] [[package]] name = "cosmwasm-schema" -version = "1.3.2" +version = "1.3.3" dependencies = [ "cosmwasm-schema-derive", "schemars", @@ -198,7 +198,7 @@ dependencies = [ [[package]] name = "cosmwasm-schema-derive" -version = "1.3.2" +version = "1.3.3" dependencies = [ "proc-macro2", "quote", @@ -207,7 +207,7 @@ dependencies = [ [[package]] name = "cosmwasm-std" -version = "1.3.2" +version = "1.3.3" dependencies = [ "base64", "bnum", @@ -225,7 +225,7 @@ dependencies = [ [[package]] name = "cosmwasm-vm" -version = "1.3.2" +version = "1.3.3" dependencies = [ "bitflags", "bytecheck", diff --git a/contracts/reflect/Cargo.lock b/contracts/reflect/Cargo.lock index 9ba307009b..ee5a70691f 100644 --- a/contracts/reflect/Cargo.lock +++ b/contracts/reflect/Cargo.lock @@ -169,7 +169,7 @@ dependencies = [ [[package]] name = "cosmwasm-crypto" -version = "1.3.2" +version = "1.3.3" dependencies = [ "digest 0.10.3", "ed25519-zebra", @@ -180,14 +180,14 @@ dependencies = [ [[package]] name = "cosmwasm-derive" -version = "1.3.2" +version = "1.3.3" dependencies = [ "syn", ] [[package]] name = "cosmwasm-schema" -version = "1.3.2" +version = "1.3.3" dependencies = [ "cosmwasm-schema-derive", "schemars", @@ -198,7 +198,7 @@ dependencies = [ [[package]] name = "cosmwasm-schema-derive" -version = "1.3.2" +version = "1.3.3" dependencies = [ "proc-macro2", "quote", @@ -207,7 +207,7 @@ dependencies = [ [[package]] name = "cosmwasm-std" -version = "1.3.2" +version = "1.3.3" dependencies = [ "base64", "bnum", @@ -225,7 +225,7 @@ dependencies = [ [[package]] name = "cosmwasm-storage" -version = "1.3.2" +version = "1.3.3" dependencies = [ "cosmwasm-std", "serde", @@ -233,7 +233,7 @@ dependencies = [ [[package]] name = "cosmwasm-vm" -version = "1.3.2" +version = "1.3.3" dependencies = [ "bitflags", "bytecheck", diff --git a/contracts/staking/Cargo.lock b/contracts/staking/Cargo.lock index c525e103ca..fea02ba84e 100644 --- a/contracts/staking/Cargo.lock +++ b/contracts/staking/Cargo.lock @@ -169,7 +169,7 @@ dependencies = [ [[package]] name = "cosmwasm-crypto" -version = "1.3.2" +version = "1.3.3" dependencies = [ "digest 0.10.3", "ed25519-zebra", @@ -180,14 +180,14 @@ dependencies = [ [[package]] name = "cosmwasm-derive" -version = "1.3.2" +version = "1.3.3" dependencies = [ "syn", ] [[package]] name = "cosmwasm-schema" -version = "1.3.2" +version = "1.3.3" dependencies = [ "cosmwasm-schema-derive", "schemars", @@ -198,7 +198,7 @@ dependencies = [ [[package]] name = "cosmwasm-schema-derive" -version = "1.3.2" +version = "1.3.3" dependencies = [ "proc-macro2", "quote", @@ -207,7 +207,7 @@ dependencies = [ [[package]] name = "cosmwasm-std" -version = "1.3.2" +version = "1.3.3" dependencies = [ "base64", "bnum", @@ -225,7 +225,7 @@ dependencies = [ [[package]] name = "cosmwasm-storage" -version = "1.3.2" +version = "1.3.3" dependencies = [ "cosmwasm-std", "serde", @@ -233,7 +233,7 @@ dependencies = [ [[package]] name = "cosmwasm-vm" -version = "1.3.2" +version = "1.3.3" dependencies = [ "bitflags", "bytecheck", diff --git a/contracts/virus/Cargo.lock b/contracts/virus/Cargo.lock index fd9f491ada..f5e5f6b7e5 100644 --- a/contracts/virus/Cargo.lock +++ b/contracts/virus/Cargo.lock @@ -169,7 +169,7 @@ dependencies = [ [[package]] name = "cosmwasm-crypto" -version = "1.3.2" +version = "1.3.3" dependencies = [ "digest 0.10.3", "ed25519-zebra", @@ -180,14 +180,14 @@ dependencies = [ [[package]] name = "cosmwasm-derive" -version = "1.3.2" +version = "1.3.3" dependencies = [ "syn", ] [[package]] name = "cosmwasm-schema" -version = "1.3.2" +version = "1.3.3" dependencies = [ "cosmwasm-schema-derive", "schemars", @@ -198,7 +198,7 @@ dependencies = [ [[package]] name = "cosmwasm-schema-derive" -version = "1.3.2" +version = "1.3.3" dependencies = [ "proc-macro2", "quote", @@ -207,7 +207,7 @@ dependencies = [ [[package]] name = "cosmwasm-std" -version = "1.3.2" +version = "1.3.3" dependencies = [ "base64", "bnum", @@ -225,7 +225,7 @@ dependencies = [ [[package]] name = "cosmwasm-vm" -version = "1.3.2" +version = "1.3.3" dependencies = [ "bitflags", "bytecheck", diff --git a/packages/check/Cargo.toml b/packages/check/Cargo.toml index 64e2292ae7..9a1444e5e7 100644 --- a/packages/check/Cargo.toml +++ b/packages/check/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cosmwasm-check" -version = "1.3.2" +version = "1.3.3" authors = ["Mauro Lacy "] edition = "2021" description = "A CLI tool for verifying CosmWasm smart contracts" @@ -11,5 +11,5 @@ license = "Apache-2.0" anyhow = "1.0.57" clap = "2" colored = "2" -cosmwasm-vm = { path = "../vm", version = "1.3.2" } -cosmwasm-std = { path = "../std", version = "1.3.2" } +cosmwasm-vm = { path = "../vm", version = "1.3.3" } +cosmwasm-std = { path = "../std", version = "1.3.3" } diff --git a/packages/crypto/Cargo.toml b/packages/crypto/Cargo.toml index 03826e465e..95471a37eb 100644 --- a/packages/crypto/Cargo.toml +++ b/packages/crypto/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cosmwasm-crypto" -version = "1.3.2" +version = "1.3.3" authors = ["Mauro Lacy "] edition = "2021" description = "Crypto bindings for cosmwasm contracts" diff --git a/packages/derive/Cargo.toml b/packages/derive/Cargo.toml index 8676971c60..1d36bab3f9 100644 --- a/packages/derive/Cargo.toml +++ b/packages/derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cosmwasm-derive" -version = "1.3.2" +version = "1.3.3" authors = ["Simon Warta "] edition = "2021" description = "A package for auto-generated code used for CosmWasm contract development. This is shipped as part of cosmwasm-std. Do not use directly." diff --git a/packages/schema-derive/Cargo.toml b/packages/schema-derive/Cargo.toml index 0654e2e856..06eec0d629 100644 --- a/packages/schema-derive/Cargo.toml +++ b/packages/schema-derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cosmwasm-schema-derive" -version = "1.3.2" +version = "1.3.3" authors = ["Tomasz Kurcz "] edition = "2021" description = "Derive macros for cosmwasm-schema" diff --git a/packages/schema/Cargo.toml b/packages/schema/Cargo.toml index 58c9148e45..180f4afbe6 100644 --- a/packages/schema/Cargo.toml +++ b/packages/schema/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cosmwasm-schema" -version = "1.3.2" +version = "1.3.3" authors = ["Simon Warta ", "Ethan Frey "] edition = "2021" description = "A dev-dependency for CosmWasm contracts to generate JSON Schema files." @@ -8,7 +8,7 @@ repository = "https://github.com/CosmWasm/cosmwasm/tree/main/packages/schema" license = "Apache-2.0" [dependencies] -cosmwasm-schema-derive = { version = "=1.3.2", path = "../schema-derive" } +cosmwasm-schema-derive = { version = "=1.3.3", path = "../schema-derive" } schemars = "0.8.3" serde = "1.0" serde_json = "1.0.40" @@ -16,6 +16,6 @@ thiserror = "1.0.26" [dev-dependencies] anyhow = "1.0.57" -cosmwasm-std = { version = "1.3.2", path = "../std" } +cosmwasm-std = { version = "1.3.3", path = "../std" } semver = "1" tempfile = "3" diff --git a/packages/std/Cargo.toml b/packages/std/Cargo.toml index 691fca98e1..2f9bf3a0d4 100644 --- a/packages/std/Cargo.toml +++ b/packages/std/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cosmwasm-std" -version = "1.3.2" +version = "1.3.3" authors = ["Ethan Frey "] edition = "2021" description = "Standard library for Wasm based smart contracts on Cosmos blockchains" @@ -45,7 +45,7 @@ cosmwasm_1_3 = ["cosmwasm_1_2"] [dependencies] base64 = "0.13.0" -cosmwasm-derive = { path = "../derive", version = "1.3.2" } +cosmwasm-derive = { path = "../derive", version = "1.3.3" } derivative = "2" forward_ref = "1" hex = "0.4" @@ -57,7 +57,7 @@ thiserror = "1.0.26" bnum = "0.7.0" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] -cosmwasm-crypto = { path = "../crypto", version = "1.3.2" } +cosmwasm-crypto = { path = "../crypto", version = "1.3.3" } [dev-dependencies] cosmwasm-schema = { path = "../schema" } diff --git a/packages/storage/Cargo.toml b/packages/storage/Cargo.toml index 8028adef44..962b6af827 100644 --- a/packages/storage/Cargo.toml +++ b/packages/storage/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cosmwasm-storage" -version = "1.3.2" +version = "1.3.3" authors = ["Ethan Frey "] edition = "2021" description = "CosmWasm library with useful helpers for Storage patterns" @@ -16,5 +16,5 @@ iterator = ["cosmwasm-std/iterator"] [dependencies] # Uses the path when built locally; uses the given version from crates.io when published -cosmwasm-std = { path = "../std", version = "1.3.2", default-features = false } +cosmwasm-std = { path = "../std", version = "1.3.3", default-features = false } serde = { version = "1.0.103", default-features = false, features = ["derive", "alloc"] } diff --git a/packages/vm/Cargo.toml b/packages/vm/Cargo.toml index b921be6357..bace27fb41 100644 --- a/packages/vm/Cargo.toml +++ b/packages/vm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cosmwasm-vm" -version = "1.3.2" +version = "1.3.3" authors = ["Ethan Frey "] edition = "2021" description = "VM bindings to run cosmwams contracts" @@ -42,8 +42,8 @@ required-features = ["iterator"] clru = "0.4.0" crc32fast = "1.3.2" # Uses the path when built locally; uses the given version from crates.io when published -cosmwasm-std = { path = "../std", version = "1.3.2", default-features = false } -cosmwasm-crypto = { path = "../crypto", version = "1.3.2" } +cosmwasm-std = { path = "../std", version = "1.3.3", default-features = false } +cosmwasm-crypto = { path = "../crypto", version = "1.3.3" } hex = "0.4" parity-wasm = { version = "0.45", features = ["sign_ext"] } schemars = "0.8.3" From 7cb25b441d20d37a0c039eb6ded23fd9e6878e98 Mon Sep 17 00:00:00 2001 From: Christoph Otter Date: Tue, 22 Aug 2023 12:46:53 +0200 Subject: [PATCH 3/3] Update changelog --- CHANGELOG.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fa4d3c4cb..aadf0ebe0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ and this project adheres to ## [Unreleased] +## [1.3.3] - 2023-08-22 + ### Added - cosmwasm-std: Implement `into_empty` for `QuerierWrapper`, `Deps` and @@ -1797,7 +1799,8 @@ Some main points: All future Changelog entries will reference this base -[unreleased]: https://github.com/CosmWasm/cosmwasm/compare/v1.3.2...HEAD +[unreleased]: https://github.com/CosmWasm/cosmwasm/compare/v1.3.3...HEAD +[1.3.3]: https://github.com/CosmWasm/cosmwasm/compare/v1.3.2...v1.3.3 [1.3.2]: https://github.com/CosmWasm/cosmwasm/compare/v1.3.1...v1.3.2 [1.3.1]: https://github.com/CosmWasm/cosmwasm/compare/v1.3.0...v1.3.1 [1.3.0]: https://github.com/CosmWasm/cosmwasm/compare/v1.2.7...v1.3.0