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

Commit cd4fc06

Browse files
committed
Add all test programs
1 parent dc1b12a commit cd4fc06

21 files changed

+389
-183
lines changed

Cargo.lock

Lines changed: 52 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 0 deletions
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

Lines changed: 26 additions & 0 deletions
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
23.9 KB
Binary file not shown.
109 KB
Binary file not shown.
18.9 KB
Binary file not shown.
18.3 KB
Binary file not shown.
17.3 KB
Binary file not shown.
68.3 KB
Binary file not shown.
71 KB
Binary file not shown.

0 commit comments

Comments
 (0)