@dodoex/widgets 3.0.0-beta.0 → 3.0.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.
Files changed (55) hide show
  1. package/dist/cjs/src/components/ConnectWallet/NeedConnectButton.d.ts +1 -1
  2. package/dist/cjs/src/components/Swap/components/ConnectWallet/index.d.ts +1 -1
  3. package/dist/cjs/src/components/SwitchChainDialog/index.d.ts +1 -1
  4. package/dist/cjs/src/components/TokenPicker/index.d.ts +1 -1
  5. package/dist/cjs/src/components/Widget/index.d.ts +1 -1
  6. package/dist/cjs/src/constants/api.d.ts +1 -2
  7. package/dist/cjs/src/constants/chainList.d.ts +1 -1
  8. package/dist/cjs/src/constants/chains.d.ts +1 -1
  9. package/dist/cjs/src/constants/localstorage.d.ts +1 -1
  10. package/dist/cjs/src/hooks/ConnectWallet/useCurrentChainId.d.ts +1 -1
  11. package/dist/cjs/src/hooks/ConnectWallet/useSwitchChain.d.ts +1 -1
  12. package/dist/cjs/src/hooks/ConnectWallet/useWeb3Connectors.d.ts +1 -1
  13. package/dist/cjs/src/hooks/ConnectWallet/web3.d.ts +1 -1
  14. package/dist/cjs/src/hooks/Submission/getExecutionErrorMsg.d.ts +1 -1
  15. package/dist/cjs/src/hooks/Token/useTokenList.d.ts +1 -1
  16. package/dist/cjs/src/router/types.d.ts +1 -1
  17. package/dist/cjs/src/store/actions/wallet.d.ts +1 -1
  18. package/dist/cjs/src/store/reducers/wallet.d.ts +1 -1
  19. package/dist/cjs/src/store/selectors/token.d.ts +1 -1
  20. package/dist/cjs/src/utils/address.d.ts +1 -1
  21. package/dist/cjs/src/utils/chains.d.ts +1 -1
  22. package/dist/cjs/src/utils/token.d.ts +1 -1
  23. package/dist/cjs/src/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +1 -1
  24. package/dist/cjs/src/widgets/PoolWidget/PoolList/MyCreated.d.ts +1 -1
  25. package/dist/cjs/src/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +1 -1
  26. package/dist/cjs/src/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +1 -1
  27. package/dist/cjs/src/widgets/PoolWidget/utils.d.ts +1 -1
  28. package/dist/src/components/ConnectWallet/NeedConnectButton.d.ts +1 -1
  29. package/dist/src/components/Swap/components/ConnectWallet/index.d.ts +1 -1
  30. package/dist/src/components/SwitchChainDialog/index.d.ts +1 -1
  31. package/dist/src/components/TokenPicker/index.d.ts +1 -1
  32. package/dist/src/components/Widget/index.d.ts +1 -1
  33. package/dist/src/constants/api.d.ts +1 -2
  34. package/dist/src/constants/chainList.d.ts +1 -1
  35. package/dist/src/constants/chains.d.ts +1 -1
  36. package/dist/src/constants/localstorage.d.ts +1 -1
  37. package/dist/src/hooks/ConnectWallet/useCurrentChainId.d.ts +1 -1
  38. package/dist/src/hooks/ConnectWallet/useSwitchChain.d.ts +1 -1
  39. package/dist/src/hooks/ConnectWallet/useWeb3Connectors.d.ts +1 -1
  40. package/dist/src/hooks/ConnectWallet/web3.d.ts +1 -1
  41. package/dist/src/hooks/Submission/getExecutionErrorMsg.d.ts +1 -1
  42. package/dist/src/hooks/Token/useTokenList.d.ts +1 -1
  43. package/dist/src/router/types.d.ts +1 -1
  44. package/dist/src/store/actions/wallet.d.ts +1 -1
  45. package/dist/src/store/reducers/wallet.d.ts +1 -1
  46. package/dist/src/store/selectors/token.d.ts +1 -1
  47. package/dist/src/utils/address.d.ts +1 -1
  48. package/dist/src/utils/chains.d.ts +1 -1
  49. package/dist/src/utils/token.d.ts +1 -1
  50. package/dist/src/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +1 -1
  51. package/dist/src/widgets/PoolWidget/PoolList/MyCreated.d.ts +1 -1
  52. package/dist/src/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +1 -1
  53. package/dist/src/widgets/PoolWidget/PoolList/hooks/usePoolListFilterChainId.d.ts +1 -1
  54. package/dist/src/widgets/PoolWidget/utils.d.ts +1 -1
  55. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ButtonProps } from '@dodoex/components';
