An open-source swap interface by Brave, focussed on usability and multi-chain support.
├── interface
│
├── sites
│ ├── mock
│ ├── bravedotcom
The project consists of three top-level directories:
interface
⮕ library implementing the UI, and swap hooks.sites
⮕ full-blown applications that use theinterface
library.
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