@dodoex/widgets 3.2.4-beta.9 → 3.3.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -674
- package/README.md +69 -69
- package/dist/{34acf2e58b457195.svg → 28442382d977858a.svg} +9 -9
- package/dist/{219f8611c6c9e6e2.svg → 8de9a184d4ef0a11.svg} +6 -6
- package/dist/{44df077bd19df476.svg → b3f16b2626f03378.svg} +10 -10
- package/dist/cjs/locales/en-US.js +1 -1
- package/dist/cjs/locales/zh-CN.js +1 -1
- package/dist/{5c5d298f247819e1.svg → ed726d76d93d4899.svg} +10 -10
- package/dist/{helper-BP6Ja2SU.cjs → helper-Bu6ja-9D.cjs} +1 -1
- package/dist/{helper-B3EPPZGv.js → helper-wx9DTYyz.js} +1 -1
- package/dist/{index-CztB88rk.js → index-B4mz0kRY.js} +1 -1
- package/dist/{index-CyNmwB67.cjs → index-BCg0PLWl.cjs} +5 -5
- package/dist/index-CyuxvlSx.cjs +31 -0
- package/dist/{index-BiaLfBdx.js → index-DnuPhJ4q.js} +1 -1
- package/dist/{index-CU6D9g-b.cjs → index-Dvmvkd0U.cjs} +2 -2
- package/dist/index-DwJuYHFO.js +31 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/types/components/Swap/components/SwapSettingsDialog/index.d.ts +1 -2
- package/dist/types/components/Swap/index.d.ts +1 -7
- package/dist/types/components/TextSwitch.d.ts +1 -2
- package/dist/types/hooks/contract/wallet.d.ts +2 -2
- package/dist/types/index.d.ts +0 -11
- package/dist/types/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +6 -9
- package/dist/types/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +1 -9
- package/package.json +155 -156
- package/dist/index-C3XUhtcX.cjs +0 -31
- package/dist/index-Dnzhl-3m.js +0 -31
package/README.md
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
# DODO Widget
|
|
2
|
-
|
|
3
|
-
<p align="center">
|
|
4
|
-
<a>
|
|
5
|
-
<img src="https://i.postimg.cc/W4q937Db/Logo.png" alt="DODO" />
|
|
6
|
-
</a>
|
|
7
|
-
</p>
|
|
8
|
-
|
|
9
|
-
<p align="center">
|
|
10
|
-
<a href="https://www.npmjs.com/package/@dodoex/widgets"><img src="https://img.shields.io/npm/v/@dodoex/widgets" alt="npm version" /></a>
|
|
11
|
-
<p>
|
|
12
|
-
|
|
13
|
-
## DODO Swap Widget
|
|
14
|
-
|
|
15
|
-
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 12 chains in total, including Ethereum, BNB Chain, Polygon, Arbitrum, Avalanche, Heco, Moonriver, OKC, BOBA, Optimism, Aurora, and Cronos. We intend to add support for more chains in the future.
|
|
16
|
-
|
|
17
|
-
## Installation
|
|
18
|
-
|
|
19
|
-
Install the widgets library via `npm` or `yarn`.
|
|
20
|
-
|
|
21
|
-
```js
|
|
22
|
-
yarn add @dodoex/widgets
|
|
23
|
-
```
|
|
24
|
-
```js
|
|
25
|
-
npm i --save @dodoex/widgets
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## Documentation
|
|
29
|
-
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.
|
|
30
|
-
- [Profit-Sharing Instructions](https://docs.dodoex.io/english/developers/swap-widget/profit-sharing-instructions)
|
|
31
|
-
- [API](https://docs.dodoex.io/english/developers/swap-widget/api)
|
|
32
|
-
|
|
33
|
-
## Examples
|
|
34
|
-
Inside the `examples` folder, there two different examples,
|
|
35
|
-
|
|
36
|
-
For react app:
|
|
37
|
-
|
|
38
|
-
```shell
|
|
39
|
-
$ git clone git@github.com:DODOEX/widgets.git
|
|
40
|
-
$ cd example/react-app
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
For js app:
|
|
44
|
-
```shell
|
|
45
|
-
$ git clone git@github.com:DODOEX/widgets.git
|
|
46
|
-
$ cd example/js-app
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
Install and run the example:
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
yarn # install dependencies
|
|
53
|
-
yarn start # run the development server
|
|
54
|
-
# or
|
|
55
|
-
npm # install dependencies
|
|
56
|
-
npm run start # run the development server
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
Other details:
|
|
60
|
-
- [React App](https://github.com/DODOEX/widgets/tree/main/example/react-app)
|
|
61
|
-
- [JS App](https://github.com/DODOEX/widgets/tree/main/example/js-app)
|
|
62
|
-
|
|
63
|
-
## License
|
|
64
|
-
|
|
65
|
-
- [GPL-3.0 ](https://github.com/DODOEX/widgets/blob/main/LICENSE)
|
|
66
|
-
|
|
67
|
-
## About DODO
|
|
68
|
-
|
|
69
|
-
- [DODO Web](https://dodoex.io/)
|
|
1
|
+
# DODO Widget
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<a>
|
|
5
|
+
<img src="https://i.postimg.cc/W4q937Db/Logo.png" alt="DODO" />
|
|
6
|
+
</a>
|
|
7
|
+
</p>
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
10
|
+
<a href="https://www.npmjs.com/package/@dodoex/widgets"><img src="https://img.shields.io/npm/v/@dodoex/widgets" alt="npm version" /></a>
|
|
11
|
+
<p>
|
|
12
|
+
|
|
13
|
+
## DODO Swap Widget
|
|
14
|
+
|
|
15
|
+
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 12 chains in total, including Ethereum, BNB Chain, Polygon, Arbitrum, Avalanche, Heco, Moonriver, OKC, BOBA, Optimism, Aurora, and Cronos. We intend to add support for more chains in the future.
|
|
16
|
+
|
|
17
|
+
## Installation
|
|
18
|
+
|
|
19
|
+
Install the widgets library via `npm` or `yarn`.
|
|
20
|
+
|
|
21
|
+
```js
|
|
22
|
+
yarn add @dodoex/widgets
|
|
23
|
+
```
|
|
24
|
+
```js
|
|
25
|
+
npm i --save @dodoex/widgets
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Documentation
|
|
29
|
+
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.
|
|
30
|
+
- [Profit-Sharing Instructions](https://docs.dodoex.io/english/developers/swap-widget/profit-sharing-instructions)
|
|
31
|
+
- [API](https://docs.dodoex.io/english/developers/swap-widget/api)
|
|
32
|
+
|
|
33
|
+
## Examples
|
|
34
|
+
Inside the `examples` folder, there two different examples,
|
|
35
|
+
|
|
36
|
+
For react app:
|
|
37
|
+
|
|
38
|
+
```shell
|
|
39
|
+
$ git clone git@github.com:DODOEX/widgets.git
|
|
40
|
+
$ cd example/react-app
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
For js app:
|
|
44
|
+
```shell
|
|
45
|
+
$ git clone git@github.com:DODOEX/widgets.git
|
|
46
|
+
$ cd example/js-app
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Install and run the example:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
yarn # install dependencies
|
|
53
|
+
yarn start # run the development server
|
|
54
|
+
# or
|
|
55
|
+
npm # install dependencies
|
|
56
|
+
npm run start # run the development server
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Other details:
|
|
60
|
+
- [React App](https://github.com/DODOEX/widgets/tree/main/example/react-app)
|
|
61
|
+
- [JS App](https://github.com/DODOEX/widgets/tree/main/example/js-app)
|
|
62
|
+
|
|
63
|
+
## License
|
|
64
|
+
|
|
65
|
+
- [GPL-3.0 ](https://github.com/DODOEX/widgets/blob/main/LICENSE)
|
|
66
|
+
|
|
67
|
+
## About DODO
|
|
68
|
+
|
|
69
|
+
- [DODO Web](https://dodoex.io/)
|