Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pooltogether/pooltogether-contracts-mock
Mock setup for the PoolTogether contracts
https://github.com/pooltogether/pooltogether-contracts-mock
Last synced: about 2 months ago
JSON representation
Mock setup for the PoolTogether contracts
- Host: GitHub
- URL: https://github.com/pooltogether/pooltogether-contracts-mock
- Owner: pooltogether
- License: mit
- Created: 2019-03-07T22:12:11.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T20:46:18.000Z (about 2 years ago)
- Last Synced: 2024-04-23T21:42:37.606Z (9 months ago)
- Language: JavaScript
- Size: 868 KB
- Stars: 8
- Watchers: 2
- Forks: 15
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PoolTogether Mock Contracts
A set of migrations that deploy the [PoolTogether contracts](https://github.com/pooltogether/pooltogether-contracts), along with a mock MoneyMarket and Token.
The migrations will deploy the contracts, mint tokens, start a pool, and deposit into the pool.
# Setup
Clone the repo and then install deps:
```
$ yarn
```Copy over .envrc and allow [direnv](https://direnv.net/):
```
$ cp .envrc.example .envrc
$ direnv allow
```Start the local Ethereum node using `ganache-cli`:
```
$ yarn start
```Now deploy the contracts locally:
```
$ yarn migrate
```To destroy your local deployment, run:
```
$ yarn reset
```*Note: If you changed the mnemonic, you should update the ADMIN_ADDRESS variable in `.envrc` with another address (I use the second address listed when `ganache-cli` starts).*
# Creating Rewards
To accrue interest on the pools you need to run:
```
$ yarn accrue
```