This is a front-end framework built using Next.js and Gemworks.
This project includes:
- Next.JS
- TypeScript
- @solana/wallet-adapter and @solana/web3.js for interactions with wallets & blockchain.
- Tailwind CSS (with daisyUI)
- Gemworks
First, run the development server:
yarn
yarn run dev
Set up your farm using the farm manager below.
https://www.gemfarm.gg/manager
Make sure reward A is your chosen reward if you only want one reward type pass this as reward B So11111111111111111111111111111111111111112
.
To add your farm to the Next.js front-end simply create a .env file at the root of the project.
Add a variables inside the file called
NEXT_PUBLIC_FARM_PUBLICKEY=YOUR_GEMFARM_PUBLICKEY_GOES_HERE
NEXT_PUBLIC_BURNER_WALLET=YOUR_BURNER_WALLET_PUBLICKEY_GOES_HERE
NEXT_PUBLIC_REWARD_TOKEN_MINT=YOUR_REWARD_TOKEN_PUBLICKEY_GOES_HERE
NEXT_PUBLIC_REWARD_TOKEN=YOUR_TOKEN_NAME_GOES_HERE
If you have have a white list setup for your farm replace the contents of white-list.ts
with your desired mints.