Skip to content

Releases: solana-labs/solana-program-library

SPL Token JS - v0.3.11

29 Jan 21:07
4a677bc
Compare
Choose a tag to compare

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

Shout out to @qiweiii for the contributions!!

SPL Transfer Hook CLI v0.1.0

05 Jan 22:30
baf1bc3
Compare
Choose a tag to compare

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

03 Jan 15:25
4ff1f6f
Compare
Choose a tag to compare

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

SPL Associated Token Account - v2.3.0

12 Dec 11:22
77e2e25
Compare
Choose a tag to compare

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

  • Bump repo to Solana 1.17 (#5575) and 1.17.6 (#5863)
  • Format comments
  • Bump to use token-2022 v1 (#5987)
  • Use entrypoint full path

SPL Transfer Hook Interface v0.4.1

11 Dec 17:59
042829b
Compare
Choose a tag to compare

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

11 Dec 18:00
724cb8d
Compare
Choose a tag to compare

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

13 Dec 13:11
5d3307d
Compare
Choose a tag to compare
token-client-v0.8.0

transfer hook cli: bump (#5984)

SPL Token CLI - v3.3.0

13 Dec 13:09
5d3307d
Compare
Choose a tag to compare

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

  • Refactor tests out of main.rs (#5804)
  • Use libtest-mimic to parallelize tests (#5821)
  • Bump repo to Solana 1.17 (#5575) and 1.17.6 (#5863)

SPL Token 2022 - v1.0.0

11 Dec 12:25
15ebdb6
Compare
Choose a tag to compare

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

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

  • Bump repo to Solana 1.17 (#5575) and 1.17.6 (#5863)

SPL TLV Account Resolution v0.5.0

11 Dec 17:56
724cb8d
Compare
Choose a tag to compare

New function ExtraAccountMetaList::update(..) for updating a TLV-encoded list of account metas.

Shout out to @tonton-sol for the PR! #5894