From 50be622109e3c584efc29edac5390c96f1ccc43a Mon Sep 17 00:00:00 2001 From: Cameron Carstens Date: Tue, 6 Aug 2024 23:22:52 +0700 Subject: [PATCH] Bump to sway-standards v0.5.2, forc v0.62.0, fuel-core v0.31.0 and v0.23.1 release (#281) ## Type of change - Improvement - Release ## Changes The following changes have been made: - Bumps repo to forc v0.62.0 - Bumps repo to fuel-core v0.31.0 - Bumps repo to sway-standard v0.5.2 - Prepares for v0.23.1 release ## Checklist - [ ] I have linked to any relevant issues. - [ ] I have commented my code, particularly in hard-to-understand areas. - [ ] I have updated the documentation where relevant (API docs, the reference, and the Sway book). - [ ] If my change requires substantial documentation changes, I have [requested support from the DevRel team](https://github.com/FuelLabs/devrel-requests/issues/new/choose) - [ ] I have added tests that prove my fix is effective or that my feature works. - [ ] I have added (or requested a maintainer to add) the necessary `Breaking*` or `New Feature` labels where relevant. - [ ] I have done my best to ensure that my PR adheres to [the Fuel Labs Code Review Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md). - [ ] I have requested a review from the relevant team or maintainers. - [ ] I have updated the changelog to reflect the changes on this PR. --- CHANGELOG.md | 49 +++++++++++++++++-- Cargo.toml | 2 +- README.md | 2 +- docs/book/src/getting_started/index.md | 4 +- examples/Forc.lock | 31 +++++------- examples/admin/Forc.toml | 2 +- examples/asset/base_docs/Forc.toml | 2 +- examples/asset/basic_src20/Forc.toml | 2 +- examples/asset/basic_src3/Forc.toml | 2 +- examples/asset/basic_src7/Forc.toml | 2 +- examples/asset/metadata_docs/Forc.toml | 2 +- .../asset/setting_src20_attributes/Forc.toml | 2 +- .../asset/setting_src7_attributes/Forc.toml | 2 +- examples/asset/supply_docs/Forc.toml | 2 +- examples/ownership/Forc.toml | 2 +- examples/upgradability/Forc.toml | 2 +- libs/Forc.lock | 2 +- libs/Forc.toml | 2 +- tests/Forc.lock | 17 +++---- tests/src/admin/Forc.toml | 2 +- tests/src/native_asset/Forc.toml | 2 +- tests/src/ownership/Forc.toml | 2 +- tests/src/upgradability/Forc.toml | 2 +- 23 files changed, 85 insertions(+), 54 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 237c7f9c..f69f3343 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,23 +5,64 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). -## [v0.23.0] +## [Unreleased] ### Added +- Something new here 1 +- Something new here 2 + +### Changed + +- Something changed here 1 +- Something changed here 2 + +### Fixed + +- Some fix here 1 +- Some fix here 2 + +### Breaking + +- Some breaking change here 1 +- Some breaking change here 2 + +## [v0.23.1] + +### Added v0.23.1 + +- None + +### Changed v0.23.1 + +- [#281](https://github.com/FuelLabs/sway-libs/pull/281) Prepares for `v0.23.1` release. +- [#281](https://github.com/FuelLabs/sway-libs/pull/281) Updates repository to use sway-standards `v0.5.2`. + +### Fixed v0.23.1 + +- None + +### Breaking v0.23.1 + +- None + +## [v0.23.0] + +### Added v0.23.0 + - [#259](https://github.com/FuelLabs/sway-libs/pull/259) Adds a new upgradability library, including associated tests and documentation. - [#265](https://github.com/FuelLabs/sway-libs/pull/265) Adds the `SetMetadataEvent` and emits `SetMetadataEvent` when the `_set_metadata()` function is called. - [#270](https://github.com/FuelLabs/sway-libs/pull/270) Adds `OrdEq` functionality to Signed Integers. - [#272](https://github.com/FuelLabs/sway-libs/pull/272) Adds the `TryFrom` implementation from signed integers to unsigned integers. -### Changed +### Changed v0.23.0 - [#265](https://github.com/FuelLabs/sway-libs/pull/265) Enables the metadata events now that the Rust SDK supports wrapped heap types. - [#269](https://github.com/FuelLabs/sway-libs/pull/269) Hashes the string "admin" and with the bits of an Identity when creating a storage slot to storage an admin in the Admin Library. - [#276](https://github.com/FuelLabs/sway-libs/pull/276) Prepares for v0.23.0 release. - [#278](https://github.com/FuelLabs/sway-libs/pull/278) Deprecates the Fixed Point number library. -### Fixed +### Fixed v0.23.0 - [#258](https://github.com/FuelLabs/sway-libs/pull/258) Fixes incorrect instructions on how to run tests in README and docs hub. - [#262](https://github.com/FuelLabs/sway-libs/pull/262) Fixes incorrect ordering comparison for IFP64, IFP128 and IFP256. @@ -33,7 +74,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - [#274](https://github.com/FuelLabs/sway-libs/pull/274) Fixes the `swap_configurables()` function to correctly handle the case where the bytecode is too large to fit in the buffer. - [#275](https://github.com/FuelLabs/sway-libs/pull/275) Fixes an infinite loop in the Bytecode root library's `_compute_bytecode_root()` function. -#### Breaking +### Breaking v0.23.0 - [#263](https://github.com/FuelLabs/sway-libs/pull/263) Removes the `TwosComplement` trait in favor of `WrappingNeg`. diff --git a/Cargo.toml b/Cargo.toml index ffba569f..63e5bc11 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,4 @@ [package] name = "sway-libs" -version = "0.23.0" +version = "0.23.1" edition = "2021" diff --git a/README.md b/README.md index 69f23263..da12f023 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ For implementation details on the libraries please see the [Sway Libs Docs](http To import a library, the following dependency should be added to the project's `Forc.toml` file under `[dependencies]`. ```rust -sway_libs = { git = "https://github.com/FuelLabs/sway-libs", tag = "v0.23.0" } +sway_libs = { git = "https://github.com/FuelLabs/sway-libs", tag = "v0.23.1" } ``` > **NOTE:** diff --git a/docs/book/src/getting_started/index.md b/docs/book/src/getting_started/index.md index ee3c903a..39d89f84 100644 --- a/docs/book/src/getting_started/index.md +++ b/docs/book/src/getting_started/index.md @@ -5,7 +5,7 @@ To import any library, the following dependency should be added to the project's `Forc.toml` file under `[dependencies]`. ```sway -sway_libs = { git = "https://github.com/FuelLabs/sway-libs", tag = "v0.23.0" } +sway_libs = { git = "https://github.com/FuelLabs/sway-libs", tag = "v0.23.1" } ``` For reference, here is a complete `Forc.toml` file: @@ -18,7 +18,7 @@ license = "Apache-2.0" name = "MyProject" [dependencies] -sway_libs = { git = "https://github.com/FuelLabs/sway-libs", tag = "v0.23.0" } +sway_libs = { git = "https://github.com/FuelLabs/sway-libs", tag = "v0.23.1" } ``` > **NOTE:** Be sure to set the tag to the latest release. diff --git a/examples/Forc.lock b/examples/Forc.lock index 95cde592..b9587a52 100644 --- a/examples/Forc.lock +++ b/examples/Forc.lock @@ -2,7 +2,7 @@ name = "admin_examples" source = "member" dependencies = [ - "standards git+https://github.com/FuelLabs/sway-standards?tag=v0.5.0#348f7175df4c012b23c86cdb18aab79025ca1f18", + "standards", "std", "sway_libs", ] @@ -11,7 +11,7 @@ dependencies = [ name = "base_docs" source = "member" dependencies = [ - "standards git+https://github.com/FuelLabs/sway-standards?tag=v0.5.0#348f7175df4c012b23c86cdb18aab79025ca1f18", + "standards", "std", "sway_libs", ] @@ -20,7 +20,7 @@ dependencies = [ name = "basic_src20" source = "member" dependencies = [ - "standards git+https://github.com/FuelLabs/sway-standards?tag=v0.5.0#348f7175df4c012b23c86cdb18aab79025ca1f18", + "standards", "std", "sway_libs", ] @@ -29,7 +29,7 @@ dependencies = [ name = "basic_src3" source = "member" dependencies = [ - "standards git+https://github.com/FuelLabs/sway-standards?tag=v0.5.0#348f7175df4c012b23c86cdb18aab79025ca1f18", + "standards", "std", "sway_libs", ] @@ -38,7 +38,7 @@ dependencies = [ name = "basic_src7" source = "member" dependencies = [ - "standards git+https://github.com/FuelLabs/sway-standards?tag=v0.5.0#348f7175df4c012b23c86cdb18aab79025ca1f18", + "standards", "std", "sway_libs", ] @@ -67,7 +67,7 @@ dependencies = [ name = "metadata_docs" source = "member" dependencies = [ - "standards git+https://github.com/FuelLabs/sway-standards?tag=v0.5.0#348f7175df4c012b23c86cdb18aab79025ca1f18", + "standards", "std", "sway_libs", ] @@ -76,7 +76,7 @@ dependencies = [ name = "ownership_examples" source = "member" dependencies = [ - "standards git+https://github.com/FuelLabs/sway-standards?tag=v0.5.0#348f7175df4c012b23c86cdb18aab79025ca1f18", + "standards", "std", "sway_libs", ] @@ -117,7 +117,7 @@ dependencies = [ name = "setting_src20_attributes" source = "member" dependencies = [ - "standards git+https://github.com/FuelLabs/sway-standards?tag=v0.5.0#348f7175df4c012b23c86cdb18aab79025ca1f18", + "standards", "std", "sway_libs", ] @@ -126,7 +126,7 @@ dependencies = [ name = "setting_src7_attributes" source = "member" dependencies = [ - "standards git+https://github.com/FuelLabs/sway-standards?tag=v0.5.0#348f7175df4c012b23c86cdb18aab79025ca1f18", + "standards", "std", "sway_libs", ] @@ -141,12 +141,7 @@ dependencies = [ [[package]] name = "standards" -source = "git+https://github.com/FuelLabs/sway-standards?tag=v0.5.0#348f7175df4c012b23c86cdb18aab79025ca1f18" -dependencies = ["std"] - -[[package]] -name = "standards" -source = "git+https://github.com/FuelLabs/sway-standards?tag=v0.5.1#e2d5ac40a1d11a9e38e0a662d35141076515319f" +source = "git+https://github.com/FuelLabs/sway-standards?tag=v0.5.2#270350e69bd7455b7e99f0aae2e29a94d42324bd" dependencies = ["std"] [[package]] @@ -158,7 +153,7 @@ dependencies = ["core"] name = "supply_docs" source = "member" dependencies = [ - "standards git+https://github.com/FuelLabs/sway-standards?tag=v0.5.0#348f7175df4c012b23c86cdb18aab79025ca1f18", + "standards", "std", "sway_libs", ] @@ -167,7 +162,7 @@ dependencies = [ name = "sway_libs" source = "path+from-root-9E88A97493D252A9" dependencies = [ - "standards git+https://github.com/FuelLabs/sway-standards?tag=v0.5.0#348f7175df4c012b23c86cdb18aab79025ca1f18", + "standards", "std", ] @@ -175,7 +170,7 @@ dependencies = [ name = "upgradability_examples" source = "member" dependencies = [ - "standards git+https://github.com/FuelLabs/sway-standards?tag=v0.5.1#e2d5ac40a1d11a9e38e0a662d35141076515319f", + "standards", "std", "sway_libs", ] diff --git a/examples/admin/Forc.toml b/examples/admin/Forc.toml index 3043e8df..c01483cf 100644 --- a/examples/admin/Forc.toml +++ b/examples/admin/Forc.toml @@ -5,5 +5,5 @@ license = "Apache-2.0" name = "admin_examples" [dependencies] -standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.0" } +standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.2" } sway_libs = { path = "../../libs" } diff --git a/examples/asset/base_docs/Forc.toml b/examples/asset/base_docs/Forc.toml index dd0d1f8b..6dc4619a 100644 --- a/examples/asset/base_docs/Forc.toml +++ b/examples/asset/base_docs/Forc.toml @@ -5,5 +5,5 @@ license = "Apache-2.0" name = "base_docs" [dependencies] -standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.0" } +standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.2" } sway_libs = { path = "../../../libs" } diff --git a/examples/asset/basic_src20/Forc.toml b/examples/asset/basic_src20/Forc.toml index 1598c7d5..b7659901 100644 --- a/examples/asset/basic_src20/Forc.toml +++ b/examples/asset/basic_src20/Forc.toml @@ -5,5 +5,5 @@ license = "Apache-2.0" name = "basic_src20" [dependencies] -standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.0" } +standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.2" } sway_libs = { path = "../../../libs" } diff --git a/examples/asset/basic_src3/Forc.toml b/examples/asset/basic_src3/Forc.toml index df1cfdfd..b4871c59 100644 --- a/examples/asset/basic_src3/Forc.toml +++ b/examples/asset/basic_src3/Forc.toml @@ -5,5 +5,5 @@ license = "Apache-2.0" name = "basic_src3" [dependencies] -standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.0" } +standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.2" } sway_libs = { path = "../../../libs" } diff --git a/examples/asset/basic_src7/Forc.toml b/examples/asset/basic_src7/Forc.toml index d8c3d8e6..d6d7244a 100644 --- a/examples/asset/basic_src7/Forc.toml +++ b/examples/asset/basic_src7/Forc.toml @@ -5,5 +5,5 @@ license = "Apache-2.0" name = "basic_src7" [dependencies] -standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.0" } +standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.2" } sway_libs = { path = "../../../libs" } diff --git a/examples/asset/metadata_docs/Forc.toml b/examples/asset/metadata_docs/Forc.toml index 053c5251..f429e97a 100644 --- a/examples/asset/metadata_docs/Forc.toml +++ b/examples/asset/metadata_docs/Forc.toml @@ -5,5 +5,5 @@ license = "Apache-2.0" name = "metadata_docs" [dependencies] -standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.0" } +standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.2" } sway_libs = { path = "../../../libs" } diff --git a/examples/asset/setting_src20_attributes/Forc.toml b/examples/asset/setting_src20_attributes/Forc.toml index 44c13313..109673c5 100644 --- a/examples/asset/setting_src20_attributes/Forc.toml +++ b/examples/asset/setting_src20_attributes/Forc.toml @@ -5,5 +5,5 @@ license = "Apache-2.0" name = "setting_src20_attributes" [dependencies] -standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.0" } +standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.2" } sway_libs = { path = "../../../libs" } diff --git a/examples/asset/setting_src7_attributes/Forc.toml b/examples/asset/setting_src7_attributes/Forc.toml index 5f5c054e..f1dc4f94 100644 --- a/examples/asset/setting_src7_attributes/Forc.toml +++ b/examples/asset/setting_src7_attributes/Forc.toml @@ -5,5 +5,5 @@ license = "Apache-2.0" name = "setting_src7_attributes" [dependencies] -standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.0" } +standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.2" } sway_libs = { path = "../../../libs" } diff --git a/examples/asset/supply_docs/Forc.toml b/examples/asset/supply_docs/Forc.toml index bf7077d7..2722843b 100644 --- a/examples/asset/supply_docs/Forc.toml +++ b/examples/asset/supply_docs/Forc.toml @@ -5,5 +5,5 @@ license = "Apache-2.0" name = "supply_docs" [dependencies] -standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.0" } +standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.2" } sway_libs = { path = "../../../libs" } diff --git a/examples/ownership/Forc.toml b/examples/ownership/Forc.toml index 98121696..72adea04 100644 --- a/examples/ownership/Forc.toml +++ b/examples/ownership/Forc.toml @@ -5,5 +5,5 @@ license = "Apache-2.0" name = "ownership_examples" [dependencies] -standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.0" } +standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.2" } sway_libs = { path = "../../libs" } diff --git a/examples/upgradability/Forc.toml b/examples/upgradability/Forc.toml index 0859e406..c4364b2c 100644 --- a/examples/upgradability/Forc.toml +++ b/examples/upgradability/Forc.toml @@ -5,5 +5,5 @@ license = "Apache-2.0" name = "upgradability_examples" [dependencies] -standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.1" } +standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.2" } sway_libs = { path = "../../libs" } diff --git a/libs/Forc.lock b/libs/Forc.lock index 0c2855ba..a516af41 100644 --- a/libs/Forc.lock +++ b/libs/Forc.lock @@ -4,7 +4,7 @@ source = "path+from-root-E19CE48B3E858B72" [[package]] name = "standards" -source = "git+https://github.com/FuelLabs/sway-standards?tag=v0.5.0#348f7175df4c012b23c86cdb18aab79025ca1f18" +source = "git+https://github.com/FuelLabs/sway-standards?tag=v0.5.2#270350e69bd7455b7e99f0aae2e29a94d42324bd" dependencies = ["std"] [[package]] diff --git a/libs/Forc.toml b/libs/Forc.toml index 83da5b1f..4db34db5 100644 --- a/libs/Forc.toml +++ b/libs/Forc.toml @@ -5,4 +5,4 @@ license = "Apache-2.0" name = "sway_libs" [dependencies] -standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.0" } +standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.2" } diff --git a/tests/Forc.lock b/tests/Forc.lock index 010d053f..3f4107b2 100644 --- a/tests/Forc.lock +++ b/tests/Forc.lock @@ -2,7 +2,7 @@ name = "admin_test" source = "member" dependencies = [ - "standards git+https://github.com/FuelLabs/sway-standards?tag=v0.5.0#348f7175df4c012b23c86cdb18aab79025ca1f18", + "standards", "std", "sway_libs", ] @@ -132,7 +132,7 @@ dependencies = [ name = "native_asset_lib" source = "member" dependencies = [ - "standards git+https://github.com/FuelLabs/sway-standards?tag=v0.5.0#348f7175df4c012b23c86cdb18aab79025ca1f18", + "standards", "std", "sway_libs", ] @@ -141,7 +141,7 @@ dependencies = [ name = "ownership_test" source = "member" dependencies = [ - "standards git+https://github.com/FuelLabs/sway-standards?tag=v0.5.0#348f7175df4c012b23c86cdb18aab79025ca1f18", + "standards", "std", "sway_libs", ] @@ -210,12 +210,7 @@ dependencies = ["std"] [[package]] name = "standards" -source = "git+https://github.com/FuelLabs/sway-standards?tag=v0.5.0#348f7175df4c012b23c86cdb18aab79025ca1f18" -dependencies = ["std"] - -[[package]] -name = "standards" -source = "git+https://github.com/FuelLabs/sway-standards?tag=v0.5.1#e2d5ac40a1d11a9e38e0a662d35141076515319f" +source = "git+https://github.com/FuelLabs/sway-standards?tag=v0.5.2#270350e69bd7455b7e99f0aae2e29a94d42324bd" dependencies = ["std"] [[package]] @@ -227,7 +222,7 @@ dependencies = ["core"] name = "sway_libs" source = "path+from-root-8E8363697A2C7D80" dependencies = [ - "standards git+https://github.com/FuelLabs/sway-standards?tag=v0.5.0#348f7175df4c012b23c86cdb18aab79025ca1f18", + "standards", "std", ] @@ -235,7 +230,7 @@ dependencies = [ name = "upgradability_test" source = "member" dependencies = [ - "standards git+https://github.com/FuelLabs/sway-standards?tag=v0.5.1#e2d5ac40a1d11a9e38e0a662d35141076515319f", + "standards", "std", "sway_libs", ] diff --git a/tests/src/admin/Forc.toml b/tests/src/admin/Forc.toml index b26d6179..82663096 100644 --- a/tests/src/admin/Forc.toml +++ b/tests/src/admin/Forc.toml @@ -5,5 +5,5 @@ license = "Apache-2.0" name = "admin_test" [dependencies] -standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.0" } +standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.2" } sway_libs = { path = "../../../libs" } diff --git a/tests/src/native_asset/Forc.toml b/tests/src/native_asset/Forc.toml index 15b557d6..feaebf2b 100644 --- a/tests/src/native_asset/Forc.toml +++ b/tests/src/native_asset/Forc.toml @@ -5,5 +5,5 @@ license = "Apache-2.0" name = "native_asset_lib" [dependencies] -standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.0" } +standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.2" } sway_libs = { path = "../../../libs" } diff --git a/tests/src/ownership/Forc.toml b/tests/src/ownership/Forc.toml index e34d2e37..b24ee3f3 100644 --- a/tests/src/ownership/Forc.toml +++ b/tests/src/ownership/Forc.toml @@ -5,5 +5,5 @@ license = "Apache-2.0" name = "ownership_test" [dependencies] -standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.0" } +standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.2" } sway_libs = { path = "../../../libs" } diff --git a/tests/src/upgradability/Forc.toml b/tests/src/upgradability/Forc.toml index d495ef19..02d03edb 100644 --- a/tests/src/upgradability/Forc.toml +++ b/tests/src/upgradability/Forc.toml @@ -5,5 +5,5 @@ license = "Apache-2.0" name = "upgradability_test" [dependencies] -standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.1" } +standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.5.2" } sway_libs = { path = "../../../libs" }