Skip to content

Commit

Permalink
Bump to sway-standards v0.5.2, forc v0.62.0, fuel-core v0.31.0 and v0…
Browse files Browse the repository at this point in the history
….23.1 release (#281)

## Type of change

<!--Delete points that do not apply-->

- 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.
  • Loading branch information
bitzoic authored Aug 6, 2024
1 parent e205b05 commit 50be622
Show file tree
Hide file tree
Showing 23 changed files with 85 additions and 54 deletions.
49 changes: 45 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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`.

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[package]
name = "sway-libs"
version = "0.23.0"
version = "0.23.1"
edition = "2021"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:**
Expand Down
4 changes: 2 additions & 2 deletions docs/book/src/getting_started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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.
Expand Down
31 changes: 13 additions & 18 deletions examples/Forc.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
Expand All @@ -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",
]
Expand All @@ -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",
]
Expand All @@ -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",
]
Expand All @@ -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",
]
Expand Down Expand Up @@ -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",
]
Expand All @@ -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",
]
Expand Down Expand Up @@ -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",
]
Expand All @@ -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",
]
Expand All @@ -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]]
Expand All @@ -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",
]
Expand All @@ -167,15 +162,15 @@ 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",
]

[[package]]
name = "upgradability_examples"
source = "member"
dependencies = [
"standards git+https://github.com/FuelLabs/sway-standards?tag=v0.5.1#e2d5ac40a1d11a9e38e0a662d35141076515319f",
"standards",
"std",
"sway_libs",
]
2 changes: 1 addition & 1 deletion examples/admin/Forc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
2 changes: 1 addition & 1 deletion examples/asset/base_docs/Forc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
2 changes: 1 addition & 1 deletion examples/asset/basic_src20/Forc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
2 changes: 1 addition & 1 deletion examples/asset/basic_src3/Forc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
2 changes: 1 addition & 1 deletion examples/asset/basic_src7/Forc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
2 changes: 1 addition & 1 deletion examples/asset/metadata_docs/Forc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
2 changes: 1 addition & 1 deletion examples/asset/setting_src20_attributes/Forc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
2 changes: 1 addition & 1 deletion examples/asset/setting_src7_attributes/Forc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
2 changes: 1 addition & 1 deletion examples/asset/supply_docs/Forc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
2 changes: 1 addition & 1 deletion examples/ownership/Forc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
2 changes: 1 addition & 1 deletion examples/upgradability/Forc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
2 changes: 1 addition & 1 deletion libs/Forc.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down
2 changes: 1 addition & 1 deletion libs/Forc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
17 changes: 6 additions & 11 deletions tests/Forc.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
Expand Down Expand Up @@ -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",
]
Expand All @@ -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",
]
Expand Down Expand Up @@ -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]]
Expand All @@ -227,15 +222,15 @@ 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",
]

[[package]]
name = "upgradability_test"
source = "member"
dependencies = [
"standards git+https://github.com/FuelLabs/sway-standards?tag=v0.5.1#e2d5ac40a1d11a9e38e0a662d35141076515319f",
"standards",
"std",
"sway_libs",
]
2 changes: 1 addition & 1 deletion tests/src/admin/Forc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
2 changes: 1 addition & 1 deletion tests/src/native_asset/Forc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Loading

0 comments on commit 50be622

Please sign in to comment.