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.
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 the program:
anchor build
Run the tests:
anchor test --skip-deploy --skip-build --skip-local-validator
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).