Skip to content

Prototype for a "Leaderboard" smart contract standard.

Notifications You must be signed in to change notification settings

vlmlee/Leaderboard

Repository files navigation

DeLeaderboard

Check it out live here on the Sepolia testnet.

Running Locally

Adding rankings into this contract takes a lot of gas and confirmation blocks, so it is not advisable to run this contract on a public testnet. To run locally, in the terminal use the npm scripts at the root of the project:

npm run node
npm run prepare-contract
npm run frontend

This will populate the smart contract with some rankings and start the React app that lets you interact with the deployed contract. You will need Metamask or another wallet provider to use the app.

You can then run the npm script below to simulate ranking changes to see how players will receive rewards.

npm run update-rankings

Tests

To run the hardhat+waffle+chai unit and integration tests, use:

npm test

Disclaimer

This dApp has not been audited nor has it been gas optimized. Be careful not to use real ETH when interacting with it.

About

Prototype for a "Leaderboard" smart contract standard.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published