Smart contract project that faciliates on-chain token exchanges. This is an implementation of Day 3 Solana bootcamp project exercise.
Client can perform several instructions on Exchange Booth program:
- Initialize
npm run -- --ix=0 - Deposit
npm run -- --ix=1 - Close
npm run -- --ix=2 - Exchange
npm run -- --ix=3 - Withdraw
npm run -- --ix=4
Since this progam is made primarily for demo purposes values for each instruction are hardcoded on a client.
Full specification: Exchange_Booth_Program_Spec.pdf
This is not production-ready smart contract. The goal of this project is to study and demonstrate the basic knowledge of Solana smart-contracts.
- Make sure in local solana configuration
json_rpc_urlvalue is local test validator address or solana devnet address. - Run
npm run booth:cycleto build and deploy bpf, prepare environment and run the sequense of all commands