@dodoex/widgets 3.0.2-bartio.2 → 3.0.2-bartio.20

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.
Files changed (87) hide show
  1. package/LICENSE +674 -674
  2. package/README.md +69 -69
  3. package/dist/{8de9a184d4ef0a11.svg → 219f8611c6c9e6e2.svg} +6 -6
  4. package/dist/{28442382d977858a.svg → 34acf2e58b457195.svg} +9 -9
  5. package/dist/{b3f16b2626f03378.svg → 44df077bd19df476.svg} +10 -10
  6. package/dist/{ed726d76d93d4899.svg → 5c5d298f247819e1.svg} +10 -10
  7. package/dist/{e4364db573253fd1.svg → 7feb1ff0e03a571d.svg} +9 -9
  8. package/dist/cjs/locales/en-US.js +1 -1
  9. package/dist/cjs/locales/zh-CN.js +1 -1
  10. package/dist/{helper-D6LlnQ1M.cjs → helper-DC0Bv4FI.cjs} +1 -1
  11. package/dist/{helper-BhZWILyg.js → helper-Dogdv9I2.js} +1 -1
  12. package/dist/index-BnY-vTM4.js +67 -0
  13. package/dist/{index-DDsCP5_a.cjs → index-C5JqZwwp.cjs} +2 -2
  14. package/dist/index-F06WKOh1.cjs +67 -0
  15. package/dist/index-JG6WMPGu.js +78 -0
  16. package/dist/{index-7x0JpwJJ.cjs → index-Pa9bOnFT.cjs} +6 -6
  17. package/dist/{index-CAmXGIvF.js → index-iFj85-kA.js} +1 -1
  18. package/dist/index.cjs +1 -1
  19. package/dist/index.js +1 -1
  20. package/dist/locales/en-US.js +1 -1
  21. package/dist/locales/zh-CN.js +1 -1
  22. package/dist/types/components/AddressWithLinkAndCopy.d.ts +2 -1
  23. package/dist/types/components/List/EmptyList.d.ts +2 -1
  24. package/dist/types/components/Swap/components/ConnectWallet/index.d.ts +2 -1
  25. package/dist/types/components/Swap/components/SwitchBox.d.ts +2 -1
  26. package/dist/types/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +3 -2
  27. package/dist/types/components/Swap/index.d.ts +4 -1
  28. package/dist/types/components/TokenLogoPair.d.ts +1 -1
  29. package/dist/types/components/TokenSelect.d.ts +2 -1
  30. package/dist/types/components/Widget/index.d.ts +27 -1
  31. package/dist/types/components/WidgetContainer.d.ts +1 -1
  32. package/dist/types/components/WithExecutionDialog/index.d.ts +1 -1
  33. package/dist/types/constants/chains.d.ts +0 -3
  34. package/dist/types/hooks/Submission/types.d.ts +3 -0
  35. package/dist/types/hooks/Submission/useExecution.d.ts +2 -0
  36. package/dist/types/hooks/contract/useFetchBlockNumber.d.ts +1 -1
  37. package/dist/types/hooks/useGlobalState.d.ts +32 -0
  38. package/dist/types/hooks/useTokenState.d.ts +18 -0
  39. package/dist/types/index.d.ts +4 -1
  40. package/dist/types/utils/address.d.ts +1 -1
  41. package/dist/types/utils/token.d.ts +1 -1
  42. package/dist/types/widgets/MiningWidget/hooks/helper.d.ts +2 -2
  43. package/dist/types/widgets/MiningWidget/hooks/useReviewRewardToken.d.ts +2 -2
  44. package/dist/types/widgets/PoolWidget/AMMV3/hooks/usePools.d.ts +1 -1
  45. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/addresses.d.ts +0 -14
  46. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/chains.d.ts +6 -0
  47. package/dist/types/widgets/PoolWidget/Algebra/AddLiquidity.d.ts +7 -1
  48. package/dist/types/widgets/PoolWidget/Algebra/components/ClaimButton.d.ts +2 -1
  49. package/dist/types/widgets/PoolWidget/Algebra/components/InputStepCounter.d.ts +2 -1
  50. package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/index.d.ts +11 -9
  51. package/dist/types/widgets/PoolWidget/Algebra/components/RangeSelector.d.ts +2 -1
  52. package/dist/types/widgets/PoolWidget/Algebra/components/RateToggle.d.ts +3 -3
  53. package/dist/types/widgets/PoolWidget/Algebra/components/RemoveButton.d.ts +2 -1
  54. package/dist/types/widgets/PoolWidget/Algebra/hooks/usePoolActiveLiquidityChartData.d.ts +37 -0
  55. package/dist/types/widgets/PoolWidget/Algebra/utils/computeSurroundingTicks.d.ts +2 -2
  56. package/dist/types/widgets/PoolWidget/Algebra/utils/getPositionAmountWithSlippage.d.ts +3 -2
  57. package/dist/types/widgets/PoolWidget/Algebra/utils/getTickToPrice.d.ts +1 -9
  58. package/dist/types/widgets/PoolWidget/Algebra/utils/tryParseTick.d.ts +2 -5
  59. package/dist/types/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +7 -1
  60. package/dist/types/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +7 -1
  61. package/dist/types/widgets/PoolWidget/PoolList/components/LiquidityTable.d.ts +3 -1
  62. package/dist/types/widgets/PoolWidget/PoolList/components/migationWidget.d.ts +7 -0
  63. package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +9 -1
  64. package/dist/types/widgets/PoolWidget/PoolList/index.d.ts +11 -1
  65. package/dist/types/widgets/PoolWidget/hooks/contract/getModifyDPPPoolParams.d.ts +2 -1
  66. package/dist/types/widgets/PoolWidget/hooks/usePoolDetail.d.ts +35 -0
  67. package/package.json +156 -157
  68. package/dist/index-BduZdyfz.cjs +0 -31
  69. package/dist/index-Dl7FV9-C.js +0 -31
  70. package/dist/index-h5hit_bx.js +0 -78
  71. package/dist/types/store/actions/globals.d.ts +0 -9
  72. package/dist/types/store/actions/index.d.ts +0 -4
  73. package/dist/types/store/actions/settings.d.ts +0 -3
  74. package/dist/types/store/actions/token.d.ts +0 -7
  75. package/dist/types/store/actions/wallet.d.ts +0 -6
  76. package/dist/types/store/index.d.ts +0 -12
  77. package/dist/types/store/reducers/globals.d.ts +0 -21
  78. package/dist/types/store/reducers/index.d.ts +0 -17
  79. package/dist/types/store/reducers/settings.d.ts +0 -8
  80. package/dist/types/store/reducers/token.d.ts +0 -22
  81. package/dist/types/store/reducers/wallet.d.ts +0 -13
  82. package/dist/types/store/selectors/globals.d.ts +0 -7
  83. package/dist/types/store/selectors/settings.d.ts +0 -2
  84. package/dist/types/store/selectors/token.d.ts +0 -6
  85. package/dist/types/store/selectors/wallet.d.ts +0 -6
  86. package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/hooks.d.ts +0 -12
  87. package/dist/types/widgets/PoolWidget/Algebra/hooks/usePoolTickData.d.ts +0 -20
