near-sdk (Rust) 0.11.0
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 https://github.com/near/near-sdk-rs/pull/154
- The latest release in the 0.11 line.
- Newest near-sdk (Rust): near-sdk (Rust) 5.30.0
API breaking changes
- Renamed
MaptoUnorderedMapandSettoUnorderedSetto reflect that one cannot rely on the order of the elements in them. In this PR and in https://github.com/near/near-sdk-rs/pull/154
Other changes
Added ordered tree implementation based on AVL, see
TreeMap. https://github.com/near/near-sdk-rs/pull/154Made module generated by
ext_contractmacro public, providing more flexibility for the usage: https://github.com/near/near-sdk-rs/pull/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. https://github.com/near/near-sdk-rs/pull/173
- Renaming method of fungible token
set_allowance=>inc_allowance. Addeddec_allowancemethod. https://github.com/near/near-sdk-rs/pull/174 - Remove possibility to do self-transfer in fungible token. https://github.com/near/near-sdk-rs/pull/176
- Improving fungible token comments https://github.com/near/near-sdk-rs/pull/177
- Add account check to
get_balancein fungible token https://github.com/near/near-sdk-rs/pull/175 - In fungible token remove account from storage if its balance is 0 https://github.com/near/near-sdk-rs/pull/179