This repo contains code for running and testing 'commune' project.
Use git clone https://github.com/LoboVH/OnChain--Commune.git
to get the files in this repository onto your local machine.
Run npm install
to get all the dependencies
- If you're running solana for the first time, generate a wallet
solana-keygen new
- You can use anchor CLI to build and emit an IDL, from which clients can be generated
anchor build
Once run, you should see your build artifacts IDL, as usual, in your target/directory
3.Deploy the program by running
anchor deploy
Update Program-Id in lib.rs and Anchor.toml
- Finally run the test, make sure to kill any instance of local validator started earlier
anchor test