Skip to content

ChiefWoods/magic-roulette

 
 

Repository files navigation

Magic Roulette

Perpetual roulette game for Turbin3 Accelerated Builders Cohort.

Source Repository

Built With

Languages

  • Rust
  • TypeScript
  • React

Test Runner

  • Bun

Architecture Diagram

High Level Flow

High Level Flow

Account Relationship Diagram

Account Relationship Diagram

Initialize Table

Initialize Table

Place Bet

Place Bet

Spin Roulette

Spin Roulette

Advance Round

Advance Round

Claim Winnings

Claim Winnings

Update Table

Update Table

Withdraw Vault

Withdraw Vault

Getting Started

Prerequisites

  1. Update your Solana CLI, avm and Bun toolkit
agave-install init 2.1.0
avm use 0.31.1
bun upgrade

Setup

  1. Clone repository
git clone https://github.com/Turbin3/accel-MagicRoulette.git
  1. Install dependencies
bun i
  1. Configure .env file
cp .env.example .env

Program

  1. Resync your program ID
anchor keys sync
  1. Build program
anchor build

Deployment

  1. Create and fund keypair
solana-keygen new -o magic-roulette-wallet.json

Note

About 5 SOL is required for program deployment and funding accounts used in testing, which will be defunded at the end of every test.

  1. Deploy program
bun run deploy
  1. Optionally initialize IDL
bun run idl:init

Testing

Run tests against devnet cluster. Requires program to be first deployed.

bun run test

Note

Run bun run reset; bun run test to run 'hot-reloading' tests.

Issues

View the open issues for a full list of proposed features and known bugs.

Acknowledgements

Resources

Hosting and API

Contact

chii.yuen@hotmail.com

About

Perpetual roulette game for Turbin3 Accelerated Builders Cohort

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 83.1%
  • Rust 14.4%
  • CSS 2.0%
  • JavaScript 0.5%