Releases: solana-labs/solana-program-library
SPL Transfer Hook Interface - v0.5.0
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
- transfer hook: add new offchain helper by @buffalojoec in #6099
- transfer hook: add new onchain helper by @buffalojoec in #6111
- token 2022 & transfer hook: drop deprecated helpers by @buffalojoec in #6122
- Transfer hook: bump versions by @buffalojoec in #6119
SPL Transfer Hook Example v0.5.0
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
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
- Transfer hook: bump versions by @buffalojoec in #6119
SPL Single-Validator Stake Pool - v1.0.1
Summary
- Remove semantically incorrect minium delegation sanity check that blocks depositing less that
LAMPORTS_PER_SOL
on a new pool on a chain withstake_raise_minimum_delegation_to_1_sol
disabled
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/[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
- 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