Skip to content

A smart contract that have people to racing their money against other and the winner can engrave their name to the blockchain.

License

Notifications You must be signed in to change notification settings

nedondev/EasyMoneyRacing

Repository files navigation

EasyMoneyRacing

A smart contract that have people to racing their money against other and the winner can engrave their name to the blockchain.

Requirement

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
source ~/.bashrc
nvm install --lts
npm install -g truffle 

You may need to run this if on MacOS or Linux

sudo npm install -g truffle

For WSL that not use subsystem path and execute without root permission.

sudo chown <username>:<username> .
npm install ganache --global

Init Project

  • Start ganache
ganache -a 100
  • Clone this project
git clone https://github.com/nedondev/EasyMoneyRacing
cd EasyMoneyRacing

Verify Project will work correctly

truffle test

Deploy Project

truffle migrate

Interact with deployed EasyMoneyRacing contract

truffle console
  • Get deployed contract.
const contract = await EasyMoneyRacing.at('<contract-address>');
  • Use deployed contract.
contract.<method-name>()

Example:

contract.getTotalMoney()

About

A smart contract that have people to racing their money against other and the winner can engrave their name to the blockchain.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published