Deploying Uniswap on the Oasis Ethereum ParaTime

Sep 11, 2020 • 3 minutes to read

The Oasis Ethereum ParaTime is a high-performance and privacy-first Ethereum runtime on the Oasis network. It supports both the classic EVM (Ethereum Virtual Machine) and the future Ewasm (Ethereum flavored WebAssembly). All Ethereum smart contracts and decentralized applications should be able to migrate and run on the Oasis network, and enjoy enhanced performance and privacy, without any modification.

The “litimus test” for such migration is the Uniswap DEX. Uniswap is one of the most widely used and most advanced decentralized applications on the Ethereum network. It consists of a complex set of interacting smart contracts written in both Vyper and Solidity, and the UI application interfaces with the web3 library and the Metamask wallet. In this article, we will show you how to get Uniswap DEX up and running on Oasis Ethereum ParaTime and use it to trade tokens.

Try Uniswap on Oasis Etherem

The Uniswap team has collaborated with the Second State team to streamline and automate the deployment of the open source Uniswap software. The first video demo shows how we use Ethereum ecosystem tools to develop and deploy applications on the Oasis Ethereum ParaTime.

  • Compile Ethereum Solidity smart contracts in Remix.
  • Deploy Ethereum smart contracts (Uniswap and ERC20) on Oasis Ethereum paratime nodes.
  • Interact with Oasis Ethereum native tokens and ERC20 tokens using the MetaMask wallet.

Furthermore, other popular Ethereum developer tools also work with the Oasis Ethereum ParaTime without any change.

  • The BUIDL IDE for integrated DApp development and deployment.
  • The solc compiler for Solidity smart contracts.
  • The truffle tools for smart contracts

The next video shows the Uniswap v1 application in action on Oasis Ethereum ParaTime. You can see that we can now trade the network token (OETH) and the ERC-20 tokens we created for each account. The web application interacts with the MetaMask wallet through the web3.js interface.

The third video shows how to deploy the Uniswap v2 DEX system from our automated script. The Uniswap v2 system is richer and more complex than the v1 system, and it has dependencies on a number of well-known contracts on the network. For example, it depends on the Wrapped ETH (WETH, an ERC-20 version of the ETH) as the intermediary between ERC-20 token trades. It also allows a feeToSetter address to collect a portion of the transaction fees. All those addresses could be created and configured by hand or by our automated script. Please see our documentation for more details.

We now have a fully functional Uniswap DEX application on Oasis Ethereum ParaTime. With an token asset bridge from Ethereum to Oasis Ethereum, DeFi users can now take advantage of the performance and privacy of the Oasis network. Happy trading!

BlockchainOasisEthereumguideuniswap
A high-performance, extensible, and hardware optimized WebAssembly Virtual Machine for automotive, cloud, AI, and blockchain applications