Mc01 / proof-of-stake

:jigsaw: Simple Proof-of-Stake (PoS) contracts written in Hardhat & Solidity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple proof of stake

Please read all comments carefully inside CustomToken.sol

Prerequisites

  • Node.JS

Setup

Install deps

npm i

Start local node

Run local node

npm run node

Compile

Run compilation

npm run compile

Deploy

Run deployment

npm run deploy

Test

Run testing suite

npm test

TODO

To make this project even more complete - following could be added:

  • Improving Solidity contract even more
  • Running Mythril security scanner
  • Writing tests
  • Writing deployment script
  • Forking mainnet and performing gas usage optimisations
  • Requesting audit from 3rd party

About

:jigsaw: Simple Proof-of-Stake (PoS) contracts written in Hardhat & Solidity


Languages

Language:Solidity 85.0%Language:JavaScript 15.0%