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

Commit 87d9d23

Browse files
committed
Add all test programs
1 parent befab13 commit 87d9d23

21 files changed

+389
-183
lines changed

Cargo.lock

+52
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+5
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ members = [
6969
"token/program",
7070
"token/program-2022",
7171
"token/program-2022-test",
72+
"token/program-2022-test/transfer-hook-test-programs/downgrade",
73+
"token/program-2022-test/transfer-hook-test-programs/fail",
74+
"token/program-2022-test/transfer-hook-test-programs/success",
75+
"token/program-2022-test/transfer-hook-test-programs/swap",
76+
"token/program-2022-test/transfer-hook-test-programs/swap-with-fee",
7277
"token/transfer-hook/cli",
7378
"token/transfer-hook/example",
7479
"token/transfer-hook/interface",

token/program-2022-test/README.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
## SPL Token 2022 Program Tests
2+
3+
All of the end-to-end tests for spl-token-2022 exist in this directory.
4+
5+
### Requirements
6+
7+
These tests require other built on-chain programs, including:
8+
9+
* spl-instruction-padding
10+
* spl-transfer-hook-example
11+
* spl-transfer-hook-example-downgrade
12+
* spl-transfer-hook-example-fail
13+
* spl-transfer-hook-example-success
14+
* spl-transfer-hook-example-swap
15+
* spl-transfer-hook-example-swap-with-fee
16+
17+
Built versions of these programs exist in `tests/fixtures`, and may be
18+
regenerated from the following places in this repo:
19+
20+
* instruction-padding/program
21+
* token/transfer-hook/example
22+
* token/program-2022-test/transfer-hook-test-programs/downgrade
23+
* token/program-2022-test/transfer-hook-test-programs/fail
24+
* token/program-2022-test/transfer-hook-test-programs/success
25+
* token/program-2022-test/transfer-hook-test-programs/swap
26+
* token/program-2022-test/transfer-hook-test-programs/swap-with-fee
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)