From 2daabeb9ce392059bc3607a4cab40287ef834d3d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 20 Nov 2024 14:49:36 +0000 Subject: [PATCH 1/3] chore: release v1.3.0 --- CHANGELOG.md | 46 ++++++++++++++++++ Cargo.lock | 133 ++++++++++++++++++++++++++++----------------------- Cargo.toml | 4 +- 3 files changed, 121 insertions(+), 62 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4734480f..1948db7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,52 @@ 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). +## [1.3.0](https://github.com/CosmWasm/sylvia/compare/sylvia-derive-v1.2.1...sylvia-derive-v1.3.0) - 2024-11-20 + +### Added + +- Assert no attributes used on `self` and `ctx` +- Error on wrong `sv::data` and `sv::payload` usage +- Return transaction id and block height if deserialization failed +- Assert no redundant parameters in reply method +- Update MultiTest to 2.2.0 +- Revert adding Error to ContractApi +- Create ctx module for context types +- Add temporary `sylvia::replies::ReplyCtx` with additional fields ([#450](https://github.com/CosmWasm/sylvia/pull/450)) +- Support omitting data parameter +- Add `instantiate` parameter to the `sv::data` attribute +- Add auto deserialization of reply data ([#445](https://github.com/CosmWasm/sylvia/pull/445)) +- Add support for `sv::features` attribute. ([#446](https://github.com/CosmWasm/sylvia/pull/446)) +- Pass payload while building SubMsg ([#441](https://github.com/CosmWasm/sylvia/pull/441)) +- Add option to deserialize payload ([#439](https://github.com/CosmWasm/sylvia/pull/439)) +- Impl SubMsg trait on CosmosMsg +- Add InstantiateBuilder and SubMsg trait +- Emit new reply dispatch ([#429](https://github.com/CosmWasm/sylvia/pull/429)) +- Generate unique reply_ids ([#427](https://github.com/CosmWasm/sylvia/pull/427)) +- Parse additional parameters for sv::msg(reply) ([#426](https://github.com/CosmWasm/sylvia/pull/426)) +- Make serde dep user side obsolete +- Make cosmwasm_schema deps obsolete +- Make user side cosmwasm-std dep obsolete + +### Other + +- Minor tweaks +- Add description of the `data` and `payload` attributes. +- Revert adding `non_exhaustive` on old context types. +- Rename `ReplyOn::Failure` to match variant from std +- Better error message for `sv::features` attribute +- Review fixes +- Remove redundant logic from reply +- Store MsgVariant in ReplyData +- Improve reply generation +- Review fixes +- Rename variables to be more intuitive +- Review fixes +- Remove `msg_type` method from `MsgVariant` +- Store `MsgAttr` in `MsgVariant` +- Make `MsgAttr` a struct +- Review fix + ## [1.2.1](https://github.com/CosmWasm/sylvia/compare/sylvia-derive-v1.2.0...sylvia-derive-v1.2.1) - 2024-08-22 ### Fixed diff --git a/Cargo.lock b/Cargo.lock index 6bb77612..e6911c52 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -16,9 +16,9 @@ dependencies = [ [[package]] name = "allocator-api2" -version = "0.2.18" +version = "0.2.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f" +checksum = "45862d1c77f2228b9e10bc609d5bc203d86ebc9b87ad8d5d5167a6c9abf739d9" [[package]] name = "anyhow" @@ -149,9 +149,9 @@ dependencies = [ [[package]] name = "autocfg" -version = "1.3.0" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" +checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" [[package]] name = "base16ct" @@ -194,9 +194,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.7.1" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8318a53db07bb3f8dca91a600466bdb3f2eaadeedfdbcf02e1accbad9271ba50" +checksum = "9ac0150caa2ae65ca5bd83f25c7de183dea78d4d366469f148435e2acfbad0da" [[package]] name = "cfg-if" @@ -212,9 +212,9 @@ checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" [[package]] name = "const_panic" -version = "0.2.9" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7782af8f90fe69a4bb41e460abe1727d493403d8b2cc43201a3a3e906b24379f" +checksum = "013b6c2c3a14d678f38cd23994b02da3a1a1b6a5d1eedddfe63a5a5f11b13a81" [[package]] name = "convert_case" @@ -251,7 +251,7 @@ dependencies = [ "rand_core", "rayon", "sha2", - "thiserror 1.0.64", + "thiserror 1.0.69", ] [[package]] @@ -275,7 +275,7 @@ dependencies = [ "schemars", "serde", "serde_json", - "thiserror 1.0.64", + "thiserror 1.0.69", ] [[package]] @@ -309,14 +309,14 @@ dependencies = [ "serde-json-wasm", "sha2", "static_assertions", - "thiserror 1.0.64", + "thiserror 1.0.69", ] [[package]] name = "cpufeatures" -version = "0.2.14" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "608697df725056feaccfa42cffdaeeec3fccc4ffc38358ecd19b243e716a78e0" +checksum = "0ca741a962e1b0bff6d724a1a0958b686406e853bb14061f218562e1896f95e6" dependencies = [ "libc", ] @@ -412,7 +412,7 @@ dependencies = [ "schemars", "serde", "sha2", - "thiserror 2.0.0", + "thiserror 2.0.3", ] [[package]] @@ -436,7 +436,7 @@ dependencies = [ "cosmwasm-std", "schemars", "serde", - "thiserror 1.0.64", + "thiserror 1.0.69", ] [[package]] @@ -640,6 +640,12 @@ dependencies = [ "allocator-api2", ] +[[package]] +name = "hashbrown" +version = "0.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a9bfc1af68b1726ea47d3d5109de126281def866b33970e10fbab11b5dafab3" + [[package]] name = "hex" version = "0.4.3" @@ -657,12 +663,12 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.5.0" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68b900aa2f7301e21c36462b170ee99994de34dff39a4a6a528e80e7376d07e5" +checksum = "707907fe3c25f5424cce2cb7e1cbcafee6bdbe735ca90ef77c29e84591e5b9da" dependencies = [ "equivalent", - "hashbrown 0.14.5", + "hashbrown 0.15.1", ] [[package]] @@ -685,15 +691,15 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.11" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" +checksum = "7a73e9fe3c49d7afb2ace819fa181a287ce54a0983eda4e0eb05c22f82ffe534" [[package]] name = "k256" -version = "0.13.3" +version = "0.13.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "956ff9b67e26e1a6a866cb758f12c6f8746208489e3e4a4b5580802f2f0a587b" +checksum = "f6e3919bbaa2945715f0bb6d3934a173d1e9a59ac23767fbaaef277265a7411b" dependencies = [ "cfg-if", "ecdsa", @@ -730,9 +736,9 @@ checksum = "4e28ab1dc35e09d60c2b8c90d12a9a8d9666c876c10a3739a3196db0103b6043" [[package]] name = "libc" -version = "0.2.158" +version = "0.2.164" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439" +checksum = "433bfe06b8c75da9b2e3fbea6e5329ff87748f0b144ef75306e674c3f6f7c13f" [[package]] name = "memchr" @@ -770,9 +776,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.19.0" +version = "1.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" +checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" [[package]] name = "p256" @@ -1003,9 +1009,9 @@ checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" [[package]] name = "serde" -version = "1.0.214" +version = "1.0.215" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f55c3193aca71c12ad7890f1785d2b73e1b9f63a0bbc353c08ef26fe03fc56b5" +checksum = "6513c1ad0b11a9376da888e3e0baa0077f1aed55c17f50e7b2397136129fb88f" dependencies = [ "serde_derive", ] @@ -1030,9 +1036,9 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.214" +version = "1.0.215" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de523f781f095e28fa605cdce0f8307e451cc0fd14e2eb4cd2e98a355b147766" +checksum = "ad1e866f866923f252f05c889987993144fb74e722403468a4ebd70c3cd756c0" dependencies = [ "proc-macro2", "quote", @@ -1052,9 +1058,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.128" +version = "1.0.133" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ff5456707a1de34e7e37f2a6fd3d3f808c318259cbd01ab6377795054b483d8" +checksum = "c7fceb2473b9166b2294ef05efcb65a3db80803f0b03ef86a5fc88a2b85ee377" dependencies = [ "itoa", "memchr", @@ -1064,9 +1070,9 @@ dependencies = [ [[package]] name = "serde_spanned" -version = "0.6.7" +version = "0.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb5b1b31579f3811bf615c144393417496f152e12ac8b7663bf664f4a815306d" +checksum = "87607cb1398ed59d48732e575a4c28a7a8ebf2454b964fe3f224f2afc07909e1" dependencies = [ "serde", ] @@ -1106,7 +1112,7 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "sylvia" -version = "1.2.1" +version = "1.3.0" dependencies = [ "anyhow", "cosmwasm-schema", @@ -1122,13 +1128,13 @@ dependencies = [ "serde-cw-value", "serde-json-wasm", "sylvia-derive", - "thiserror 2.0.0", + "thiserror 2.0.3", "trybuild", ] [[package]] name = "sylvia-derive" -version = "1.2.1" +version = "1.3.0" dependencies = [ "convert_case", "cosmwasm-schema", @@ -1145,7 +1151,7 @@ dependencies = [ "sylvia", "sylvia-runtime-macros", "syn 2.0.87", - "thiserror 2.0.0", + "thiserror 2.0.3", ] [[package]] @@ -1181,6 +1187,12 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "target-triple" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42a4d50cdb458045afc8131fd91b64904da29548bcb63c7236e0844936c13078" + [[package]] name = "termcolor" version = "1.4.1" @@ -1192,27 +1204,27 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.64" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d50af8abc119fb8bb6dbabcfa89656f46f84aa0ac7688088608076ad2b459a84" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" dependencies = [ - "thiserror-impl 1.0.64", + "thiserror-impl 1.0.69", ] [[package]] name = "thiserror" -version = "2.0.0" +version = "2.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15291287e9bff1bc6f9ff3409ed9af665bec7a5fc8ac079ea96be07bca0e2668" +checksum = "c006c85c7651b3cf2ada4584faa36773bd07bac24acfb39f3c431b36d7e667aa" dependencies = [ - "thiserror-impl 2.0.0", + "thiserror-impl 2.0.3", ] [[package]] name = "thiserror-impl" -version = "1.0.64" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08904e7672f5eb876eaaf87e0ce17857500934f4981c4a0ab2b4aa98baac7fc3" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" dependencies = [ "proc-macro2", "quote", @@ -1221,9 +1233,9 @@ dependencies = [ [[package]] name = "thiserror-impl" -version = "2.0.0" +version = "2.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22efd00f33f93fa62848a7cab956c3d38c8d43095efda1decfc2b3a5dc0b8972" +checksum = "f077553d607adc1caf65430528a576c757a71ed73944b66ebb58ef2bbd243568" dependencies = [ "proc-macro2", "quote", @@ -1253,9 +1265,9 @@ dependencies = [ [[package]] name = "toml_edit" -version = "0.22.20" +version = "0.22.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "583c44c02ad26b0c3f3066fe629275e50627026c51ac2e595cca4c230ce1ce1d" +checksum = "4ae48d6208a266e853d946088ed816055e556cc6028c5e8e2b84d9fa5dd7c7f5" dependencies = [ "indexmap", "serde", @@ -1266,14 +1278,15 @@ dependencies = [ [[package]] name = "trybuild" -version = "1.0.99" +version = "1.0.101" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "207aa50d36c4be8d8c6ea829478be44a372c6a77669937bb39c698e52f1491e8" +checksum = "8dcd332a5496c026f1e14b7f3d2b7bd98e509660c04239c58b0ba38a12daded4" dependencies = [ "glob", "serde", "serde_derive", "serde_json", + "target-triple", "termcolor", "toml", ] @@ -1301,21 +1314,21 @@ checksum = "e36a83ea2b3c704935a01b4642946aadd445cea40b10935e3f8bd8052b8193d6" [[package]] name = "unicode-ident" -version = "1.0.12" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" +checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83" [[package]] name = "unicode-segmentation" -version = "1.11.0" +version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4c87d22b6e3f4a18d4d40ef354e97c90fcb14dd91d7dc0aa9d8a1172ebf7202" +checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" [[package]] name = "unicode-xid" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "229730647fbc343e3a80e463c1db7f78f3855d3f3739bee0dda773c9a037c90a" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" [[package]] name = "version_check" @@ -1413,9 +1426,9 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] name = "winnow" -version = "0.6.18" +version = "0.6.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68a9bda4691f099d435ad181000724da8e5899daa10713c2d432552b9ccd3a6f" +checksum = "36c1fec1a2bb5866f07c25f68c26e565c4c200aebb96d7e55710c19d3e8ac49b" dependencies = [ "memchr", ] diff --git a/Cargo.toml b/Cargo.toml index e28adf9f..6999d1b3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,10 +4,10 @@ exclude = ["examples/*"] resolver = "2" [workspace.package] -version = "1.2.1" +version = "1.3.0" [workspace.dependencies] -sylvia-derive = { version = "1.2.1", path = "sylvia-derive" } +sylvia-derive = { version = "1.3.0", path = "sylvia-derive" } anyhow = "1.0.93" cosmwasm-schema = "2.1.4" cosmwasm-std = "2.1.4" From eea5e755e6d398a9c173236959412afed0d3a95b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Wo=C5=BAniak?= Date: Wed, 20 Nov 2024 15:51:37 +0100 Subject: [PATCH 2/3] chore: Update `examples/Cargo.lock` --- examples/Cargo.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/Cargo.lock b/examples/Cargo.lock index 0bd75153..7cc96363 100644 --- a/examples/Cargo.lock +++ b/examples/Cargo.lock @@ -1265,7 +1265,7 @@ checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" [[package]] name = "sylvia" -version = "1.2.1" +version = "1.3.0" dependencies = [ "anyhow", "cosmwasm-schema", @@ -1282,7 +1282,7 @@ dependencies = [ [[package]] name = "sylvia-derive" -version = "1.2.1" +version = "1.3.0" dependencies = [ "convert_case", "itertools 0.13.0", From 5cbd0fa833ade09365f3b84bf996aed86b070ee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Wo=C5=BAniak?= Date: Thu, 21 Nov 2024 08:44:36 +0100 Subject: [PATCH 3/3] chore: Cleanup CHANGELOG --- CHANGELOG.md | 9 --------- 1 file changed, 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1948db7a..03dd6cd4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,22 +33,13 @@ and this project adheres to ### Other -- Minor tweaks - Add description of the `data` and `payload` attributes. -- Revert adding `non_exhaustive` on old context types. -- Rename `ReplyOn::Failure` to match variant from std - Better error message for `sv::features` attribute -- Review fixes -- Remove redundant logic from reply - Store MsgVariant in ReplyData - Improve reply generation -- Review fixes -- Rename variables to be more intuitive -- Review fixes - Remove `msg_type` method from `MsgVariant` - Store `MsgAttr` in `MsgVariant` - Make `MsgAttr` a struct -- Review fix ## [1.2.1](https://github.com/CosmWasm/sylvia/compare/sylvia-derive-v1.2.0...sylvia-derive-v1.2.1) - 2024-08-22