@dodoex/widgets 3.0.4-ve33.7 → 3.1.0
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/dist/cjs/locales/en-US.js +1 -1
- package/dist/cjs/locales/zh-CN.js +1 -1
- package/dist/{helper-BlcjCxa6.cjs → helper-Dnk7p0aW.cjs} +1 -1
- package/dist/{helper-C9HBZsUr.js → helper-MNzHxcL-.js} +1 -1
- package/dist/index-BUQIlyE6.js +31 -0
- package/dist/index-BfNK29Ue.js +78 -0
- package/dist/{index-CohbgVNJ.cjs → index-BoZcs46K.cjs} +2 -2
- package/dist/{index-BdYDY5rS.cjs → index-CeaQBk4G.cjs} +6 -6
- package/dist/{index-BkmU1c6w.js → index-D6YQnhH9.js} +1 -1
- package/dist/index-DYpT9qAx.cjs +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/AddressWithLinkAndCopy.d.ts +2 -1
- package/dist/types/components/List/EmptyList.d.ts +2 -1
- package/dist/types/components/SelectChain.d.ts +2 -1
- package/dist/types/components/Swap/components/ReviewDialog.d.ts +2 -1
- package/dist/types/components/Swap/components/SwapSettingsDialog/index.d.ts +4 -1
- package/dist/types/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +3 -2
- package/dist/types/components/Swap/index.d.ts +4 -1
- package/dist/types/components/TokenLogoPair.d.ts +1 -1
- package/dist/types/components/Widget/index.d.ts +26 -1
- package/dist/types/components/WidgetContainer.d.ts +1 -1
- package/dist/types/constants/swap.d.ts +0 -3
- package/dist/types/hooks/Swap/useFetchRoutePrice.d.ts +3 -1
- package/dist/types/hooks/Swap/useFetchRoutePrice.test.d.ts +1 -0
- package/dist/types/hooks/Swap/useSlippageLimit.d.ts +1 -1
- package/dist/types/hooks/Swap/useSwapSettingStore.d.ts +0 -1
- package/dist/types/hooks/contract/useFetchBlockNumber.d.ts +1 -1
- package/dist/types/hooks/useGlobalState.d.ts +32 -0
- package/dist/types/hooks/useTokenState.d.ts +18 -0
- package/dist/types/index.d.ts +26 -25
- package/dist/types/utils/formatter.d.ts +2 -2
- package/dist/types/widgets/MiningWidget/hooks/helper.d.ts +2 -2
- package/dist/types/widgets/MiningWidget/hooks/useReviewRewardToken.d.ts +2 -2
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/usePools.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/BaseInfoCardList.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/FeeRateCard.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/LqRatioSet.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/LqSettingsShow.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/PriceModeCard.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/VersionChartExample.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/components/widgets.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolCreate/index.d.ts +3 -1
- package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/index.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolDetail/components/Overview.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolDetail/components/TotalLiquidity.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolDetail/index.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +6 -1
- package/dist/types/widgets/PoolWidget/PoolList/MyCreated.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +6 -1
- package/dist/types/widgets/PoolWidget/PoolList/components/LiquidityTable.d.ts +3 -1
- package/dist/types/widgets/PoolWidget/PoolList/components/migationWidget.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +9 -1
- package/dist/types/widgets/PoolWidget/PoolList/index.d.ts +7 -1
- package/dist/types/widgets/PoolWidget/PoolModify/index.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +4 -2
- package/dist/types/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +4 -2
- package/dist/types/widgets/PoolWidget/PoolOperate/components/SlippageSetting.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/index.d.ts +4 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/types.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/hooks/usePoolDetail.d.ts +35 -0
- package/dist/types/widgets/PoolWidget/utils.d.ts +0 -1
- package/package.json +13 -14
- package/dist/index-7XYsbAB3.js +0 -78
- package/dist/index-Bv9ocOr4.cjs +0 -32
- package/dist/index-CatAo2TO.js +0 -32
- package/dist/types/store/actions/globals.d.ts +0 -9
- package/dist/types/store/actions/index.d.ts +0 -4
- package/dist/types/store/actions/settings.d.ts +0 -3
- package/dist/types/store/actions/token.d.ts +0 -7
- package/dist/types/store/actions/wallet.d.ts +0 -6
- package/dist/types/store/index.d.ts +0 -12
- package/dist/types/store/reducers/globals.d.ts +0 -21
- package/dist/types/store/reducers/index.d.ts +0 -17
- package/dist/types/store/reducers/settings.d.ts +0 -8
- package/dist/types/store/reducers/token.d.ts +0 -22
- package/dist/types/store/reducers/wallet.d.ts +0 -13
- package/dist/types/store/selectors/globals.d.ts +0 -7
- package/dist/types/store/selectors/settings.d.ts +0 -2
- package/dist/types/store/selectors/token.d.ts +0 -6
- package/dist/types/store/selectors/wallet.d.ts +0 -6
- package/dist/types/widgets/ve33/Ve33PoolList/TableList.d.ts +0 -13
- package/dist/types/widgets/ve33/Ve33PoolList/components/PoolTypeTag.d.ts +0 -7
- package/dist/types/widgets/ve33/Ve33PoolList/index.d.ts +0 -3
- package/dist/types/widgets/ve33/config.d.ts +0 -62
- package/dist/types/widgets/ve33/constants.d.ts +0 -21
- package/dist/types/widgets/ve33/hooks/usePoolColors.d.ts +0 -11
- package/dist/types/widgets/ve33/types.d.ts +0 -24
- package/dist/types/widgets/ve33/utils.d.ts +0 -6
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AppThunkAction } from '.';
|
|
2
|
-
import { ContractStatus } from '../reducers/globals';
|
|
3
|
-
export declare const setContractStatus: (contractStatus: ContractStatus) => AppThunkAction;
|
|
4
|
-
export declare const setAutoConnectLoading: (loading: boolean) => AppThunkAction;
|
|
5
|
-
export declare const setAutoSlippage: (autoSlippage: {
|
|
6
|
-
loading: boolean;
|
|
7
|
-
value: number | null;
|
|
8
|
-
}) => AppThunkAction;
|
|
9
|
-
export declare const setAutoSlippageLoading: (loading: boolean) => AppThunkAction;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Action, ThunkAction, ThunkDispatch } from '@reduxjs/toolkit';
|
|
2
|
-
import { RootState } from '../reducers';
|
|
3
|
-
export type AppThunkAction<Ret = void> = ThunkAction<Ret, RootState, unknown, Action<string>>;
|
|
4
|
-
export type AppThunkDispatch = ThunkDispatch<RootState, unknown, Action<string>>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { AppThunkAction } from '.';
|
|
2
|
-
import { TokenInfo, TokenList } from '../../hooks/Token';
|
|
3
|
-
import { SlippageWithToken } from '../reducers/token';
|
|
4
|
-
export declare const setTokenList: (tokenList: TokenList) => AppThunkAction;
|
|
5
|
-
export declare const setPopularTokenList: (popularTokenList: TokenList) => AppThunkAction;
|
|
6
|
-
export declare const setSlippageWithTokens: (slippageWithTokens: SlippageWithToken[]) => AppThunkAction;
|
|
7
|
-
export declare const setDefaultToToken: (token: TokenInfo) => AppThunkAction;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { AppThunkAction } from '.';
|
|
2
|
-
import { ChainId } from '@dodoex/api';
|
|
3
|
-
import { State } from '../reducers/wallet';
|
|
4
|
-
export declare const setFromTokenChainId: (chainId: ChainId | undefined) => AppThunkAction;
|
|
5
|
-
export declare const setBlockNumber: (blockNumber: number) => AppThunkAction;
|
|
6
|
-
export declare const setOpenConnectWalletInfo: (openConnectWalletInfo: State["openConnectWalletInfo"]) => AppThunkAction;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/** @ts-ignore */
|
|
2
|
-
export declare const store: import("@reduxjs/toolkit").EnhancedStore<import("redux").CombinedState<{
|
|
3
|
-
settings: import("./reducers/settings").State;
|
|
4
|
-
wallet: import("./reducers/wallet").State;
|
|
5
|
-
token: import("./reducers/token").State;
|
|
6
|
-
globals: import("./reducers/globals").State;
|
|
7
|
-
}>, import("redux").AnyAction, [import("@reduxjs/toolkit").ThunkMiddleware<import("redux").CombinedState<{
|
|
8
|
-
settings: import("./reducers/settings").State;
|
|
9
|
-
wallet: import("./reducers/wallet").State;
|
|
10
|
-
token: import("./reducers/token").State;
|
|
11
|
-
globals: import("./reducers/globals").State;
|
|
12
|
-
}>, import("redux").AnyAction>]>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { AnyAction } from 'redux';
|
|
2
|
-
export declare enum ContractStatus {
|
|
3
|
-
Initial = "Initial",
|
|
4
|
-
Pending = "Pending",
|
|
5
|
-
ApproveSuccess = "ApproveSuccess",
|
|
6
|
-
TxSuccess = "TxSuccess",
|
|
7
|
-
Failed = "Failed"
|
|
8
|
-
}
|
|
9
|
-
export interface State {
|
|
10
|
-
contractStatus?: ContractStatus;
|
|
11
|
-
autoConnectLoading?: boolean;
|
|
12
|
-
showCoingecko?: boolean;
|
|
13
|
-
/** source: props.getAutoSlippage */
|
|
14
|
-
autoSlippage?: {
|
|
15
|
-
loading: boolean;
|
|
16
|
-
value: number | null;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export declare const initialState: State;
|
|
20
|
-
declare const _default: (state: State | undefined, action: AnyAction) => State;
|
|
21
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { State as settingsState } from './settings';
|
|
2
|
-
import { State as walletState } from './wallet';
|
|
3
|
-
import { State as tokenState } from './token';
|
|
4
|
-
import { State as globalState } from './globals';
|
|
5
|
-
export interface RootState {
|
|
6
|
-
settings: settingsState;
|
|
7
|
-
wallet: walletState;
|
|
8
|
-
token: tokenState;
|
|
9
|
-
globals: globalState;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: () => import("redux").Reducer<import("redux").CombinedState<{
|
|
12
|
-
settings: settingsState;
|
|
13
|
-
wallet: walletState;
|
|
14
|
-
token: tokenState;
|
|
15
|
-
globals: globalState;
|
|
16
|
-
}>, import("redux").AnyAction>;
|
|
17
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AnyAction } from 'redux';
|
|
2
|
-
export type Slippage = string | null;
|
|
3
|
-
export type State = {
|
|
4
|
-
slippage: Slippage;
|
|
5
|
-
};
|
|
6
|
-
export declare const initialState: State;
|
|
7
|
-
declare const _default: (state: State | undefined, action: AnyAction) => State;
|
|
8
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
|
2
|
-
import { AnyAction } from 'redux';
|
|
3
|
-
import type { TokenList } from '../../hooks/Token';
|
|
4
|
-
export type AccountBalance = {
|
|
5
|
-
tokenBalances?: BigNumber;
|
|
6
|
-
tokenAllowances?: BigNumber;
|
|
7
|
-
};
|
|
8
|
-
export type AccountBalances = {
|
|
9
|
-
[key in string]: AccountBalance;
|
|
10
|
-
};
|
|
11
|
-
export type SlippageWithToken = {
|
|
12
|
-
slippage: string;
|
|
13
|
-
tokens: string[];
|
|
14
|
-
};
|
|
15
|
-
export type State = {
|
|
16
|
-
tokenList: TokenList;
|
|
17
|
-
popularTokenList: TokenList;
|
|
18
|
-
slippageWithTokens: SlippageWithToken[];
|
|
19
|
-
};
|
|
20
|
-
export declare const initialState: State;
|
|
21
|
-
declare const _default: (state: State | undefined, action: AnyAction) => State;
|
|
22
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AnyAction } from 'redux';
|
|
2
|
-
import { ChainId } from '@dodoex/api';
|
|
3
|
-
export type State = {
|
|
4
|
-
fromTokenChainId?: ChainId;
|
|
5
|
-
latestBlockNumber: number;
|
|
6
|
-
openConnectWalletInfo: boolean | {
|
|
7
|
-
/** Wallet is connected, chainID needs to be switched */
|
|
8
|
-
chainId?: ChainId;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export declare const initialState: State;
|
|
12
|
-
declare const _default: (state: State | undefined, action: AnyAction) => State;
|
|
13
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { RootState } from '../reducers';
|
|
2
|
-
export declare const getContractStatus: (state?: RootState) => import("../reducers/globals").ContractStatus | undefined;
|
|
3
|
-
export declare const getAutoConnectLoading: (state?: RootState) => boolean | undefined;
|
|
4
|
-
export declare const getAutoSlippage: (state?: RootState) => {
|
|
5
|
-
loading: boolean;
|
|
6
|
-
value: number | null;
|
|
7
|
-
} | undefined;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
import { RootState } from '../reducers';
|
|
3
|
-
export declare const getTokenList: (state?: RootState) => import("../../hooks/Token").TokenList;
|
|
4
|
-
export declare const getAllTokenList: (state?: RootState) => import("../..").TokenInfo[];
|
|
5
|
-
export declare const getPopularTokenList: (chainId: ChainId, state?: RootState) => import("../..").TokenInfo[];
|
|
6
|
-
export declare const getSlippageWithTokens: (state?: RootState) => import("../reducers/token").SlippageWithToken[];
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { RootState } from '../reducers';
|
|
2
|
-
export declare const getFromTokenChainId: (state?: RootState) => import("@dodoex/api").ChainId | undefined;
|
|
3
|
-
export declare const getLatestBlockNumber: (state?: RootState) => number;
|
|
4
|
-
export declare const getOpenConnectWalletInfo: (state?: RootState) => boolean | {
|
|
5
|
-
chainId?: import("@dodoex/api").ChainId;
|
|
6
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
import { Ve33PoolInfoI, Ve33PoolOperateProps } from '../types';
|
|
3
|
-
export interface TableListProps {
|
|
4
|
-
chainId: ChainId;
|
|
5
|
-
poolList: Ve33PoolInfoI[];
|
|
6
|
-
usdValueChecked: boolean;
|
|
7
|
-
operatePool: Ve33PoolOperateProps | null;
|
|
8
|
-
setOperatePool: (operate: Ve33PoolOperateProps | null) => void;
|
|
9
|
-
hasMore?: boolean;
|
|
10
|
-
loadMore?: () => void;
|
|
11
|
-
loadMoreLoading?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const TableList: ({ chainId, poolList, usdValueChecked, operatePool, setOperatePool, hasMore, loadMore, loadMoreLoading, }: TableListProps) => JSX.Element;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
/**
|
|
3
|
-
"WETH": "0x5300000000000000000000000000000000000011",
|
|
4
|
-
|
|
5
|
-
{
|
|
6
|
-
"AERO": "0x42EDf453F8483c7168c158d28D610A58308517D1",
|
|
7
|
-
"AirdropDistributor": "0x4c0dC92e49473Ad6691f34a6615FD53f8A0bDC8d",
|
|
8
|
-
"ArtProxy": "0xaf6c1052A1114C7816C24a5e8bC485b180C49Deb",
|
|
9
|
-
"Distributor": "0xBb5a0bF38C0BeA6829fDFef931B7988c8fF00a78",
|
|
10
|
-
"FactoryRegistry": "0x620572bEE4ECF35B2FEBB1F644F939A032cd7044",
|
|
11
|
-
"Forwarder": "0xB6362C3Ef78CDe47446a819B8131eC540a949EF8",
|
|
12
|
-
"GaugeFactory": "0xe77C7e8fE14662e07346A8e2797fee18809aCcEa",
|
|
13
|
-
"ManagedRewardsFactory": "0x69485b9B95df04dDbbF8669A33865C97E9B293B4",
|
|
14
|
-
"Minter": "0xF7d33BB55C74048352DC0413733095Cc8e273A74",
|
|
15
|
-
"PoolFactory": "0x2dA6Bf29baAB9Ac23Bb8E7fB04F6D9a20bbdfC82",
|
|
16
|
-
"Router": "0x468e60B84b11B3B1532D7C41FcBb79DA352aa12d",
|
|
17
|
-
"Voter": "0x74CAd58eD9712e3236D61dea8696B6Dced3da2b6",
|
|
18
|
-
"VotingEscrow": "0x00Fc0223442630e2AaDAB831d2Ee1FD27ee8A6B2",
|
|
19
|
-
"VotingRewardsFactory": "0x64e4a9BDA0670Cdb30664383244dA60158Af847B"
|
|
20
|
-
}
|
|
21
|
-
{
|
|
22
|
-
// https://explorer-holesky.morphl2.io/address/0x64610da3092153a188278815c1f2072009F9Df1e?tab=contract
|
|
23
|
-
// https://github.com/Skyewwww/aerodrome-contracts/blob/deploy-morph/contracts/Pool.sol
|
|
24
|
-
// vAMM-WETH/AERO
|
|
25
|
-
"Pool": "0x98EcC0D3F774a7bDA38918bf5830a476dD5A606C",
|
|
26
|
-
"Gauge": "0x7B156830fDbC76d327a48a19B0143663e16A95ba",
|
|
27
|
-
"FeesVotingReward": "0x0266a69Ed8D4E9ef2781BB7B1BB9437E15Cf5639",
|
|
28
|
-
"BribeVotingReward": "0x6d3dCd05D0576a1379aA9587aBB4D968cF2fD8df"
|
|
29
|
-
}
|
|
30
|
-
{
|
|
31
|
-
"GaugeFactory": "0xd648A03cE42bf7c7F5D4c7885eb76d89daEcB988",
|
|
32
|
-
"GaugeImplementation": "0x054aC9d1DD99C49a4B3A6314717aE49D09606d46",
|
|
33
|
-
"MixedQuoter": "0x9aE45C6566e4c032C119665Cfd38Eaa3f3859D06",
|
|
34
|
-
"NonfungiblePositionManager": "0x2b36c1be2a16ACb71E6F6CccfCd7D20cdfE01867",
|
|
35
|
-
"NonfungibleTokenPositionDescriptor": "0x0d3a1033d9F76A0bC5a444CdFB8fdE85B1290542",
|
|
36
|
-
"PoolFactory": "0x0d1B0d0d709292d35AB7455fF6DBA0Eed40Cc49b",
|
|
37
|
-
"PoolImplementation": "0xE2714F696039Fa207E4Fd1348d0D5bbD27fBe964",
|
|
38
|
-
"Quoter": "0xB725b88b32868266782398ae7Ab6bDCcebe90368",
|
|
39
|
-
"SwapFeeModule": "0x5ffDad8a7D2E9E45FCF88A0C5baDdd80a421f605",
|
|
40
|
-
"SwapRouter": "0xA0abF41a231BaCeB1feB624Dca843B71c10311e8",
|
|
41
|
-
"UnstakedFeeModule": "0xfa1824E71CFF5D315b63CBc91c0b859462B7EA30"
|
|
42
|
-
}
|
|
43
|
-
{
|
|
44
|
-
// CL200-WETH/AERO
|
|
45
|
-
"Pool": "0x2f63A87bf42dc4c021af8BE085CecE16269e3b67",
|
|
46
|
-
"Gauge": "0x640be2253A65740152dC933FAb757606e9c7BD52",
|
|
47
|
-
"FeesVotingReward": "0x87BA1438fa2d2Fd6aD66162B7c1afAAB25b7CE83",
|
|
48
|
-
"BribeVotingReward": "0xA7a1790B8Cd1737278b464c295517408f38b4726"
|
|
49
|
-
}
|
|
50
|
-
*/
|
|
51
|
-
export interface Ve33Config {
|
|
52
|
-
chainId: number;
|
|
53
|
-
/**
|
|
54
|
-
* https://explorer-holesky.morphl2.io/address/0x2dA6Bf29baAB9Ac23Bb8E7fB04F6D9a20bbdfC82?tab=contract
|
|
55
|
-
*/
|
|
56
|
-
PoolFactory: string;
|
|
57
|
-
/**
|
|
58
|
-
* https://explorer-holesky.morphl2.io/address/0x0d1B0d0d709292d35AB7455fF6DBA0Eed40Cc49b
|
|
59
|
-
*/
|
|
60
|
-
CLFactory: string;
|
|
61
|
-
}
|
|
62
|
-
export declare const ve33Config: Map<ChainId, Ve33Config>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The default factory enabled fee amounts, denominated in hundredths of bips.
|
|
3
|
-
* @see https://explorer-holesky.morphl2.io/address/0x0d1B0d0d709292d35AB7455fF6DBA0Eed40Cc49b?tab=read_contract
|
|
4
|
-
*/
|
|
5
|
-
export declare enum FeeAmount {
|
|
6
|
-
LOWEST = 100,
|
|
7
|
-
LOW = 500,
|
|
8
|
-
MEDIUM = 500,
|
|
9
|
-
HIGH = 3000,
|
|
10
|
-
HIGHEST = 10000
|
|
11
|
-
}
|
|
12
|
-
export declare enum TickSpacings {
|
|
13
|
-
LOWEST = 1,
|
|
14
|
-
LOW = 50,
|
|
15
|
-
MEDIUM = 100,
|
|
16
|
-
HIGH = 200,
|
|
17
|
-
HIGHEST = 2000
|
|
18
|
-
}
|
|
19
|
-
export declare const tickSpacingToFee: {
|
|
20
|
-
[amount in TickSpacings]: FeeAmount;
|
|
21
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PoolTypeE } from '../types';
|
|
2
|
-
import { Ve33PoolInfoI } from '../types';
|
|
3
|
-
export declare function usePoolColors({ type, stable, fee, }: {
|
|
4
|
-
type: PoolTypeE;
|
|
5
|
-
stable: boolean;
|
|
6
|
-
fee: Ve33PoolInfoI['fee'];
|
|
7
|
-
}): {
|
|
8
|
-
color: string;
|
|
9
|
-
backgroundColor: string;
|
|
10
|
-
name: string;
|
|
11
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { FetchVe33PoolList } from '../PoolWidget/utils';
|
|
2
|
-
export declare enum OperateTypeE {
|
|
3
|
-
Add = 1,
|
|
4
|
-
Remove = 2
|
|
5
|
-
}
|
|
6
|
-
export declare enum PoolTypeE {
|
|
7
|
-
Pool = 1,
|
|
8
|
-
CLPool = 2
|
|
9
|
-
}
|
|
10
|
-
export declare enum FeeE {
|
|
11
|
-
Stable = 5,
|
|
12
|
-
Volatile = 30
|
|
13
|
-
}
|
|
14
|
-
type FetchVe33PoolItem = FetchVe33PoolList[0];
|
|
15
|
-
export type Ve33PoolInfoI = FetchVe33PoolItem & {
|
|
16
|
-
stable: boolean;
|
|
17
|
-
fee: FeeE | 0 | number;
|
|
18
|
-
type: PoolTypeE;
|
|
19
|
-
};
|
|
20
|
-
export interface Ve33PoolOperateProps {
|
|
21
|
-
poolInfo: Ve33PoolInfoI;
|
|
22
|
-
operateType: OperateTypeE;
|
|
23
|
-
}
|
|
24
|
-
export {};
|