Skip to content

Latest commit

 

History

History
 
 

3-4.lesson

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Build Solana program

cd program
cargo build-bpf

Test Solana program with TypeScript Client

cd client

Install npm packages

npm install

Start solana test validator

solana-test-validator -r

Deploy Solana program (must be already built)

solana program deploy ../program/target/deploy/turnstile.so --program-id keys/program.json

Airdrop SOLs to initializer and user

solana airdrop 10 keys/initializer.json
solana airdrop 10 keys/user.json

Run init instruction

npm run init

Run coin instruction

npm run coin

Run push instruction

npm run push