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

SPL Transfer Hook Interface - v0.1.0

Compare
Choose a tag to compare
@buffalojoec buffalojoec released this 28 Jun 14:51
· 2495 commits to master since this release
a08ec50

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 #4147
  • token-2022: Integrate transfer-hook interface in program by @joncinque in #4151
  • transfer-hook: Add top-level tests and helpers by @joncinque in #4165
  • Uses solana-program version 1.16

Full Changelog: token-2022-v0.6.1...transfer-hook-interface-v0.1.0