Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jeiwan/uniswapv3-code

Uniswap V3 clone built to learn smart-contracts development in Solidity
https://github.com/jeiwan/uniswapv3-code

ethereum foundry smart-contracts solidity uniswap uniswap-v3

Last synced: about 3 hours ago
JSON representation

Uniswap V3 clone built to learn smart-contracts development in Solidity

Awesome Lists containing this project

README

        

# Uniswap V3 Built From Scratch

A Uniswap V3 clone built from scratch for educational purposes. Part of free and open-source [Uniswap V3 Development Book](https://uniswapv3book.com).

![Front-end application screenshot](/screenshot.png)

## Questions?

Each milestone has its own section in [the GitHub Discussions](https://github.com/Jeiwan/uniswapv3-book/discussions).
Don't hesitate to ask questions about anything that's not clear in the book!

## How to Run
1. Ensure you have [Foundry](https://github.com/foundry-rs/foundry) installed.
1. Install the dependencies:
```shell
$ forge install
$ cd ui && yarn
```
1. Run Anvil:
```shell
$ make anvil
```
1. Set environment variables and deploy contracts:
```shell
$ source .envrc
$ make deploy
```
1. Start the UI:
```shell
$ cd ui && yarn start
```
1. In Metamask, import this private key and connect to `localhost:8545`:
```
0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
```
1. Enjoy!