End of year bonfire - Burn MAS on the Massa blockchain!
This project consists of:
- Smart Contract: An AssemblyScript smart contract that handles burning MAS tokens
- Frontend: A React-based web interface deployable on Massa DeWeb
The smart contract allows users to burn MAS by sending them to the null address. It tracks:
- Total amount of MAS burned
- Individual burn history (newest first)
- Leaderboard of top burners
burn(): Burn MAS coins sent with the transactiongetTotalBurnedAmount(): Get the total amount of MAS burnedgetBurnCount(): Get the total number of burn operationsgetAddressBurnedAmount(address): Get total burned by a specific address
cd smart_contract
npm install
npm run build
WALLET_SECRET_KEY=your_secret_key npm run deployA festive Christmas-themed interface for interacting with the burner contract.
cd front
npm install
npm run devnpm run buildSECRET_KEY=your_secret_key npx @massalabs/deweb-cli upload dist -y --accept_disclaimer- Smart Contract:
AS14T6cJRdt8FaNDo7f3AhhAv6gt8zWMT8tFuSsDgp7GxEeW26Xt - DeWeb Frontend:
AS1FqcKkqgML4nnL41waHbv2sAkrrskMwAhDdiVybhtyDDvuNVjc
MIT