@dodoex/widgets 3.0.2-neox.1 → 3.0.2-nero.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.
Files changed (79) 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/cjs/locales/en-US.js +1 -1
  8. package/dist/cjs/locales/zh-CN.js +1 -1
  9. package/dist/{helper-u3n5TpaA.js → helper-BXwG58IY.js} +1 -1
  10. package/dist/{helper-CuTmbsue.cjs → helper-iU_nlnVU.cjs} +1 -1
  11. package/dist/index-BymGXm21.cjs +31 -0
  12. package/dist/{index-iIQatzFL.js → index-CrL7tw2M.js} +1 -1
  13. package/dist/index-D4qUZFtB.js +31 -0
  14. package/dist/{index-DGfFyxhb.cjs → index-DQf09Bww.cjs} +6 -6
  15. package/dist/{index-BgJpw3jN.cjs → index-DriZcYvf.cjs} +2 -2
  16. package/dist/index-M1galozG.js +78 -0
  17. package/dist/index.cjs +1 -1
  18. package/dist/index.js +1 -1
  19. package/dist/locales/en-US.js +1 -1
  20. package/dist/locales/zh-CN.js +1 -1
  21. package/dist/types/components/AddressWithLinkAndCopy.d.ts +2 -1
  22. package/dist/types/components/List/EmptyList.d.ts +2 -1
  23. package/dist/types/components/Swap/components/TokenCard/BalanceText.d.ts +1 -3
  24. package/dist/types/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +1 -5
  25. package/dist/types/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +3 -2
  26. package/dist/types/components/Swap/components/TokenCard/index.d.ts +1 -2
  27. package/dist/types/components/Swap/components/TokenPairPriceWithToggle.d.ts +2 -14
  28. package/dist/types/components/TokenLogoPair.d.ts +1 -1
  29. package/dist/types/components/Widget/index.d.ts +27 -1
  30. package/dist/types/components/WidgetContainer.d.ts +1 -1
  31. package/dist/types/components/WithExecutionDialog/index.d.ts +1 -1
  32. package/dist/types/hooks/Submission/types.d.ts +3 -0
  33. package/dist/types/hooks/Submission/useExecution.d.ts +2 -0
  34. package/dist/types/hooks/contract/useFetchBlockNumber.d.ts +1 -1
  35. package/dist/types/hooks/style/useWidgetDevice.d.ts +0 -1
  36. package/dist/types/hooks/useGlobalState.d.ts +32 -0
  37. package/dist/types/hooks/useTokenState.d.ts +18 -0
  38. package/dist/types/utils/address.d.ts +8 -1
  39. package/dist/types/utils/token.d.ts +1 -1
  40. package/dist/types/widgets/MiningWidget/hooks/helper.d.ts +2 -2
  41. package/dist/types/widgets/MiningWidget/hooks/useReviewRewardToken.d.ts +2 -2
  42. package/dist/types/widgets/PoolWidget/AMMV3/hooks/usePools.d.ts +1 -1
  43. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/addresses.d.ts +0 -6
  44. package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/chains.d.ts +6 -0
  45. package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/constants.d.ts +11 -2
  46. package/dist/types/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +7 -1
  47. package/dist/types/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +7 -1
  48. package/dist/types/widgets/PoolWidget/PoolList/components/LiquidityTable.d.ts +3 -1
  49. package/dist/types/widgets/PoolWidget/PoolList/components/PoolApyTooltip.d.ts +1 -0
  50. package/dist/types/widgets/PoolWidget/PoolList/components/migationWidget.d.ts +7 -0
  51. package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +12 -1
  52. package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.d.ts +1 -1
  53. package/dist/types/widgets/PoolWidget/PoolList/index.d.ts +13 -1
  54. package/dist/types/widgets/PoolWidget/PoolOperate/types.d.ts +2 -0
  55. package/dist/types/widgets/PoolWidget/hooks/contract/getModifyDPPPoolParams.d.ts +2 -1
  56. package/dist/types/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +4 -3
  57. package/dist/types/widgets/PoolWidget/hooks/usePoolDetail.d.ts +45 -0
  58. package/package.json +154 -156
  59. package/dist/9cc2b17a1958d960.svg +0 -3
  60. package/dist/f7a5110e71722a0c.svg +0 -10
  61. package/dist/index-BEVRr0PH.js +0 -32
  62. package/dist/index-BvjPNHer.js +0 -78
  63. package/dist/index-DogPNaZV.cjs +0 -32
  64. package/dist/types/components/Swap/components/SwapInfoCard.d.ts +0 -9
  65. package/dist/types/store/actions/globals.d.ts +0 -9
  66. package/dist/types/store/actions/index.d.ts +0 -4
  67. package/dist/types/store/actions/settings.d.ts +0 -3
  68. package/dist/types/store/actions/token.d.ts +0 -7
  69. package/dist/types/store/actions/wallet.d.ts +0 -6
  70. package/dist/types/store/index.d.ts +0 -12
  71. package/dist/types/store/reducers/globals.d.ts +0 -21
  72. package/dist/types/store/reducers/index.d.ts +0 -17
  73. package/dist/types/store/reducers/settings.d.ts +0 -8
  74. package/dist/types/store/reducers/token.d.ts +0 -22
  75. package/dist/types/store/reducers/wallet.d.ts +0 -13
  76. package/dist/types/store/selectors/globals.d.ts +0 -7
  77. package/dist/types/store/selectors/settings.d.ts +0 -2
  78. package/dist/types/store/selectors/token.d.ts +0 -6
  79. package/dist/types/store/selectors/wallet.d.ts +0 -6
