https://github.com/generationsoftware/pt-v5-testnet
https://github.com/generationsoftware/pt-v5-testnet
pooltogether solidity
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/generationsoftware/pt-v5-testnet
- Owner: GenerationSoftware
- License: mit
- Created: 2023-08-04T19:20:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-17T17:20:42.000Z (about 1 year ago)
- Last Synced: 2025-05-05T03:36:28.966Z (11 months ago)
- Topics: pooltogether, solidity
- Language: Solidity
- Homepage:
- Size: 1.24 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Foundry template
Template to kickstart a Foundry project.
## Getting started
The easiest way to get started is by clicking the [Use this template](https://github.com/pooltogether/foundry-template/generate) button at the top right of this page.
If you prefer to go the CLI way:
```
forge init my-project --template https://github.com/pooltogether/foundry-template
```
## Development
### Installation
You may have to install the following tools to use this repository:
- [Foundry](https://github.com/foundry-rs/foundry) to compile and test contracts
- [direnv](https://direnv.net/) to handle environment variables
- [lcov](https://github.com/linux-test-project/lcov) to generate the code coverage report
Install dependencies:
```
npm i
```
### Env
Copy `.envrc.example` and write down the env variables needed to run this project.
```
cp .envrc.example .envrc
```
Once your env variables are setup, load them with:
```
direnv allow
```
### Compile
Run the following command to compile the contracts:
```
npm run compile
```
## Deployment
First setup npm:
```
nvm use
npm i
```
### Local
Start anvil:
```
anvil
```
In another terminal window, run the following command: `npm run deploy:local`
### Testnet
Use one of the following commands to deploy on the testnet of your choice.
#### Arbitrum Sepolia
`npm run deploy:arbitrumSepolia`
#### Optimism Sepolia
`npm run deploy:optimismSepolia`
### Contract List
To generate the local contract list, run the following command: `npm run gen:deployments`