Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.51 KB

README.md

File metadata and controls

39 lines (25 loc) · 1.51 KB

Solana Bootcamp Exchange Booth Project

Table of Contents

About

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

Disclaimer

This is not production-ready smart contract. The goal of this project is to study and demonstrate the basic knowledge of Solana smart-contracts.

Getting Started

  1. Make sure in local solana configuration json_rpc_url value is local test validator address or solana devnet address.
  2. Run npm run booth:cycle to build and deploy bpf, prepare environment and run the sequense of all commands

Prerequisites