@dodoex/widgets 3.0.2-zetachain.66 → 3.0.2-zetachain.67
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/{helper-DEwixHKL.js → helper-D0CHnjR6.js} +1 -1
- package/dist/{helper-gAcilzSP.cjs → helper-weMKQ1OG.cjs} +1 -1
- package/dist/{index-Ctl1ZVSq.js → index-BA51sRad.js} +1 -1
- package/dist/{index-CWdtJLrZ.cjs → index-BGHidjmB.cjs} +1 -1
- package/dist/{index-6I0PA0zd.cjs → index-Bu-B3TiM.cjs} +1 -1
- package/dist/{index-BrGDxVVy.js → index-Cn27Mh0j.js} +1 -1
- package/dist/index-DFZeZw8d.js +31 -0
- package/dist/index-DHAs0fHV.cjs +31 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/hooks.d.ts +3 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/LiquidityChartRangeInput/index.d.ts +3 -1
- package/dist/types/widgets/PoolWidget/AMMV3/components/TokenPairSelect.d.ts +3 -1
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/usePoolTickData.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/AMMV3/hooks/useV3DerivedMintInfo.d.ts +3 -1
- package/dist/types/widgets/PoolWidget/curve/AllPools.d.ts +3 -4
- package/dist/types/widgets/PoolWidget/curve/components/FilterAddressTags.d.ts +7 -0
- package/dist/types/widgets/PoolWidget/curve/components/TokenListPoolItem.d.ts +5 -0
- package/dist/types/widgets/PoolWidget/curve/hooks/usePoolListFilterTokenAndPool.d.ts +9 -0
- package/dist/types/widgets/PoolWidget/curve/types.d.ts +1 -0
- package/dist/types/widgets/PoolWidget/curve/utils.d.ts +2 -1
- package/package.json +2 -2
- package/dist/index-Dj5Qez4C.cjs +0 -31
- package/dist/index-Dqy2oEgI.js +0 -31
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./index-
|
|
1
|
+
"use strict";var e=require("./index-DHAs0fHV.cjs");require("@lingui/react"),require("@dodoex/components"),require("react"),require("lodash"),require("@lingui/core"),require("@dodoex/api"),require("@reown/appkit-utils"),require("bignumber.js"),require("@solana/web3.js"),require("@reown/appkit/networks"),require("@tanstack/react-query"),require("zustand"),require("@dodoex/dodo-contract-request"),require("@ethersproject/providers"),require("@reown/appkit/react"),require("@ethersproject/bignumber"),require("axios"),require("@ethersproject/contracts"),require("react-dom"),require("identicon.js"),require("@bitcoinerlab/secp256k1"),require("bitcoinjs-lib"),require("dayjs"),require("@dodoex/contract-request"),require("react-transition-group"),require("recharts"),require("react-window"),require("jsbi"),require("tiny-invariant"),require("@ethersproject/units"),require("react-infinite-scroller"),require("@uniswap/sdk-core"),require("@uniswap/v2-sdk"),require("d3"),exports.AMMV2Create=e.AMMV2Create,exports.AMMV3PositionManage=e.AMMV3PositionManage,exports.AMMV3PositionsView=e.AMMV3PositionsView,exports.AddLiquidityV3=e.AddLiquidityV3,exports.CurvePoolDetail=e.CurvePoolDetail,exports.EmptyList=e.EmptyList,exports.FailedList=e.FailedList,exports.Message=e.Message,Object.defineProperty(exports,"MetadataFlag",{enumerable:!0,get:function(){return e.MetadataFlag}}),Object.defineProperty(exports,"PageType",{enumerable:!0,get:function(){return e.PageType}}),exports.Pool=e.Pool,exports.PoolCreate=e.PoolCreate,exports.PoolDetail=e.PoolDetail,exports.PoolList=e.PoolList,exports.PoolModify=e.PoolModify,exports.PoolOperate=e.PoolOperate,exports.PoolOperateDialog=e.PoolOperateDialog,exports.Swap=e.Swap,exports.SwapOrderHistory=e.SwapOrderHistory,exports.TokenCard=e.TokenCard,exports.TokenLogo=e.TokenLogo,exports.UnstyleWidget=e.UnstyleWidget,exports.WIDGET_CLASS_NAME=e.WIDGET_CLASS_NAME,exports.WIDGET_MODULE_CLASS_NAME=e.WIDGET_MODULE_CLASS_NAME,exports.Widget=e.Widget,exports.chainListMap=e.chainListMap,exports.defaultTokenList=e.tokenList,exports.formatPercentageNumber=e.formatPercentageNumber,exports.formatReadableNumber=e.formatReadableNumber,exports.formatShortNumber=e.formatShortNumber,exports.formatTokenAmountNumber=e.formatTokenAmountNumber,exports.getEtherscanPage=e.getEtherscanPage,exports.rpcServerMap=e.rpcServerMap,exports.scanUrlDomainMap=e.scanUrlDomainMap,exports.useMessageState=e.useMessageState,exports.usePoolBalanceInfo=e.usePoolBalanceInfo,exports.useRouterStore=e.useRouterStore,exports.useTradeSwapOrderList=e.useTradeSwapOrderList;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as AMMV2Create,v as AMMV3PositionManage,w as AMMV3PositionsView,q as AddLiquidityV3,C as CurvePoolDetail,E as EmptyList,F as FailedList,M as Message,i as MetadataFlag,P as PageType,p as Pool,y as PoolCreate,z as PoolDetail,B as PoolList,D as PoolModify,G as PoolOperate,H as PoolOperateDialog,S as Swap,c as SwapOrderHistory,T as TokenCard,d as TokenLogo,U as UnstyleWidget,e as WIDGET_CLASS_NAME,g as WIDGET_MODULE_CLASS_NAME,W as Widget,h as chainListMap,t as defaultTokenList,a as formatPercentageNumber,n as formatReadableNumber,f as formatShortNumber,o as formatTokenAmountNumber,m as getEtherscanPage,r as rpcServerMap,s as scanUrlDomainMap,k as useMessageState,x as usePoolBalanceInfo,l as useRouterStore,u as useTradeSwapOrderList}from"./index-
|
|
1
|
+
export{A as AMMV2Create,v as AMMV3PositionManage,w as AMMV3PositionsView,q as AddLiquidityV3,C as CurvePoolDetail,E as EmptyList,F as FailedList,M as Message,i as MetadataFlag,P as PageType,p as Pool,y as PoolCreate,z as PoolDetail,B as PoolList,D as PoolModify,G as PoolOperate,H as PoolOperateDialog,S as Swap,c as SwapOrderHistory,T as TokenCard,d as TokenLogo,U as UnstyleWidget,e as WIDGET_CLASS_NAME,g as WIDGET_MODULE_CLASS_NAME,W as Widget,h as chainListMap,t as defaultTokenList,a as formatPercentageNumber,n as formatReadableNumber,f as formatShortNumber,o as formatTokenAmountNumber,m as getEtherscanPage,r as rpcServerMap,s as scanUrlDomainMap,k as useMessageState,x as usePoolBalanceInfo,l as useRouterStore,u as useTradeSwapOrderList}from"./index-DFZeZw8d.js";import"@lingui/react";import"@dodoex/components";import"react";import"lodash";import"@lingui/core";import"@dodoex/api";import"@reown/appkit-utils";import"bignumber.js";import"@solana/web3.js";import"@reown/appkit/networks";import"@tanstack/react-query";import"zustand";import"@dodoex/dodo-contract-request";import"@ethersproject/providers";import"@reown/appkit/react";import"@ethersproject/bignumber";import"axios";import"@ethersproject/contracts";import"react-dom";import"identicon.js";import"@bitcoinerlab/secp256k1";import"bitcoinjs-lib";import"dayjs";import"@dodoex/contract-request";import"react-transition-group";import"recharts";import"react-window";import"jsbi";import"tiny-invariant";import"@ethersproject/units";import"react-infinite-scroller";import"@uniswap/sdk-core";import"@uniswap/v2-sdk";import"d3";
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { ChainId } from '@dodoex/api';
|
|
1
2
|
import { Currency } from '../../sdks/sdk-core';
|
|
2
3
|
import { FeeAmount } from '../../sdks/v3-sdk';
|
|
3
4
|
import { ChartEntry } from './types';
|
|
4
|
-
export declare function useDensityChartData({ currencyA, currencyB, feeAmount, }: {
|
|
5
|
+
export declare function useDensityChartData({ currencyA, currencyB, feeAmount, chainId, }: {
|
|
5
6
|
currencyA?: Currency;
|
|
6
7
|
currencyB?: Currency;
|
|
7
8
|
feeAmount?: FeeAmount;
|
|
9
|
+
chainId: ChainId;
|
|
8
10
|
}): {
|
|
9
11
|
isLoading: boolean;
|
|
10
12
|
error: any;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { ChainId } from '@dodoex/api';
|
|
1
2
|
import { Currency, Price } from '../../sdks/sdk-core';
|
|
2
3
|
import { FeeAmount } from '../../sdks/v3-sdk';
|
|
3
4
|
import { Bound } from '../../types';
|
|
4
|
-
export default function LiquidityChartRangeInput({ currencyA, currencyB, feeAmount, ticksAtLimit, price, priceLower, priceUpper, onLeftRangeInput, onRightRangeInput, interactive, }: {
|
|
5
|
+
export default function LiquidityChartRangeInput({ chainId, currencyA, currencyB, feeAmount, ticksAtLimit, price, priceLower, priceUpper, onLeftRangeInput, onRightRangeInput, interactive, }: {
|
|
6
|
+
chainId: ChainId;
|
|
5
7
|
currencyA?: Currency;
|
|
6
8
|
currencyB?: Currency;
|
|
7
9
|
feeAmount?: FeeAmount;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { ChainId } from '@dodoex/api';
|
|
1
2
|
import { Actions, StateProps } from '../reducer';
|
|
2
3
|
export interface TokenPairSelectProps {
|
|
4
|
+
chainId: ChainId;
|
|
3
5
|
baseToken: StateProps['baseToken'];
|
|
4
6
|
quoteToken: StateProps['quoteToken'];
|
|
5
7
|
dispatch: React.Dispatch<Actions>;
|
|
6
8
|
}
|
|
7
|
-
export declare const TokenPairSelect: ({ baseToken, quoteToken, dispatch, }: TokenPairSelectProps) => import("react").JSX.Element;
|
|
9
|
+
export declare const TokenPairSelect: ({ chainId, baseToken, quoteToken, dispatch, }: TokenPairSelectProps) => import("react").JSX.Element;
|
|
@@ -9,7 +9,7 @@ export interface TickProcessed {
|
|
|
9
9
|
price0: string;
|
|
10
10
|
sdkPrice: Price<Token, Token>;
|
|
11
11
|
}
|
|
12
|
-
export declare function usePoolActiveLiquidity(currencyA: Currency | undefined, currencyB: Currency | undefined, feeAmount: FeeAmount | undefined, chainId
|
|
12
|
+
export declare function usePoolActiveLiquidity(currencyA: Currency | undefined, currencyB: Currency | undefined, feeAmount: FeeAmount | undefined, chainId: ChainId): {
|
|
13
13
|
isLoading: boolean;
|
|
14
14
|
error: any;
|
|
15
15
|
currentTick?: number;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import { ChainId } from '@dodoex/api';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
import { StateProps } from '../reducer';
|
|
3
4
|
import { Currency, CurrencyAmount, Price, Token } from '../sdks/sdk-core';
|
|
4
5
|
import { Pool, Position } from '../sdks/v3-sdk';
|
|
5
6
|
import { Bound, Field } from '../types';
|
|
6
7
|
import { PoolState } from './usePools';
|
|
7
|
-
export declare function useV3DerivedMintInfo({ state, existingPosition, }: {
|
|
8
|
+
export declare function useV3DerivedMintInfo({ state, existingPosition, chainId, }: {
|
|
8
9
|
state: StateProps;
|
|
9
10
|
existingPosition?: Position;
|
|
11
|
+
chainId: ChainId;
|
|
10
12
|
}): {
|
|
11
13
|
pool?: Pool | null;
|
|
12
14
|
poolState: PoolState;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { ChainId } from '@dodoex/api';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { TokenAndPoolFilterUserOptions } from '../PoolList/hooks/usePoolListFilterTokenAndPool';
|
|
4
3
|
import { OperateCurvePoolT } from './types';
|
|
5
4
|
export interface AllPoolsProps {
|
|
5
|
+
account?: string;
|
|
6
6
|
scrollParentRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
7
|
-
filterChainIds?: ChainId[];
|
|
8
7
|
activeChainId: ChainId | undefined;
|
|
9
8
|
operateCurvePool: OperateCurvePoolT | null;
|
|
10
9
|
setOperateCurvePool: React.Dispatch<React.SetStateAction<OperateCurvePoolT | null>>;
|
|
11
|
-
tokenAndPoolFilter?: TokenAndPoolFilterUserOptions;
|
|
12
10
|
children?: React.ReactNode;
|
|
11
|
+
isMyPool?: boolean;
|
|
13
12
|
}
|
|
14
|
-
export declare const AllPools: ({
|
|
13
|
+
export declare const AllPools: ({ account, scrollParentRef, activeChainId, operateCurvePool, setOperateCurvePool, children, isMyPool, }: AllPoolsProps) => React.JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BoxProps } from '@dodoex/components';
|
|
2
|
+
import { CurvePoolT } from '../types';
|
|
3
|
+
export default function FilterAddressTags({ lqList, onDeleteTag, sx, }: {
|
|
4
|
+
lqList: CurvePoolT[];
|
|
5
|
+
onDeleteTag: () => void;
|
|
6
|
+
sx?: BoxProps['sx'];
|
|
7
|
+
}): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TokenInfo } from '../../../../hooks/Token';
|
|
2
|
+
import { CurvePoolT } from '../types';
|
|
3
|
+
export declare function usePoolListFilterTokenAndPool(): {
|
|
4
|
+
filterTokens: TokenInfo[];
|
|
5
|
+
filterAddressLqList: CurvePoolT[];
|
|
6
|
+
handleDeleteToken: (token: TokenInfo) => void;
|
|
7
|
+
handleChangeFilterTokens: (tokens: Array<TokenInfo>) => void;
|
|
8
|
+
handleChangeFilterAddress: (lqList: CurvePoolT[]) => void;
|
|
9
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { CurveApi } from '@dodoex/api';
|
|
1
|
+
import { ChainId, CurveApi, ExcludeNone } from '@dodoex/api';
|
|
2
2
|
import { CurvePoolT } from './types';
|
|
3
3
|
export declare const curveApi: CurveApi;
|
|
4
4
|
export declare const mockCurvePoolList: CurvePoolT[];
|
|
5
|
+
export declare function convertRawPoolListToCurvePoolListT(rawPoolList: ExcludeNone<ReturnType<Exclude<(typeof CurveApi.graphql.curve_stableswap_ng_getAllPools)['__apiType'], undefined>>['curve_stableswap_ng_getAllPools']>['lqList'], chainId: ChainId | undefined): CurvePoolT[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dodoex/widgets",
|
|
3
|
-
"version": "3.0.2-zetachain.
|
|
3
|
+
"version": "3.0.2-zetachain.67",
|
|
4
4
|
"description": "DODO Widgets",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@babel/runtime": "^7.17.0",
|
|
61
61
|
"@bitcoinerlab/secp256k1": "1.2.0",
|
|
62
|
-
"@dodoex/api": "3.0.3-zetachain.
|
|
62
|
+
"@dodoex/api": "3.0.3-zetachain.16",
|
|
63
63
|
"@dodoex/components": "3.0.3-zetachain.14",
|
|
64
64
|
"@dodoex/contract-request": "^1.3.0",
|
|
65
65
|
"@dodoex/dodo-contract-request": "1.19.0-alpha.2",
|