This template initializes a counter program with instructions to create a compressed account, increment the accounts counter field and delete the account.
$ anchor build
Requirements:
- light cli version {{light-cli-version}}
- solana cli version {{solana-cli-version}}
- anchor version {{anchor-version}}
cargo test-sbf
$ npm install$ light test-validator --sbf-program {{program-id}} ./target/deploy/{{rust-name-snake-case}}.so$ npm test
$ light test-validator spawns the following background processes:
- solana test validator
http://127.0.0.1:8899 - prover server
http://127.0.0.1:8784 - photon indexer
http://127.0.0.1:3001
You can kill these background processes with lsof -i:<port> and kill <pid>.
Light Protocol programs are audited and deployed on Solana devnet and mainnet.