This is a rewrite of the legendary blog post/repo
Added some new stuff include all Program accounts are PDA, uses ATA for Token accounts, separate the logic and checking.
- Start a local-validator in the background
solana-test-validator -r -q
- build the program and deploy
cargo build-sbf
solana airdrop 2
solana program deploy ./target/deploy/solana_escrow_plus.so
- run test script
cd tests
yarn
yarn test