Skip to content

🐍 An interface for seamless ERC20 exchange.

License

Notifications You must be signed in to change notification settings

topmonks/uniswap-contracts

 
 

Repository files navigation

Installation

Requires Python 3

  1. Clone Uniswap
$ git clone https://github.com/Uniswap/contracts-vyper
$ cd contracts-vyper
  1. Setup virtual environment
$ pip3 install virtualenv
$ virtualenv -p python3 env
$ source env/bin/activate
  1. Install dependencies
pip install -r requirements.txt
  1. (Optional) Switch Vyper compiler to version used in Uniswap verification
cd vyper
git reset --hard 35038d20bd9946a35261c4c4fbcb27fe61e65f78
cd ..
  1. Run tests
$ pytest -v tests/

Deployment

install prerequisites

nvm use
npm install

deploy locally

npm run ganache & >/dev/null
npm run deploy

deploy to the RSK testnet (this requires having account MNEMONIC in .env)

npm run deploy:rskTestnet

and mainnet

npm run deploy:rsk

already deployed contracts can be managed by console

npx truffle console --network rsk

About

🐍 An interface for seamless ERC20 exchange.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.4%
  • JavaScript 2.6%