@oikos/swap-v2-core

🎛 Core contrats for the SwapV2 protocol

Usage no npm install needed!

<script type="module">
  import oikosSwapV2Core from 'https://cdn.skypack.dev/@oikos/swap-v2-core';
</script>

README

Swap V2

Actions Status Version

Swap v2 is a Tron port of Uniswap v2. In-depth documentation on Uniswap V2 is available at uniswap.org.

The built contract artifacts can be browsed via unpkg.com.

Contract Addresses

Chain Address
Mainnet TPvAyF9bNTbP4xEkmgJKefh3pPtZsrqDHM
Nile TFyQKFhnFxt45zA2rdmCswmXa1YNiDs46n

Compiled with solc 0.5.16+commit.9c3226ce.Emscripten.clang 200 runs.

Local Development

The following assumes the use of node v12.

nvm use 12

Install Dependencies

npm install

Compile Contracts

npm run compile

Run Tests

npm test

Tron Deployment

Note: use Node <12 to use Truffle...

npm run deploy or npm run deploy:nile.