2021-05-16 17:53:57 -07:00
|
|
|
# `@project-serum/swap-ui`
|
2021-05-12 10:57:22 -07:00
|
|
|
|
2021-05-16 17:53:57 -07:00
|
|
|
[![Build Status](https://travis-ci.com/project-serum/swap-ui.svg?branch=master)](https://travis-ci.com/project-serum/swap-ui)
|
|
|
|
[![npm](https://img.shields.io/npm/v/@project-serum/swap-ui.svg)](https://www.npmjs.com/package/@project-serum/swap-ui)
|
|
|
|
|
|
|
|
A reusable React component for swapping on the Serum DEX. The Solana program can be
|
|
|
|
found [here](https://github.com/project-serum/swap). An example application is also
|
|
|
|
provided in this repository.
|
|
|
|
|
|
|
|
## Developing
|
|
|
|
|
|
|
|
#### Install dependencies
|
|
|
|
|
|
|
|
```
|
|
|
|
yarn
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Run the example app
|
|
|
|
|
|
|
|
```
|
|
|
|
yarn start
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Build the `@project-serum/swap-ui` package for npm
|
|
|
|
|
|
|
|
```
|
|
|
|
yarn build:npm
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Build the example app for GitHub pages
|
|
|
|
|
|
|
|
```
|
|
|
|
yarn build
|
|
|
|
```
|