Releases: solana-labs/solana-program-library
SPL Token JS - v0.3.11
This change introduces SPL Token Group interface support for Token JS as well as an extendable version of getMintLen
to calculate a mint length with variable-length extensions!
What's Changed
- feat: token-group interface js library by @qiweiii in #6014
- token js: add variable length extension support to
getMintLen
by @buffalojoec in #6085 - token-js: bump to 0.3.11 by @buffalojoec in #6096
Shout out to @qiweiii for the contributions!!
SPL Transfer Hook CLI v0.1.0
A CLI for working with Transfer Hook programs!
This CLI supports managing the additional account metas that a program may require to perform a transfer via a hook.
For more information on Transfer Hook and Token2022, see the Token2022 Extension Docs for Transfer Hook.
This CLI can:
- Create a validation account containing TLV-encoded data describing configurations for extra required account metas for an
Execute
instruction (#5659) - Update those extra account meta configurations (#5894)
- Create or update the extra account meta configs using JSON or YAML configuration files (#5997)
Shout out to the contributors @joncinque @tonton-sol !
SPL Token JS - v0.3.10
Summary
SPL Token JS now leverages the new SPL Token Metadata JS library to manage token metadata alongside Token2022 mints. All instructions from the SPL Token Metadata interface (implemented by Token2022) are now supported in @solana/spl-token@0.3.10
. Developers can also deserialize token metadata from a mint as well.
Shout out to @mistersimon for the token metadata support (#5667)!
What's Changed
- js: remove workspace paths by @buffalojoec in #5969
- Adding Token Metadata Support to @solana/spl-token by @mistersimon in #5667
- token js: bump to 0.3.10 by @buffalojoec in #6018
SPL Associated Token Account - v2.3.0
What's new
The main changes in this release are using the Solana v1.17 and token-2022 v1.0 crates. The program created from this release will not be deployed on-chain.
Changes
SPL Transfer Hook Interface v0.4.1
New instruction added to the SPL Transfer Hook Interface for updating the list of additional account metas required for a transfer.
/// Updates the extra account metas on an account by overwriting the
/// existing list.
///
/// Accounts expected by this instruction:
///
/// 0. `[w]` Account with extra account metas
/// 1. `[]` Mint
/// 2. `[s]` Mint authority
UpdateExtraAccountMetaList {
/// The new list of `ExtraAccountMetas` to overwrite the existing entry
/// in the account.
extra_account_metas: Vec<ExtraAccountMeta>,
},
Previously, there was no such instruction for updating this list, and it would have to be implemented separately by anyone seeking to do such an update. Now it has first-class support in the interface.
Shout out to @tonton-sol for the PR! #5894
SPL Transfer Hook Example v0.4.0
The example program has been updated to implement the new UpdateExtraAccountMetaList
instruction from the SPL Transfer Hook interface!
Shout out to @tonton-sol for the PR! #5894
SPL Token Client v0.8.0
token-client-v0.8.0 transfer hook cli: bump (#5984)
SPL Token CLI - v3.3.0
What's new
The new version of the token CLI supports confidential transfers end-to-end for networks running at least v1.17.6 with the appropriate feature gates enabled.
Changes
- Performing a confidential transfer sequentially (#5670)
- Update token-2022 extensions (#5788)
- Fix set-transfer-hook-program "authority" flag (#5734)
- Make update confidential accept multiple args (#5814)
- Support creating mint with fee and conf transfer (#5862)
- Cleanup
conflicts_with
and output colons (#5688)
Miscellaneous Tasks
SPL Token 2022 - v1.0.0
What's new
With the last Token-2022 audit complete, the program is ready to enter its first
major version with v1.0.0!
Audits
All audits are hosted at https://github.com/solana-labs/security-audits#token-2022.
Verification
This build provided on the release uses solana-verifiable-build.
You can verify it by checking out the repo at commit 15ebdb6 and running:
$ solana-verify build --library-name spl_token_2022 -- --no-default-features
The --no-default-features
flag ensures that the unsupported zero-knowledge proof functionality and the unaudited token-group functionality is omitted. Once the program is built, it's possible to verify it by running:
$ solana-verify get-executable-hash target/deploy/spl_token_2022.so
d941635f5df9dcb42e2fd7f25149051048dd27d02c7cb8dbb7a9e39933722fd3
Summary of changes
- Added
GroupPointer
extension (#5621) - Added
GroupMemberPointer
extension (#5628) - Implemented spl-token-group interface (#5672) (#5626) (#5627) (#5629) (#5601)
Various fixes
- Add security.txt (#5928)
- Fix build with zk-ops disabled (#5372)
- Add serialisation option for the extensions (#5437)
- Use serde with
rename_all = "camelCase"
(#5624) - [OS-SPL-ADV-02] Fix instruction creator (#5900)
- [OS-SPL-ADV-03] Check account mint in approve (#5901)
- [OS-SPL-ADV-00] Enable and fix account ordering on confidential transfer with split proofs (#5931)
Miscellaneous Tasks
SPL TLV Account Resolution v0.5.0
New function ExtraAccountMetaList::update(..)
for updating a TLV-encoded list of account metas.
Shout out to @tonton-sol for the PR! #5894