Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.
/ swap Public archive

Brave Swap monorepo

License

Notifications You must be signed in to change notification settings

brave/swap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brave Swap

npm version build

An open-source swap interface by Brave, focussed on usability and multi-chain support.

Project structure

├── interface
│
├── sites
│   ├── mock
│   ├── bravedotcom

The project consists of three top-level directories:

  1. interface ⮕ library implementing the UI, and swap hooks.
  2. sites ⮕ full-blown applications that use the interface library.

Development

Since interface is a library, it cannot be run as a standalone application. We have therefore created a sites/mock application that can be used for local development. Please follow these instructions to setup a development environment with hot reloading.

$ cd swap/interface
$ npm install
$ npm run dev

In another tab:

$ cd swap/sites/mock
$ npm install
$ npm start