https://github.com/cairoeth/uniswapv2-defender
🦄 Uniswap v2 deployment with OpenZeppelin Defender 2.0 🚀
https://github.com/cairoeth/uniswapv2-defender
Last synced: 7 months ago
JSON representation
🦄 Uniswap v2 deployment with OpenZeppelin Defender 2.0 🚀
- Host: GitHub
- URL: https://github.com/cairoeth/uniswapv2-defender
- Owner: cairoeth
- Created: 2023-12-04T20:28:24.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-08T11:26:26.000Z (over 2 years ago)
- Last Synced: 2025-10-24T07:39:37.751Z (8 months ago)
- Language: Solidity
- Size: 102 KB
- Stars: 0
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Uniswap v2 with OpenZeppelin Defender 2.0
This project demonstrates a basic Uniswap v2 factory deployment with OpenZeppelin Defender 2.0.
First, duplicate the `.env.example` file and rename it `.env`. Then, create a deployment enviroment on [Defender 2.0](https://defender.openzeppelin.com/v2/#/deploy), and copy your API key and secret to the `.env` file.
Then, install the packages with:
```shell
npm i
```
And compile the contracts with Hardhat:
```shell
npx hardhat compile
```
To deploy, run the script with `node scripts/deploy.js`. Make sure that the artifact path is pointing to the build info json in the `artifacts` folder, and that the relayer you are using in Defender has enough funds for the deployment on Sepolia (or whatever network you want to use).