All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
Description of the upcoming release here.
- #152 Adds inline documentation examples to the SRC-6 standard.
- #154 Updates the examples in the standards specififcations to use the offical abi name.
- #157 Updates the name of the SRC-7 standard to "Onchain Native Asset Metadata Standard".
- #153 Actually write to storage in
set_src20_data()
in the SRC-20 multi asset example.
- Some breaking change here 1
- Some breaking change here 2
Description of the upcoming release here.
- #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.
- #135 Updates standards, examples and CI to latest forc 0.63.3.
- #147 Prepares for the v0.6.1 release.
- #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.
- #151 Fixes SRC-6 standard examples conform to the latest SRC-20 spec of logging values after updates.
- #151 Formats code of SRC-6 examples, and fixes some comments.
- #130 Adds the
SetNameEvent
,SetSymbolEvent
,SetDecimalsEvent
andTotalSupplyEvent
to the SRC-20 standard. - #130 Adds the
SetMetadataEvent
to the SRC-7 standard.
- #130 Splits examples into seperate workspace projects for improved continuous integration.
- #139 Prepares for the v0.6.0 release.
- #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);
- #126 Prepares for v0.5.2 release.
- #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
- #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.
- #103 Removes standards in the
./SRC
folder in favor of./docs
. - #106 Updates links from the Sway Book to Docs Hub.
- #120 Updates repository to forc v0.61.0 and uses new namespace in SRC-14 example.
- #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.
- #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>;
}