.so files will be in target/deploy/
Test
Requirements
- light cli version 0.24.0+ (install via
npm i -g @lightprotocol/zk-compression-cli) - solana cli version 2.1.16+
- Node.js and npm
Running Tests
Rust Tests
TypeScript Tests
-
Build the programs:
-
Start the test validator with deployed programs:
NOTE: Replace program IDs with those defined in each program’s
lib.rs(pub const ID). -
Install dependencies and run tests:
@lightprotocol/stateless.js and @lightprotocol/zk-compression-cli.
light test-validator spawns the following background processes:
- solana test validator
http://127.0.0.1:8899 - prover server
http://127.0.0.1:3001 - photon indexer
http://127.0.0.1:8784
lsof -i:<port> and kill <pid>.