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
- Host: GitHub
- URL: https://github.com/kamiyaa/staking-rewards-example
- Owner: kamiyaa
- License: mit
- Created: 2022-07-12T17:41:59.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-12T18:16:58.000Z (about 4 years ago)
- Last Synced: 2025-01-31T21:48:01.425Z (over 1 year ago)
- Language: TypeScript
- Size: 135 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.