@dodoex/widgets 3.1.3-bartio.1 → 3.1.3-pharos.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-C48mTWX6.js → helper-BA2ADMC8.js} +1 -1
- package/dist/{helper-DJoFx-73.cjs → helper-Cv3dVMql.cjs} +1 -1
- package/dist/index-Bg3YIGnw.js +31 -0
- package/dist/index-C_R38uJr.cjs +31 -0
- package/dist/{index-BoitgUC-.cjs → index-D-CwWdfB.cjs} +1 -1
- package/dist/{index-92Z5vyfr.js → index-Dl7VDQnn.js} +1 -1
- package/dist/{index-Bst2VBXi.js → index-GuE-e5BJ.js} +1 -1
- package/dist/{index-B3jnm1t4.cjs → index-qHe2fLix.cjs} +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/SelectChain.d.ts +2 -1
- package/dist/types/components/Swap/components/ConnectWallet/index.d.ts +1 -2
- package/dist/types/components/Swap/components/ReviewDialog.d.ts +1 -2
- 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/SlippageWarning.d.ts +3 -1
- package/dist/types/components/Swap/components/SwapSettingsDialog/index.d.ts +2 -1
- package/dist/types/components/Swap/components/SwitchBox.d.ts +1 -2
- package/dist/types/components/Swap/components/TokenCard/NumberInput.d.ts +0 -1
- package/dist/types/components/Swap/components/TokenCard/index.d.ts +2 -5
- package/dist/types/components/Swap/index.d.ts +3 -5
- package/dist/types/components/TokenSelect.d.ts +1 -2
- package/dist/types/components/Widget/index.d.ts +1 -3
- package/dist/types/constants/address.d.ts +0 -1
- package/dist/types/hooks/Submission/types.d.ts +0 -4
- package/dist/types/index.d.ts +1 -3
- package/dist/types/providers/useInitContractRequest.d.ts +1 -2
- package/dist/types/router/types.d.ts +1 -2
- package/dist/types/utils/address.d.ts +0 -35
- package/dist/types/widgets/PoolWidget/AMMV2Create/Ratio.d.ts +4 -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/hooks/usePriceInit.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 +4 -5
- package/dist/types/widgets/PoolWidget/PoolList/MyCreated.d.ts +2 -1
- package/dist/types/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +4 -5
- package/dist/types/widgets/PoolWidget/PoolList/index.d.ts +5 -9
- 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/Ratio.d.ts +5 -1
- 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/package.json +6 -5
- package/dist/e4364db573253fd1.svg +0 -9
- package/dist/index-BFUc9LPV.cjs +0 -67
- package/dist/index-Ig-Pm33B.js +0 -67
- package/dist/types/hooks/usePoolTokenSort.d.ts +0 -24
- package/dist/types/utils/fractions/fraction.d.ts +0 -24
- package/dist/types/utils/fractions/index.d.ts +0 -3
- package/dist/types/utils/fractions/percent.d.ts +0 -14
- package/dist/types/utils/fractions/price.d.ts +0 -29
- package/dist/types/utils/fractions/types.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/AMMV2Create/Setting.d.ts +0 -16
- package/dist/types/widgets/PoolWidget/Algebra/AddLiquidity.d.ts +0 -14
- package/dist/types/widgets/PoolWidget/Algebra/AlgebraPositionManage.d.ts +0 -11
- package/dist/types/widgets/PoolWidget/Algebra/components/Badge/RangeBadge.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/Algebra/components/ClaimButton.d.ts +0 -9
- package/dist/types/widgets/PoolWidget/Algebra/components/InRangeDot.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/Algebra/components/InputStepCounter.d.ts +0 -17
- package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/Area.d.ts +0 -10
- package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/AxisBottom.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/Brush.d.ts +0 -13
- package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/Chart.d.ts +0 -2
- package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/Line.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/Zoom.d.ts +0 -12
- package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/index.d.ts +0 -19
- package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/svg.d.ts +0 -22
- package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/types.d.ts +0 -50
- package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/usePrevious.d.ts +0 -1
- package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/utils.d.ts +0 -14
- package/dist/types/widgets/PoolWidget/Algebra/components/MyLiquidity.d.ts +0 -10
- package/dist/types/widgets/PoolWidget/Algebra/components/PositionPreview.d.ts +0 -15
- package/dist/types/widgets/PoolWidget/Algebra/components/PositionSelectedRangePreview.d.ts +0 -12
- package/dist/types/widgets/PoolWidget/Algebra/components/RangeSelector.d.ts +0 -21
- package/dist/types/widgets/PoolWidget/Algebra/components/RateToggle.d.ts +0 -9
- package/dist/types/widgets/PoolWidget/Algebra/components/RemoveButton.d.ts +0 -11
- package/dist/types/widgets/PoolWidget/Algebra/components/ReviewModal.d.ts +0 -19
- package/dist/types/widgets/PoolWidget/Algebra/components/TokenAndEtherscan.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/Algebra/components/TokenPairSelect.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/Algebra/components/shared.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/Algebra/components/widgets.d.ts +0 -56
- package/dist/types/widgets/PoolWidget/Algebra/constants/misc.d.ts +0 -17
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useAddAlgebraLiquidity.d.ts +0 -15
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useAlgebraAmounts.d.ts +0 -19
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useAlgebraPair.d.ts +0 -59
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useAlgebraPositionFees.d.ts +0 -13
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useClaimAlgebraFees.d.ts +0 -12
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useContract.d.ts +0 -2
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useFetchPositionFromTokenId.d.ts +0 -295
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useFetchPositions.d.ts +0 -23
- package/dist/types/widgets/PoolWidget/Algebra/hooks/usePoolActiveLiquidityChartData.d.ts +0 -37
- package/dist/types/widgets/PoolWidget/Algebra/hooks/usePools.d.ts +0 -22
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useRemoveAlgebraLiquidity.d.ts +0 -14
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useSetRange.d.ts +0 -32
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useSwapTaxes.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useV3MintActionHandlers.d.ts +0 -11
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useV3PositionFees.d.ts +0 -8
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useV3Positions.d.ts +0 -13
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/addresses.d.ts +0 -12
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/chains.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/constants.d.ts +0 -12
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/baseCurrency.d.ts +0 -49
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/currency.d.ts +0 -3
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/fractions/currencyAmount.d.ts +0 -32
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/fractions/fraction.d.ts +0 -24
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/fractions/index.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/fractions/percent.d.ts +0 -14
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/fractions/price.d.ts +0 -38
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/index.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/nativeCurrency.d.ts +0 -16
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/nativeCurrencyClass.d.ts +0 -8
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/token.d.ts +0 -48
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/index.d.ts +0 -5
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/utils/computePriceImpact.d.ts +0 -8
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/utils/index.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/utils/sortedInsert.d.ts +0 -1
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/utils/sqrt.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/utils/validateAndParseAddress.d.ts +0 -10
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/constants.d.ts +0 -23
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/entities/index.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/entities/pool.d.ts +0 -81
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/entities/position.d.ts +0 -131
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/entities/route.d.ts +0 -26
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/entities/tick.d.ts +0 -13
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/entities/tickDataProvider.d.ts +0 -31
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/entities/tickListDataProvider.d.ts +0 -15
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/entities/trade.d.ts +0 -220
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/index.d.ts +0 -10
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/internalConstants.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/multicall.d.ts +0 -10
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/nonfungiblePositionManager.d.ts +0 -159
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/payments.d.ts +0 -24
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/quoter.d.ts +0 -37
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/selfPermit.d.ts +0 -25
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/staker.d.ts +0 -101
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/swapRouter.d.ts +0 -51
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/calldata.d.ts +0 -20
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/computePoolAddress.d.ts +0 -21
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/encodeRouteToPath.d.ts +0 -8
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/encodeSqrtRatioX96.d.ts +0 -9
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/fullMath.d.ts +0 -8
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/index.d.ts +0 -18
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/isSorted.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/liquidityMath.d.ts +0 -8
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/maxLiquidityForAmounts.d.ts +0 -14
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/mostSignificantBit.d.ts +0 -2
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/nearestUsableTick.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/position.d.ts +0 -8
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/priceTickConversions.d.ts +0 -15
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/sqrtPriceMath.d.ts +0 -13
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/swapMath.d.ts +0 -9
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/tickLibrary.d.ts +0 -14
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/tickList.d.ts +0 -23
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/tickMath.d.ts +0 -34
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/v3swap.d.ts +0 -8
- package/dist/types/widgets/PoolWidget/Algebra/types/position.d.ts +0 -18
- package/dist/types/widgets/PoolWidget/Algebra/types.d.ts +0 -10
- package/dist/types/widgets/PoolWidget/Algebra/utils/calldata.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/Algebra/utils/computeSurroundingTicks.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/Algebra/utils/constants.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/Algebra/utils/encodeSqrtRatioX96.d.ts +0 -9
- package/dist/types/widgets/PoolWidget/Algebra/utils/formatTickPrice.d.ts +0 -1
- package/dist/types/widgets/PoolWidget/Algebra/utils/fullMath.d.ts +0 -8
- package/dist/types/widgets/PoolWidget/Algebra/utils/getPositionAmount.d.ts +0 -37
- package/dist/types/widgets/PoolWidget/Algebra/utils/getPositionAmountWithSlippage.d.ts +0 -23
- package/dist/types/widgets/PoolWidget/Algebra/utils/getTickToPrice.d.ts +0 -10
- package/dist/types/widgets/PoolWidget/Algebra/utils/maxLiquidityForAmounts.d.ts +0 -22
- package/dist/types/widgets/PoolWidget/Algebra/utils/mostSignificantBit.d.ts +0 -2
- package/dist/types/widgets/PoolWidget/Algebra/utils/nearestUsableTick.d.ts +0 -6
- package/dist/types/widgets/PoolWidget/Algebra/utils/slippage.d.ts +0 -3
- package/dist/types/widgets/PoolWidget/Algebra/utils/sqrt.d.ts +0 -7
- package/dist/types/widgets/PoolWidget/Algebra/utils/sqrtPriceMath.d.ts +0 -13
- package/dist/types/widgets/PoolWidget/Algebra/utils/tickMath.d.ts +0 -34
- package/dist/types/widgets/PoolWidget/Algebra/utils/tryParseTick.d.ts +0 -4
- package/dist/types/widgets/PoolWidget/Algebra/utils.d.ts +0 -9
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { TokenInfo } from '../../../../hooks/Token';
|
|
2
|
-
import { Price } from '../../../../utils/fractions';
|
|
3
|
-
export declare function useAlgebraPair({ baseToken, quoteToken, startPriceTypedValue, }: {
|
|
4
|
-
baseToken: TokenInfo | undefined;
|
|
5
|
-
quoteToken: TokenInfo | undefined;
|
|
6
|
-
startPriceTypedValue?: string;
|
|
7
|
-
}): {
|
|
8
|
-
chainId: undefined;
|
|
9
|
-
isRearTokenA: boolean;
|
|
10
|
-
token0: undefined;
|
|
11
|
-
token1: undefined;
|
|
12
|
-
token0Wrapped: undefined;
|
|
13
|
-
token1Wrapped: undefined;
|
|
14
|
-
isBaseTokenNative: boolean;
|
|
15
|
-
isQuoteTokenNative: boolean;
|
|
16
|
-
isExists: boolean;
|
|
17
|
-
address: string | undefined;
|
|
18
|
-
fetchTickSpacing: import("@tanstack/react-query").UseQueryResult<bigint, Error>;
|
|
19
|
-
fetchGlobalState: import("@tanstack/react-query").UseQueryResult<{
|
|
20
|
-
price: bigint;
|
|
21
|
-
tick: bigint;
|
|
22
|
-
lastFee: bigint;
|
|
23
|
-
pluginConfig: bigint;
|
|
24
|
-
communityFee: bigint;
|
|
25
|
-
unlocked: boolean;
|
|
26
|
-
}, Error>;
|
|
27
|
-
fetchLiquidity: import("@tanstack/react-query").UseQueryResult<bigint, Error>;
|
|
28
|
-
currentTick: number | undefined;
|
|
29
|
-
currentSqrt: string | undefined;
|
|
30
|
-
price: Price | undefined;
|
|
31
|
-
reversePrice: string | undefined;
|
|
32
|
-
tickSpacing: number;
|
|
33
|
-
} | {
|
|
34
|
-
chainId: import("@dodoex/api").ChainId;
|
|
35
|
-
isRearTokenA: boolean;
|
|
36
|
-
token0: TokenInfo;
|
|
37
|
-
token1: TokenInfo;
|
|
38
|
-
token0Wrapped: TokenInfo;
|
|
39
|
-
token1Wrapped: TokenInfo;
|
|
40
|
-
isBaseTokenNative: boolean;
|
|
41
|
-
isQuoteTokenNative: boolean;
|
|
42
|
-
isExists: boolean;
|
|
43
|
-
address: string | undefined;
|
|
44
|
-
fetchTickSpacing: import("@tanstack/react-query").UseQueryResult<bigint, Error>;
|
|
45
|
-
fetchGlobalState: import("@tanstack/react-query").UseQueryResult<{
|
|
46
|
-
price: bigint;
|
|
47
|
-
tick: bigint;
|
|
48
|
-
lastFee: bigint;
|
|
49
|
-
pluginConfig: bigint;
|
|
50
|
-
communityFee: bigint;
|
|
51
|
-
unlocked: boolean;
|
|
52
|
-
}, Error>;
|
|
53
|
-
fetchLiquidity: import("@tanstack/react-query").UseQueryResult<bigint, Error>;
|
|
54
|
-
currentTick: number | undefined;
|
|
55
|
-
currentSqrt: string | undefined;
|
|
56
|
-
price: Price | undefined;
|
|
57
|
-
reversePrice: string | undefined;
|
|
58
|
-
tickSpacing: number;
|
|
59
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
export declare function useAlgebraPositionFees({ chainId, tokenId, }: {
|
|
3
|
-
chainId: ChainId;
|
|
4
|
-
tokenId: string;
|
|
5
|
-
}): {
|
|
6
|
-
data: {
|
|
7
|
-
amount0: bigint;
|
|
8
|
-
amount1: bigint;
|
|
9
|
-
} | undefined;
|
|
10
|
-
isLoading: boolean;
|
|
11
|
-
isError: boolean;
|
|
12
|
-
errorRefetch: () => void;
|
|
13
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
|
2
|
-
export declare function useClaimAlgebraFees(): import("@tanstack/react-query").UseMutationResult<import("../../../../hooks/Submission/types").ExecutionResult | undefined, Error, {
|
|
3
|
-
chainId?: number;
|
|
4
|
-
tokenId?: number | string;
|
|
5
|
-
collectOptions: {
|
|
6
|
-
expectedCurrencyOwed0: BigNumber;
|
|
7
|
-
expectedCurrencyOwed1: BigNumber;
|
|
8
|
-
recipient: string;
|
|
9
|
-
};
|
|
10
|
-
involvesETH?: boolean;
|
|
11
|
-
successBack?: () => void;
|
|
12
|
-
}, unknown>;
|
|
@@ -1,295 +0,0 @@
|
|
|
1
|
-
export declare function useFetchPositionFromTokenId({ chainId, tokenId, }: {
|
|
2
|
-
chainId: number | undefined;
|
|
3
|
-
tokenId: string | undefined;
|
|
4
|
-
}): {
|
|
5
|
-
position: {
|
|
6
|
-
tokenId: string | undefined;
|
|
7
|
-
pool: string;
|
|
8
|
-
feeGrowthInside0LastX128: bigint;
|
|
9
|
-
feeGrowthInside1LastX128: bigint;
|
|
10
|
-
liquidity: bigint;
|
|
11
|
-
nonce: bigint;
|
|
12
|
-
operator: string;
|
|
13
|
-
tickLower: number;
|
|
14
|
-
tickUpper: number;
|
|
15
|
-
token0: string;
|
|
16
|
-
token1: string;
|
|
17
|
-
tokensOwed0: bigint;
|
|
18
|
-
tokensOwed1: bigint;
|
|
19
|
-
} | undefined;
|
|
20
|
-
data: {
|
|
21
|
-
nonce: bigint;
|
|
22
|
-
operator: string;
|
|
23
|
-
token0: string;
|
|
24
|
-
token1: string;
|
|
25
|
-
deployer: string;
|
|
26
|
-
tickLower: bigint;
|
|
27
|
-
tickUpper: bigint;
|
|
28
|
-
liquidity: bigint;
|
|
29
|
-
feeGrowthInside0LastX128: bigint;
|
|
30
|
-
feeGrowthInside1LastX128: bigint;
|
|
31
|
-
tokensOwed0: bigint;
|
|
32
|
-
tokensOwed1: bigint;
|
|
33
|
-
};
|
|
34
|
-
error: Error;
|
|
35
|
-
isError: true;
|
|
36
|
-
isPending: false;
|
|
37
|
-
isLoading: false;
|
|
38
|
-
isLoadingError: false;
|
|
39
|
-
isRefetchError: true;
|
|
40
|
-
isSuccess: false;
|
|
41
|
-
status: "error";
|
|
42
|
-
dataUpdatedAt: number;
|
|
43
|
-
errorUpdatedAt: number;
|
|
44
|
-
failureCount: number;
|
|
45
|
-
failureReason: Error | null;
|
|
46
|
-
errorUpdateCount: number;
|
|
47
|
-
isFetched: boolean;
|
|
48
|
-
isFetchedAfterMount: boolean;
|
|
49
|
-
isFetching: boolean;
|
|
50
|
-
isInitialLoading: boolean;
|
|
51
|
-
isPaused: boolean;
|
|
52
|
-
isPlaceholderData: boolean;
|
|
53
|
-
isRefetching: boolean;
|
|
54
|
-
isStale: boolean;
|
|
55
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
56
|
-
nonce: bigint;
|
|
57
|
-
operator: string;
|
|
58
|
-
token0: string;
|
|
59
|
-
token1: string;
|
|
60
|
-
deployer: string;
|
|
61
|
-
tickLower: bigint;
|
|
62
|
-
tickUpper: bigint;
|
|
63
|
-
liquidity: bigint;
|
|
64
|
-
feeGrowthInside0LastX128: bigint;
|
|
65
|
-
feeGrowthInside1LastX128: bigint;
|
|
66
|
-
tokensOwed0: bigint;
|
|
67
|
-
tokensOwed1: bigint;
|
|
68
|
-
}, Error>>;
|
|
69
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
70
|
-
} | {
|
|
71
|
-
position: {
|
|
72
|
-
tokenId: string | undefined;
|
|
73
|
-
pool: string;
|
|
74
|
-
feeGrowthInside0LastX128: bigint;
|
|
75
|
-
feeGrowthInside1LastX128: bigint;
|
|
76
|
-
liquidity: bigint;
|
|
77
|
-
nonce: bigint;
|
|
78
|
-
operator: string;
|
|
79
|
-
tickLower: number;
|
|
80
|
-
tickUpper: number;
|
|
81
|
-
token0: string;
|
|
82
|
-
token1: string;
|
|
83
|
-
tokensOwed0: bigint;
|
|
84
|
-
tokensOwed1: bigint;
|
|
85
|
-
} | undefined;
|
|
86
|
-
data: {
|
|
87
|
-
nonce: bigint;
|
|
88
|
-
operator: string;
|
|
89
|
-
token0: string;
|
|
90
|
-
token1: string;
|
|
91
|
-
deployer: string;
|
|
92
|
-
tickLower: bigint;
|
|
93
|
-
tickUpper: bigint;
|
|
94
|
-
liquidity: bigint;
|
|
95
|
-
feeGrowthInside0LastX128: bigint;
|
|
96
|
-
feeGrowthInside1LastX128: bigint;
|
|
97
|
-
tokensOwed0: bigint;
|
|
98
|
-
tokensOwed1: bigint;
|
|
99
|
-
};
|
|
100
|
-
error: null;
|
|
101
|
-
isError: false;
|
|
102
|
-
isPending: false;
|
|
103
|
-
isLoading: false;
|
|
104
|
-
isLoadingError: false;
|
|
105
|
-
isRefetchError: false;
|
|
106
|
-
isSuccess: true;
|
|
107
|
-
status: "success";
|
|
108
|
-
dataUpdatedAt: number;
|
|
109
|
-
errorUpdatedAt: number;
|
|
110
|
-
failureCount: number;
|
|
111
|
-
failureReason: Error | null;
|
|
112
|
-
errorUpdateCount: number;
|
|
113
|
-
isFetched: boolean;
|
|
114
|
-
isFetchedAfterMount: boolean;
|
|
115
|
-
isFetching: boolean;
|
|
116
|
-
isInitialLoading: boolean;
|
|
117
|
-
isPaused: boolean;
|
|
118
|
-
isPlaceholderData: boolean;
|
|
119
|
-
isRefetching: boolean;
|
|
120
|
-
isStale: boolean;
|
|
121
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
122
|
-
nonce: bigint;
|
|
123
|
-
operator: string;
|
|
124
|
-
token0: string;
|
|
125
|
-
token1: string;
|
|
126
|
-
deployer: string;
|
|
127
|
-
tickLower: bigint;
|
|
128
|
-
tickUpper: bigint;
|
|
129
|
-
liquidity: bigint;
|
|
130
|
-
feeGrowthInside0LastX128: bigint;
|
|
131
|
-
feeGrowthInside1LastX128: bigint;
|
|
132
|
-
tokensOwed0: bigint;
|
|
133
|
-
tokensOwed1: bigint;
|
|
134
|
-
}, Error>>;
|
|
135
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
136
|
-
} | {
|
|
137
|
-
position: {
|
|
138
|
-
tokenId: string | undefined;
|
|
139
|
-
pool: string;
|
|
140
|
-
feeGrowthInside0LastX128: bigint;
|
|
141
|
-
feeGrowthInside1LastX128: bigint;
|
|
142
|
-
liquidity: bigint;
|
|
143
|
-
nonce: bigint;
|
|
144
|
-
operator: string;
|
|
145
|
-
tickLower: number;
|
|
146
|
-
tickUpper: number;
|
|
147
|
-
token0: string;
|
|
148
|
-
token1: string;
|
|
149
|
-
tokensOwed0: bigint;
|
|
150
|
-
tokensOwed1: bigint;
|
|
151
|
-
} | undefined;
|
|
152
|
-
data: undefined;
|
|
153
|
-
error: Error;
|
|
154
|
-
isError: true;
|
|
155
|
-
isPending: false;
|
|
156
|
-
isLoading: false;
|
|
157
|
-
isLoadingError: true;
|
|
158
|
-
isRefetchError: false;
|
|
159
|
-
isSuccess: false;
|
|
160
|
-
status: "error";
|
|
161
|
-
dataUpdatedAt: number;
|
|
162
|
-
errorUpdatedAt: number;
|
|
163
|
-
failureCount: number;
|
|
164
|
-
failureReason: Error | null;
|
|
165
|
-
errorUpdateCount: number;
|
|
166
|
-
isFetched: boolean;
|
|
167
|
-
isFetchedAfterMount: boolean;
|
|
168
|
-
isFetching: boolean;
|
|
169
|
-
isInitialLoading: boolean;
|
|
170
|
-
isPaused: boolean;
|
|
171
|
-
isPlaceholderData: boolean;
|
|
172
|
-
isRefetching: boolean;
|
|
173
|
-
isStale: boolean;
|
|
174
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
175
|
-
nonce: bigint;
|
|
176
|
-
operator: string;
|
|
177
|
-
token0: string;
|
|
178
|
-
token1: string;
|
|
179
|
-
deployer: string;
|
|
180
|
-
tickLower: bigint;
|
|
181
|
-
tickUpper: bigint;
|
|
182
|
-
liquidity: bigint;
|
|
183
|
-
feeGrowthInside0LastX128: bigint;
|
|
184
|
-
feeGrowthInside1LastX128: bigint;
|
|
185
|
-
tokensOwed0: bigint;
|
|
186
|
-
tokensOwed1: bigint;
|
|
187
|
-
}, Error>>;
|
|
188
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
189
|
-
} | {
|
|
190
|
-
position: {
|
|
191
|
-
tokenId: string | undefined;
|
|
192
|
-
pool: string;
|
|
193
|
-
feeGrowthInside0LastX128: bigint;
|
|
194
|
-
feeGrowthInside1LastX128: bigint;
|
|
195
|
-
liquidity: bigint;
|
|
196
|
-
nonce: bigint;
|
|
197
|
-
operator: string;
|
|
198
|
-
tickLower: number;
|
|
199
|
-
tickUpper: number;
|
|
200
|
-
token0: string;
|
|
201
|
-
token1: string;
|
|
202
|
-
tokensOwed0: bigint;
|
|
203
|
-
tokensOwed1: bigint;
|
|
204
|
-
} | undefined;
|
|
205
|
-
data: undefined;
|
|
206
|
-
error: null;
|
|
207
|
-
isError: false;
|
|
208
|
-
isPending: true;
|
|
209
|
-
isLoading: true;
|
|
210
|
-
isLoadingError: false;
|
|
211
|
-
isRefetchError: false;
|
|
212
|
-
isSuccess: false;
|
|
213
|
-
status: "pending";
|
|
214
|
-
dataUpdatedAt: number;
|
|
215
|
-
errorUpdatedAt: number;
|
|
216
|
-
failureCount: number;
|
|
217
|
-
failureReason: Error | null;
|
|
218
|
-
errorUpdateCount: number;
|
|
219
|
-
isFetched: boolean;
|
|
220
|
-
isFetchedAfterMount: boolean;
|
|
221
|
-
isFetching: boolean;
|
|
222
|
-
isInitialLoading: boolean;
|
|
223
|
-
isPaused: boolean;
|
|
224
|
-
isPlaceholderData: boolean;
|
|
225
|
-
isRefetching: boolean;
|
|
226
|
-
isStale: boolean;
|
|
227
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
228
|
-
nonce: bigint;
|
|
229
|
-
operator: string;
|
|
230
|
-
token0: string;
|
|
231
|
-
token1: string;
|
|
232
|
-
deployer: string;
|
|
233
|
-
tickLower: bigint;
|
|
234
|
-
tickUpper: bigint;
|
|
235
|
-
liquidity: bigint;
|
|
236
|
-
feeGrowthInside0LastX128: bigint;
|
|
237
|
-
feeGrowthInside1LastX128: bigint;
|
|
238
|
-
tokensOwed0: bigint;
|
|
239
|
-
tokensOwed1: bigint;
|
|
240
|
-
}, Error>>;
|
|
241
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
242
|
-
} | {
|
|
243
|
-
position: {
|
|
244
|
-
tokenId: string | undefined;
|
|
245
|
-
pool: string;
|
|
246
|
-
feeGrowthInside0LastX128: bigint;
|
|
247
|
-
feeGrowthInside1LastX128: bigint;
|
|
248
|
-
liquidity: bigint;
|
|
249
|
-
nonce: bigint;
|
|
250
|
-
operator: string;
|
|
251
|
-
tickLower: number;
|
|
252
|
-
tickUpper: number;
|
|
253
|
-
token0: string;
|
|
254
|
-
token1: string;
|
|
255
|
-
tokensOwed0: bigint;
|
|
256
|
-
tokensOwed1: bigint;
|
|
257
|
-
} | undefined;
|
|
258
|
-
data: undefined;
|
|
259
|
-
error: null;
|
|
260
|
-
isError: false;
|
|
261
|
-
isPending: true;
|
|
262
|
-
isLoadingError: false;
|
|
263
|
-
isRefetchError: false;
|
|
264
|
-
isSuccess: false;
|
|
265
|
-
status: "pending";
|
|
266
|
-
dataUpdatedAt: number;
|
|
267
|
-
errorUpdatedAt: number;
|
|
268
|
-
failureCount: number;
|
|
269
|
-
failureReason: Error | null;
|
|
270
|
-
errorUpdateCount: number;
|
|
271
|
-
isFetched: boolean;
|
|
272
|
-
isFetchedAfterMount: boolean;
|
|
273
|
-
isFetching: boolean;
|
|
274
|
-
isLoading: boolean;
|
|
275
|
-
isInitialLoading: boolean;
|
|
276
|
-
isPaused: boolean;
|
|
277
|
-
isPlaceholderData: boolean;
|
|
278
|
-
isRefetching: boolean;
|
|
279
|
-
isStale: boolean;
|
|
280
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
281
|
-
nonce: bigint;
|
|
282
|
-
operator: string;
|
|
283
|
-
token0: string;
|
|
284
|
-
token1: string;
|
|
285
|
-
deployer: string;
|
|
286
|
-
tickLower: bigint;
|
|
287
|
-
tickUpper: bigint;
|
|
288
|
-
liquidity: bigint;
|
|
289
|
-
feeGrowthInside0LastX128: bigint;
|
|
290
|
-
feeGrowthInside1LastX128: bigint;
|
|
291
|
-
tokensOwed0: bigint;
|
|
292
|
-
tokensOwed1: bigint;
|
|
293
|
-
}, Error>>;
|
|
294
|
-
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
295
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare function useFetchPositions({ account, chainId, }: {
|
|
2
|
-
account?: string;
|
|
3
|
-
chainId?: number;
|
|
4
|
-
}): {
|
|
5
|
-
isError: boolean;
|
|
6
|
-
isLoading: boolean;
|
|
7
|
-
refetchError: () => void;
|
|
8
|
-
positions: {
|
|
9
|
-
tokenId: number;
|
|
10
|
-
pool: string;
|
|
11
|
-
feeGrowthInside0LastX128: bigint;
|
|
12
|
-
feeGrowthInside1LastX128: bigint;
|
|
13
|
-
liquidity: bigint;
|
|
14
|
-
nonce: bigint;
|
|
15
|
-
operator: string;
|
|
16
|
-
tickLower: bigint;
|
|
17
|
-
tickUpper: bigint;
|
|
18
|
-
token0: string;
|
|
19
|
-
token1: string;
|
|
20
|
-
tokensOwed0: bigint;
|
|
21
|
-
tokensOwed1: bigint;
|
|
22
|
-
}[];
|
|
23
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import JSBI from 'jsbi';
|
|
2
|
-
import { TokenInfo } from '../../../../hooks/Token';
|
|
3
|
-
import { Price } from '../../../../utils/fractions';
|
|
4
|
-
import { ChartEntry } from '../components/LiquidityChartRangeInput/types';
|
|
5
|
-
export interface TickProcessed {
|
|
6
|
-
tick: number;
|
|
7
|
-
liquidityActive: JSBI;
|
|
8
|
-
liquidityNet: JSBI;
|
|
9
|
-
price0: string;
|
|
10
|
-
sdkPrice: Price;
|
|
11
|
-
}
|
|
12
|
-
export interface FetchTicks {
|
|
13
|
-
ticks: Array<{
|
|
14
|
-
id: string;
|
|
15
|
-
liquidityNet: string;
|
|
16
|
-
poolAddress?: string;
|
|
17
|
-
price0: string;
|
|
18
|
-
price1: string;
|
|
19
|
-
tickIdx: string;
|
|
20
|
-
}> | undefined | null;
|
|
21
|
-
isLoading: boolean;
|
|
22
|
-
isError: boolean;
|
|
23
|
-
refetch: () => void;
|
|
24
|
-
}
|
|
25
|
-
export declare function usePoolActiveLiquidityChartData({ tickCurrent, liquidity, fetchTicks, token0, token1, }: {
|
|
26
|
-
tickCurrent: number | undefined;
|
|
27
|
-
liquidity: number | undefined;
|
|
28
|
-
fetchTicks?: FetchTicks;
|
|
29
|
-
token0: TokenInfo | undefined;
|
|
30
|
-
token1: TokenInfo | undefined;
|
|
31
|
-
}): {
|
|
32
|
-
hidden: boolean;
|
|
33
|
-
isLoading: boolean;
|
|
34
|
-
error: boolean;
|
|
35
|
-
data: TickProcessed[] | undefined;
|
|
36
|
-
formattedData: ChartEntry[] | undefined;
|
|
37
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
import { BigintIsh, Currency, Token } from '../sdks/sdk-core';
|
|
3
|
-
import { FeeAmount, Pool } from '../sdks/v3-sdk';
|
|
4
|
-
export declare class PoolCache {
|
|
5
|
-
private static MAX_ENTRIES;
|
|
6
|
-
private static pools;
|
|
7
|
-
private static addresses;
|
|
8
|
-
static getPoolAddress(factoryAddress: string, tokenA: Token, tokenB: Token, fee: FeeAmount, chainId: ChainId): string;
|
|
9
|
-
static getPool(tokenA: Token, tokenB: Token, fee: FeeAmount, sqrtPriceX96: BigintIsh, liquidity: BigintIsh, tick: number): Pool;
|
|
10
|
-
}
|
|
11
|
-
export declare enum PoolState {
|
|
12
|
-
LOADING = 0,
|
|
13
|
-
NOT_EXISTS = 1,
|
|
14
|
-
EXISTS = 2,
|
|
15
|
-
INVALID = 3
|
|
16
|
-
}
|
|
17
|
-
export declare function usePools(poolKeys: [
|
|
18
|
-
Currency | undefined,
|
|
19
|
-
Currency | undefined,
|
|
20
|
-
FeeAmount | undefined
|
|
21
|
-
][]): [PoolState, Pool | null][];
|
|
22
|
-
export declare function usePool(currencyA: Currency | undefined, currencyB: Currency | undefined, feeAmount: FeeAmount | undefined): [PoolState, Pool | null];
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
|
2
|
-
export declare function useRemoveAlgebraLiquidity(): import("@tanstack/react-query").UseMutationResult<import("../../../../hooks/Submission/types").ExecutionResult | undefined, Error, {
|
|
3
|
-
chainId?: number;
|
|
4
|
-
tokenId?: number | string;
|
|
5
|
-
amount0Min: string;
|
|
6
|
-
amount1Min: string;
|
|
7
|
-
newLiquidity: string;
|
|
8
|
-
collectOptions: {
|
|
9
|
-
expectedCurrencyOwed0: BigNumber;
|
|
10
|
-
expectedCurrencyOwed1: BigNumber;
|
|
11
|
-
recipient: string;
|
|
12
|
-
};
|
|
13
|
-
successBack?: () => void;
|
|
14
|
-
}, unknown>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { TokenInfo } from '../../../../hooks/Token';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { Price } from '../../../../utils/fractions';
|
|
4
|
-
export declare function useSetRange({ tickCurrent, token0, token1, sorted, tickSpacing, price, }: {
|
|
5
|
-
tickCurrent: number | undefined;
|
|
6
|
-
token0: TokenInfo | undefined;
|
|
7
|
-
token1: TokenInfo | undefined;
|
|
8
|
-
sorted: boolean;
|
|
9
|
-
tickSpacing: number;
|
|
10
|
-
price?: Price;
|
|
11
|
-
}): {
|
|
12
|
-
ticksAtLimit: {
|
|
13
|
-
LOWER: boolean;
|
|
14
|
-
UPPER: boolean;
|
|
15
|
-
};
|
|
16
|
-
tickLower: number;
|
|
17
|
-
tickUpper: number;
|
|
18
|
-
priceLower: Price | undefined;
|
|
19
|
-
priceUpper: Price | undefined;
|
|
20
|
-
leftRangeTypedValue: string | boolean;
|
|
21
|
-
rightRangeTypedValue: string | boolean;
|
|
22
|
-
invalidRange: boolean;
|
|
23
|
-
outOfRange: boolean;
|
|
24
|
-
getDecrementLower: () => string;
|
|
25
|
-
getIncrementLower: () => string;
|
|
26
|
-
getDecrementUpper: () => string;
|
|
27
|
-
getIncrementUpper: () => string;
|
|
28
|
-
handleSetFullRange: () => void;
|
|
29
|
-
handleRateToggle: () => void;
|
|
30
|
-
onLeftRangeInput: React.Dispatch<React.SetStateAction<string | boolean>>;
|
|
31
|
-
onRightRangeInput: React.Dispatch<React.SetStateAction<string | boolean>>;
|
|
32
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
export declare function useSwapTaxes(inputTokenAddress?: string, outputTokenAddress?: string, tokenChainId?: ChainId): {
|
|
3
|
-
inputTax: import("../../../../utils/fractions").Percent;
|
|
4
|
-
outputTax: import("../../../../utils/fractions").Percent;
|
|
5
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Actions } from '../reducer';
|
|
2
|
-
export declare function useV3MintActionHandlers({ noLiquidity, dispatch, }: {
|
|
3
|
-
noLiquidity: boolean | undefined;
|
|
4
|
-
dispatch: React.Dispatch<Actions>;
|
|
5
|
-
}): {
|
|
6
|
-
onFieldAInput: (typedValue: string) => void;
|
|
7
|
-
onFieldBInput: (typedValue: string) => void;
|
|
8
|
-
onLeftRangeInput: (typedValue: string) => void;
|
|
9
|
-
onRightRangeInput: (typedValue: string) => void;
|
|
10
|
-
onStartPriceInput: (typedValue: string) => void;
|
|
11
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ChainId, Currency, CurrencyAmount } from '../sdks/sdk-core';
|
|
2
|
-
import { Pool } from '../sdks/v3-sdk';
|
|
3
|
-
export declare function useV3PositionFees({ chainId, pool, tokenId, asWETH, }: {
|
|
4
|
-
chainId: ChainId;
|
|
5
|
-
pool?: Pool;
|
|
6
|
-
tokenId: string;
|
|
7
|
-
asWETH: boolean;
|
|
8
|
-
}): [CurrencyAmount<Currency>, CurrencyAmount<Currency>] | [undefined, undefined];
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ChainId } from '@dodoex/api';
|
|
2
|
-
import { PositionDetails } from '../types/position';
|
|
3
|
-
interface UseV3PositionsResults {
|
|
4
|
-
loading: boolean;
|
|
5
|
-
positions?: PositionDetails[];
|
|
6
|
-
}
|
|
7
|
-
interface UseV3PositionResults {
|
|
8
|
-
loading: boolean;
|
|
9
|
-
position?: PositionDetails;
|
|
10
|
-
}
|
|
11
|
-
export declare function useV3PositionFromTokenId(tokenId: string | undefined, chainId: ChainId): UseV3PositionResults;
|
|
12
|
-
export declare function useV3Positions(account: string | null | undefined, chainId: ChainId): UseV3PositionsResults;
|
|
13
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SupportedChainsType } from './chains';
|
|
2
|
-
type AddressMap = {
|
|
3
|
-
[chainId: number]: string;
|
|
4
|
-
};
|
|
5
|
-
type ChainAddresses = {
|
|
6
|
-
v3CoreFactoryAddress: string;
|
|
7
|
-
nonfungiblePositionManagerAddress?: string;
|
|
8
|
-
};
|
|
9
|
-
export declare const CHAIN_TO_ADDRESSES_MAP: Record<SupportedChainsType, ChainAddresses>;
|
|
10
|
-
export declare const V3_CORE_FACTORY_ADDRESSES: AddressMap;
|
|
11
|
-
export declare const NONFUNGIBLE_POSITION_MANAGER_ADDRESSES: AddressMap;
|
|
12
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import JSBI from 'jsbi';
|
|
2
|
-
export type BigintIsh = JSBI | string | number;
|
|
3
|
-
export declare enum TradeType {
|
|
4
|
-
EXACT_INPUT = 0,
|
|
5
|
-
EXACT_OUTPUT = 1
|
|
6
|
-
}
|
|
7
|
-
export declare enum Rounding {
|
|
8
|
-
ROUND_DOWN = 0,
|
|
9
|
-
ROUND_HALF_UP = 1,
|
|
10
|
-
ROUND_UP = 2
|
|
11
|
-
}
|
|
12
|
-
export declare const MaxUint256: JSBI;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { Currency } from './currency';
|
|
2
|
-
import { Token } from './token';
|
|
3
|
-
/**
|
|
4
|
-
* A currency is any fungible financial instrument, including Ether, all ERC20 tokens, and other chain-native currencies
|
|
5
|
-
*/
|
|
6
|
-
export declare abstract class BaseCurrency {
|
|
7
|
-
/**
|
|
8
|
-
* Returns whether the currency is native to the chain and must be wrapped (e.g. Ether)
|
|
9
|
-
*/
|
|
10
|
-
abstract readonly isNative: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Returns whether the currency is a token that is usable in Uniswap without wrapping
|
|
13
|
-
*/
|
|
14
|
-
abstract readonly isToken: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* The chain ID on which this currency resides
|
|
17
|
-
*/
|
|
18
|
-
readonly chainId: number;
|
|
19
|
-
/**
|
|
20
|
-
* The decimals used in representing currency amounts
|
|
21
|
-
*/
|
|
22
|
-
readonly decimals: number;
|
|
23
|
-
/**
|
|
24
|
-
* The symbol of the currency, i.e. a short textual non-unique identifier
|
|
25
|
-
*/
|
|
26
|
-
readonly symbol?: string;
|
|
27
|
-
/**
|
|
28
|
-
* The name of the currency, i.e. a descriptive textual non-unique identifier
|
|
29
|
-
*/
|
|
30
|
-
readonly name?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Constructs an instance of the base class `BaseCurrency`.
|
|
33
|
-
* @param chainId the chain ID on which this currency resides
|
|
34
|
-
* @param decimals decimals of the currency
|
|
35
|
-
* @param symbol symbol of the currency
|
|
36
|
-
* @param name of the currency
|
|
37
|
-
*/
|
|
38
|
-
protected constructor(chainId: number, decimals: number, symbol?: string, name?: string);
|
|
39
|
-
/**
|
|
40
|
-
* Returns whether this currency is functionally equivalent to the other currency
|
|
41
|
-
* @param other the other currency
|
|
42
|
-
*/
|
|
43
|
-
abstract equals(other: Currency): boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Return the wrapped version of this currency that can be used with the Uniswap contracts. Currencies must
|
|
46
|
-
* implement this to be used in Uniswap
|
|
47
|
-
*/
|
|
48
|
-
abstract get wrapped(): Token;
|
|
49
|
-
}
|