Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Uniswap/v1-contracts
🐍Uniswap V1 smart contracts
https://github.com/Uniswap/v1-contracts
cryptocurrency decentralized-exchange erc20 ethereum market-maker smart-contracts vyper
Last synced: 26 days ago
JSON representation
🐍Uniswap V1 smart contracts
- Host: GitHub
- URL: https://github.com/Uniswap/v1-contracts
- Owner: Uniswap
- License: gpl-3.0
- Archived: true
- Created: 2018-04-17T05:20:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-19T15:12:35.000Z (over 3 years ago)
- Last Synced: 2024-05-19T01:57:54.183Z (7 months ago)
- Topics: cryptocurrency, decentralized-exchange, erc20, ethereum, market-maker, smart-contracts, vyper
- Language: Python
- Homepage:
- Size: 211 KB
- Stars: 484
- Watchers: 26
- Forks: 323
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-uniswap - Uniswap V1 Contracts
README
* Website: [uniswap.io/](https://uniswap.io/)
* Docs: [docs.uniswap.io/](https://docs.uniswap.io/)
* Twitter: [@UniswapExchange](https://twitter.com/UniswapExchange)
* Reddit: [/r/Uniswap/](https://www.reddit.com/r/UniSwap/)
* Email: [[email protected]](mailto:[email protected])
* Slack: [uni-swap.slack.com/](https://join.slack.com/t/uni-swap/shared_invite/enQtNDYwMjg1ODc5ODA4LWEyYmU0OGU1ZGQ3NjE4YzhmNzcxMDAyM2ExNzNkZjZjZjcxYTkwNzU0MGE3M2JkNzMxOTA2MzE2ZWM0YWQwNjU)
* Whitepaper: [Link](https://hackmd.io/C-DvwDSfSxuh-Gd4WKE_ig)## Installation:
#### Requires [Python 3](https://www.python.org/download/releases/3.0/)
1) Clone Uniswap
```
$ git clone https://github.com/Uniswap/contracts-vyper
$ cd contracts-vyper
```2) Setup virtual environment
```
$ pip3 install virtualenv
$ virtualenv -p python3 env
$ source env/bin/activate
```3) Install dependencies
```
pip install -r requirements.txt
```4) (Optional) Switch Vyper compiler to version used in Uniswap [verification](https://github.com/runtimeverification/verified-smart-contracts/tree/uniswap/uniswap)
```
cd vyper
git reset --hard 35038d20bd9946a35261c4c4fbcb27fe61e65f78
cd ..
```5) Run tests
```
$ pytest -v tests/
```