package/package.json CHANGED
@@ -1,157 +1,156 @@
1
- {
2
- "name": "@dodoex/widgets",
3
- "version": "3.0.2-bartio.2",
4
- "description": "DODO Widgets",
5
- "source": "src/index.tsx",
6
- "types": "dist/types/index.d.ts",
7
- "main": "dist/index.cjs",
8
- "module": "dist/index.js",
9
- "license": "GPL-3.0-or-later",
10
- "homepage": "https://github.com/DODOEX/widgets#readme",
11
- "repository": "https://github.com/DODOEX/widgets",
12
- "files": [
13
- "dist"
14
- ],
15
- "scripts": {
16
- "prepare": "yarn compile:i18n",
17
- "extract:i18n": "lingui extract --clean",
18
- "compile:i18n": "yarn extract:i18n && lingui compile",
19
- "sync:i18n": "export $(cat .env | xargs) && env lingui extract --overwrite && lingui compile",
20
- "watch": "yarn run rollup -c --watch",
21
- "build": "yarn compile:i18n && rollup --config",
22
- "prerelease": "yarn run build",
23
- "release": "semantic-release",
24
- "release:local": "np --any-branch --no-cleanup --no-tests",
25
- "release.npm-publish": "npm publish --access public",
26
- "release.npm-publish-beta": "npm publish --tag beta",
27
- "test": "jest src",
28
- "test:e2e": "jest e2e"
29
- },
30
- "author": "",
31
- "publishConfig": {
32
- "access": "public",
33
- "registry": "https://registry.npmjs.org"
34
- },
35
- "exports": {
36
- ".": {
37
- "types": "./dist/types/index.d.ts",
38
- "import": "./dist/index.js",
39
- "require": "./dist/index.cjs"
40
- }
41
- },
42
- "keywords": [
43
- "dodo",
44
- "widgets",
45
- "interfaces"
46
- ],
47
- "browserslist": {
48
- "production": [
49
- ">0.2%",
50
- "not dead",
51
- "not op_mini all"
52
- ],
53
- "development": [
54
- "last 1 chrome version",
55
- "last 1 firefox version",
56
- "last 1 safari version"
57
- ]
58
- },
59
- "dependencies": {
60
- "@babel/runtime": "^7.17.0",
61
- "@dodoex/api": "3.0.3-bartio.1",
62
- "@dodoex/components": "3.0.2",
63
- "@dodoex/contract-request": "^1.3.0",
64
- "@dodoex/dodo-contract-request": "1.9.0-alpha.8",
65
- "@dodoex/icons": "^2.0.2",
66
- "@emotion/react": "^11.10.0",
67
- "@emotion/styled": "^11.10.0",
68
- "@ethersproject/bignumber": "^5.6.2",
69
- "@ethersproject/contracts": "^5.7.0",
70
- "@lingui/core": "^4.3.0",
71
- "@lingui/macro": "^4.3.0",
72
- "@lingui/react": "^4.3.0",
73
- "@reduxjs/toolkit": "^1.6.1",
74
- "@semantic-release/changelog": "^6.0.1",
75
- "@semantic-release/git": "^10.0.1",
76
- "@tanstack/react-query": "^5.18.1",
77
- "@uniswap/sdk-core": "^5.9.0",
78
- "@uniswap/v2-sdk": "^4.6.2",
79
- "@web3-react/core": "8.2.0",
80
- "@web3-react/eip1193": "8.2.0",
81
- "@web3-react/metamask": "8.2.1",
82
- "@web3-react/types": "8.2.0",
83
- "@web3-react/walletconnect-v2": "8.3.6",
84
- "axios": "^0.27.2",
85
- "bignumber.js": "^9.0.2",
86
- "d3": "7.6.1",
87
- "dayjs": "^1.11.11",
88
- "identicon.js": "^2.3.3",
89
- "jsbi": "^3.1.4",
90
- "konva": "^9.3.6",
91
- "lodash": "^4.17.21",
92
- "make-plural": "^7.0.0",
93
- "moment": "^2.29.4",
94
- "react-datetime": "^3.1.1",
95
- "react-icons": "^5.0.1",
96
- "react-infinite-scroller": "^1.2.6",
97
- "react-konva": "^18.2.10",
98
- "react-transition-group": "^4.4.5",
99
- "react-window": "^1.8.8",
100
- "recharts": "^2.12.7",
101
- "rmc-date-picker": "^6.0.10",
102
- "semantic-release": "^19.0.2",
103
- "tiny-invariant": "^1.1.0",
104
- "zustand": "^4.5.5"
105
- },
106
- "peerDependencies": {
107
- "@babel/runtime": ">=7.17.0",
108
- "react": ">=17.0.1",
109
- "react-dom": ">=17.0.1",
110
- "react-redux": ">=7.2.2",
111
- "redux": ">=4.1.2"
112
- },
113
- "devDependencies": {
114
- "@babel/preset-env": "^7.16.11",
115
- "@babel/preset-react": "^7.18.6",
116
- "@babel/preset-typescript": "^7.16.7",
117
- "@lingui/babel-preset-react": "^2.9.2",
118
- "@lingui/cli": "^4.3.0",
119
- "@nomicfoundation/hardhat-network-helpers": "^1.0.6",
120
- "@nomiclabs/hardhat-ethers": "^2.1.1",
121
- "@rollup/plugin-babel": "^6.0.4",
122
- "@rollup/plugin-commonjs": "^26.0.1",
123
- "@rollup/plugin-json": "^6.1.0",
124
- "@rollup/plugin-multi-entry": "^6.0.1",
125
- "@rollup/plugin-replace": "^5.0.7",
126
- "@rollup/plugin-terser": "^0.4.4",
127
- "@rollup/plugin-typescript": "^12.1.1",
128
- "@rollup/plugin-url": "^8.0.2",
129
- "@svgr/rollup": "^6.2.1",
130
- "@testing-library/jest-dom": "^5.16.5",
131
- "@testing-library/react": "^13.4.0",
132
- "@testing-library/react-hooks": "^8.0.1",
133
- "@types/d3": "7.4.3",
134
- "@types/identicon.js": "^2.3.1",
135
- "@types/jest": "^29.0.3",
136
- "@types/lodash": "^4.14.184",
137
- "@types/react-infinite-scroller": "^1.2.5",
138
- "@types/react-transition-group": "^4.4.11",
139
- "@types/react-window": "^1.8.5",
140
- "babel-plugin-macros": "^3.1.0",
141
- "babel-runtime": "^6.26.0",
142
- "dotenv": "^16.0.2",
143
- "ethers": "^5.7.1",
144
- "hardhat": "^2.22.13",
145
- "identity-obj-proxy": "^3.0.0",
146
- "jest": "^29.0.3",
147
- "jest-environment-hardhat": "^1.1.9",
148
- "jest-environment-jsdom": "^29.0.3",
149
- "np": "^7.6.1",
150
- "rollup": "^4.18.0",
151
- "rollup-plugin-clear": "^2.0.7",
152
- "rollup-plugin-import-css": "^3.5.5",
153
- "svg-jest": "^1.0.1",
154
- "ts-jest": "^29.0.1",
155
- "typescript": "^5.6.3"
156
- }
157
- }
1
+ {
2
+ "name": "@dodoex/widgets",
3
+ "version": "3.0.2-bartio.20",
4
+ "description": "DODO Widgets",
5
+ "source": "src/index.tsx",
6
+ "types": "dist/types/index.d.ts",
7
+ "main": "dist/index.cjs",
8
+ "module": "dist/index.js",
9
+ "license": "GPL-3.0-or-later",
10
+ "homepage": "https://github.com/DODOEX/widgets#readme",
11
+ "repository": "https://github.com/DODOEX/widgets",
12
+ "files": [
13
+ "dist"
14
+ ],
15
+ "scripts": {
16
+ "prepare": "yarn compile:i18n",
17
+ "extract:i18n": "lingui extract --clean",
18
+ "compile:i18n": "yarn extract:i18n && lingui compile",
19
+ "sync:i18n": "export $(cat .env | xargs) && env lingui extract --overwrite && lingui compile",
20
+ "watch": "yarn run rollup -c --watch",
21
+ "build": "yarn compile:i18n && rollup --config",
22
+ "prerelease": "yarn run build",
23
+ "release": "semantic-release",
24
+ "release:local": "np --any-branch --no-cleanup --no-tests",
25
+ "release.npm-publish": "npm publish --access public",
26
+ "release.npm-publish-beta": "npm publish --tag beta",
27
+ "test": "jest src",
28
+ "test:e2e": "jest e2e"
29
+ },
30
+ "author": "",
31
+ "publishConfig": {
32
+ "access": "public",
33
+ "registry": "https://registry.npmjs.org"
34
+ },
35
+ "exports": {
36
+ ".": {
37
+ "types": "./dist/types/index.d.ts",
38
+ "import": "./dist/index.js",
39
+ "require": "./dist/index.cjs"
40
+ }
41
+ },
42
+ "keywords": [
43
+ "dodo",
44
+ "widgets",
45
+ "interfaces"
46
+ ],
47
+ "browserslist": {
48
+ "production": [
49
+ ">0.2%",
50
+ "not dead",
51
+ "not op_mini all"
52
+ ],
53
+ "development": [
54
+ "last 1 chrome version",
55
+ "last 1 firefox version",
56
+ "last 1 safari version"
57
+ ]
58
+ },
59
+ "dependencies": {
60
+ "@babel/runtime": "^7.17.0",
61
+ "@dodoex/api": "3.0.3-bartio.5",
62
+ "@dodoex/components": "3.0.3",
63
+ "@dodoex/contract-request": "^1.3.0",
64
+ "@dodoex/dodo-contract-request": "1.12.0-alpha.2",
65
+ "@dodoex/icons": "^2.0.2",
66
+ "@emotion/react": "^11.10.0",
67
+ "@emotion/styled": "^11.10.0",
68
+ "@ethersproject/bignumber": "^5.6.2",
69
+ "@ethersproject/contracts": "^5.7.0",
70
+ "@lingui/core": "^4.3.0",
71
+ "@lingui/macro": "^4.3.0",
72
+ "@lingui/react": "^4.3.0",
73
+ "@reduxjs/toolkit": "^1.6.1",
74
+ "@semantic-release/changelog": "^6.0.1",
75
+ "@semantic-release/git": "^10.0.1",
76
+ "@tanstack/react-query": "^5.18.1",
77
+ "@uniswap/sdk-core": "^5.9.0",
78
+ "@uniswap/v2-sdk": "^4.6.2",
79
+ "@web3-react/core": "8.2.0",
80
+ "@web3-react/eip1193": "8.2.0",
81
+ "@web3-react/metamask": "8.2.1",
82
+ "@web3-react/types": "8.2.0",
83
+ "@web3-react/walletconnect-v2": "8.3.6",
84
+ "axios": "^0.27.2",
85
+ "bignumber.js": "^9.0.2",
86
+ "d3": "7.6.1",
87
+ "dayjs": "^1.11.11",
88
+ "identicon.js": "^2.3.3",
89
+ "jsbi": "^3.1.4",
90
+ "konva": "^9.3.6",
91
+ "lodash": "^4.17.21",
92
+ "make-plural": "^7.0.0",
93
+ "moment": "^2.29.4",
94
+ "react-datetime": "^3.1.1",
95
+ "react-icons": "^5.0.1",
96
+ "react-infinite-scroller": "^1.2.6",
97
+ "react-konva": "^18.2.10",
98
+ "react-transition-group": "^4.4.5",
99
+ "react-window": "^1.8.8",
100
+ "recharts": "^2.12.7",
101
+ "rmc-date-picker": "^6.0.10",
102
+ "semantic-release": "^19.0.2",
103
+ "tiny-invariant": "^1.1.0",
104
+ "zustand": "^4.5.5"
105
+ },
106
+ "peerDependencies": {
107
+ "@babel/runtime": ">=7.17.0",
108
+ "react": ">=17.0.1",
109
+ "react-dom": ">=17.0.1"
110
+ },
111
+ "devDependencies": {
112
+ "@babel/preset-env": "^7.16.11",
113
+ "@babel/preset-react": "^7.18.6",
114
+ "@babel/preset-typescript": "^7.16.7",
115
+ "@lingui/babel-preset-react": "^2.9.2",
116
+ "@lingui/cli": "^4.3.0",
117
+ "@nomicfoundation/hardhat-network-helpers": "^1.0.6",
118
+ "@nomiclabs/hardhat-ethers": "^2.1.1",
119
+ "@rollup/plugin-babel": "^6.0.4",
120
+ "@rollup/plugin-commonjs": "^26.0.1",
121
+ "@rollup/plugin-json": "^6.1.0",
122
+ "@rollup/plugin-multi-entry": "^6.0.1",
123
+ "@rollup/plugin-replace": "^5.0.7",
124
+ "@rollup/plugin-terser": "^0.4.4",
125
+ "@rollup/plugin-typescript": "^12.1.1",
126
+ "@rollup/plugin-url": "^8.0.2",
127
+ "@svgr/rollup": "^6.2.1",
128
+ "@testing-library/jest-dom": "^5.16.5",
129
+ "@testing-library/react": "^13.4.0",
130
+ "@testing-library/react-hooks": "^8.0.1",
131
+ "@types/d3": "7.4.3",
132
+ "@types/identicon.js": "^2.3.1",
133
+ "@types/jest": "^29.0.3",
134
+ "@types/lodash": "^4.14.184",
135
+ "@types/react-infinite-scroller": "^1.2.5",
136
+ "@types/react-transition-group": "^4.4.11",
137
+ "@types/react-window": "^1.8.5",
138
+ "babel-plugin-macros": "^3.1.0",
139
+ "babel-runtime": "^6.26.0",
140
+ "dotenv": "^16.0.2",
141
+ "ethers": "^5.7.1",
142
+ "hardhat": "^2.22.13",
143
+ "identity-obj-proxy": "^3.0.0",
144
+ "jest": "^29.0.3",
145
+ "jest-environment-hardhat": "^1.1.9",
146
+ "jest-environment-jsdom": "^29.0.3",
147
+ "np": "^7.6.1",
148
+ "rollup": "^4.18.0",
149
+ "rollup-plugin-clear": "^2.0.7",
150
+ "rollup-plugin-import-css": "^3.5.5",
151
+ "svg-jest": "^1.0.1",
152
+ "ts-jest": "^29.0.1",
153
+ "typescript": "^5.6.3"
154
+ }
155
+ }
156
+