A decentralized application (dApp) built on the Radix DLT platform that showcases Scrypto concepts and provides a delightful user experience with the Radix Wallet.
The Gumball Club is a collection of blueprints that facilitates the distribution of Gumball Club tokens and member card NFT badges. These can be used to purchase gumballs and candies from the GumballMachine and CandyMachine components.
- Users can dispense free Gumball Club tokens to purchase member cards, gumballs, and candies
- Member cards provide access to privileged methods and qualify for discounts
- Owners can configure component state and metadata
- Customizable blueprint instantiations
- Integration with external price oracle for dynamic pricing
- scrypto/ - smart contracts written in Scrypto
- GumballClub Blueprint
- GumballMachine Blueprint
- CandyMachine Blueprint
- SugarPriceOracle Blueprint
- dapp/ - Frontend application built with Next.js
- deploy/ - Deployment scripts and configurations
- Backend: Scrypto (Radix's smart contract language)
- Frontend: Next.js, React, TypeScript
- Radix DLT: Radix Dapp Toolkit, Babylon Gateway API SDK
- Node.js (v16 or higher)
- Radix Engine Simulator or access to Radix Network
- Radix Wallet (for testing with the dApp)
See the detailed instructions in the scrypto/README.md file.
-
Navigate to the dapp directory:
cd dapp
-
Install dependencies:
npm install
-
Run the development server:
npm run dev
-
Open http://localhost:3000 with your browser to see the result.
- Radix Engine system-based authority model
- Native resources
- Finite state machine guaranteed resource management
- External blueprint package cross-component call
- Reusable blueprints
- Intent based transactions
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.