@dodoex/widgets 3.0.1-taiko.4 → 3.0.1-taiko.6
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-Ddk4bl41.cjs → helper-B03S88Wu.cjs} +1 -1
- package/dist/{helper-DflOZcwc.js → helper-xiAFMhCM.js} +1 -1
- package/dist/{index-DfDB8vNH.js → index-9IgGSbac.js} +2 -2
- package/dist/index-C6MT-lxx.cjs +31 -0
- package/dist/{index--x-S0zC1.cjs → index-CjKGhYkh.cjs} +6 -6
- package/dist/index-DYOSNFPz.js +78 -0
- package/dist/{index-BXZQKf9d.cjs → index-Dx1304pB.cjs} +2 -2
- package/dist/index-urZjrTjB.js +31 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/types/components/Widget/index.d.ts +1 -0
- package/dist/types/hooks/Submission/types.d.ts +4 -0
- package/dist/types/hooks/useGraphQLRequests.d.ts +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/router/types.d.ts +3 -1
- package/dist/types/widgets/MiningWidget/OperateArea/index.d.ts +1 -1
- 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/AMMV3PositionManage.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/AMMV3/AMMV3PositionsView.d.ts +16 -0
- package/dist/types/widgets/PoolWidget/AMMV3/AddLiquidityV3.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/Badge/AMMV3.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/Badge/RangeBadge.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/Buttons.d.ts +18 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/ClaimButton.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/CurrencyInputPanel.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/FeeSelector.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/InRangeDot.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/InputStepCounter.d.ts +18 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Area.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/AxisBottom.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Brush.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Chart.d.ts +2 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Line.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/Zoom.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/hooks.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/index.d.ts +17 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/svg.d.ts +22 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/types.d.ts +50 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/usePrevious.d.ts +1 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/utils.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/PositionAmountPreview.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/PositionPreview.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/PositionSelectedRangePreview.d.ts +11 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/PositionViewCard.d.ts +18 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/RangeSelector.d.ts +21 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/RateToggle.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/RemoveButton.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/ReviewModal.d.ts +21 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/TokenPairSelect.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/shared.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/components/widgets.d.ts +55 -0
- package/dist/types/widgets/PoolWidget/AMMV3/constants/misc.d.ts +17 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useContract.d.ts +2 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useDerivedPositionInfo.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useDerivedV3BurnInfo.d.ts +20 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useIsTickAtLimit.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/usePoolTickData.d.ts +20 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/usePools.d.ts +22 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useRangeHopCallbacks.d.ts +15 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useSwapTaxes.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useV3DerivedMintInfo.d.ts +46 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useV3MintActionHandlers.d.ts +11 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useV3PositionFees.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useV3Positions.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/AMMV3/reducer.d.ts +51 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/addresses.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/chains.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/constants.d.ts +12 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/baseCurrency.d.ts +49 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/currency.d.ts +3 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/fractions/currencyAmount.d.ts +32 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/fractions/fraction.d.ts +24 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/fractions/index.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/fractions/percent.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/fractions/price.d.ts +38 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/index.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/nativeCurrency.d.ts +16 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/nativeCurrencyClass.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/entities/token.d.ts +48 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/index.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/utils/computePriceImpact.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/utils/index.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/utils/sortedInsert.d.ts +1 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/utils/sqrt.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/sdk-core/utils/validateAndParseAddress.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/constants.d.ts +23 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/index.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/pool.d.ts +81 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/position.d.ts +131 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/route.d.ts +26 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/tick.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/tickDataProvider.d.ts +31 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/tickListDataProvider.d.ts +15 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/entities/trade.d.ts +220 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/index.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/internalConstants.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/multicall.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/nonfungiblePositionManager.d.ts +159 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/payments.d.ts +24 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/quoter.d.ts +37 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/selfPermit.d.ts +25 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/staker.d.ts +101 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/swapRouter.d.ts +51 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/calldata.d.ts +20 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/computePoolAddress.d.ts +21 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/encodeRouteToPath.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/encodeSqrtRatioX96.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/fullMath.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/index.d.ts +18 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/isSorted.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/liquidityMath.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/maxLiquidityForAmounts.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/mostSignificantBit.d.ts +2 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/nearestUsableTick.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/position.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/priceTickConversions.d.ts +15 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/sqrtPriceMath.d.ts +13 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/swapMath.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/tickLibrary.d.ts +14 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/tickList.d.ts +23 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/tickMath.d.ts +34 -0
- package/dist/types/widgets/PoolWidget/AMMV3/sdks/v3-sdk/utils/v3swap.d.ts +8 -0
- package/dist/types/widgets/PoolWidget/AMMV3/types/position.d.ts +20 -0
- package/dist/types/widgets/PoolWidget/AMMV3/types.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/AMMV3/utils/computeSurroundingTicks.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/utils/formatTickPrice.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/AMMV3/utils/getTickToPrice.d.ts +2 -0
- package/dist/types/widgets/PoolWidget/AMMV3/utils/maxAmountSpend.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/AMMV3/utils/slippage.d.ts +2 -0
- package/dist/types/widgets/PoolWidget/AMMV3/utils/tryParseCurrencyAmount.d.ts +6 -0
- package/dist/types/widgets/PoolWidget/AMMV3/utils/tryParseTick.d.ts +4 -0
- package/dist/types/widgets/PoolWidget/AMMV3/utils.d.ts +10 -0
- package/dist/types/widgets/PoolWidget/PoolList/components/OnlyV3Toggle.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/types.d.ts +4 -1
- package/dist/types/widgets/PoolWidget/index.d.ts +3 -0
- package/dist/types/widgets/PoolWidget/utils.d.ts +3 -2
- package/package.json +9 -6
- package/dist/index-BxBdRfk3.js +0 -31
- package/dist/index-Dm-WLL73.cjs +0 -31
- package/dist/index-PEy7ziag.js +0 -78
|
@@ -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/AMMV3/components/LiquidityChartRangeInput/usePrevious.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function usePrevious<T>(value: T): T | undefined;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Currency } from '../sdks/sdk-core';
|
|
3
|
+
import { Position } from '../sdks/v3-sdk';
|
|
4
|
+
export declare const PositionPreview: ({ position, title, inRange, baseCurrencyDefault, ticksAtLimit, }: {
|
|
5
|
+
position: Position;
|
|
6
|
+
title?: ReactNode;
|
|
7
|
+
inRange: boolean;
|
|
8
|
+
baseCurrencyDefault?: Currency;
|
|
9
|
+
ticksAtLimit: {
|
|
10
|
+
[bound: string]: boolean | undefined;
|
|
11
|
+
};
|
|
12
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Currency } from '../sdks/sdk-core';
|
|
3
|
+
import { Position } from '../sdks/v3-sdk';
|
|
4
|
+
export declare const PositionSelectedRangePreview: ({ position, title, baseCurrencyDefault, ticksAtLimit, }: {
|
|
5
|
+
position: Position;
|
|
6
|
+
title?: ReactNode;
|
|
7
|
+
baseCurrencyDefault?: Currency;
|
|
8
|
+
ticksAtLimit: {
|
|
9
|
+
[bound: string]: boolean | undefined;
|
|
10
|
+
};
|
|
11
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TokenInfo } from '../../../../hooks/Token';
|
|
2
|
+
import { Currency, Price } from '../sdks/sdk-core';
|
|
3
|
+
import { Position as V3Position } from '../sdks/v3-sdk';
|
|
4
|
+
import { PositionDetails } from '../types/position';
|
|
5
|
+
export interface PriceOrdering {
|
|
6
|
+
priceLower?: Price<Currency, Currency>;
|
|
7
|
+
priceUpper?: Price<Currency, Currency>;
|
|
8
|
+
quote?: Currency;
|
|
9
|
+
base?: Currency;
|
|
10
|
+
}
|
|
11
|
+
export declare function getPriceOrderingFromPositionForUI(position?: V3Position): PriceOrdering;
|
|
12
|
+
export interface PositionViewCardProps {
|
|
13
|
+
p: PositionDetails;
|
|
14
|
+
baseToken: TokenInfo;
|
|
15
|
+
quoteToken: TokenInfo;
|
|
16
|
+
onClickManage: () => void;
|
|
17
|
+
}
|
|
18
|
+
export declare const PositionViewCard: ({ p, baseToken, quoteToken, onClickManage, }: PositionViewCardProps) => JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Currency } from '../sdks/sdk-core/entities/currency';
|
|
2
|
+
import { Price } from '../sdks/sdk-core/entities/fractions/price';
|
|
3
|
+
import { Token } from '../sdks/sdk-core/entities/token';
|
|
4
|
+
import { Bound } from '../types';
|
|
5
|
+
export interface RangeSelectorProps {
|
|
6
|
+
priceLower?: Price<Token, Token>;
|
|
7
|
+
priceUpper?: Price<Token, Token>;
|
|
8
|
+
getDecrementLower: () => string;
|
|
9
|
+
getIncrementLower: () => string;
|
|
10
|
+
getDecrementUpper: () => string;
|
|
11
|
+
getIncrementUpper: () => string;
|
|
12
|
+
onLeftRangeInput: (typedValue: string) => void;
|
|
13
|
+
onRightRangeInput: (typedValue: string) => void;
|
|
14
|
+
currencyA?: Currency | null;
|
|
15
|
+
currencyB?: Currency | null;
|
|
16
|
+
feeAmount?: number;
|
|
17
|
+
ticksAtLimit: {
|
|
18
|
+
[bound in Bound]?: boolean | undefined;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export declare const RangeSelector: ({ priceLower, priceUpper, onLeftRangeInput, onRightRangeInput, getDecrementLower, getIncrementLower, getDecrementUpper, getIncrementUpper, currencyA, currencyB, feeAmount, ticksAtLimit, }: RangeSelectorProps) => JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StateProps } from '../reducer';
|
|
2
|
+
export interface RateToggleProps {
|
|
3
|
+
baseToken: StateProps['baseToken'];
|
|
4
|
+
quoteToken: StateProps['quoteToken'];
|
|
5
|
+
handleRateToggle: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const RateToggle: ({ baseToken, quoteToken, handleRateToggle, }: 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,21 @@
|
|
|
1
|
+
import { Currency, CurrencyAmount, Price } from '../sdks/sdk-core';
|
|
2
|
+
import { Position } from '../sdks/v3-sdk';
|
|
3
|
+
import { Bound, Field } from '../types';
|
|
4
|
+
export interface ReviewModalProps {
|
|
5
|
+
position?: Position;
|
|
6
|
+
existingPosition?: Position;
|
|
7
|
+
parsedAmounts: {
|
|
8
|
+
[field in Field]?: CurrencyAmount<Currency>;
|
|
9
|
+
};
|
|
10
|
+
priceLower?: Price<Currency, Currency>;
|
|
11
|
+
priceUpper?: Price<Currency, Currency>;
|
|
12
|
+
outOfRange: boolean;
|
|
13
|
+
ticksAtLimit: {
|
|
14
|
+
[bound in Bound]?: boolean | undefined;
|
|
15
|
+
};
|
|
16
|
+
on: boolean;
|
|
17
|
+
onClose: () => void;
|
|
18
|
+
onConfirm: () => void;
|
|
19
|
+
loading?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare const ReviewModal: ({ on, onClose, position, outOfRange, ticksAtLimit, onConfirm, loading, }: 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,55 @@
|
|
|
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, sx, }: {
|
|
18
|
+
sx?: BoxProps["sx"];
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
}) => JSX.Element;
|
|
21
|
+
export declare const YellowCard: ({ children }: YellowCardProps) => JSX.Element;
|
|
22
|
+
export declare function ColumnCenter({ gap, flex, children, style, }: {
|
|
23
|
+
gap?: Gap | string;
|
|
24
|
+
flex?: string;
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
style?: BoxProps['sx'];
|
|
27
|
+
}): JSX.Element;
|
|
28
|
+
export declare function AutoColumn({ gap, justify, grow, children, style, }: {
|
|
29
|
+
gap?: Gap | string;
|
|
30
|
+
justify?: 'stretch' | 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'space-between';
|
|
31
|
+
grow?: true;
|
|
32
|
+
children: React.ReactNode;
|
|
33
|
+
style?: BoxProps['sx'];
|
|
34
|
+
}): JSX.Element;
|
|
35
|
+
export declare function Row({ gap, children, sx, }: {
|
|
36
|
+
gap?: Gap | string;
|
|
37
|
+
children: React.ReactNode;
|
|
38
|
+
sx?: BoxProps['sx'];
|
|
39
|
+
}): JSX.Element;
|
|
40
|
+
export declare function RowBetween({ children, style, }: {
|
|
41
|
+
children: React.ReactNode;
|
|
42
|
+
style?: BoxProps['sx'];
|
|
43
|
+
}): JSX.Element;
|
|
44
|
+
export declare function RowFixed({ gap, justify, children, sx, }: {
|
|
45
|
+
gap?: string;
|
|
46
|
+
justify?: string;
|
|
47
|
+
children: React.ReactNode;
|
|
48
|
+
sx?: BoxProps['sx'];
|
|
49
|
+
}): JSX.Element;
|
|
50
|
+
export declare function DynamicSection({ children, disabled, sx, }: {
|
|
51
|
+
children: React.ReactNode;
|
|
52
|
+
disabled?: boolean;
|
|
53
|
+
sx?: BoxProps['sx'];
|
|
54
|
+
}): JSX.Element;
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import JSBI from 'jsbi';
|
|
2
|
+
import { Percent } from '../sdks/sdk-core';
|
|
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,7 @@
|
|
|
1
|
+
import { TokenInfo } from '../../../../hooks/Token';
|
|
2
|
+
import { Pool, Position as V3Position } from '../sdks/v3-sdk';
|
|
3
|
+
import { PositionDetails } from '../types/position';
|
|
4
|
+
export declare function useDerivedPositionInfo(positionDetails: PositionDetails | undefined, baseToken: TokenInfo, quoteToken: TokenInfo): {
|
|
5
|
+
position?: V3Position;
|
|
6
|
+
pool?: Pool;
|
|
7
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Currency, CurrencyAmount, Percent } from '../sdks/sdk-core';
|
|
3
|
+
import { Position } from '../sdks/v3-sdk';
|
|
4
|
+
import { PositionDetails } from '../types/position';
|
|
5
|
+
export declare function useDerivedV3BurnInfo({ percent, position, asWETH, baseToken, quoteToken, }: {
|
|
6
|
+
percent: number;
|
|
7
|
+
position?: PositionDetails;
|
|
8
|
+
asWETH?: boolean;
|
|
9
|
+
baseToken: Maybe<Currency>;
|
|
10
|
+
quoteToken: Maybe<Currency>;
|
|
11
|
+
}): {
|
|
12
|
+
position?: Position;
|
|
13
|
+
liquidityPercentage?: Percent;
|
|
14
|
+
liquidityValue0?: CurrencyAmount<Currency>;
|
|
15
|
+
liquidityValue1?: CurrencyAmount<Currency>;
|
|
16
|
+
feeValue0?: CurrencyAmount<Currency>;
|
|
17
|
+
feeValue1?: CurrencyAmount<Currency>;
|
|
18
|
+
outOfRange: boolean;
|
|
19
|
+
error?: ReactNode;
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ChainId } from '@dodoex/api';
|
|
2
|
+
import JSBI from 'jsbi';
|
|
3
|
+
import { Currency, Price, Token } from '../sdks/sdk-core';
|
|
4
|
+
import { FeeAmount } from '../sdks/v3-sdk';
|
|
5
|
+
export interface TickProcessed {
|
|
6
|
+
tick: number;
|
|
7
|
+
liquidityActive: JSBI;
|
|
8
|
+
liquidityNet: JSBI;
|
|
9
|
+
price0: string;
|
|
10
|
+
sdkPrice: Price<Token, Token>;
|
|
11
|
+
}
|
|
12
|
+
export declare function usePoolActiveLiquidity(currencyA: Currency | undefined, currencyB: Currency | undefined, feeAmount: FeeAmount | undefined, chainId?: ChainId): {
|
|
13
|
+
isLoading: boolean;
|
|
14
|
+
error: any;
|
|
15
|
+
currentTick?: number;
|
|
16
|
+
activeTick?: number;
|
|
17
|
+
liquidity?: JSBI;
|
|
18
|
+
sqrtPriceX96?: JSBI;
|
|
19
|
+
data?: TickProcessed[];
|
|
20
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
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];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Actions, StateProps } from '../reducer';
|
|
2
|
+
import { Pool } from '../sdks/v3-sdk';
|
|
3
|
+
export declare function useRangeHopCallbacks({ tickLower, tickUpper, pool, state, dispatch, }: {
|
|
4
|
+
tickLower: number | undefined;
|
|
5
|
+
tickUpper: number | undefined;
|
|
6
|
+
pool?: Pool | undefined | null;
|
|
7
|
+
state: StateProps;
|
|
8
|
+
dispatch: React.Dispatch<Actions>;
|
|
9
|
+
}): {
|
|
10
|
+
getDecrementLower: () => string;
|
|
11
|
+
getIncrementLower: () => string;
|
|
12
|
+
getDecrementUpper: () => string;
|
|
13
|
+
getIncrementUpper: () => string;
|
|
14
|
+
getSetFullRange: () => void;
|
|
15
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { StateProps } from '../reducer';
|
|
3
|
+
import { Currency, CurrencyAmount, Price, Token } from '../sdks/sdk-core';
|
|
4
|
+
import { Pool, Position } from '../sdks/v3-sdk';
|
|
5
|
+
import { Bound, Field } from '../types';
|
|
6
|
+
import { PoolState } from './usePools';
|
|
7
|
+
export declare function useV3DerivedMintInfo({ state, existingPosition, }: {
|
|
8
|
+
state: StateProps;
|
|
9
|
+
existingPosition?: Position;
|
|
10
|
+
}): {
|
|
11
|
+
pool?: Pool | null;
|
|
12
|
+
poolState: PoolState;
|
|
13
|
+
ticks: {
|
|
14
|
+
[bound in Bound]?: number | undefined;
|
|
15
|
+
};
|
|
16
|
+
price?: Price<Token, Token>;
|
|
17
|
+
pricesAtTicks: {
|
|
18
|
+
[bound in Bound]?: Price<Token, Token> | undefined;
|
|
19
|
+
};
|
|
20
|
+
pricesAtLimit: {
|
|
21
|
+
[bound in Bound]?: Price<Token, Token> | undefined;
|
|
22
|
+
};
|
|
23
|
+
currencies: {
|
|
24
|
+
[field in Field]?: Currency;
|
|
25
|
+
};
|
|
26
|
+
currencyBalances: {
|
|
27
|
+
[field in Field]?: CurrencyAmount<Currency>;
|
|
28
|
+
};
|
|
29
|
+
dependentField: Field;
|
|
30
|
+
parsedAmounts: {
|
|
31
|
+
[field in Field]?: CurrencyAmount<Currency>;
|
|
32
|
+
};
|
|
33
|
+
position?: Position;
|
|
34
|
+
noLiquidity?: boolean;
|
|
35
|
+
errorMessage?: ReactNode;
|
|
36
|
+
invalidPool: boolean;
|
|
37
|
+
outOfRange: boolean;
|
|
38
|
+
invalidRange: boolean;
|
|
39
|
+
depositADisabled: boolean;
|
|
40
|
+
depositBDisabled: boolean;
|
|
41
|
+
invertPrice: boolean;
|
|
42
|
+
ticksAtLimit: {
|
|
43
|
+
[bound in Bound]?: boolean | undefined;
|
|
44
|
+
};
|
|
45
|
+
isTaxed: boolean;
|
|
46
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
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];
|
|
@@ -0,0 +1,13 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { TokenInfo } from '../../../hooks/Token/type';
|
|
2
|
+
import { Currency } from './sdks/sdk-core';
|
|
3
|
+
import { FeeAmount } from './sdks/v3-sdk';
|
|
4
|
+
import { Field, FullRange } from './types';
|
|
5
|
+
export interface StateProps {
|
|
6
|
+
baseToken: Maybe<Currency>;
|
|
7
|
+
quoteToken: Maybe<Currency>;
|
|
8
|
+
feeAmount: FeeAmount | undefined;
|
|
9
|
+
readonly independentField: Field;
|
|
10
|
+
readonly typedValue: string;
|
|
11
|
+
readonly startPriceTypedValue: string;
|
|
12
|
+
readonly leftRangeTypedValue: string | FullRange;
|
|
13
|
+
readonly rightRangeTypedValue: string | FullRange;
|
|
14
|
+
}
|
|
15
|
+
export declare enum Types {
|
|
16
|
+
UpdateBaseToken = 0,
|
|
17
|
+
UpdateQuoteToken = 1,
|
|
18
|
+
UpdateBaseTokenAndClearQuoteToken = 2,
|
|
19
|
+
UpdateFeeAmount = 3,
|
|
20
|
+
ToggleRate = 4,
|
|
21
|
+
setFullRange = 5,
|
|
22
|
+
typeStartPriceInput = 6,
|
|
23
|
+
typeLeftRangeInput = 7,
|
|
24
|
+
typeRightRangeInput = 8,
|
|
25
|
+
typeInput = 9
|
|
26
|
+
}
|
|
27
|
+
type Payload = {
|
|
28
|
+
[Types.UpdateBaseToken]: TokenInfo;
|
|
29
|
+
[Types.UpdateQuoteToken]: TokenInfo;
|
|
30
|
+
[Types.UpdateBaseTokenAndClearQuoteToken]: TokenInfo;
|
|
31
|
+
[Types.UpdateFeeAmount]: FeeAmount;
|
|
32
|
+
[Types.ToggleRate]: void;
|
|
33
|
+
[Types.setFullRange]: void;
|
|
34
|
+
[Types.typeStartPriceInput]: {
|
|
35
|
+
typedValue: string;
|
|
36
|
+
};
|
|
37
|
+
[Types.typeLeftRangeInput]: {
|
|
38
|
+
typedValue: string;
|
|
39
|
+
};
|
|
40
|
+
[Types.typeRightRangeInput]: {
|
|
41
|
+
typedValue: string;
|
|
42
|
+
};
|
|
43
|
+
[Types.typeInput]: {
|
|
44
|
+
field: Field;
|
|
45
|
+
typedValue: string;
|
|
46
|
+
noLiquidity: boolean;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export type Actions = ActionMap<Payload>[keyof ActionMap<Payload>];
|
|
50
|
+
export declare function reducer(state: StateProps, action: Actions): StateProps;
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|