-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
transfer-hook-interface: Remove solana-program dependency (#7442)
* transfer-hook-interface: Remove solana-program dependency #### Problem The transfer-hook-interface pulls in solana-program, but it doesn't need to. #### Summary of changes Use the component crates. The only breaking change is the re-exports. It still uses a dev-dependency on solana-program since the system program id isn't available yet outside of solana-program. * Add missing solana-pubkey feature * Add all test programs * Run cargo fmt * Fixup imports
- Loading branch information
Showing
27 changed files
with
484 additions
and
244 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
## SPL Token 2022 Program Tests | ||
|
||
All of the end-to-end tests for spl-token-2022 exist in this directory. | ||
|
||
### Requirements | ||
|
||
These tests require other built on-chain programs, including: | ||
|
||
* spl-instruction-padding | ||
* spl-transfer-hook-example | ||
* spl-transfer-hook-example-downgrade | ||
* spl-transfer-hook-example-fail | ||
* spl-transfer-hook-example-success | ||
* spl-transfer-hook-example-swap | ||
* spl-transfer-hook-example-swap-with-fee | ||
|
||
Built versions of these programs exist in `tests/fixtures`, and may be | ||
regenerated from the following places in this repo: | ||
|
||
* instruction-padding/program | ||
* token/transfer-hook/example | ||
* token/program-2022-test/transfer-hook-test-programs/downgrade | ||
* token/program-2022-test/transfer-hook-test-programs/fail | ||
* token/program-2022-test/transfer-hook-test-programs/success | ||
* token/program-2022-test/transfer-hook-test-programs/swap | ||
* token/program-2022-test/transfer-hook-test-programs/swap-with-fee |
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+18.9 KB
token/program-2022-test/tests/fixtures/spl_transfer_hook_example_downgrade.so
Binary file not shown.
Binary file added
BIN
+18.3 KB
token/program-2022-test/tests/fixtures/spl_transfer_hook_example_fail.so
Binary file not shown.
Binary file added
BIN
+17.3 KB
token/program-2022-test/tests/fixtures/spl_transfer_hook_example_success.so
Binary file not shown.
Binary file added
BIN
+68.3 KB
token/program-2022-test/tests/fixtures/spl_transfer_hook_example_swap.so
Binary file not shown.
Binary file added
BIN
+71 KB
token/program-2022-test/tests/fixtures/spl_transfer_hook_example_swap_with_fee.so
Binary file not shown.
Oops, something went wrong.