Releases: scrtlabs/secret-toolkit
v0.10.1
Bug fixes
- Fixed
Wasm contract requires unsupported import: "env.rustsecp256k1_v0_8_1_context_preallocated_size
error by freezingcc
version to1.1.10
.
Full Changelog: v0.10.0...v0.10.1
v0.10.0
v0.9.0
v0.8.2
v0.8.1
v0.8.0
This release upgrades all secret-toolkit
packages to be compatible with Cosmwasm v1.1.
The APIs remain the same, but it is necessary to upgrade the contract's cosmwasm
dependencies to v1.1.0
Breaking
- Since
cosmwasm v1.1
had some breaking changes to its dependencies, this version will not work withcosmwasm v1
. It is necessary to upgrade tocosmwasm v1.1
in order to use this release and vice versa. However, neithercosmwasm v1.1
nor this version did not have breaking changes to the APIs.
v0.7.0
Features
- This release changes the internal toolkit package to be part of the workspace - this fixes default-features flags in some of the crates. In addition, crates used by the toolkit have been bumped, and the edition of the toolkit crates has been bumped to 2021.
- Added the
Keyset
storage object (A hashset like storage object). - Allowed further customization of Keymap and Keyset with new constructor structs called
KeymapBuilder
andKeysetBuilder
which allow the user to disable the iterator feature (saving gas) or adjust the internal indexes' page size so that the user may determine how many objects are to be stored/loaded together in the iterator. ::new_with_page_size(namespace, page_size)
method was added toAppendStore
andDequeStore
so that the user may adjust the internal indexes' page size which determines how many objects are to be stored/loaded together in the iterator.- Minor performance upgrades to
Keymap
,AppendStore
, andDequeStore
.
Breaking
- Older rust compilers ( < 1.50 ) may not work due to upgraded dependencies
v0.6.0 - Cosmwasm v1
This release upgrades all secret-toolkit
packages to be compatible with Cosmwasm v1.0 (Secret Network v1.4).
The APIs remains the same, but it is necessary to upgrade the contract's cosmwasm
dependencies to v1.0.0
.
Breaking
- This version will not work with
cosmwasm v0.10
. It is necessary to upgrade tocosmwasm v1
in order to use this release.
V0.5.0 - Storage fixes
This release includes some minor fixed to the storage package which required some breaking changes.
We are releasing these breaking changes because we reached the conclusion that the current interfaces
are prone to bugs, or inefficient. Unless you are using these specific interfaces, you should be able to upgrade from 0.4 without issues.
Breaking
- Removed the implementations of Clone for storage types which are not useful and may cause data corruption if used incorrectly.
- Changed
Keymap::insert
to take the item by reference rather than by value. This should reduce the cost of calling that function by avoiding cloning.
Features
- Changed the implementation of the
add_prefix
methods in the storage package to use length prefixing, which should help avoid namespace collisions.
secret-toolkit-storage v0.4.2
- Simplified implementation of
.clone
method - Added
.add_suffix
and.clone
methods tosecret-toolkit::storage::Item
- Minor performance updates to
secret-toolkit::storage::Keymap
Contributor: @srdtrk