Releases: near/near-sdk-rs
Releases · near/near-sdk-rs
v2.0.1
2.0.1
Contract changes
- Updated
status-message-collections
to useLookupMap
- BREAKING Updated
fungible-token
implementation to useLookupMap
. It changes storage layout.
API changes
- Introduce
LookupMap
andLookupSet
that are faster implementations ofUnorderedMap
andUnorderedSet
, but without support for iterators.
Most read/lookup/write are done in 1 storage access instead of 2 or 3 forUnordered*
implementations. - BREAKING
Default
is removed fromnear_sdk::collections
to avoid implicit state conflicts.
Collections should be initialized by explicitly specifying prefix usingnew
method. - BREAKING
TreeMap
implementation was updated to useLookupMap
.
PreviousTreeMap
implementation was renamed toLegacyTreeMap
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 implementserde::Deserialize
.
Fix
- Bumped dependency version of
near-vm-logic
andnear-runtime-fees
to2.0.0
that changedVMLogic
interface.
v1.0.0
Other changes
- Re-export common crates to be reused directly from
near_sdk
. - Added
ValidAccountId
tojson_types
which validates the input string during deserialization to be a valid account ID. - Added
Debug
toBase58PublicKey
. - Bumped dependency version of
borsh
to0.7.0
. - Bumped dependency version of
near-vm-logic
andnear-runtime-fees
to1.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
API breaking changes
- Renamed
Map
toUnorderedMap
andSet
toUnorderedSet
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
. Addeddec_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