@pooltogether/pooltogether-contracts-mock

0.2.4 • Public • Published

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:

$ yarn

Copy over .envrc and allow direnv:

$ 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

Readme

Keywords

none

Package Sidebar

Install

npm i @pooltogether/pooltogether-contracts-mock

Weekly Downloads

1

Version

0.2.4

License

GPL-3.0

Unpacked Size

82.9 kB

Total Files

24

Last publish

Collaborators

  • asselstine