All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
This is the first stable release of near-account-id crate!
AccountId
and AccountIdRef
are two main types of this crate that have same relation as String
and str
in standard library of Rust.
AccountId guarantees to hold a valid NEAR account id (unless users explicitly opt-in for the unvalidated constructors feature and break this promise).
See all the changes listed in alpha releases below to learn about AccountIdRef
and various new helper methods.
- Add
get_parent_account_id
method (#24)
1.0.0-alpha.4 - 2023-11-24
- Remove account_id validation from
new_unvalidated()
wheninternal_unstable
feature is enabled (required by nearcore) (#20)
1.0.0-alpha.3 - 2023-11-06
- Add schemars support (#17)
1.0.0-alpha.2 - 2023-11-03
AccountType
, addEthImplicitAccount
(#14)
near-account-id was extracted from nearcore as of 2023-08-01, and extended with the following features to reach stable 1.0.0 release.
- Introduce
AccountIdRef
, move allAccountId
methods toAccountIdRef
, and more idiomatic AsRef/Borrow impls - Added
len
method (#13) - Added const
AccountIdRef::new_or_panic
(#12) - Added missing serde/borsh implementations for
AccountIdRef
- Upgrade
borsh
dependency to 1.0 (#8) - Implemented
Arbitrary
forAccountIdRef
- Use stable Rust version for maximal-deps test (#7)
- Added automated release pipeline (release-plz!)
- bump MSRV to 1.65