****Leveraged the alephium template for the hackathon
Video of hackathon submission: https://www.loom.com/share/ef81afcb9a7b4df6bd152591af686d92?sid=015e3e39-6984-4a1d-a662-25a7f0c3acfc
Github: https://github.com/intrepidcanadian/alephium_hackathon
This is a Alephium template project for the Next.js framework, it is bootstrapped with the following command:
npx @alephium/cli init $project-name --template nextjs
This template project demonstrates how to implement a simple token faucet and expose it with a Web UI using Next.js.
npm install
npx @alephium/cli@latest devnet start
# In this case devnet
npx @alephium/cli deploy -n devnet
This will compile and deploy the token faucet contracts to all of the 4 groups on devnet.
Before deployment, you might want to just compile and test the contracts first:
# Compile
npx @alephium/cli compile
# Test
npx @alephium/cli test
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the token faucet application.
Download the Alephium Extension Wallet to interact with the application.
To learn more about smart contract development on Alephium, take a look at the following resources:
- Alephium Web3 SDK Guide - Learn about Alephium Web3 SDK
- Ralph Language - A guide to the Ralph programming language
You can check out the Alephium GitHub repositories for more information - your feedback and contributions are welcome!