Skip to content

Deploy UniswapV2

Before being able to deploy this contract, it requires solc v0.5.16. You can use the Build Solc command to get the compiler.

Deploy the Factory

Params:

  • Wallet that will get the fees
hanchond playground tx solidity deploy-uniswap-v2-factory 0x492bb9bb9a0b5a564307f65a75253e5d054669a9
{"contract_address":"0xe38de16950d3f1048f940268f80ef80bdd10d750", "tx_hash":"0x0ba8e69c71013345f28d7514125c7f323464b4179a68b2a8c28defcf2e96ef3a"}

Deploy the Router

Params:

  • Factory Address
  • WrappedCoin Address
hanchond playground tx solidity deploy-uniswap-v2-router 0xbb48d7604b522abcbb2f2302d4c18d907c12fd31 0x491bacc7ec4569468f0c21b7ae3629cd9fa6aa39
{"contract_address":"0xd6c873ad9f220279259609ec52fe17702bc47bf8", "code_hash":"0xfffa7b2f489b21362d74fd4ff2c3462d845afc0d0d8170785496d28bb1e568b0", "tx_hash":"0x09df30323ceaa33d5167e31a2faf834b3d253602626d2b256b76bb57a82ad33d"}

Deploy Multicall

hanchond playground tx solidity deploy-uniswap-v2-multicall
{"contract_address":"0xdd0a082af196653c97bf0160aa5d54fe8b47b94e", "code_hash":"0x75af43a00dfd028a9b68d2fc636e3dd28fe2f452ffae82b03f6d6488118a3971", "tx_hash":"0xd1c1cff43639cc1f7baf24dfc60bf426b817739d841a49c4c5c7b3719c4f2854"}