Releases: FuelLabs/sway-standards
Releases · FuelLabs/sway-standards
v0.6.1
What's Changed
Added v0.6.1
- #149 Adds struct field getters,
new()
, andEq
implementations to SRC-10'sDepositMessage
andMetadataMessage
types and SRC-11'sSecurityInformation
type. - #149 Adds
Eq
implementation to SRC-5'sAccessError
error. - #149 Adds check functions and
Eq
implementation to SRC-5'sState
type and SRC-10'sDepositType
type. - #149 Adds struct field getters,
new()
,log()
, andEq
implementations to SRC-6'sDeposit
, andWithdraw
types, SRC-20'sSetNameEvent
,SetSymbolEvent
,SetDecimalsEvent
, andTotalSupplyEvent
events, and SRC-7'sSetMetadataEvent
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
What's Changed
Added
- #130 Adds the
SetNameEvent
,SetSymbolEvent
,SetDecimalsEvent
andTotalSupplyEvent
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'sSubId
argument anOption
.
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
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
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 theproxy_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
- @sarahschwartz made their first contribution in #103
- @wangshouh made their first contribution in #112
Full Changelog: v0.5.0...v0.5.1
v0.5.0
What's Changed
- docs: fix typos in README by @PaulRBerg in #86
- docs: improve SRC-20 by @PaulRBerg in #88
- docs: improve SRC-3 by @PaulRBerg in #85
- change vault_sub_id back to sub_id SRC-3 by @SwayStar123 in #87
- Update to latest Sway by @IGI-111 in #95
- SRC-14 Simple Proxy Standard by @IGI-111 in #94
- Update to forc v0.60.0 by @bitzoic in #96
- Update Pull Request template to include checklist by @bitzoic in #93
- Fix forc versions in README for release by @bitzoic in #102
New Standards
The SRC-14; Simple Proxy Standard is now released.
New Contributors
- @PaulRBerg made their first contribution in #86
- @IGI-111 made their first contribution in #95
Full Changelog: v0.4.4...v0.5.0
v0.4.4
v0.4.3
What's Changed
- fix: Broken links by @calldelegation in #81
- Bump to forc v0.56.0 and fuel-core v0.24.2 by @bitzoic in #83
Full Changelog: v0.4.2...v0.4.3
v0.4.2
v0.4.1
v0.4.0
What's Changed
- Update release tag in source README example by @bitzoic in #56
- Bump standards to forc v0.50 by @bitzoic in #58
- Add missing clause to vault standard deposit function by @SwayStar123 in #57
- Remove duplicate adjustment of total_supply in SRC6 examples by @SwayStar123 in #61
- Add Vault Examples to Workspace by @bitzoic in #63
- Update README.md typo by @SwayStar123 in #64
- Src11 security information standard by @SwayStar123 in #55
- Add allowance for additional sections in SRC2 standard by @SwayStar123 in #65
- Remove workspace by @bitzoic in #72
- Hotfix: Add payable attribute to SRC3 burn function by @bitzoic in #75
- Bump to forc v0.52.1 by @bitzoic in #74
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