Giter VIP home page Giter VIP logo

gp-swap-ui's Introduction

Gitpod ready-to-code

Lint Tests Styled With Prettier

An open source fork of Uniswap to Swap in Gnosis Protocol v2 -- a protocol for decentralized exchange of Ethereum tokens.

Please see the:

Development

Install Dependencies

yarn

Run

yarn start

Unit testing

yarn test

Integration test

Normally:

yarn build
yarn integration-test

If we want to use the Cypress UI:

yarn build
yarn serve
yarn cypress

If we want to use the Cypress UI, and live reloading on the web app:

yarn start:default
yarn cypress

Configuring the environment (optional)

To have the interface default to a different network when a wallet is not connected:

  1. Make a copy of .env named .env.local
  2. Change REACT_APP_NETWORK_ID to "{YOUR_NETWORK_ID}". This will be your default network id
  3. Define your own list of supported networks:
REACT_APP_SUPPORTED_CHAIN_IDS="1,4,100"
REACT_APP_NETWORK_URL_1=https://mainnet.infura.io/v3/{YOUR_INFURA_KEY}
REACT_APP_NETWORK_URL_4=https://rinkeby.infura.io/v3/{YOUR_INFURA_KEY}
REACT_APP_NETWORK_URL_100=https://rpc.xdaichain.com
  1. Change REACT_APP_ID Ask for your id at chat.gnosis.io
  2. Change REACT_APP_API_STAGING_URL_{XDAI|RINKEBY|MAINNET} to e.g. "http://localhost:8080/api" when running the services locally.

For production:

  1. Get your own App Id in <chat.cowswap.exchange>, and set it in REACT_APP_ID.

gp-swap-ui's People

Contributors

moodysalem avatar anxolin avatar ianlapham avatar noahzinsmeister avatar haydenadams avatar chikeichan avatar w3stside avatar kennyt avatar alfetopito avatar callil avatar velenir avatar fairlighteth avatar jfrankfurt avatar lint-action avatar mirshko avatar paulrberg avatar hav-noms avatar dy avatar luarx avatar christophsiegenthaler avatar tpmccallum avatar eccentricexit avatar giacomolicari avatar wjmelements avatar artistic709 avatar mikedemarais avatar micahzoltu avatar fleupold avatar brianmcmichael avatar cryptocatvc 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.