Git Product home page Git Product logo

nexis's Introduction

Nexis Swap

Build Instructions

  1. clone the repository
git clone https://github.com/Nexis-Network/Nexis-Swap
  1. change working directory

    cd Nexis-Swap
    cd sdk-core-nexis
    
  2. install sdk-core-nexis dependencies

    yarn install
    yarn build
    yalc publish
    
  3. change working directory to interface now

    cd ..
    cd interface
    yarn install
    
  4. If the above stuff fails run this

     yalc add @uniswap/[email protected]
     yalc link @uniswap/[email protected]
     yarn lfg
     yarn install
     rm apps/web/src/graphql/data/__generated__/types-and-hooks.ts
     mv types-and-hooks.ts apps/web/src/graphql/data/__generated__/types-and-hooks.ts
     yarn web start
  5. build

    yarn build:production
    

Details about the Verified Smart Contracts used in Nexis Swap:

Contract Name Contract Address Explorer URL
UniswapV2Factory 0xB7DCc36875fFCA129e2934cf2221566d42d45Be0 explorer url
UniswapInterfaceMulticall 0x7EdBdB96aaBd5F07A499F248DdE70948bDBec16a explorer url
WETH9 0x1F829609216366FE5BB6b98e68441eD6ebBEA1A3 explorer url
UniswapV2Router02 0x293983734f2Cc3A5b3b576c806Bcb1489a59092D explorer url

How to deploy and verify the above mentioned Smart Contracts (using Remix IDE):

UniswapV2Factory

  • Upload the Uniswap v2-core contracts folder in your remix workspace
  • Compile the UniswapV2Factory.sol contract with Solidity 0.5.16 version
  • Deploy the contract
  • Once deployed get the INIT_CODE_HASH
  • To verify the deployed contract, flatten the contract code by right-clicking on the UniswapV2Factory.sol and selecting flatten. This will create a flattened code for the factory contract which can be used for verifying the contract on Nexis Testnet

Multicall Contract

  • In a new Remix workspace, create a new file called multicall.sol and paste the contract source code available on this link
  • Compile this contract using solidity version 0.7.6
  • Deploy the contract
  • Once deployed, verify the contract by using the source code of the contract on Nexis Testnet

WETH Contract

  • In a new Remix workspace, create a new file called weth.sol and paste the contract source code available on this link)
  • Compile this contract using solidity version 0.4.18
  • Deploy the contract
  • Once deployed, verify the contract by using the source code of the contract on Nexis Testnet

UniswapV2Router02 Contract

  • Upload the Uniswap v2-periphery contracts folder in your remix workspace
  • Add the INIT_CODE here that you got when deploying the UniswapV2Factory contract
  • Compile the UniswapV2Router02.sol contract with Solidity 0.6.6 version and enable optimization and set its value to 999999 in Advanced Configurations
  • Deploy the contract
  • To verify the deployed contract, flatten the contract code by right-clicking on the UniswapV2Router02.sol and selecting flatten. This will create a flattened code for the Router contract which can be used for verifying the contract on Nexis Testnet

nexis's People

Contributors

raebeatrose4 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.