@dodoex/widgets 3.0.1 → 3.0.2-bartio.2
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/e4364db573253fd1.svg +9 -0
- package/dist/{helper-LJegizdE.js → helper-BhZWILyg.js} +1 -1
- package/dist/{helper-zQicf0fu.cjs → helper-D6LlnQ1M.cjs} +1 -1
- package/dist/{index-ZskUV9vk.cjs → index-7x0JpwJJ.cjs} +1 -1
- package/dist/index-BduZdyfz.cjs +31 -0
- package/dist/{index-BmHKl7-Q.js → index-CAmXGIvF.js} +1 -1
- package/dist/{index-BWFaXNEh.cjs → index-DDsCP5_a.cjs} +1 -1
- package/dist/index-Dl7FV9-C.js +31 -0
- package/dist/{index-D8ohA3GF.js → index-h5hit_bx.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/Swap/components/ReviewDialog.d.ts +2 -1
- package/dist/types/components/Swap/components/TokenCard/NumberInput.d.ts +1 -0
- package/dist/types/components/Swap/components/TokenCard/index.d.ts +5 -2
- package/dist/types/components/Swap/index.d.ts +2 -1
- package/dist/types/components/Widget/index.d.ts +3 -0
- package/dist/types/constants/address.d.ts +1 -0
- package/dist/types/constants/chains.d.ts +3 -0
- package/dist/types/hooks/Submission/types.d.ts +4 -0
- package/dist/types/hooks/usePoolTokenSort.d.ts +24 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/providers/useInitContractRequest.d.ts +2 -1
- package/dist/types/router/types.d.ts +2 -1
- package/dist/types/utils/address.d.ts +43 -1
- package/dist/types/utils/fractions/fraction.d.ts +24 -0
- package/dist/types/utils/fractions/index.d.ts +3 -0
- package/dist/types/utils/fractions/percent.d.ts +14 -0
- package/dist/types/utils/fractions/price.d.ts +29 -0
- package/dist/types/utils/fractions/types.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/addresses.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/constants.d.ts +11 -2
- package/dist/types/widgets/PoolWidget/Algebra/AddLiquidity.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/Algebra/AlgebraPositionManage.d.ts +11 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/Badge/RangeBadge.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/ClaimButton.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/InRangeDot.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/InputStepCounter.d.ts +16 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/Area.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/AxisBottom.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/Brush.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/Chart.d.ts +2 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/Line.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/Zoom.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/hooks.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/index.d.ts +17 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/svg.d.ts +22 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/types.d.ts +50 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/usePrevious.d.ts +1 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/utils.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/MyLiquidity.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/PositionPreview.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/PositionSelectedRangePreview.d.ts +11 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/RangeSelector.d.ts +20 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/RateToggle.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/RemoveButton.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/ReviewModal.d.ts +18 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/TokenAndEtherscan.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/TokenPairSelect.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/shared.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/Algebra/components/widgets.d.ts +56 -0
- package/dist/types/widgets/PoolWidget/Algebra/constants/misc.d.ts +17 -0
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useAddAlgebraLiquidity.d.ts +15 -0
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useAlgebraAmounts.d.ts +19 -0
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useAlgebraPair.d.ts +59 -0
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useAlgebraPositionFees.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useClaimAlgebraFees.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useContract.d.ts +2 -0
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useFetchPositionFromTokenId.d.ts +295 -0
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useFetchPositions.d.ts +23 -0
- package/dist/types/widgets/PoolWidget/Algebra/hooks/usePoolTickData.d.ts +20 -0
- package/dist/types/widgets/PoolWidget/Algebra/hooks/usePools.d.ts +22 -0
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useRemoveAlgebraLiquidity.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useSetRange.d.ts +32 -0
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useSwapTaxes.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useV3MintActionHandlers.d.ts +11 -0
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useV3PositionFees.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/Algebra/hooks/useV3Positions.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/addresses.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/chains.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/constants.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/baseCurrency.d.ts +49 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/currency.d.ts +3 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/fractions/currencyAmount.d.ts +32 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/fractions/fraction.d.ts +24 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/fractions/index.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/fractions/percent.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/fractions/price.d.ts +38 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/index.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/nativeCurrency.d.ts +16 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/nativeCurrencyClass.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/token.d.ts +48 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/index.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/utils/computePriceImpact.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/utils/index.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/utils/sortedInsert.d.ts +1 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/utils/sqrt.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/utils/validateAndParseAddress.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/constants.d.ts +23 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/entities/index.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/entities/pool.d.ts +81 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/entities/position.d.ts +131 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/entities/route.d.ts +26 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/entities/tick.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/entities/tickDataProvider.d.ts +31 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/entities/tickListDataProvider.d.ts +15 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/entities/trade.d.ts +220 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/index.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/internalConstants.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/multicall.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/nonfungiblePositionManager.d.ts +159 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/payments.d.ts +24 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/quoter.d.ts +37 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/selfPermit.d.ts +25 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/staker.d.ts +101 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/swapRouter.d.ts +51 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/calldata.d.ts +20 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/computePoolAddress.d.ts +21 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/encodeRouteToPath.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/encodeSqrtRatioX96.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/fullMath.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/index.d.ts +18 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/isSorted.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/liquidityMath.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/maxLiquidityForAmounts.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/mostSignificantBit.d.ts +2 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/nearestUsableTick.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/position.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/priceTickConversions.d.ts +15 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/sqrtPriceMath.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/swapMath.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/tickLibrary.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/tickList.d.ts +23 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/tickMath.d.ts +34 -0
- package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/v3swap.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/Algebra/types/position.d.ts +18 -0
- package/dist/types/widgets/PoolWidget/Algebra/types.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/Algebra/utils/calldata.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/Algebra/utils/computeSurroundingTicks.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/Algebra/utils/constants.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/Algebra/utils/encodeSqrtRatioX96.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/Algebra/utils/formatTickPrice.d.ts +1 -0
- package/dist/types/widgets/PoolWidget/Algebra/utils/fullMath.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/Algebra/utils/getPositionAmount.d.ts +37 -0
- package/dist/types/widgets/PoolWidget/Algebra/utils/getPositionAmountWithSlippage.d.ts +22 -0
- package/dist/types/widgets/PoolWidget/Algebra/utils/getTickToPrice.d.ts +18 -0
- package/dist/types/widgets/PoolWidget/Algebra/utils/maxLiquidityForAmounts.d.ts +22 -0
- package/dist/types/widgets/PoolWidget/Algebra/utils/mostSignificantBit.d.ts +2 -0
- package/dist/types/widgets/PoolWidget/Algebra/utils/nearestUsableTick.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/Algebra/utils/slippage.d.ts +3 -0
- package/dist/types/widgets/PoolWidget/Algebra/utils/sqrt.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/Algebra/utils/sqrtPriceMath.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/Algebra/utils/tickMath.d.ts +34 -0
- package/dist/types/widgets/PoolWidget/Algebra/utils/tryParseTick.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/Algebra/utils.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/PoolApyTooltip.d.ts +1 -0
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +3 -0
- package/dist/types/widgets/PoolWidget/PoolList/index.d.ts +3 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/types.d.ts +2 -0
- package/dist/types/widgets/PoolWidget/hooks/usePoolBalanceInfo.d.ts +4 -3
- package/dist/types/widgets/PoolWidget/hooks/usePoolDetail.d.ts +10 -0
- package/package.json +4 -4
- package/dist/index-869Q0ubR.cjs +0 -31
- package/dist/index-CB98yk4F.js +0 -31
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import JSBI from 'jsbi';
|
|
2
|
+
import { BigintIsh, Rounding } from './types';
|
|
3
|
+
export declare class Fraction {
|
|
4
|
+
readonly numerator: JSBI;
|
|
5
|
+
readonly denominator: JSBI;
|
|
6
|
+
constructor(numerator: BigintIsh, denominator?: BigintIsh);
|
|
7
|
+
private static tryParseFraction;
|
|
8
|
+
get quotient(): JSBI;
|
|
9
|
+
get remainder(): Fraction;
|
|
10
|
+
invert(): Fraction;
|
|
11
|
+
add(other: Fraction | BigintIsh): Fraction;
|
|
12
|
+
subtract(other: Fraction | BigintIsh): Fraction;
|
|
13
|
+
lessThan(other: Fraction | BigintIsh): boolean;
|
|
14
|
+
equalTo(other: Fraction | BigintIsh): boolean;
|
|
15
|
+
greaterThan(other: Fraction | BigintIsh): boolean;
|
|
16
|
+
multiply(other: Fraction | BigintIsh): Fraction;
|
|
17
|
+
divide(other: Fraction | BigintIsh): Fraction;
|
|
18
|
+
toSignificant(significantDigits: number, format?: object, rounding?: Rounding): string;
|
|
19
|
+
toFixed(decimalPlaces: number, format?: object, rounding?: Rounding): string;
|
|
20
|
+
/**
|
|
21
|
+
* Helper method for converting any super class back to a fraction
|
|
22
|
+
*/
|
|
23
|
+
get asFraction(): Fraction;
|
|
24
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BigintIsh, Rounding } from './types';
|
|
2
|
+
import { Fraction } from './fraction';
|
|
3
|
+
export declare class Percent extends Fraction {
|
|
4
|
+
/**
|
|
5
|
+
* This boolean prevents a fraction from being interpreted as a Percent
|
|
6
|
+
*/
|
|
7
|
+
readonly isPercent: true;
|
|
8
|
+
add(other: Fraction | BigintIsh): Percent;
|
|
9
|
+
subtract(other: Fraction | BigintIsh): Percent;
|
|
10
|
+
multiply(other: Fraction | BigintIsh): Percent;
|
|
11
|
+
divide(other: Fraction | BigintIsh): Percent;
|
|
12
|
+
toSignificant(significantDigits?: number, format?: object, rounding?: Rounding): string;
|
|
13
|
+
toFixed(decimalPlaces?: number, format?: object, rounding?: Rounding): string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BigintIsh, Rounding } from './types';
|
|
2
|
+
import { Fraction } from './fraction';
|
|
3
|
+
import { TokenInfo } from '../../hooks/Token';
|
|
4
|
+
export declare class Price extends Fraction {
|
|
5
|
+
readonly baseCurrency: TokenInfo;
|
|
6
|
+
readonly quoteCurrency: TokenInfo;
|
|
7
|
+
readonly scalar: Fraction;
|
|
8
|
+
/**
|
|
9
|
+
* Construct a price, either with the base and quote currency amount, or the
|
|
10
|
+
* @param args
|
|
11
|
+
*/
|
|
12
|
+
constructor(...args: [TokenInfo, TokenInfo, BigintIsh, BigintIsh]);
|
|
13
|
+
/**
|
|
14
|
+
* Flip the price, switching the base and quote currency
|
|
15
|
+
*/
|
|
16
|
+
invert(): Price;
|
|
17
|
+
/**
|
|
18
|
+
* Multiply the price by another price, returning a new price. The other price must have the same base currency as this price's quote currency
|
|
19
|
+
* @param other the other price
|
|
20
|
+
*/
|
|
21
|
+
multiply(other: Price): Price;
|
|
22
|
+
/**
|
|
23
|
+
* Get the value scaled by decimals for formatting
|
|
24
|
+
* @private
|
|
25
|
+
*/
|
|
26
|
+
private get adjustedForDecimals();
|
|
27
|
+
toSignificant(significantDigits?: number, format?: object, rounding?: Rounding): string;
|
|
28
|
+
toFixed(decimalPlaces?: number, format?: object, rounding?: Rounding): string;
|
|
29
|
+
}
|
|
@@ -3,7 +3,15 @@ type AddressMap = {
|
|
|
3
3
|
[chainId: number]: string;
|
|
4
4
|
};
|
|
5
5
|
type ChainAddresses = {
|
|
6
|
+
/**
|
|
7
|
+
* UniswapV3Factory
|
|
8
|
+
* @see https://taikoscan.io/address/0x78172691DD3B8ADa7aEbd9bFfB487FB11D735DB2?tab=contract#code
|
|
9
|
+
*/
|
|
6
10
|
v3CoreFactoryAddress: string;
|
|
11
|
+
/**
|
|
12
|
+
* NonfungiblePositionManager
|
|
13
|
+
* @see https://taikoscan.io/address/0x2623281DdcC34A73a9e8898f2c57A32A860903f1?tab=contract#code
|
|
14
|
+
*/
|
|
7
15
|
nonfungiblePositionManagerAddress?: string;
|
|
8
16
|
};
|
|
9
17
|
export declare const CHAIN_TO_ADDRESSES_MAP: Record<SupportedChainsType, ChainAddresses>;
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { ChainId } from '../sdk-core';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Taiko UniswapV3Factory
|
|
4
|
+
* @see https://taikoscan.io/address/0x78172691DD3B8ADa7aEbd9bFfB487FB11D735DB2?tab=contract#code
|
|
5
|
+
*/
|
|
6
|
+
export declare const FACTORY_ADDRESS = "0x78172691DD3B8ADa7aEbd9bFfB487FB11D735DB2";
|
|
3
7
|
export declare const ADDRESS_ZERO = "0x0000000000000000000000000000000000000000";
|
|
4
|
-
export declare const POOL_INIT_CODE_HASH = "
|
|
8
|
+
export declare const POOL_INIT_CODE_HASH = "0x5ccd5621c1bb9e44ce98cef8b90d31eb2423dec3793b6239232cefae976936ea";
|
|
9
|
+
/**
|
|
10
|
+
* Taiko POOL_INIT_CODE_HASH
|
|
11
|
+
* @see PoolAddress.sol
|
|
12
|
+
* @see https://taikoscan.io/address/0x202bEE65B164aEcBb6A2318438bf46bEF14E1072?tab=contract#code#F12#L6
|
|
13
|
+
*/
|
|
5
14
|
export declare function poolInitCodeHash(chainId?: ChainId): string;
|
|
6
15
|
/**
|
|
7
16
|
* The default factory enabled fee amounts, denominated in hundredths of bips.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TokenInfo } from '../../../hooks/Token';
|
|
2
|
+
import { ChainId } from '@dodoex/api';
|
|
3
|
+
export interface AlgebraPositionManageProps {
|
|
4
|
+
chainId: ChainId;
|
|
5
|
+
baseToken: TokenInfo;
|
|
6
|
+
quoteToken: TokenInfo;
|
|
7
|
+
tokenId: string;
|
|
8
|
+
border?: boolean;
|
|
9
|
+
successBack?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const AlgebraPositionManage: ({ chainId, baseToken, quoteToken, tokenId, border, successBack: successBackProps, }: AlgebraPositionManageProps) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ChainId } from '@dodoex/api';
|
|
2
|
+
export interface ClaimButtonProps {
|
|
3
|
+
chainId: ChainId;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
onConfirm: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const ClaimButton: ({ chainId, disabled, isLoading, onConfirm, }: ClaimButtonProps) => JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface StepCounterProps {
|
|
3
|
+
value: string;
|
|
4
|
+
onUserInput: (value: string) => void;
|
|
5
|
+
decrement: () => string;
|
|
6
|
+
increment: () => string;
|
|
7
|
+
decrementDisabled?: boolean;
|
|
8
|
+
incrementDisabled?: boolean;
|
|
9
|
+
label?: string;
|
|
10
|
+
locked?: boolean;
|
|
11
|
+
title: ReactNode;
|
|
12
|
+
tokenA?: string;
|
|
13
|
+
tokenB?: string;
|
|
14
|
+
}
|
|
15
|
+
declare const StepCounter: ({ value, decrement, increment, decrementDisabled, incrementDisabled, locked, onUserInput, title, tokenA, tokenB, }: StepCounterProps) => JSX.Element;
|
|
16
|
+
export default StepCounter;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ScaleLinear } from 'd3';
|
|
2
|
+
import { ChartEntry } from './types';
|
|
3
|
+
export declare const Area: ({ series, xScale, yScale, xValue, yValue, fill, }: {
|
|
4
|
+
series: ChartEntry[];
|
|
5
|
+
xScale: ScaleLinear<number, number>;
|
|
6
|
+
yScale: ScaleLinear<number, number>;
|
|
7
|
+
xValue: (d: ChartEntry) => number;
|
|
8
|
+
yValue: (d: ChartEntry) => number;
|
|
9
|
+
fill?: string;
|
|
10
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ScaleLinear } from 'd3';
|
|
2
|
+
export declare const Brush: ({ id, xScale, interactive, brushLabelValue, brushExtent, setBrushExtent, innerWidth, innerHeight, westHandleColor, eastHandleColor, }: {
|
|
3
|
+
id: string;
|
|
4
|
+
xScale: ScaleLinear<number, number>;
|
|
5
|
+
interactive: boolean;
|
|
6
|
+
brushLabelValue: (d: "w" | "e", x: number) => string;
|
|
7
|
+
brushExtent: [number, number];
|
|
8
|
+
setBrushExtent: (extent: [number, number], mode: string | undefined) => void;
|
|
9
|
+
innerWidth: number;
|
|
10
|
+
innerHeight: number;
|
|
11
|
+
westHandleColor: string;
|
|
12
|
+
eastHandleColor: string;
|
|
13
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { LiquidityChartRangeInputProps } from './types';
|
|
2
|
+
export declare function Chart({ id, data: { series, current }, ticksAtLimit, styles, dimensions: { width, height }, margins, interactive, brushDomain, brushLabels, onBrushDomainChange, zoomLevels, }: LiquidityChartRangeInputProps): JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ScaleLinear, ZoomTransform } from 'd3';
|
|
2
|
+
import { ZoomLevels } from './types';
|
|
3
|
+
export default function Zoom({ svg, xScale, setZoom, width, height, resetBrush, showResetButton, zoomLevels, }: {
|
|
4
|
+
svg: SVGElement | null;
|
|
5
|
+
xScale: ScaleLinear<number, number>;
|
|
6
|
+
setZoom: (transform: ZoomTransform) => void;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
resetBrush: () => void;
|
|
10
|
+
showResetButton: boolean;
|
|
11
|
+
zoomLevels: ZoomLevels;
|
|
12
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Currency } from '../../sdks/sdk-core';
|
|
2
|
+
import { FeeAmount } from '../../sdks/v3-sdk';
|
|
3
|
+
import { ChartEntry } from './types';
|
|
4
|
+
export declare function useDensityChartData({ currencyA, currencyB, feeAmount, }: {
|
|
5
|
+
currencyA?: Currency;
|
|
6
|
+
currencyB?: Currency;
|
|
7
|
+
feeAmount?: FeeAmount;
|
|
8
|
+
}): {
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
error: any;
|
|
11
|
+
formattedData: ChartEntry[] | undefined;
|
|
12
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Currency, Price } from '../../sdks/sdk-core';
|
|
2
|
+
import { FeeAmount } from '../../sdks/v3-sdk';
|
|
3
|
+
import { Bound } from '../../types';
|
|
4
|
+
export default function LiquidityChartRangeInput({ currencyA, currencyB, feeAmount, ticksAtLimit, price, priceLower, priceUpper, onLeftRangeInput, onRightRangeInput, interactive, }: {
|
|
5
|
+
currencyA?: Currency;
|
|
6
|
+
currencyB?: Currency;
|
|
7
|
+
feeAmount?: FeeAmount;
|
|
8
|
+
ticksAtLimit: {
|
|
9
|
+
[bound in Bound]?: boolean | undefined;
|
|
10
|
+
};
|
|
11
|
+
price?: number;
|
|
12
|
+
priceLower?: Price<Currency, Currency>;
|
|
13
|
+
priceUpper?: Price<Currency, Currency>;
|
|
14
|
+
onLeftRangeInput: (typedValue: string) => void;
|
|
15
|
+
onRightRangeInput: (typedValue: string) => void;
|
|
16
|
+
interactive: boolean;
|
|
17
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generates an SVG path for the east brush handle.
|
|
3
|
+
* Apply `scale(-1, 1)` to generate west brush handle.
|
|
4
|
+
*
|
|
5
|
+
* |```````\
|
|
6
|
+
* | | | |
|
|
7
|
+
* |______/
|
|
8
|
+
* |
|
|
9
|
+
* |
|
|
10
|
+
* |
|
|
11
|
+
* |
|
|
12
|
+
* |
|
|
13
|
+
*
|
|
14
|
+
* https://medium.com/@dennismphil/one-side-rounded-rectangle-using-svg-fb31cf318d90
|
|
15
|
+
*/
|
|
16
|
+
export declare const brushHandlePath: (height: number) => string;
|
|
17
|
+
export declare const brushHandleAccentPath: () => string;
|
|
18
|
+
export declare const OffScreenHandle: ({ color, size, margin, }: {
|
|
19
|
+
color: string;
|
|
20
|
+
size?: number;
|
|
21
|
+
margin?: number;
|
|
22
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Bound } from '../../types';
|
|
2
|
+
export interface ChartEntry {
|
|
3
|
+
activeLiquidity: number;
|
|
4
|
+
price0: number;
|
|
5
|
+
}
|
|
6
|
+
interface Dimensions {
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
}
|
|
10
|
+
interface Margins {
|
|
11
|
+
top: number;
|
|
12
|
+
right: number;
|
|
13
|
+
bottom: number;
|
|
14
|
+
left: number;
|
|
15
|
+
}
|
|
16
|
+
export interface ZoomLevels {
|
|
17
|
+
initialMin: number;
|
|
18
|
+
initialMax: number;
|
|
19
|
+
min: number;
|
|
20
|
+
max: number;
|
|
21
|
+
}
|
|
22
|
+
export interface LiquidityChartRangeInputProps {
|
|
23
|
+
id?: string;
|
|
24
|
+
data: {
|
|
25
|
+
series: ChartEntry[];
|
|
26
|
+
current: number;
|
|
27
|
+
};
|
|
28
|
+
ticksAtLimit: {
|
|
29
|
+
[bound in Bound]?: boolean | undefined;
|
|
30
|
+
};
|
|
31
|
+
styles: {
|
|
32
|
+
area: {
|
|
33
|
+
selection: string;
|
|
34
|
+
};
|
|
35
|
+
brush: {
|
|
36
|
+
handle: {
|
|
37
|
+
west: string;
|
|
38
|
+
east: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
dimensions: Dimensions;
|
|
43
|
+
margins: Margins;
|
|
44
|
+
interactive?: boolean;
|
|
45
|
+
brushLabels: (d: 'w' | 'e', x: number) => string;
|
|
46
|
+
brushDomain?: [number, number];
|
|
47
|
+
onBrushDomainChange: (domain: [number, number], mode: string | undefined) => void;
|
|
48
|
+
zoomLevels: ZoomLevels;
|
|
49
|
+
}
|
|
50
|
+
export {};
|
package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/usePrevious.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function usePrevious<T>(value: T): T | undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BoxProps } from '@dodoex/components';
|
|
2
|
+
import { TokenInfo } from '../../../../hooks/Token';
|
|
3
|
+
export default function MyLiquidity({ border, token0, token1, amount0, amount1, sx, }: {
|
|
4
|
+
border?: boolean;
|
|
5
|
+
token0: TokenInfo | undefined;
|
|
6
|
+
token1: TokenInfo | undefined;
|
|
7
|
+
amount0: string | undefined;
|
|
8
|
+
amount1: string | undefined;
|
|
9
|
+
sx?: BoxProps['sx'];
|
|
10
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { TokenInfo } from '../../../../hooks/Token';
|
|
3
|
+
export declare const PositionPreview: ({ token0, token1, liquidity, amount0, amount1, price, tickLower, tickUpper, title, inRange, }: {
|
|
4
|
+
token0: TokenInfo | undefined;
|
|
5
|
+
token1: TokenInfo | undefined;
|
|
6
|
+
liquidity: number | undefined;
|
|
7
|
+
amount0: string | undefined;
|
|
8
|
+
amount1: string | undefined;
|
|
9
|
+
title?: ReactNode;
|
|
10
|
+
price: string | undefined;
|
|
11
|
+
tickLower: number | undefined;
|
|
12
|
+
tickUpper: number | undefined;
|
|
13
|
+
inRange: boolean;
|
|
14
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { TokenInfo } from '../../../../hooks/Token';
|
|
3
|
+
export declare const PositionSelectedRangePreview: ({ token0, token1, token0Price, tickLower, tickUpper, title, border, }: {
|
|
4
|
+
token0: TokenInfo;
|
|
5
|
+
token1: TokenInfo;
|
|
6
|
+
token0Price: string | undefined;
|
|
7
|
+
tickLower: number | undefined;
|
|
8
|
+
tickUpper: number | undefined;
|
|
9
|
+
title?: ReactNode;
|
|
10
|
+
border?: boolean;
|
|
11
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Bound } from '../types';
|
|
2
|
+
import { TokenInfo } from '../../../../hooks/Token';
|
|
3
|
+
import { Price } from '../../../../utils/fractions';
|
|
4
|
+
export interface RangeSelectorProps {
|
|
5
|
+
priceLower?: Price;
|
|
6
|
+
priceUpper?: Price;
|
|
7
|
+
getDecrementLower: () => string;
|
|
8
|
+
getIncrementLower: () => string;
|
|
9
|
+
getDecrementUpper: () => string;
|
|
10
|
+
getIncrementUpper: () => string;
|
|
11
|
+
onLeftRangeInput: (typedValue: string) => void;
|
|
12
|
+
onRightRangeInput: (typedValue: string) => void;
|
|
13
|
+
tokenA?: TokenInfo | null;
|
|
14
|
+
tokenB?: TokenInfo | null;
|
|
15
|
+
ticksAtLimit: {
|
|
16
|
+
[bound in Bound]?: boolean | undefined;
|
|
17
|
+
};
|
|
18
|
+
isSorted: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare const RangeSelector: ({ priceLower, priceUpper, onLeftRangeInput, onRightRangeInput, getDecrementLower, getIncrementLower, getDecrementUpper, getIncrementUpper, tokenA, tokenB, ticksAtLimit, isSorted, }: RangeSelectorProps) => JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BoxProps } from '@dodoex/components';
|
|
2
|
+
import { TokenInfo } from '../../../../hooks/Token';
|
|
3
|
+
export interface RateToggleProps {
|
|
4
|
+
token0: TokenInfo | undefined;
|
|
5
|
+
token1: TokenInfo | undefined;
|
|
6
|
+
handleRateToggle: () => void;
|
|
7
|
+
sx?: BoxProps['sx'];
|
|
8
|
+
}
|
|
9
|
+
export declare const RateToggle: ({ token0, token1, handleRateToggle, sx, }: RateToggleProps) => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ChainId } from '@dodoex/api';
|
|
2
|
+
export interface ButtonsProps {
|
|
3
|
+
chainId: ChainId;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
removed: boolean | undefined;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
error?: React.ReactNode;
|
|
8
|
+
onConfirm: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const RemoveButton: ({ chainId, disabled, removed, isLoading, error, onConfirm, }: ButtonsProps) => JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TokenInfo } from '../../../../hooks/Token';
|
|
2
|
+
export interface ReviewModalProps {
|
|
3
|
+
on: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
onConfirm: () => void;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
token0: TokenInfo | undefined;
|
|
8
|
+
token1: TokenInfo | undefined;
|
|
9
|
+
liquidity: number | undefined;
|
|
10
|
+
amount0: string | undefined;
|
|
11
|
+
amount1: string | undefined;
|
|
12
|
+
title?: React.ReactNode;
|
|
13
|
+
price: string | undefined;
|
|
14
|
+
tickLower: number | undefined;
|
|
15
|
+
tickUpper: number | undefined;
|
|
16
|
+
inRange: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const ReviewModal: ({ on, onClose, onConfirm, loading, token0, token1, liquidity, amount0, amount1, price, tickLower, tickUpper, title, inRange, }: ReviewModalProps) => JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Actions, StateProps } from '../reducer';
|
|
2
|
+
export interface TokenPairSelectProps {
|
|
3
|
+
baseToken: StateProps['baseToken'];
|
|
4
|
+
quoteToken: StateProps['quoteToken'];
|
|
5
|
+
dispatch: React.Dispatch<Actions>;
|
|
6
|
+
}
|
|
7
|
+
export declare const TokenPairSelect: ({ baseToken, quoteToken, dispatch, }: TokenPairSelectProps) => JSX.Element;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { BoxProps } from '@dodoex/components';
|
|
2
|
+
declare const gapValues: {
|
|
3
|
+
xs: string;
|
|
4
|
+
sm: string;
|
|
5
|
+
md: string;
|
|
6
|
+
lg: string;
|
|
7
|
+
xl: string;
|
|
8
|
+
};
|
|
9
|
+
export type Gap = keyof typeof gapValues;
|
|
10
|
+
export interface YellowCardProps {
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare const Card: ({ children, sx, }: {
|
|
14
|
+
sx?: BoxProps["sx"];
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}) => JSX.Element;
|
|
17
|
+
export declare const LightCard: ({ children, border, sx, }: {
|
|
18
|
+
sx?: BoxProps["sx"];
|
|
19
|
+
border?: boolean;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
}) => JSX.Element;
|
|
22
|
+
export declare const YellowCard: ({ children }: YellowCardProps) => JSX.Element;
|
|
23
|
+
export declare function ColumnCenter({ gap, flex, children, style, }: {
|
|
24
|
+
gap?: Gap | string;
|
|
25
|
+
flex?: string;
|
|
26
|
+
children: React.ReactNode;
|
|
27
|
+
style?: BoxProps['sx'];
|
|
28
|
+
}): JSX.Element;
|
|
29
|
+
export declare function AutoColumn({ gap, justify, grow, children, style, }: {
|
|
30
|
+
gap?: Gap | string;
|
|
31
|
+
justify?: 'stretch' | 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'space-between';
|
|
32
|
+
grow?: true;
|
|
33
|
+
children: React.ReactNode;
|
|
34
|
+
style?: BoxProps['sx'];
|
|
35
|
+
}): JSX.Element;
|
|
36
|
+
export declare function Row({ gap, children, sx, }: {
|
|
37
|
+
gap?: Gap | string;
|
|
38
|
+
children: React.ReactNode;
|
|
39
|
+
sx?: BoxProps['sx'];
|
|
40
|
+
}): JSX.Element;
|
|
41
|
+
export declare function RowBetween({ children, style, }: {
|
|
42
|
+
children: React.ReactNode;
|
|
43
|
+
style?: BoxProps['sx'];
|
|
44
|
+
}): JSX.Element;
|
|
45
|
+
export declare function RowFixed({ gap, justify, children, sx, }: {
|
|
46
|
+
gap?: string;
|
|
47
|
+
justify?: string;
|
|
48
|
+
children: React.ReactNode;
|
|
49
|
+
sx?: BoxProps['sx'];
|
|
50
|
+
}): JSX.Element;
|
|
51
|
+
export declare function DynamicSection({ children, disabled, sx, }: {
|
|
52
|
+
children: React.ReactNode;
|
|
53
|
+
disabled?: boolean;
|
|
54
|
+
sx?: BoxProps['sx'];
|
|
55
|
+
}): JSX.Element;
|
|
56
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import JSBI from 'jsbi';
|
|
2
|
+
import { Percent } from '../../../../utils/fractions';
|
|
3
|
+
export declare const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
4
|
+
export declare const DEFAULT_DEADLINE_FROM_NOW: number;
|
|
5
|
+
export declare const L2_DEADLINE_FROM_NOW: number;
|
|
6
|
+
export declare const DEFAULT_TXN_DISMISS_MS = 10000;
|
|
7
|
+
export declare const L2_TXN_DISMISS_MS = 5000;
|
|
8
|
+
export declare const BIG_INT_ZERO: JSBI;
|
|
9
|
+
export declare const BIPS_BASE = 10000;
|
|
10
|
+
export declare const ONE_BIPS: Percent;
|
|
11
|
+
export declare const ALLOWED_PRICE_IMPACT_LOW: Percent;
|
|
12
|
+
export declare const ALLOWED_PRICE_IMPACT_MEDIUM: Percent;
|
|
13
|
+
export declare const ALLOWED_PRICE_IMPACT_HIGH: Percent;
|
|
14
|
+
export declare const PRICE_IMPACT_WITHOUT_FEE_CONFIRM_MIN: Percent;
|
|
15
|
+
export declare const BLOCKED_PRICE_IMPACT_NON_EXPERT: Percent;
|
|
16
|
+
export declare const ZERO_PERCENT: Percent;
|
|
17
|
+
export declare const ONE_HUNDRED_PERCENT: Percent;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useAlgebraPair } from './useAlgebraPair';
|
|
2
|
+
export declare function useAddAlgebraLiquidity(): import("@tanstack/react-query").UseMutationResult<import("../../../../hooks/Submission/types").ExecutionResult | undefined, Error, {
|
|
3
|
+
createPool?: boolean;
|
|
4
|
+
recipient?: string;
|
|
5
|
+
deployer?: string;
|
|
6
|
+
pool?: ReturnType<typeof useAlgebraPair>;
|
|
7
|
+
tokenId?: number | string;
|
|
8
|
+
amount0: string;
|
|
9
|
+
amount1: string;
|
|
10
|
+
tickLower: number;
|
|
11
|
+
tickUpper: number;
|
|
12
|
+
amount0Min: string;
|
|
13
|
+
amount1Min: string;
|
|
14
|
+
successBack?: () => void;
|
|
15
|
+
}, unknown>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TokenInfo } from '../../../../hooks/Token';
|
|
2
|
+
import JSBI from 'jsbi';
|
|
3
|
+
export declare function useAlgebraAmounts({ baseToken, quoteToken, sqrtRatioX96, tickCurrent, tickLower, tickUpper, }: {
|
|
4
|
+
baseToken: TokenInfo | undefined;
|
|
5
|
+
quoteToken: TokenInfo | undefined;
|
|
6
|
+
sqrtRatioX96: JSBI | undefined;
|
|
7
|
+
tickCurrent: number | undefined;
|
|
8
|
+
tickLower: number | undefined;
|
|
9
|
+
tickUpper: number | undefined;
|
|
10
|
+
}): {
|
|
11
|
+
readonly: boolean;
|
|
12
|
+
baseAmount: string;
|
|
13
|
+
quoteAmount: string;
|
|
14
|
+
handleChangeBaseAmount: (value: string) => void;
|
|
15
|
+
handleChangeQuoteAmount: (value: string) => void;
|
|
16
|
+
handleBlurBaseAmount: (value: string) => void;
|
|
17
|
+
handleBlurQuoteAmount: (value: string) => void;
|
|
18
|
+
reset: () => void;
|
|
19
|
+
};
|