Skip to content

roswelly/solana-magicblock-vrf-contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random Character Generator

Simple character rolling application using MagicBlock verifiable random function (VRF) to generate random numbers for character stats. This is extended from the MagicBlock roll dice example.

Demo

Character Generator Demo Screenshot

https://mb-vrf.vercel.app/

Software Packages

This program has utilized the following software packages.

Software Version Installation Guide
Solana 2.1.6 Install Solana
Rust 1.82 Install Rust
Anchor 0.31.0 Install Anchor
# Check and initialize your Solana version
agave-install list
agave-install init 2.1.6

# Check and initialize your Rust version
rustup show
rustup install 1.82

# Check and initialize your Anchor version
avm list
avm use 0.31.0

Build and Test

Build the program:

anchor build

Run the tests:

anchor test --skip-deploy --skip-build --skip-local-validator

Launch the Frontend

To start the frontend application locally:

cd app

Install dependencies:

yarn install

Start the development server:

yarn dev

The application will be available at http://localhost:3000 (or another port if 3000 is already in use).

About

🚀Solana Random Character Generator - Anchor program & Next.js frontend using MagicBlock VRF to generate on-chain, verifiable random character stats based on solana random number generator.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors