transfer-hook-interface-v0.1.0
版本发布时间: 2023-06-28 22:51:50
solana-labs/solana-program-library最新发布版本:transfer-hook-interface-v0.8.2(2024-09-03 22:35:52)
New Crate
The spl-transfer-hook-interface
is an interface designed for programs that wish to delegate the "transfer authority" of a token to a particular program.
When it comes to transferring tokens, you can think of the "transfer authority" simply as "the only program who is authorized to transfer this token". the spl-transfer-hook-interface
defines an interface for such a program, which is then used for what's called a "permissioned transfer". The Token-2022 program has implemented this interface with its latest release and makes permissioned transfer available as a possible mint extension.
What's Changed
- transfer-hook-interface: Add interface defining a hook called during token-2022 transfer by @joncinque in https://github.com/solana-labs/solana-program-library/pull/4147
- token-2022: Integrate transfer-hook interface in program by @joncinque in https://github.com/solana-labs/solana-program-library/pull/4151
- transfer-hook: Add top-level tests and helpers by @joncinque in https://github.com/solana-labs/solana-program-library/pull/4165
-
Uses
solana-program
version 1.16
Full Changelog: https://github.com/solana-labs/solana-program-library/compare/token-2022-v0.6.1...transfer-hook-interface-v0.1.0