Skip to content

Releases: FuelLabs/sway-standards

v0.6.1

10 Sep 06:16
792639c
Compare
Choose a tag to compare

What's Changed

Added v0.6.1

  • #149 Adds struct field getters, new(), and Eq implementations to SRC-10's DepositMessage and MetadataMessage types and SRC-11's SecurityInformation type.
  • #149 Adds Eq implementation to SRC-5's AccessError error.
  • #149 Adds check functions and Eq implementation to SRC-5's State type and SRC-10's DepositType type.
  • #149 Adds struct field getters, new(), log(), and Eq implementations to SRC-6's Deposit, and Withdraw types, SRC-20's SetNameEvent, SetSymbolEvent, SetDecimalsEvent, and TotalSupplyEvent events, and SRC-7's SetMetadataEvent event.

Changed v0.6.1

  • #135 Updates standards, examples and CI to latest forc 0.63.3.
  • #147 Prepares for the v0.6.1 release.

Fixed v0.6.1

  • #137 Resolves warnings for SRC-6, SRC-14, and SRC-5 standard examples.
  • #136 Fixes SRC14 to recommend namespacing all non-standardized storage variables under the SRC14 namespace, fixes typos, and improves markdown in docs and inline documentation.
  • #142 Fixes errors in inline documentation for SRC-10, SRC-12, SRC-14, SRC-20, SRC-3, SRC-5, SRC-7 standards.

Full Changelog: v0.6.0...v0.6.1

v0.6.0

27 Aug 07:13
65e09f9
Compare
Choose a tag to compare

What's Changed

Added

  • #130 Adds the SetNameEvent, SetSymbolEvent, SetDecimalsEvent and TotalSupplyEvent to the SRC-20 standard.
  • #130 Adds the SetMetadataEvent to the SRC-7 standard.

Changed

  • #130 Splits examples into seperate workspace projects for improved continuous integration.
  • #139 Prepares for the v0.6.0 release.

Breaking

  • #131 Makes the SRC-3 mint() function's SubId argument an Option.

Before:

mint(Identity::Address(Address::zero()), SubId::zero(), 100);

After:

mint(Identity::Address(Address::zero()), Some(SubId::zero()), 100);

Full Changelog: v0.5.2...v0.6.0

v0.5.2

06 Aug 10:55
270350e
Compare
Choose a tag to compare

What's Changed

Changed

  • #126 Prepares for v0.5.2 release.

Fixed

  • #121 Fixes the deposit function in the SRC-6 standard, uses try_read instead of read in order to allow first time deposits to a vault.
  • #122 Fixes the SRC-6 example contract from a critical bug where the contract can be drained.
  • #124 Fixes compiler warnings for libraries

New Contributors

Full Changelog: v0.4.4...v0.5.2

v0.5.1

29 Jun 03:38
e2d5ac4
Compare
Choose a tag to compare

What's Changed

Added

  • #107: Adds the proxy_owner() function to the SRC-14 standard.
  • #104: Adds the CHANGELOG.md file to Sway-Standards.
  • #110 Adds the proxy_target() function to the SRC-14 standard.
  • #103: Adds Sway-Standards to the docs hub.

Changed

  • #103 Removes standards in the ./SRC folder in favor of ./docs.
  • #106 Updates links from the Sway Book to Docs Hub.

Fixed

  • #107 resolves the conflict when SRC-5's owner() function is used in both the proxy and target contract in the SRC-14 standard.
  • #99 Fixes links and typos in the SRC-14 standard.
  • #112 Fixes inline documentation code in the SRC-3 standard.
  • #115 Hotfixes the Cargo.toml version to the v0.5.1 release.

Breaking

  • #110 Breaks the SRC14 abi by adding the proxy_target() function. This will need to be added to any SRC14 implementation. The new abi is as follows:
abi SRC14 {
    #[storage(read, write)]
    fn set_proxy_target(new_target: ContractId);
    #[storage(read)]
    fn proxy_target() -> Option<ContractId>;
}

New Contributors

Full Changelog: v0.5.0...v0.5.1

v0.5.0

31 May 02:04
348f717
Compare
Choose a tag to compare

What's Changed

New Standards

The SRC-14; Simple Proxy Standard is now released.

New Contributors

Full Changelog: v0.4.4...v0.5.0

v0.4.4

08 May 01:38
a001d3c
Compare
Choose a tag to compare

What's Changed

  • Update SRC-10 with new canonical Fuel bridge design by @bitzoic in #84

Full Changelog: v0.4.3...v0.4.4

v0.4.3

29 Apr 02:39
6f63eb7
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.4.2...v0.4.3

v0.4.2

24 Apr 02:33
a4ecbf4
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.4.1...v0.4.2

v0.4.1

16 Apr 01:41
0a6f3ba
Compare
Choose a tag to compare

What's Changed

  • Update to forc v0.53.0 and fuel-core v0.23.0 by @bitzoic in #76

Full Changelog: v0.4.0...v0.4.1

v0.4.0

12 Apr 22:37
f197f89
Compare
Choose a tag to compare

What's Changed

Breaking Changes

  • All imports have changed from multiple imports to a single imports using the following:
standards = { git = "https://github.com/FuelLabs/sway-standards", tag = "v0.1.0" }

From there your desired standard may be imported:

use standards::src20::SRC20;
  • The SRC3’s burn() function now requires the #[payable] attribute

Full Changelog: v0.3.3...v0.4.0