https://github.com/gitcoinco/easy-retro-pgf-allo2-strategy
Strategy contract for Easy Retro PGF
https://github.com/gitcoinco/easy-retro-pgf-allo2-strategy
Last synced: 12 months ago
JSON representation
Strategy contract for Easy Retro PGF
- Host: GitHub
- URL: https://github.com/gitcoinco/easy-retro-pgf-allo2-strategy
- Owner: gitcoinco
- Created: 2024-02-05T09:27:28.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-25T15:27:23.000Z (over 2 years ago)
- Last Synced: 2024-04-14T10:35:59.164Z (about 2 years ago)
- Language: TypeScript
- Size: 209 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Audit: audit/easy-rpgf-audit-report-final.pdf
Awesome Lists containing this project
README
# EasyRetroPGF Allo2 Strategy
Strategy contract that is used for https://github.com/gitcoinco/easy-retro-pgf
### Getting started
Install Forge:
- https://github.com/foundry-rs/foundry
Run the tests
```sh
npm run test
```
## Deployment
Configure environment variables
```sh
# Configure key to a funded wallet deploying the strategy contract
npx hardhat vars set PRIVATE_KEY 0x...
# Alchemy API key
npx hardhat vars set ALCHEMY_KEY
```
```sh
npm run deploy -- --network optimismSepolia # See hardhat config for available networks
```
Deploy token for testing
```sh
npx hardhat --network optimismSepolia run scripts/deploy-token.ts
```
## Verify
Copy the deployed contract address and pase in place of `` below
```sh
npx hardhat verify --network optimismSepolia 0xa20f3a96f771fc8cc3b44e3a4ac8bcf51654ff0f --constructor-args scripts/args.js
```