0.2.4 • Published 6 years ago
@pooltogether/pooltogether-contracts-mock v0.2.4
PoolTogether Mock Contracts
A set of migrations that deploy the 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:
$ yarnCopy over .envrc and allow direnv:
$ cp .envrc.example .envrc
$ direnv allowStart the local Ethereum node using ganache-cli:
$ yarn startNow deploy the contracts locally:
$ yarn migrateTo destroy your local deployment, run:
$ yarn resetNote: 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