At the time of writing, SPL repo contains an undeployed version of Token22 with active developments on confidential transfer extension. To run the sample, and the known CLI example, you will need to build the Token22 program from source and deploy it on the solana-test-validator.
solana-test-validator
v2.0.1cargo-build-sbf
v0.2.0
-
git clone https://github.com/solana-labs/solana-program-library.git
-
cd solana-program-library
-
git checkout d2f5144c1650179376cb0e2fad6aa656ffd5749a
(known working version) -
cd token/program-2022
-
cargo build-sbf --tools-version v1.43
-
solana-test-validator -r --bpf-program TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb ../../target/deploy/spl_token_2022.so
# Run all tests in an ingredient
cargo test -p setup_participants
# Run a specific test from an ingredient
cargo test -p setup_participants setup_basic_participant
# Run all recipes
cargo test -p test-runner
# Run a specific recipe
cargo test -p test-runner recipe::basic_transfer_recipe
# Show output from successful tests
cargo test -- --nocapture
# Show test execution time
cargo test -- --show-output