Skip to content

Lightprotocol/compressed-program-template

Repository files navigation

Compressed Program Template

This template initializes a counter program with instructions to create a compressed account, increment the accounts counter field and delete the account.

Build

$ anchor build

Test

Requirements:

  • light cli version {{light-cli-version}}
  • solana cli version {{solana-cli-version}}
  • anchor version {{anchor-version}}

Rust

  • cargo test-sbf

Typescript

  1. $ npm install
  2. $ light test-validator --sbf-program {{program-id}} ./target/deploy/{{rust-name-snake-case}}.so
  3. $ npm test

$ light test-validator spawns the following background processes:

  1. solana test validator http://127.0.0.1:8899
  2. prover server http://127.0.0.1:8784
  3. photon indexer http://127.0.0.1:3001

You can kill these background processes with lsof -i:<port> and kill <pid>.

Disclaimer

Light Protocol programs are audited and deployed on Solana devnet and mainnet.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •