Skip to content

Releases: scrtlabs/secret-toolkit

v0.10.1

13 Nov 13:38
Compare
Choose a tag to compare

Bug fixes

  • Fixed Wasm contract requires unsupported import: "env.rustsecp256k1_v0_8_1_context_preallocated_size error by freezing cc version to 1.1.10.

Full Changelog: v0.10.0...v0.10.1

v0.10.0

18 Oct 16:29
9e139be
Compare
Choose a tag to compare

Features

  • Bumped cosmwasm-std version to v1.1.11 (#93).

Breaking

  • Added optional admin field to utils::InitCallback::to_cosmos_msg (#93).

Bug fixes

  • Only padding encrypted attributes in utils::pad_handle_result (#92 @blake-regalia).
  • Support backtraces feature for KeyMap and KeySet (#90 @kent-3 ).

v0.9.0

04 Jun 13:01
95428dd
Compare
Choose a tag to compare

Features

  • Replace cosmwasm-std with secret-cosmwasm-std in prep for crates.io packages (#87).
  • Add RngCore & CryptoRng trait to Prng (#87).
  • Added from_env function for ContractPrng that consumes env.block.random (#87).

Breaking

  • Renamed Prng as ContractPrng (#87).

v0.8.2

10 May 14:52
0c901b6
Compare
Choose a tag to compare

Bug fixes

  • Fixed a remove bug in Keymap and Keyset (#86).

v0.8.1

09 Apr 10:17
7f0390e
Compare
Choose a tag to compare

Bug fixes

  • Fixed a bug in Keymap and Keyset (#84).

Features

  • SecureItem - storage access pattern obfuscating Item (#82).
  • Change the internal rng field of the Prng struct to be public (#81),

v0.8.0

22 Feb 16:23
dfbcc26
Compare
Choose a tag to compare

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 with cosmwasm v1. It is necessary to upgrade to cosmwasm v1.1 in order to use this release and vice versa. However, neither cosmwasm v1.1 nor this version did not have breaking changes to the APIs.

v0.7.0

18 Dec 10:59
64717d7
Compare
Choose a tag to compare

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 and KeysetBuilder 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 to AppendStore and DequeStore 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, and DequeStore.

Breaking

  • Older rust compilers ( < 1.50 ) may not work due to upgraded dependencies

v0.6.0 - Cosmwasm v1

25 Oct 14:32
5c46e2d
Compare
Choose a tag to compare

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 to cosmwasm v1 in order to use this release.

V0.5.0 - Storage fixes

04 Sep 15:48
19c2f0c
Compare
Choose a tag to compare

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

31 Aug 11:45
d8b9879
Compare
Choose a tag to compare
  • Simplified implementation of .clone method
  • Added .add_suffix and .clone methods to secret-toolkit::storage::Item
  • Minor performance updates to secret-toolkit::storage::Keymap

Contributor: @srdtrk