The [PoolTogether](https://www.pooltogether.com/) Prize Savings Protocol Ethereum governor smart contracts.
npm install @pooltogether/governor-contractsThe PoolTogether Prize Savings Protocol Ethereum governor smart contracts.
See the API documentation
If you need an ABI or to depend on the contracts, you can use NPM:
``bash`
$ yarn add @pooltogether/governor-contracts
First clone this repository and enter the directory.
Install dependencies:
``
$ yarn
Copy over .envrc and allow direnv:
``
$ cp .envrc.example .envrc
$ direnv allow
First start the local node:
`bash`
$ yarn start
Now deploy the contracts:
`bash`
$ yarn migrate-local
Interact with the contracts on the command line using oz-console:
`bash`
$ yarn console-local
local> contracts.SingleRandomWinnerPrizePoolBuilder.address
To give test eth to an account, use the console:
`bash``
$ yarn console-local
local> signer.sendTransaction({ to: 'YOUR_ADDRESS', value: ethers.utils.parseEther('100') })