near-sdk (Rust) 2.0.1
Updated status-message-collections to use LookupMap; BREAKING Updated fungible-token implementation to use LookupMap. It changes storage layout.
- The latest release in the 2.0 line.
- Newest near-sdk (Rust): near-sdk (Rust) 5.30.0
2.0.1
Contract changes
- Updated
status-message-collectionsto useLookupMap - BREAKING Updated
fungible-tokenimplementation to useLookupMap. It changes storage layout.
API changes
- Introduce
LookupMapandLookupSetthat are faster implementations ofUnorderedMapandUnorderedSet, but without support for iterators. Most read/lookup/write are done in 1 storage access instead of 2 or 3 forUnordered*implementations. - BREAKING
Defaultis removed fromnear_sdk::collectionsto avoid implicit state conflicts. Collections should be initialized by explicitly specifying prefix usingnewmethod. - BREAKING
TreeMapimplementation was updated to useLookupMap. PreviousTreeMapimplementation was renamed toLegacyTreeMapand was deprecated.LegacyTreeMapshould 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::Serializeand for return types to implementserde::Deserialize.
Fix
- Bumped dependency version of
near-vm-logicandnear-runtime-feesto2.0.0that changedVMLogicinterface.