project-serum / swap-ui

React Component for Swapping on the Serum DEX
Apache License 2.0
113 stars 117 forks source link

Export providers and low level components from NPM module #45

Closed secretshardul closed 3 years ago

secretshardul commented 3 years ago

Resolves #40

Providers and components used by swap-ui can be useful outside of the widget. For example for:

  1. Customizing the swap widget
  2. Getting the list of tokens, finding swap routes etc.

Instead of duplicating code, it will be better if users get access to these lower level components. This is a non-breaking change.