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.0Build the program:
anchor buildRun the tests:
anchor test --skip-deploy --skip-build --skip-local-validatorTo start the frontend application locally:
cd appInstall dependencies:
yarn installStart the development server:
yarn devThe application will be available at http://localhost:3000 (or another port if 3000 is already in use).
