https://github.com/dodoex/widgets
Widget for DODOEX V2
https://github.com/dodoex/widgets
Last synced: 2 months ago
JSON representation
Widget for DODOEX V2
- Host: GitHub
- URL: https://github.com/dodoex/widgets
- Owner: DODOEX
- License: gpl-3.0
- Created: 2022-10-31T03:38:17.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T11:42:26.000Z (6 months ago)
- Last Synced: 2024-10-25T07:53:53.534Z (6 months ago)
- Language: TypeScript
- Homepage: https://github.com/DODOEX/widgets
- Size: 5.49 MB
- Stars: 5
- Watchers: 5
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DODO Widget
## DODO Swap Widget
The DODO Swap Widget allows you to build customized front-end interfaces for the DODO protocol, and embed widgets in DeFi applications for quick asset exchange and other uses. DODO currently supports 9 chains in total, including Ethereum, BNB Chain, Polygon, Arbitrum, Avalanche, OKC, Optimism, Aurora, and Conflux eSpace. We intend to add support for more chains in the future.
## Installation
Install the widgets library via `npm` or `yarn`.
```js
yarn add @dodoex/widgets
``````js
npm i --save @dodoex/widgets
```## Documentation
You can find the DODO Widget documentation [on the website](https://docs.dodoex.io/english/developers/swap-widget) and check out the [Getting Started](https://docs.dodoex.io/english/developers/swap-widget/getting-started) page for a quick overview.
- [Profit-Sharing Instructions](https://docs.dodoex.io/english/developers/swap-widget/profit-sharing-instructions)
- [API](https://docs.dodoex.io/english/developers/swap-widget/api)## Examples
Inside the `examples` folder, there two different examples,
For react app:
```shell
$ git clone [email protected]:DODOEX/widgets.git
$ cd example/react-app
```For js app:
```shell
$ git clone [email protected]:DODOEX/widgets.git
$ cd example/js-app
```Install and run the example:
```bash
yarn # install dependencies
yarn start # run the development server
# or
npm # install dependencies
npm run start # run the development server
```Other details:
- [React App](https://github.com/DODOEX/widgets/tree/main/example/react-app)
- [JS App](https://github.com/DODOEX/widgets/tree/main/example/js-app)## License
- [GPL-3.0 ](https://github.com/DODOEX/widgets/blob/main/LICENSE)
## About DODO
- [DODO Web](https://dodoex.io/)