https://github.com/pooltogether/v4-testnet
https://github.com/pooltogether/v4-testnet
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/pooltogether/v4-testnet
- Owner: pooltogether
- Created: 2021-09-07T22:42:09.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-27T17:55:03.000Z (over 3 years ago)
- Last Synced: 2025-04-25T04:03:30.987Z (about 1 year ago)
- Language: TypeScript
- Size: 9.19 MB
- Stars: 5
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PoolTogether V4 Testnet
The V4 testnet deployed contracts and essential hardhat tasks.
# Getting Started
Install `direnv` module.
We use [direnv](https://direnv.net/) to manage environment variables. You'll likely need to install it.
```sh
cp .envrc.example .envrc
```
To run fork scripts, deploy or perform any operation with a mainnet/testnet node you will need an Infura API key.
### Disbursement Address
To `disburse` and `deposit` you will need to add a list of address(es) to DISBURSE_ADDRESSES.
**Example**
```.sh
export DISBURSE_ADDRESSES='0x0000000000000000000000000000000000000000,0x0000000000000000000000000000000000000001'
```
# Setup
```.sh
yarn
```
## New Deployments
```.sh
yarn deploy:goerli
```
```.sh
yarn deploy:mumbai
```
```.sh
yarn deploy:fuji
```
```.sh
yarn deploy:optimismgoerli
```
```.sh
yarn deploy:arbitrumgoerli
```
## Acquire Tokens & Tickets
```.sh
yarn disburse goerli
```
```sh
yarn disburse mumbai
```
```sh
yarn disburse fuji
```
```sh
yarn disburse optimismgoerli
```
```sh
yarn disburse arbitrumgoerli
```
```sh
yarn deposit goerli
```
```sh
yarn deposit mumbai
```
```sh
yarn deposit fuji
```
```sh
yarn deposit optimismgoerli
```
```sh
yarn deposit arbitrumgoerli
```
## Test Deployment Scripts
```.sh
yarn node:goerli
```
```.sh
yarn node:mumbai
```
```.sh
yarn node:fuji
```
```.sh
yarn node:optimismgoerli
```
```.sh
yarn node:arbitrumgoerli
```