@@ -1,10 +1,16 @@
1
1
  import { ChainId } from '@dodoex/api';
2
+ import { TokenAndPoolFilterUserOptions } from './hooks/usePoolListFilterTokenAndPool';
2
3
  import { PoolOperateProps } from '../PoolOperate';
3
- export default function MyLiquidity({ account, filterChainIds, activeChainId, handleChangeActiveChainId, operatePool, setOperatePool, }: {
4
+ export default function MyLiquidity({ account, filterChainIds, activeChainId, handleChangeActiveChainId, operatePool, setOperatePool, getMigrationPairAndMining, tokenAndPoolFilter, }: {
4
5
  account?: string;
5
6
  filterChainIds?: ChainId[];
6
7
  activeChainId: ChainId | undefined;
7
8
  handleChangeActiveChainId: (chainId: number | undefined) => void;
8
9
  operatePool: Partial<PoolOperateProps> | null;
9
10
  setOperatePool: (operate: Partial<PoolOperateProps> | null) => void;
11
+ getMigrationPairAndMining?: (p: {
12
+ address: string;
13
+ chainId: number;
14
+ }) => void;
15
+ tokenAndPoolFilter?: TokenAndPoolFilterUserOptions;
10
16
  }): JSX.Element;
@@ -1,5 +1,7 @@
1
1
  import { BoxProps } from '@dodoex/components';
2
- export default function LiquidityTable({ sx, children, hasMore, loadMore, loadMoreLoading, ...props }: BoxProps & {
2
+ export default function LiquidityTable({ sx, children, empty, loading, hasMore, loadMore, loadMoreLoading, ...props }: BoxProps & {
3
+ empty?: boolean;
4
+ loading?: boolean;
3
5
  hasMore?: boolean;
4
6
  loadMore?: () => void;
5
7
  loadMoreLoading?: boolean;
@@ -10,6 +10,7 @@ export default function PoolApyTooltip({ chainId, baseToken, quoteToken, apy, ha
10
10
  transactionQuoteApy?: string | null;
11
11
  miningBaseApy?: string | null;
12
12
  miningQuoteApy?: string | null;
13
+ metromMiningApy?: string | null;
13
14
  } | undefined | null;
14
15
  hasQuote: boolean;
15
16
  hasMining: boolean;
@@ -0,0 +1,7 @@
1
+ import { BoxProps } from '@dodoex/components';
2
+ export interface MigrationTagProps {
3
+ sx?: BoxProps['sx'];
4
+ isRightTop?: boolean;
5
+ isReverseColor?: boolean;
6
+ }
7
+ export declare const MigrationTag: ({ sx, isRightTop, isReverseColor, }: MigrationTagProps) => JSX.Element;
@@ -1,6 +1,14 @@
1
+ import React from 'react';
1
2
  import { TokenInfo } from '../../../../hooks/Token';
2
3
  import { FetchLiquidityListLqList } from '../../utils';
3
- export declare function usePoolListFilterTokenAndPool(): {
4
+ export interface TokenAndPoolFilterUserOptions {
5
+ tokens: Array<TokenInfo>;
6
+ lqList: FetchLiquidityListLqList;
7
+ onChangeFilterTokens: (tokens: Array<TokenInfo>) => void;
8
+ onChangeFilterAddressLqList: (lqList: FetchLiquidityListLqList) => void;
9
+ element: React.ReactNode;
10
+ }
11
+ export declare function usePoolListFilterTokenAndPool(tokenAndPoolFilter?: TokenAndPoolFilterUserOptions): {
4
12
  filterTokens: TokenInfo[];
5
13
  filterASymbol: string;
6
14
  filterBSymbol: string;
@@ -18,9 +26,11 @@ export declare function usePoolListFilterTokenAndPool(): {
18
26
  volume24H?: any | null;
19
27
  baseLpToken?: {
20
28
  id: string;
29
+ decimals: any;
21
30
  } | null;
22
31
  quoteLpToken?: {
23
32
  id: string;
33
+ decimals: any;
24
34
  } | null;
25
35
  baseToken: {
26
36
  id: string;
@@ -41,6 +51,7 @@ export declare function usePoolListFilterTokenAndPool(): {
41
51
  miningQuoteApy?: any | null;
42
52
  transactionBaseApy?: any | null;
43
53
  transactionQuoteApy?: any | null;
54
+ metromMiningApy?: any | null;
44
55
  } | null;
45
56
  } | null;
46
57
  } | null)[] | null | undefined;
@@ -10,7 +10,7 @@ export declare function usePoolListTabs({ account, paramsTab, }: {
10
10
  poolTab: PoolTab;
11
11
  tabs: {
12
12
  key: PoolTab;
13
- value: JSX.Element;
13
+ value: string;
14
14
  }[];
15
15
  handleChangePoolTab: (poolTab: PoolTab) => void;
16
16
  };
@@ -1,4 +1,16 @@
1
+ import React from 'react';
1
2
  import { Page, PageType } from '../../../router/types';
2
- export default function PoolList({ params, }: {
3
+ import { PoolOperateProps } from '../PoolOperate';
4
+ import { TokenAndPoolFilterUserOptions } from './hooks/usePoolListFilterTokenAndPool';
5
+ export default function PoolList({ params, scrollRef: scrollParentRefProps, tokenAndPoolFilter, operatePMMPoolElement, operatePool: operatePoolProps, onOperatePool, getMigrationPairAndMining, }: {
3
6
  params?: Page<PageType.Pool>['params'];
7
+ scrollRef?: React.RefObject<any>;
8
+ tokenAndPoolFilter?: TokenAndPoolFilterUserOptions;
9
+ operatePMMPoolElement?: React.ReactElement;
10
+ operatePool?: Partial<PoolOperateProps> | null;
11
+ onOperatePool?: (pool: Partial<PoolOperateProps> | null) => boolean;
12
+ getMigrationPairAndMining?: (p: {
13
+ address: string;
14
+ chainId: number;
15
+ }) => void;
4
16
  }): JSX.Element;
@@ -8,9 +8,11 @@ export type OperatePool = {
8
8
  quoteToken: TokenInfo;
9
9
  baseLpToken?: {
10
10
  id: string;
11
+ decimals: number;
11
12
  };
12
13
  quoteLpToken?: {
13
14
  id: string;
15
+ decimals: number;
14
16
  };
15
17
  type: PoolType;
16
18
  owner?: string;
@@ -66,7 +66,7 @@ export declare function useDiffer({ srcPool, newPool, }: {
66
66
  isRemove: boolean;
67
67
  };
68
68
  } | null;
69
- export declare const getModifyDPPPoolParams: ({ chainId, account, srcPool, baseToken, quoteToken, baseAmount, quoteAmount, feeRate, initPrice, slippageCoefficient, SLIPPAGE_PROTECTION, }: {
69
+ export declare const getModifyDPPPoolParams: ({ chainId, account, srcPool, baseToken, quoteToken, baseAmount, quoteAmount, feeRate, initPrice, slippageCoefficient, ddl, SLIPPAGE_PROTECTION, }: {
70
70
  chainId?: number;
71
71
  account?: string;
72
72
  srcPool?: ModifyPool;
@@ -77,6 +77,7 @@ export declare const getModifyDPPPoolParams: ({ chainId, account, srcPool, baseT
77
77
  feeRate: string;
78
78
  initPrice: string;
79
79
  slippageCoefficient: string;
80
+ ddl: number | undefined;
80
81
  SLIPPAGE_PROTECTION: number;
81
82
  }) => Promise<{
82
83
  data: string;
@@ -1,6 +1,5 @@
1
1
  import { PoolType } from '@dodoex/api';
2
2
  import { BigNumber } from 'bignumber.js';
3
- import { TokenInfo } from '../../../hooks/Token';
4
3
  type Balance = BigNumber | null | undefined;
5
4
  export declare function getLpToTokenBalance(userLpBalance: Balance, totalLpBalance: Balance, reserve: Balance, target: Balance, address: string | undefined, type: PoolType | undefined, decimals: number | undefined): undefined[] | BigNumber[];
6
5
  export declare function usePoolBalanceInfo({ account, pool, }: {
@@ -8,8 +7,10 @@ export declare function usePoolBalanceInfo({ account, pool, }: {
8
7
  pool?: {
9
8
  address: string;
10
9
  chainId: number;
11
- baseToken: TokenInfo;
12
- quoteToken: TokenInfo;
10
+ baseTokenDecimals: number;
11
+ quoteTokenDecimals: number;
12
+ baseLpTokenDecimals: number;
13
+ quoteLpTokenDecimals: number;
13
14
  type: PoolType;
14
15
  };
15
16
  }): {
@@ -11,6 +11,13 @@ export declare function usePoolDetail({ id, chainId, }: {
11
11
  baseToken: TokenInfo;
12
12
  quoteToken: TokenInfo;
13
13
  miningAddress: string;
14
+ apy: {
15
+ miningBaseApy?: any | null;
16
+ miningQuoteApy?: any | null;
17
+ transactionBaseApy?: any | null;
18
+ transactionQuoteApy?: any | null;
19
+ metromMiningApy?: any | null;
20
+ } | null | undefined;
14
21
  baseApy: string | undefined;
15
22
  quoteApy: string | undefined;
16
23
  isCpPool: boolean;
@@ -39,11 +46,13 @@ export declare function usePoolDetail({ id, chainId, }: {
39
46
  id: string;
40
47
  symbol: string;
41
48
  name: string;
49
+ decimals: any;
42
50
  } | null;
43
51
  quoteLpToken?: {
44
52
  id: string;
45
53
  symbol: string;
46
54
  name: string;
55
+ decimals: any;
47
56
  } | null;
48
57
  } | null;
49
58
  data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery;
@@ -78,6 +87,13 @@ export declare function usePoolDetail({ id, chainId, }: {
78
87
  baseToken: TokenInfo;
79
88
  quoteToken: TokenInfo;
80
89
  miningAddress: string;
90
+ apy: {
91
+ miningBaseApy?: any | null;
92
+ miningQuoteApy?: any | null;
93
+ transactionBaseApy?: any | null;
94
+ transactionQuoteApy?: any | null;
95
+ metromMiningApy?: any | null;
96
+ } | null | undefined;
81
97
  baseApy: string | undefined;
82
98
  quoteApy: string | undefined;
83
99
  isCpPool: boolean;
@@ -106,11 +122,13 @@ export declare function usePoolDetail({ id, chainId, }: {
106
122
  id: string;
107
123
  symbol: string;
108
124
  name: string;
125
+ decimals: any;
109
126
  } | null;
110
127
  quoteLpToken?: {
111
128
  id: string;
112
129
  symbol: string;
113
130
  name: string;
131
+ decimals: any;
114
132
  } | null;
115
133
  } | null;
116
134
  data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery;
@@ -145,6 +163,13 @@ export declare function usePoolDetail({ id, chainId, }: {
145
163
  baseToken: TokenInfo;
146
164
  quoteToken: TokenInfo;
147
165
  miningAddress: string;
166
+ apy: {
167
+ miningBaseApy?: any | null;
168
+ miningQuoteApy?: any | null;
169
+ transactionBaseApy?: any | null;
170
+ transactionQuoteApy?: any | null;
171
+ metromMiningApy?: any | null;
172
+ } | null | undefined;
148
173
  baseApy: string | undefined;
149
174
  quoteApy: string | undefined;
150
175
  isCpPool: boolean;
@@ -173,11 +198,13 @@ export declare function usePoolDetail({ id, chainId, }: {
173
198
  id: string;
174
199
  symbol: string;
175
200
  name: string;
201
+ decimals: any;
176
202
  } | null;
177
203
  quoteLpToken?: {
178
204
  id: string;
179
205
  symbol: string;
180
206
  name: string;
207
+ decimals: any;
181
208
  } | null;
182
209
  } | null;
183
210
  data: undefined;
@@ -212,6 +239,13 @@ export declare function usePoolDetail({ id, chainId, }: {
212
239
  baseToken: TokenInfo;
213
240
  quoteToken: TokenInfo;
214
241
  miningAddress: string;
242
+ apy: {
243
+ miningBaseApy?: any | null;
244
+ miningQuoteApy?: any | null;
245
+ transactionBaseApy?: any | null;
246
+ transactionQuoteApy?: any | null;
247
+ metromMiningApy?: any | null;
248
+ } | null | undefined;
215
249
  baseApy: string | undefined;
216
250
  quoteApy: string | undefined;
217
251
  isCpPool: boolean;
@@ -240,11 +274,13 @@ export declare function usePoolDetail({ id, chainId, }: {
240
274
  id: string;
241
275
  symbol: string;
242
276
  name: string;
277
+ decimals: any;
243
278
  } | null;
244
279
  quoteLpToken?: {
245
280
  id: string;
246
281
  symbol: string;
247
282
  name: string;
283
+ decimals: any;
248
284
  } | null;
249
285
  } | null;
250
286
  data: undefined;
@@ -279,6 +315,13 @@ export declare function usePoolDetail({ id, chainId, }: {
279
315
  baseToken: TokenInfo;
280
316
  quoteToken: TokenInfo;
281
317
  miningAddress: string;
318
+ apy: {
319
+ miningBaseApy?: any | null;
320
+ miningQuoteApy?: any | null;
321
+ transactionBaseApy?: any | null;
322
+ transactionQuoteApy?: any | null;
323
+ metromMiningApy?: any | null;
324
+ } | null | undefined;
282
325
  baseApy: string | undefined;
283
326
  quoteApy: string | undefined;
284
327
  isCpPool: boolean;
@@ -307,11 +350,13 @@ export declare function usePoolDetail({ id, chainId, }: {
307
350
  id: string;
308
351
  symbol: string;
309
352
  name: string;
353
+ decimals: any;
310
354
  } | null;
311
355
  quoteLpToken?: {
312
356
  id: string;
313
357
  symbol: string;
314
358
  name: string;
359
+ decimals: any;
315
360
  } | null;
316
361
  } | null;
317
362
  data: undefined;
package/package.json CHANGED
@@ -1,157 +1,155 @@
1
- {
2
- "name": "@dodoex/widgets",
3
- "version": "3.0.2-neox.1",
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.2",
62
- "@dodoex/components": "^3.0.1-beta.1",
63
- "@dodoex/contract-request": "^1.3.0",
64
- "@dodoex/dodo-contract-request": "^1.8.0",
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
- }
1
+ {
2
+ "name": "@dodoex/widgets",
3
+ "version": "3.0.2-nero.1",
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-nero.1",
62
+ "@dodoex/components": "3.0.3",
63
+ "@dodoex/contract-request": "^1.3.0",
64
+ "@dodoex/dodo-contract-request": "1.12.0-alpha.3",
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
+ }
157
155
  }