Skip to content

Releases: near/near-sdk-rs

v2.0.1

14 Jan 01:41
Compare
Choose a tag to compare

2.0.1

Contract changes

  • Updated status-message-collections to use LookupMap
  • BREAKING Updated fungible-token implementation to use LookupMap. It changes storage layout.

API changes

  • Introduce LookupMap and LookupSet that are faster implementations of UnorderedMap and UnorderedSet, but without support for iterators.
    Most read/lookup/write are done in 1 storage access instead of 2 or 3 for Unordered* implementations.
  • BREAKING Default is removed from near_sdk::collections to avoid implicit state conflicts.
    Collections should be initialized by explicitly specifying prefix using new method.
  • BREAKING TreeMap implementation was updated to use LookupMap.
    Previous TreeMap implementation was renamed to LegacyTreeMap and was deprecated.
    LegacyTreeMap should only be used if the contract was already deployed and the state has to be compatible with the previous implementation.

1.0.1

Other changes

  • Remove requirements for input args types to implement serde::Serialize and for return types to implement serde::Deserialize.

Fix

  • Bumped dependency version of near-vm-logic and near-runtime-fees to 2.0.0 that changed VMLogic interface.

v1.0.0

14 Jul 00:05
0de2f6e
Compare
Choose a tag to compare

Other changes

  • Re-export common crates to be reused directly from near_sdk.
  • Added ValidAccountId to json_types which validates the input string during deserialization to be a valid account ID.
  • Added Debug to Base58PublicKey.
  • Bumped dependency version of borsh to 0.7.0.
  • Bumped dependency version of near-vm-logic and near-runtime-fees to 1.0.0.
  • Implemented Debug trait for Vector collection that can be enabled with expensive-debug feature.

Contract changes

  • Use re-exported crate dependencies through near_sdk crate.

v0.11.0

08 Jun 23:43
4616d3a
Compare
Choose a tag to compare

API breaking changes

  • Renamed Map to UnorderedMap and Set to UnorderedSet to reflect that one cannot rely on the order of the elements in them. In this PR and in #154

Other changes

  • Added ordered tree implementation based on AVL, see TreeMap. #154

  • Made module generated by ext_contract macro public, providing more flexibility for the usage: #150

Contract changes

  • Fungible token now requires from the users to transfer NEAR tokens to pay for the storage increase to prevent the contract from locking the users from operating on it. #173
  • Renaming method of fungible token set_allowance => inc_allowance. Added dec_allowance method. #174
  • Remove possibility to do self-transfer in fungible token. #176
  • Improving fungible token comments #177
  • Add account check to get_balance in fungible token #175
  • In fungible token remove account from storage if its balance is 0 #179