An open API service indexing awesome lists of open source software.

https://github.com/kamiyaa/staking-rewards-example

A (nearly) real world staking rewards smart contract example
https://github.com/kamiyaa/staking-rewards-example

Last synced: over 1 year ago
JSON representation

A (nearly) real world staking rewards smart contract example

Awesome Lists containing this project

README

          

# staking-rewards-example
A (nearly) real world staking rewards smart contract example

## Building

First, install dependencies:
```sh
~$ yarn install
```

Next, compile contracts:
```sh
~$ yarn run compile
```

(optional) run tests:
```sh
~$ yarn run test
```

## Code style
`yarn run fmt` will format the solidity/contract code.
`yarn run fmt-test` will format the typescript/test code.