Skip to content

near-sdk-v5.2.0

Compare
Choose a tag to compare
@frol frol released this 04 Jul 22:09
· 40 commits to master since this release

Added

  • New yield execution host functions (#1183), learn more in this blog post
  • New near_sdk::store::IterableMap and near_sdk::store::IterableSet that address the iteration performance issue of store::UnorderedMap (#1164) (#1175)
  • Added BorshSchema trait impl to all near_sdk::store collections!
    • store::TreeMap<K, V, H> and UnorderedSet<T, H> (#1213)
    • store::IterableSet and store::IterableMap and refactored and added ABI defiintions tests (#1212)
    • store::UnorderedMap (#1209)
  • NEP-330 1.2.0 support - added build info field in contract metadata (#1178)

Fixed

  • [technically breaking] Make log macro fully compatible with std::format (string interpolation is now supported) (#1189)
  • use FQDNs when calling contract methods to avoid method names collision (#1186)

Other

  • Added performance tests for 'store' collections (#1195)
  • Full tests coverage for store::Vector + coverage for all the collections relevant to IterableMap implementation (#1173)
  • Full tests coverage for store collections (#1172)
  • Documented #[init], #[payable], #[handle_result], #[private], #[result_serializer] attributes for docs.rs discoverability (#1185)
  • Enabled unit-testing feature for docs.rs
  • Replaced manual borsh trait impl-s with derives and correct bounds in near_sdk::store and near_sdk::collections (#1176)
  • Proxy JsonSchema::schema_name to the original implementation (#1210)
  • Fixed Rust 1.79 linter warnings (#1202)
  • Fixed Rust 1.78 linter warnings (#1181)
  • Updated near-* dependencies to 0.23 version (#1207)