Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Releases: solana-labs/solana-program-library

SPL Transfer Hook Interface - v0.5.0

19 Jan 20:01
8657dc3
Compare
Choose a tag to compare

Highlights

The on-chain and off-chain helpers used to add extra account metas to an Execute instruction have been replaced with repaired versions of the original helpers. These helpers ensure a proper ExecuteInstruction is the instruction being resolved, so that the list of accounts is accurate and predictable when account resolution is performed.

For more information about the bugfix, see #6064

What's Changed

SPL Transfer Hook Example v0.5.0

19 Jan 23:02
8d311d3
Compare
Choose a tag to compare

This release incorporates the newest version of the SPL Transfer Hook interface 0.5.0. Additionally, the tests have been revised to use the new helpers released in the updated interface crate.

Other than that, this example remains the same as it's previous minor version.

SPL Transfer Hook CLI - v0.1.1

19 Jan 20:03
8657dc3
Compare
Choose a tag to compare

Not much has changed in this release except for being updated to use the newer version of SPL Transfer Hook Interface. Since the extra account meta helpers were not being used in this CLI, the updated helpers have no breaking changes.

What's Changed

SPL Single-Validator Stake Pool - v1.0.1

19 Jan 07:31
Compare
Choose a tag to compare

Summary

  • Remove semantically incorrect minium delegation sanity check that blocks depositing less that LAMPORTS_PER_SOL on a new pool on a chain with stake_raise_minimum_delegation_to_1_sol disabled

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/[email protected]. 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