0.1.1 • Published 6 years ago
@pooltogether/governor-contracts v0.1.1
PoolTogether Protocol Governor Contracts
The PoolTogether Prize Savings Protocol Ethereum governor smart contracts.
See the API documentation
Usage
If you need an ABI or to depend on the contracts, you can use NPM:
$ yarn add @pooltogether/governor-contractsDevelopment
First clone this repository and enter the directory.
Install dependencies:
$ yarnCopy over .envrc and allow direnv:
$ cp .envrc.example .envrc
$ direnv allowDeploy Locally
First start the local node:
$ yarn startNow deploy the contracts:
$ yarn migrate-localInteract with the contracts on the command line using oz-console:
$ yarn console-local
local> contracts.SingleRandomWinnerPrizePoolBuilder.addressTo give test eth to an account, use the console:
$ yarn console-local
local> signer.sendTransaction({ to: 'YOUR_ADDRESS', value: ethers.utils.parseEther('100') })