Skip to content

A leaderboard smart contract that stores best top 3 scores to blockchain. Written in solidity, tested with truffle.

Notifications You must be signed in to change notification settings

gorlitzer/leaderboard-sc-truffle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leaderboard smart contract - Project made with TruffleJS

Repository structure

This truffle project includes the Leaderboard smart contract implementation as well as ECDSA helper library (in order to avoid ecrecover() issues).

In order to run the project locally node.js and npm are required.

Install the truffle suite and ganache-cli with:

npm install -g truffle 
npm install -g ganache-cli

Start your local blockchain with ganache-cli, this will output 10 created accounts. Then, in a new terminal window:

git clone https://path_to_our_repo
cd name_repository
npm install 
truffle compile 
truffle migrate 

Run all truffle tests with truffle test

About

A leaderboard smart contract that stores best top 3 scores to blockchain. Written in solidity, tested with truffle.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published