This is implementation of Escrow Program. Original Tutorial is in paulx.dev
- 2 throw away private keys
- 4 token mint address ( create yourself by
spl-token create-token
) - 4 token accounts from mint addresses provided. 2 for initializer, 2 for taker. Both initailizer and taker should provide 1 token account for each mint address.
I'm a lazy cat. I didn't write any UI code for testing it. You can use The same UI I used in Paulx.dev
- Install Rust from https://rustup.rs/
- Install Solana from https://docs.solana.com/cli/install-solana-cli-tools#use-solanas-install-tool
$ cargo build
$ cargo test
$ cargo build-bpf
$ cargo test-bpf