0.1.0 • Published 6 months ago

uniswap-v2-deployer v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

uniswap-v2-deployer

forked from https://github.com/AlexBHarley/uniswap-v2-deploy-plugin

One-Click Deployment Tool for Uniswap V2, TypeScript version, dependent on ethers 6.*. Usage as follows:

  • install:
npm i --save-dev uniswap-v2-deployer
  • quick start:
const {factory, router, weth9} = await UniswapV2Deployer.deploy(deployer);

const pair = IUniswapV2Pair__factory.connect(
    await factory.getPair(token0.target, token1.target),
    deployer
);
  • example:
// router addLiquidity (don't forget token-approve-router first)
await (
    await router.addLiquidity(
        token0.target,
        token1.target,
        amount0,
        amount1,
        0,
        0,
        deployer.address,
        MaxUint256
    )
).wait();

// router swap
await (
    await router.swapExactTokensForTokensSupportingFeeOnTransferTokens(
        swapAmount0,
        0,
        [token0.target, token1.target],
        deployer.address,
        MaxUint256
    )
).wait();
0.1.0

6 months ago

0.0.10

6 months ago

0.0.9

6 months ago

0.0.8

6 months ago

0.0.7

6 months ago

0.0.6

6 months ago

0.0.5

6 months ago

1.0.0

6 months ago

0.0.3

6 months ago

0.0.2

6 months ago

0.0.1

6 months ago

0.0.0

6 months ago