@dodoex/widgets 3.0.4-ve33.9 → 3.1.1-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.
- package/dist/cjs/locales/en-US.js +1 -1
- package/dist/cjs/locales/zh-CN.js +1 -1
- package/dist/{helper-Dt_568MU.cjs → helper-Ci3t54ii.cjs} +1 -1
- package/dist/{helper-CB1YylL8.js → helper-D8gnJn9d.js} +1 -1
- package/dist/{index-BDwJQw6z.cjs → index-CLM_lnjz.cjs} +2 -2
- package/dist/index-CWLUMU3Y.cjs +31 -0
- package/dist/{index-BLjJZj_j.cjs → index-CZbB9Ezo.cjs} +6 -6
- package/dist/index-CkQyrutw.js +78 -0
- package/dist/index-DKXv2xXI.js +31 -0
- package/dist/{index-CMt4f2VS.js → index-yAcooRWq.js} +1 -1
- 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 -3
- 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/SwapPreviewInfoCard.d.ts +7 -0
- package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageSetting.d.ts +2 -1
- package/dist/types/components/Swap/components/SwapSettingsDialog/index.d.ts +5 -1
- package/dist/types/components/Swap/components/TokenCard/TokenPickerDialog.d.ts +3 -2
- package/dist/types/components/Swap/index.d.ts +6 -1
- package/dist/types/components/TokenLogoPair.d.ts +1 -1
- package/dist/types/components/Widget/index.d.ts +26 -2
- package/dist/types/components/WidgetContainer.d.ts +1 -1
- package/dist/types/constants/api.d.ts +1 -1
- package/dist/types/constants/swap.d.ts +0 -3
- package/dist/types/hooks/Submission/types.d.ts +1 -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/useGraphQLRequests.d.ts +1 -0
- package/dist/types/hooks/useTokenState.d.ts +18 -0
- package/dist/types/index.d.ts +26 -35
- 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 -2
- package/package.json +12 -13
- package/dist/index-Bo9PV9W9.js +0 -32
- package/dist/index-C_iIEQbx.js +0 -78
- package/dist/index-RjsD5IyH.cjs +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/Ve33PoolDetail/index.d.ts +0 -7
- package/dist/types/widgets/ve33/Ve33PoolList/TableList.d.ts +0 -14
- package/dist/types/widgets/ve33/Ve33PoolList/index.d.ts +0 -5
- package/dist/types/widgets/ve33/Ve33PoolOperate/AddPoolOperate.d.ts +0 -6
- package/dist/types/widgets/ve33/Ve33PoolOperate/RemovePoolOperate.d.ts +0 -5
- package/dist/types/widgets/ve33/Ve33PoolOperate/components/ComparePrice.d.ts +0 -8
- package/dist/types/widgets/ve33/Ve33PoolOperate/components/OperateBtn.d.ts +0 -6
- package/dist/types/widgets/ve33/Ve33PoolOperate/components/SliderPercentageCard.d.ts +0 -7
- package/dist/types/widgets/ve33/Ve33PoolOperate/components/SlippageSetting.d.ts +0 -18
- package/dist/types/widgets/ve33/Ve33PoolOperate/components/V2ConfirmDialog.d.ts +0 -19
- package/dist/types/widgets/ve33/Ve33PoolOperate/hooks/useComparePrice.d.ts +0 -19
- package/dist/types/widgets/ve33/Ve33PoolOperate/hooks/useLiquidityOperateAmount.d.ts +0 -82
- package/dist/types/widgets/ve33/Ve33PoolOperate/hooks/usePercentageRemove.d.ts +0 -25
- package/dist/types/widgets/ve33/Ve33PoolOperate/hooks/usePoolOperateTabs.d.ts +0 -12
- package/dist/types/widgets/ve33/Ve33PoolOperate/hooks/useVe33V2AddLiquidity.d.ts +0 -12
- package/dist/types/widgets/ve33/Ve33PoolOperate/hooks/useVe33V2BalanceInfo.d.ts +0 -34
- package/dist/types/widgets/ve33/Ve33PoolOperate/hooks/useVe33V2RemoveLiquidity.d.ts +0 -12
- package/dist/types/widgets/ve33/Ve33PoolOperate/hooks/useWithdrawInfo.d.ts +0 -25
- package/dist/types/widgets/ve33/Ve33PoolOperate/index.d.ts +0 -23
- package/dist/types/widgets/ve33/Ve33PoolOperate/types.d.ts +0 -22
- package/dist/types/widgets/ve33/VotePoolList/TableList.d.ts +0 -14
- package/dist/types/widgets/ve33/VotePoolList/index.d.ts +0 -1
- package/dist/types/widgets/ve33/components/GoBack.d.ts +0 -4
- package/dist/types/widgets/ve33/components/PoolHead.d.ts +0 -8
- package/dist/types/widgets/ve33/components/PoolTypeTag.d.ts +0 -8
- package/dist/types/widgets/ve33/components/widgets.d.ts +0 -5
- 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/hooks/useVotePoolFilters.d.ts +0 -13
- package/dist/types/widgets/ve33/hooks/useVoteTabs.d.ts +0 -12
- package/dist/types/widgets/ve33/types.d.ts +0 -38
- package/dist/types/widgets/ve33/utils.d.ts +0 -9
|
@@ -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,13 +0,0 @@
|
|
|
1
|
-
export declare enum VotePoolFilters {
|
|
2
|
-
All = "all",
|
|
3
|
-
V2 = 1,
|
|
4
|
-
V3 = 2
|
|
5
|
-
}
|
|
6
|
-
export declare function useVotePoolFilters(): {
|
|
7
|
-
votePoolFilter: VotePoolFilters;
|
|
8
|
-
filters: {
|
|
9
|
-
key: VotePoolFilters;
|
|
10
|
-
value: string;
|
|
11
|
-
}[];
|
|
12
|
-
handleChangeVotePoolFilter: (votePoolFilter: VotePoolFilters) => void;
|
|
13
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare enum VoteTab {
|
|
2
|
-
SelectToVote = "select-to-vote",
|
|
3
|
-
MyVoted = "my-voted"
|
|
4
|
-
}
|
|
5
|
-
export declare function useVoteTabs(): {
|
|
6
|
-
voteTab: VoteTab;
|
|
7
|
-
tabs: {
|
|
8
|
-
key: VoteTab;
|
|
9
|
-
value: string;
|
|
10
|
-
}[];
|
|
11
|
-
handleChangeVoteTab: (voteTab: VoteTab) => void;
|
|
12
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
import { TokenInfo } from '../../hooks/Token/type';
|
|
3
|
-
import { FetchVe33PoolList, FetchVotePoolList } from '../PoolWidget/utils';
|
|
4
|
-
export declare enum OperateTypeE {
|
|
5
|
-
Add = 1,
|
|
6
|
-
Remove = 2
|
|
7
|
-
}
|
|
8
|
-
export declare enum PoolTypeE {
|
|
9
|
-
Pool = 1,
|
|
10
|
-
CLPool = 2
|
|
11
|
-
}
|
|
12
|
-
export declare enum FeeE {
|
|
13
|
-
Stable = 5,
|
|
14
|
-
Volatile = 30
|
|
15
|
-
}
|
|
16
|
-
export type FetchVe33PoolItem = FetchVe33PoolList[0];
|
|
17
|
-
export type FetchVotePoolItem = FetchVotePoolList[0];
|
|
18
|
-
export type Ve33PoolInfoI = FetchVe33PoolItem & {
|
|
19
|
-
stable: boolean;
|
|
20
|
-
fee: FeeE | 0 | number;
|
|
21
|
-
type: PoolTypeE;
|
|
22
|
-
chainId: ChainId;
|
|
23
|
-
baseToken: TokenInfo;
|
|
24
|
-
quoteToken: TokenInfo;
|
|
25
|
-
};
|
|
26
|
-
export type VotePoolInfoI = FetchVotePoolItem & {
|
|
27
|
-
stable: boolean;
|
|
28
|
-
fee: FeeE | 0 | number;
|
|
29
|
-
type: PoolTypeE;
|
|
30
|
-
chainId: ChainId;
|
|
31
|
-
baseToken: TokenInfo;
|
|
32
|
-
quoteToken: TokenInfo;
|
|
33
|
-
};
|
|
34
|
-
export interface Ve33PoolOperateProps {
|
|
35
|
-
poolInfo: Ve33PoolInfoI;
|
|
36
|
-
operateType: OperateTypeE;
|
|
37
|
-
chainId: ChainId;
|
|
38
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
import { FetchVe33PoolItem, FetchVotePoolItem, PoolTypeE, Ve33PoolInfoI, VotePoolInfoI } from './types';
|
|
3
|
-
import { FeeE } from './types';
|
|
4
|
-
export declare const formatFee: ({ type, fee }: {
|
|
5
|
-
type: PoolTypeE;
|
|
6
|
-
fee: FeeE;
|
|
7
|
-
}) => string;
|
|
8
|
-
export declare function compositePoolInfo(pool: NonNullable<FetchVe33PoolItem>, chainId: ChainId): Ve33PoolInfoI;
|
|
9
|
-
export declare function compositeVotePoolInfo(pool: NonNullable<FetchVotePoolItem>, chainId: ChainId): VotePoolInfoI;
|