@dodoex/widgets 3.0.0-beta.12 → 3.0.0-beta.14
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/components/Swap/components/TokenCard/BalanceText.d.ts +2 -1
- package/dist/cjs/components/Swap/components/TokenCard/index.d.ts +4 -1
- package/dist/cjs/helper-DggQZcex.cjs +1 -0
- package/dist/cjs/helper-Dpzn6vmB.cjs +1 -0
- package/dist/cjs/helper-Hf5GBk0c.cjs +1 -0
- package/dist/cjs/helper-Ps4SbCXw.cjs +1 -0
- package/dist/cjs/helper-VNfzoH_Q.cjs +1 -0
- package/dist/cjs/hooks/Submission/useBalanceUpdateLoading.d.ts +3 -2
- package/dist/cjs/hooks/Token/useTokenStatus.d.ts +2 -2
- package/dist/cjs/index-B6u-yP-n.cjs +78 -0
- package/dist/cjs/index-B7EqHp0e.cjs +53 -0
- package/dist/cjs/index-BH1DVDmS.cjs +12 -0
- package/dist/cjs/index-BllOjqMJ.cjs +53 -0
- package/dist/cjs/index-CDuqo66t.cjs +58 -0
- package/dist/cjs/index-CJ-JmT3s.cjs +78 -0
- package/dist/cjs/index-CmD8qkCh.cjs +78 -0
- package/dist/cjs/index-CxsIv92s.cjs +53 -0
- package/dist/cjs/index-DVPnDMpN.cjs +12 -0
- package/dist/cjs/index-DXFIcVQZ.cjs +58 -0
- package/dist/cjs/index-DZBmydw4.cjs +12 -0
- package/dist/cjs/index-EnSgUpBN.cjs +78 -0
- package/dist/cjs/index-GPt6sx46.cjs +78 -0
- package/dist/cjs/index-OFM6otul.cjs +12 -0
- package/dist/cjs/index-a21mTiEA.cjs +12 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/lottie-4ajYt8so.cjs +1 -0
- package/dist/cjs/lottie-B-qwKRjO.cjs +1 -0
- package/dist/cjs/lottie-CZ8LO4Jl.cjs +1 -0
- package/dist/cjs/lottie-CvHVzAg9.cjs +1 -0
- package/dist/cjs/lottie-Dr8YSF6w.cjs +1 -0
- package/dist/cjs/widgets/MiningWidget/OperateArea/StakeButton.d.ts +5 -1
- package/dist/cjs/widgets/MiningWidget/OperateArea/UnstakeButton.d.ts +5 -1
- package/dist/cjs/widgets/MiningWidget/hooks/useClaimMiningSubmit.d.ts +2 -1
- package/dist/cjs/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +1 -0
- package/dist/cjs/widgets/MiningWidget/hooks/useStakeMiningSubmit.d.ts +5 -1
- package/dist/cjs/widgets/MiningWidget/hooks/useUnstakeMiningSubmit.d.ts +5 -1
- package/dist/cjs/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +2 -1
- package/dist/components/Swap/components/TokenCard/BalanceText.d.ts +2 -1
- package/dist/components/Swap/components/TokenCard/index.d.ts +4 -1
- package/dist/helper-B4RxOleL.js +1 -0
- package/dist/helper-CJcYH-SC.js +1 -0
- package/dist/helper-Cu0GttY-.js +1 -0
- package/dist/helper-DAptGSAe.js +1 -0
- package/dist/helper-DNJwPHFa.js +1 -0
- package/dist/hooks/Submission/useBalanceUpdateLoading.d.ts +3 -2
- package/dist/hooks/Token/useTokenStatus.d.ts +2 -2
- package/dist/index-BXewCVCl.js +78 -0
- package/dist/index-Bf_cNhyK.js +12 -0
- package/dist/index-Bk_VHDdu.js +53 -0
- package/dist/index-BrnzS_9k.js +78 -0
- package/dist/index-BysiWFWb.js +12 -0
- package/dist/index-CA5L30dw.js +78 -0
- package/dist/index-CL8jCqcI.js +53 -0
- package/dist/index-CWMKCDQa.js +58 -0
- package/dist/index-CwSuExOu.js +78 -0
- package/dist/index-DEQyUtCB.js +12 -0
- package/dist/index-DJrKm2hT.js +12 -0
- package/dist/index-DUEqTSvF.js +53 -0
- package/dist/index-DUnAtl3n.js +78 -0
- package/dist/index-DpiFL9GN.js +58 -0
- package/dist/index-udaroTyU.js +12 -0
- package/dist/index.js +1 -1
- package/dist/lottie-BIOukHTa.js +1 -0
- package/dist/lottie-CZ_QvJLR.js +1 -0
- package/dist/lottie-D92PvgnT.js +1 -0
- package/dist/lottie-Dp0bBRNV.js +1 -0
- package/dist/lottie-Zvqhd93C.js +1 -0
- package/dist/widgets/MiningWidget/OperateArea/StakeButton.d.ts +5 -1
- package/dist/widgets/MiningWidget/OperateArea/UnstakeButton.d.ts +5 -1
- package/dist/widgets/MiningWidget/hooks/useClaimMiningSubmit.d.ts +2 -1
- package/dist/widgets/MiningWidget/hooks/useRewardListAmount.d.ts +1 -0
- package/dist/widgets/MiningWidget/hooks/useStakeMiningSubmit.d.ts +5 -1
- package/dist/widgets/MiningWidget/hooks/useUnstakeMiningSubmit.d.ts +5 -1
- package/dist/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FetchMiningListItem } from '../types';
|
|
3
3
|
import { usePoolBalanceInfo } from '../../PoolWidget/hooks/usePoolBalanceInfo';
|
|
4
|
-
|
|
4
|
+
import { BalanceData } from '../../../hooks/Submission/useBalanceUpdateLoading';
|
|
5
|
+
export declare function StakeButton({ goLpLink, amount, miningItem, balanceInfo, submittedBack, successBack, logBalance, }: {
|
|
5
6
|
amount: string;
|
|
6
7
|
miningItem: FetchMiningListItem;
|
|
7
8
|
balanceInfo: ReturnType<typeof usePoolBalanceInfo>;
|
|
8
9
|
goLpLink?: () => Promise<void> | void;
|
|
10
|
+
submittedBack?: () => void;
|
|
11
|
+
successBack?: () => void;
|
|
12
|
+
logBalance?: BalanceData;
|
|
9
13
|
}): JSX.Element;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import BigNumber from 'bignumber.js';
|
|
3
3
|
import { FetchMiningListItem } from '../types';
|
|
4
|
-
|
|
4
|
+
import { BalanceData } from '../../../hooks/Submission/useBalanceUpdateLoading';
|
|
5
|
+
export default function UnstakeButton({ amount, miningItem, overrideBalance, submittedBack, successBack, logBalance, }: {
|
|
5
6
|
amount: string;
|
|
6
7
|
miningItem: FetchMiningListItem;
|
|
7
8
|
overrideBalance: BigNumber | undefined | null;
|
|
9
|
+
submittedBack?: () => void;
|
|
10
|
+
successBack?: () => void;
|
|
11
|
+
logBalance?: BalanceData;
|
|
8
12
|
}): JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FetchMiningListItem } from '../types';
|
|
2
|
-
export declare const useClaimMiningSubmit: ({ miningItem, }: {
|
|
2
|
+
export declare const useClaimMiningSubmit: ({ miningItem, successBack, }: {
|
|
3
3
|
miningItem: FetchMiningListItem;
|
|
4
|
+
successBack?: (() => void) | undefined;
|
|
4
5
|
}) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<import("../../../hooks/Submission/types").ExecutionResult | undefined, Error, void, unknown>;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { BalanceData } from '../../../hooks/Submission/useBalanceUpdateLoading';
|
|
1
2
|
import { FetchMiningListItem } from '../types';
|
|
2
|
-
export declare const useStakeMiningSubmit: ({ miningItem, amount, }: {
|
|
3
|
+
export declare const useStakeMiningSubmit: ({ miningItem, amount, submittedBack, successBack, logBalance, }: {
|
|
3
4
|
miningItem: FetchMiningListItem;
|
|
4
5
|
amount: string;
|
|
6
|
+
submittedBack?: (() => void) | undefined;
|
|
7
|
+
successBack?: (() => void) | undefined;
|
|
8
|
+
logBalance?: BalanceData | undefined;
|
|
5
9
|
}) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<import("../../../hooks/Submission/types").ExecutionResult | undefined, Error, void, unknown>;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { BalanceData } from '../../../hooks/Submission/useBalanceUpdateLoading';
|
|
1
2
|
import { FetchMiningListItem } from '../types';
|
|
2
|
-
export declare const useUnstakeMiningSubmit: ({ miningItem, amount, }: {
|
|
3
|
+
export declare const useUnstakeMiningSubmit: ({ miningItem, amount, submittedBack, successBack, logBalance, }: {
|
|
3
4
|
miningItem: FetchMiningListItem;
|
|
4
5
|
amount: string;
|
|
6
|
+
submittedBack?: (() => void) | undefined;
|
|
7
|
+
successBack?: (() => void) | undefined;
|
|
8
|
+
logBalance?: BalanceData | undefined;
|
|
5
9
|
}) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<import("../../../hooks/Submission/types").ExecutionResult | undefined, Error, void, unknown>;
|
|
@@ -5,5 +5,6 @@ export interface PoolOperateInnerProps {
|
|
|
5
5
|
pool: OperatePool;
|
|
6
6
|
operate?: OperateTab;
|
|
7
7
|
errorRefetch?: () => void;
|
|
8
|
+
submittedBack?: () => void;
|
|
8
9
|
}
|
|
9
|
-
export default function PoolOperateInner({ pool, operate, errorRefetch, }: PoolOperateInnerProps): JSX.Element;
|
|
10
|
+
export default function PoolOperateInner({ pool, operate, errorRefetch, submittedBack, }: PoolOperateInnerProps): JSX.Element;
|