Skip to content

Latest commit

 

History

History
40 lines (40 loc) · 626 Bytes

File metadata and controls

40 lines (40 loc) · 626 Bytes

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