3
- import { ChainId } from '../../constants/chains';
3
+ import { ChainId } from '@dodoex/api';
4
4
  export default function NeedConnectButton({ chainId, includeButton, ...props }: ButtonProps & {
5
5
  /** chainId that needs to be connected */
6
6
  chainId?: ChainId;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ChainId } from '../../../../constants/chains';
2
+ import { ChainId } from '@dodoex/api';
3
3
  export interface ConnectWalletProps {
4
4
  needSwitchChain?: ChainId;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ChainId } from '../../constants/chains';
2
+ import { ChainId } from '@dodoex/api';
3
3
  export default function SwitchChainDialog({ chainId, open, onClose, }: {
4
4
  chainId?: ChainId;
5
5
  open: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { TokenInfo } from '../../hooks/Token';
3
- import { ChainId } from '../../constants/chains';
3
+ import { ChainId } from '@dodoex/api';
4
4
  export interface TokenPickerProps {
5
5
  chainId?: ChainId;
6
6
  value?: TokenInfo | null | Array<TokenInfo>;
@@ -4,7 +4,7 @@ import { SupportedLang } from '../../constants/locales';
4
4
  import { Web3ConnectorsProps } from '../../hooks/ConnectWallet';
5
5
  import { InitTokenListProps } from '../../hooks/Token/useInitTokenList';
6
6
  import { ExecutionProps } from '../../hooks/Submission';
7
- import { ChainId } from '../../constants/chains';
7
+ import { ChainId } from '@dodoex/api';
8
8
  import { DefaultTokenInfo } from '../../hooks/Token/type';
9
9
  import { APIServices } from '../../constants/api';
10
10
  import { SwapProps } from '../Swap';
@@ -1,5 +1,4 @@
1
- import { ContractRequests, GraphQLRequests, TokenApi } from '@dodoex/api';
2
- import { ChainId } from './chains';
1
+ import { ContractRequests, GraphQLRequests, TokenApi, ChainId } from '@dodoex/api';
3
2
  export declare enum APIServiceKey {
4
3
  routePrice = "routePrice",
5
4
  fiatPrice = "fiatPrice",
@@ -1,4 +1,4 @@
1
- import { ChainId } from './chains';
1
+ import { ChainId } from '@dodoex/api';
2
2
  import { ReactComponent as ETHereumLogo } from '../assets/logo/networks/eth.svg';
3
3
  export interface ChainListItem {
4
4
  chainId: ChainId;
@@ -1,5 +1,5 @@
1
1
  import { ChainId } from '@dodoex/api';
2
- export { ChainId, etherTokenAddress, basicTokenMap } from '@dodoex/api';
2
+ export { etherTokenAddress, basicTokenMap } from '@dodoex/api';
3
3
  export declare const rpcServerMap: {
4
4
  [key in ChainId]: Array<string>;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { TokenInfo } from '../hooks/Token';
2
- import { ChainId } from './chains';
2
+ import { ChainId } from '@dodoex/api';
3
3
  export declare function getAuthSwitchCache(): boolean;
4
4
  export declare function setAuthSwitchCache(isAuto: boolean): void;
5
5
  export interface LastTokenCache {
@@ -1,2 +1,2 @@
1
- import { ChainId } from '../../constants/chains';
1
+ import { ChainId } from '@dodoex/api';
2
2
  export declare function useCurrentChainId(): ChainId;
@@ -1,4 +1,4 @@
1
- import { ChainId } from '../../constants/chains';
1
+ import { ChainId } from '@dodoex/api';
2
2
  /**
3
3
  * switch wallet chain
4
4
  * @see https://docs.metamask.io/guide/rpc-api.html#usage-with-wallet-switchethereumchain
@@ -1,6 +1,6 @@
1
1
  import { Provider as Eip1193Provider } from '@web3-react/types';
2
2
  import { JsonRpcProvider } from '@ethersproject/providers';
3
- import { ChainId } from '../../constants/chains';
3
+ import { ChainId } from '@dodoex/api';
4
4
  import { Web3Connection } from './web3';
5
5
  import { WalletType } from '../../constants/wallet';
6
6
  export interface Web3ConnectorsProps {
@@ -1,7 +1,7 @@
1
1
  import { Web3ReactHooks } from '@web3-react/core';
2
2
  import { Connector, Provider as Eip1193Provider } from '@web3-react/types';
3
3
  import { JsonRpcProvider } from '@ethersproject/providers';
4
- import type { ChainId } from '../../constants/chains';
4
+ import { ChainId } from '@dodoex/api';
5
5
  export declare type Web3Connection = [Connector, Web3ReactHooks];
6
6
  export declare function getConnectionFromProvider(onError: (error: Error) => void, provider?: JsonRpcProvider | Eip1193Provider): Web3Connection | undefined;
7
7
  export declare function getConnectionFromWalletConnect(useDefault: boolean, jsonRpcUrlMap: {
@@ -1,2 +1,2 @@
1
- import { ChainId } from '../../constants/chains';
1
+ import { ChainId } from '@dodoex/api';
2
2
  export default function getExecutionErrorMsg(chainId: ChainId, message: string): string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import BigNumber from 'bignumber.js';
3
3
  import { TokenInfo, TokenList } from './type';
4
- import { ChainId } from '../../constants/chains';
4
+ import { ChainId } from '@dodoex/api';
5
5
  export declare const getFuzzySearchTokenSort: (token: TokenInfo, search: string, { matchAddress, }?: {
6
6
  matchAddress?: boolean | undefined;
7
7
  }) => number;
@@ -1,4 +1,4 @@
1
- import { ChainId } from '../constants/chains';
1
+ import { ChainId } from '@dodoex/api';
2
2
  import { PoolTab } from '../widgets/PoolWidget/PoolList/hooks/usePoolListTabs';
3
3
  export declare enum PageType {
4
4
  Pool = "pool",
@@ -1,5 +1,5 @@
1
1
  import { AppThunkAction } from '.';
2
- import { ChainId } from '../../constants/chains';
2
+ import { ChainId } from '@dodoex/api';
3
3
  import { State } from '../reducers/wallet';
4
4
  export declare const setDefaultChainId: (chainId: ChainId) => AppThunkAction;
5
5
  export declare const setFromTokenChainId: (chainId: ChainId | undefined) => AppThunkAction;
@@ -1,5 +1,5 @@
1
1
  import { AnyAction } from 'redux';
2
- import { ChainId } from '../../constants/chains';
2
+ import { ChainId } from '@dodoex/api';
3
3
  export declare type State = {
4
4
  chainId: ChainId;
5
5
  fromTokenChainId?: ChainId;
@@ -1,4 +1,4 @@
1
- import { ChainId } from '../../constants/chains';
1
+ import { ChainId } from '@dodoex/api';
2
2
  import type { DefaultTokenInfo } from '../../hooks/Token';
3
3
  import { RootState } from '../reducers';
4
4
  export declare const getTokenList: (state?: RootState) => import("../../hooks/Token").TokenList;
@@ -1,4 +1,4 @@
1
- import { ChainId } from '../constants/chains';
1
+ import { ChainId } from '@dodoex/api';
2
2
  export declare const isSameAddress: (tokenAddress1: string, tokenAddress2: string) => boolean;
3
3
  export declare function isAddress(value: any): boolean;
4
4
  export declare function isETHAddress(addr: string): boolean;
@@ -1,2 +1,2 @@
1
- import { ChainId } from '../constants/chains';
1
+ import { ChainId } from '@dodoex/api';
2
2
  export declare const getPlatformId: (chainId: ChainId) => string;
@@ -1,5 +1,5 @@
1
1
  import { TokenInfo } from '../hooks/Token';
2
- import { ChainId } from '../constants/chains';
2
+ import { ChainId } from '@dodoex/api';
3
3
  import BigNumber from 'bignumber.js';
4
4
  export declare const getTokenSymbolDisplay: (baseToken: TokenInfo) => string;
5
5
  export declare const getSwapTxValue: ({ tokenAmount, tokenAddress, chainId, }: {
@@ -1,4 +1,4 @@
1
- import { ChainId } from '../../../constants/chains';
1
+ import { ChainId } from '@dodoex/api';
2
2
  import React from 'react';
3
3
  import { PoolOperateProps } from '../PoolOperate';
4
4
  export default function AddLiquidityList({ scrollParentRef, filterChainIds, activeChainId, handleChangeActiveChainId, operatePool, setOperatePool, }: {
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ChainId } from '../../../constants/chains';
2
+ import { ChainId } from '@dodoex/api';
3
3
  import { PoolOperateProps } from '../PoolOperate';
4
4
  export default function MyCreated({ account, filterChainIds, activeChainId, handleChangeActiveChainId, operatePool, setOperatePool, }: {
5
5
  account?: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ChainId } from '../../../constants/chains';
2
+ import { ChainId } from '@dodoex/api';
3
3
  import { PoolOperateProps } from '../PoolOperate';
4
4
  export default function MyLiquidity({ account, filterChainIds, activeChainId, handleChangeActiveChainId, operatePool, setOperatePool, }: {
5
5
  account?: string;
@@ -1,4 +1,4 @@
1
- import { ChainId } from '../../../../constants/chains';
1
+ import { ChainId } from '@dodoex/api';
2
2
  export declare function usePoolListFilterChainId(): {
3
3
  activeChainId: ChainId | undefined;
4
4
  filterChainIds: ChainId[] | undefined;
@@ -1,5 +1,5 @@
1
1
  import { PoolApi, ExcludeNone } from '@dodoex/api';
2
- import { ChainId } from '../../constants/chains';
2
+ import { ChainId } from '@dodoex/api';
3
3
  import { TokenInfo } from '../../hooks/Token';
4
4
  import { OperatePool } from './PoolOperate/types';
5
5
  export declare const poolApi: PoolApi;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ButtonProps } from '@dodoex/components';
3
- import { ChainId } from '../../constants/chains';
3
+ import { ChainId } from '@dodoex/api';
4
4
  export default function NeedConnectButton({ chainId, includeButton, ...props }: ButtonProps & {
5
5
  /** chainId that needs to be connected */
6
6
  chainId?: ChainId;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ChainId } from '../../../../constants/chains';
2
+ import { ChainId } from '@dodoex/api';
3
3
  export interface ConnectWalletProps {
4
4
  needSwitchChain?: ChainId;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ChainId } from '../../constants/chains';
2
+ import { ChainId } from '@dodoex/api';
3
3
  export default function SwitchChainDialog({ chainId, open, onClose, }: {
4
4
  chainId?: ChainId;
5
5
  open: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { TokenInfo } from '../../hooks/Token';
3
- import { ChainId } from '../../constants/chains';
3
+ import { ChainId } from '@dodoex/api';
4
4
  export interface TokenPickerProps {
5
5
  chainId?: ChainId;
6
6
  value?: TokenInfo | null | Array<TokenInfo>;
@@ -4,7 +4,7 @@ import { SupportedLang } from '../../constants/locales';
4
4
  import { Web3ConnectorsProps } from '../../hooks/ConnectWallet';
5
5
  import { InitTokenListProps } from '../../hooks/Token/useInitTokenList';
6
6
  import { ExecutionProps } from '../../hooks/Submission';
7
- import { ChainId } from '../../constants/chains';
7
+ import { ChainId } from '@dodoex/api';
8
8
  import { DefaultTokenInfo } from '../../hooks/Token/type';
9
9
  import { APIServices } from '../../constants/api';
10
10
  import { SwapProps } from '../Swap';
@@ -1,5 +1,4 @@
1
- import { ContractRequests, GraphQLRequests, TokenApi } from '@dodoex/api';
2
- import { ChainId } from './chains';
1
+ import { ContractRequests, GraphQLRequests, TokenApi, ChainId } from '@dodoex/api';
3
2
  export declare enum APIServiceKey {
4
3
  routePrice = "routePrice",
5
4
  fiatPrice = "fiatPrice",
@@ -1,4 +1,4 @@
1
- import { ChainId } from './chains';
1
+ import { ChainId } from '@dodoex/api';
2
2
  import { ReactComponent as ETHereumLogo } from '../assets/logo/networks/eth.svg';
3
3
  export interface ChainListItem {
4
4
  chainId: ChainId;
@@ -1,5 +1,5 @@
1
1
  import { ChainId } from '@dodoex/api';
2
- export { ChainId, etherTokenAddress, basicTokenMap } from '@dodoex/api';
2
+ export { etherTokenAddress, basicTokenMap } from '@dodoex/api';
3
3
  export declare const rpcServerMap: {
4
4
  [key in ChainId]: Array<string>;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { TokenInfo } from '../hooks/Token';
2
- import { ChainId } from './chains';
2
+ import { ChainId } from '@dodoex/api';
3
3
  export declare function getAuthSwitchCache(): boolean;
4
4
  export declare function setAuthSwitchCache(isAuto: boolean): void;
5
5
  export interface LastTokenCache {
@@ -1,2 +1,2 @@
1
- import { ChainId } from '../../constants/chains';
1
+ import { ChainId } from '@dodoex/api';
2
2
  export declare function useCurrentChainId(): ChainId;
@@ -1,4 +1,4 @@
1
- import { ChainId } from '../../constants/chains';
1
+ import { ChainId } from '@dodoex/api';
2
2
  /**
3
3
  * switch wallet chain
4
4
  * @see https://docs.metamask.io/guide/rpc-api.html#usage-with-wallet-switchethereumchain
@@ -1,6 +1,6 @@
1
1
  import { Provider as Eip1193Provider } from '@web3-react/types';
2
2
  import { JsonRpcProvider } from '@ethersproject/providers';
3
- import { ChainId } from '../../constants/chains';
3
+ import { ChainId } from '@dodoex/api';
4
4
  import { Web3Connection } from './web3';
5
5
  import { WalletType } from '../../constants/wallet';
6
6
  export interface Web3ConnectorsProps {
@@ -1,7 +1,7 @@
1
1
  import { Web3ReactHooks } from '@web3-react/core';
2
2
  import { Connector, Provider as Eip1193Provider } from '@web3-react/types';
3
3
  import { JsonRpcProvider } from '@ethersproject/providers';
4
- import type { ChainId } from '../../constants/chains';
4
+ import { ChainId } from '@dodoex/api';
5
5
  export declare type Web3Connection = [Connector, Web3ReactHooks];
6
6
  export declare function getConnectionFromProvider(onError: (error: Error) => void, provider?: JsonRpcProvider | Eip1193Provider): Web3Connection | undefined;
7
7
  export declare function getConnectionFromWalletConnect(useDefault: boolean, jsonRpcUrlMap: {
@@ -1,2 +1,2 @@
1
- import { ChainId } from '../../constants/chains';
1
+ import { ChainId } from '@dodoex/api';
2
2
  export default function getExecutionErrorMsg(chainId: ChainId, message: string): string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import BigNumber from 'bignumber.js';
3
3
  import { TokenInfo, TokenList } from './type';
4
- import { ChainId } from '../../constants/chains';
4
+ import { ChainId } from '@dodoex/api';
5
5
  export declare const getFuzzySearchTokenSort: (token: TokenInfo, search: string, { matchAddress, }?: {
6
6
  matchAddress?: boolean | undefined;
7
7
  }) => number;
@@ -1,4 +1,4 @@
1
- import { ChainId } from '../constants/chains';
1
+ import { ChainId } from '@dodoex/api';
2
2
  import { PoolTab } from '../widgets/PoolWidget/PoolList/hooks/usePoolListTabs';
3
3
  export declare enum PageType {
4
4
  Pool = "pool",
@@ -1,5 +1,5 @@
1
1
  import { AppThunkAction } from '.';
2
- import { ChainId } from '../../constants/chains';
2
+ import { ChainId } from '@dodoex/api';
3
3
  import { State } from '../reducers/wallet';
4
4
  export declare const setDefaultChainId: (chainId: ChainId) => AppThunkAction;
5
5
  export declare const setFromTokenChainId: (chainId: ChainId | undefined) => AppThunkAction;
@@ -1,5 +1,5 @@
1
1
  import { AnyAction } from 'redux';
2
- import { ChainId } from '../../constants/chains';
2
+ import { ChainId } from '@dodoex/api';
3
3
  export declare type State = {
4
4
  chainId: ChainId;
5
5
  fromTokenChainId?: ChainId;
@@ -1,4 +1,4 @@
1
- import { ChainId } from '../../constants/chains';
1
+ import { ChainId } from '@dodoex/api';
2
2
  import type { DefaultTokenInfo } from '../../hooks/Token';
3
3
  import { RootState } from '../reducers';
4
4
  export declare const getTokenList: (state?: RootState) => import("../../hooks/Token").TokenList;
@@ -1,4 +1,4 @@
1
- import { ChainId } from '../constants/chains';
1
+ import { ChainId } from '@dodoex/api';
2
2
  export declare const isSameAddress: (tokenAddress1: string, tokenAddress2: string) => boolean;
3
3
  export declare function isAddress(value: any): boolean;
4
4
  export declare function isETHAddress(addr: string): boolean;
@@ -1,2 +1,2 @@
1
- import { ChainId } from '../constants/chains';
1
+ import { ChainId } from '@dodoex/api';
2
2
  export declare const getPlatformId: (chainId: ChainId) => string;
@@ -1,5 +1,5 @@
1
1
  import { TokenInfo } from '../hooks/Token';
2
- import { ChainId } from '../constants/chains';
2
+ import { ChainId } from '@dodoex/api';
3
3
  import BigNumber from 'bignumber.js';
4
4
  export declare const getTokenSymbolDisplay: (baseToken: TokenInfo) => string;
5
5
  export declare const getSwapTxValue: ({ tokenAmount, tokenAddress, chainId, }: {
@@ -1,4 +1,4 @@
1
- import { ChainId } from '../../../constants/chains';
1
+ import { ChainId } from '@dodoex/api';
2
2
  import React from 'react';
3
3
  import { PoolOperateProps } from '../PoolOperate';
4
4
  export default function AddLiquidityList({ scrollParentRef, filterChainIds, activeChainId, handleChangeActiveChainId, operatePool, setOperatePool, }: {
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ChainId } from '../../../constants/chains';
2
+ import { ChainId } from '@dodoex/api';
3
3
  import { PoolOperateProps } from '../PoolOperate';
4
4
  export default function MyCreated({ account, filterChainIds, activeChainId, handleChangeActiveChainId, operatePool, setOperatePool, }: {
5
5
  account?: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ChainId } from '../../../constants/chains';
2
+ import { ChainId } from '@dodoex/api';
3
3
  import { PoolOperateProps } from '../PoolOperate';
4
4
  export default function MyLiquidity({ account, filterChainIds, activeChainId, handleChangeActiveChainId, operatePool, setOperatePool, }: {
5
5
  account?: string;
@@ -1,4 +1,4 @@
1
- import { ChainId } from '../../../../constants/chains';
1
+ import { ChainId } from '@dodoex/api';
2
2
  export declare function usePoolListFilterChainId(): {
3
3
  activeChainId: ChainId | undefined;
4
4
  filterChainIds: ChainId[] | undefined;
@@ -1,5 +1,5 @@
1
1
  import { PoolApi, ExcludeNone } from '@dodoex/api';
2
- import { ChainId } from '../../constants/chains';
2
+ import { ChainId } from '@dodoex/api';
3
3
  import { TokenInfo } from '../../hooks/Token';
4
4
  import { OperatePool } from './PoolOperate/types';
5
5
  export declare const poolApi: PoolApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dodoex/widgets",
3
- "version": "3.0.0-beta.0",
3
+ "version": "3.0.0-beta.1",
4
4
  "description": "DODO Widgets",
5
5
  "source": "src/index.tsx",
6
6
  "types": "dist/src/index.d.ts",