@oikos/swap-v2-periphery
Version:
🎚 Peripheral smart contracts for interacting with Swap V2
46 lines (29 loc) • 1.56 kB
Markdown
# Swap V2
[](https://github.com/oikos-cash/swap-v2-periphery/actions)
[](https://npmjs.com/package/@oikos/swap-v2-periphery)
Port of Uniswap v2 periphery for Tron. In-depth documentation on Uniswap
V2 (Ethereum version) is available at
[uniswap.org](https://uniswap.org/docs).
The built contract artifacts can be browsed via [unpkg.com](https://unpkg.com/browse/@oikos/swap-v2-periphery@latest/).
## Contract Addresses
| Chain | Contract | Address |
| ------- | -------- | ------------------------------------------------------------------------------------------------------------- |
| Mainnet | Router | [TE2eWyy3Rix9HdkaVxgjbfBJEVhtaPGpSu](https://tronscan.org/#/contract/TE2eWyy3Rix9HdkaVxgjbfBJEVhtaPGpSu) |
| Mainnet | Migrator | [TAeyAfd5TV7a6LDWFzCCVv3iVK5ASPtSCY](https://tronscan.org/#/contract/TAeyAfd5TV7a6LDWFzCCVv3iVK5ASPtSCY) |
| Nile | Router | [TMs1rzzLCxEQDXVFKg6fU5vCJF5XgLjHfm](https://nile.tronscan.org/#/contract/TMs1rzzLCxEQDXVFKg6fU5vCJF5XgLjHfm) |
Compiled with `solc 0.6.6+commit.6c089d02.Emscripten.clang`.
# Local Development
The following assumes the use of `node@>=10`.
## Install Dependencies
```
nvm use 12
npm install
```
## Compile Contracts
`npm run compile`
## Run Tests
`npm test`
## Deploy
```sh
npm run deploy:nile
```