@dodoex/widgets 3.0.2-neox.1 → 3.0.3-neox.3
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-u3n5TpaA.js → helper-AFwQcqmE.js} +1 -1
- package/dist/{helper-CuTmbsue.cjs → helper-C12ODUOJ.cjs} +1 -1
- package/dist/index-1M-rArhg.cjs +32 -0
- package/dist/{index-DGfFyxhb.cjs → index-B7LiHjd8.cjs} +1 -1
- package/dist/{index-iIQatzFL.js → index-BuCwx5gf.js} +1 -1
- package/dist/index-CEudvuii.js +32 -0
- package/dist/{index-BvjPNHer.js → index-DiKxRFk3.js} +1 -1
- package/dist/{index-BgJpw3jN.cjs → index-Ha1wzD7Q.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/components/Swap/components/TokenCard/index.d.ts +3 -4
- package/dist/types/utils/address.d.ts +8 -1
- package/dist/types/widgets/PoolWidget/PoolList/components/GoPoolDetailBtn.d.ts +3 -1
- package/dist/types/widgets/PoolWidget/PoolList/hooks/usePoolListFilterTokenAndPool.d.ts +2 -0
- package/dist/types/widgets/PoolWidget/PoolList/index.d.ts +3 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/AddPoolOperate.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +1 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/components/LiquidityInfo.d.ts +3 -1
- package/dist/types/widgets/PoolWidget/PoolOperate/components/MyLiquidityInfo.d.ts +15 -0
- package/dist/types/widgets/PoolWidget/PoolOperate/components/PairTitle.d.ts +5 -0
- 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-BEVRr0PH.js +0 -32
- package/dist/index-DogPNaZV.cjs +0 -32
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import t from"bignumber.js";import{merge as e,throttle as i,debounce as o}from"lodash";import r,{useEffect as n,useMemo as l,useRef as s,useState as a}from"react";import d from"@emotion/styled";import{css as u}from"@emotion/react";import{Stage as c,Layer as p,Rect as m,Line as g,Text as h,Circle as b,Label as f,Tag as M}from"react-konva";import{c as x,e as v,a as y,b as P,d as j,f as w,u as z,g as L,h as k,l as B,i as C,j as S,k as N}from"./helper-
|
|
1
|
+
import t from"bignumber.js";import{merge as e,throttle as i,debounce as o}from"lodash";import r,{useEffect as n,useMemo as l,useRef as s,useState as a}from"react";import d from"@emotion/styled";import{css as u}from"@emotion/react";import{Stage as c,Layer as p,Rect as m,Line as g,Text as h,Circle as b,Label as f,Tag as M}from"react-konva";import{c as x,e as v,a as y,b as P,d as j,f as w,u as z,g as L,h as k,l as B,i as C,j as S,k as N}from"./helper-AFwQcqmE.js";import{f as O,j as X,a as T,b as A}from"./index-CEudvuii.js";import{solveQuadraticFunctionForTarget as q,PMMModel as W}from"@dodoex/api";import"@lingui/core";import"@lingui/react";import"@dodoex/components";import"@web3-react/core";import"react-redux";import"axios";import"@ethersproject/bignumber";import"@reduxjs/toolkit";import"redux";import"@dodoex/dodo-contract-request";import"@tanstack/react-query";import"@web3-react/eip1193";import"@web3-react/walletconnect-v2";import"@web3-react/metamask";import"@web3-react/types";import"zustand";import"identicon.js";import"react-dom";import"dayjs";import"react-transition-group";import"@dodoex/contract-request";import"recharts";import"react-window";import"jsbi";import"tiny-invariant";import"@uniswap/sdk-core";import"@uniswap/v2-sdk";import"react-infinite-scroller";import"d3";import"rmc-date-picker";var E={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},F=r.createContext&&r.createContext(E),H=["attr","size","title"];function Z(t,e){if(null==t)return{};var i,o,r=function(t,e){if(null==t)return{};var i,o,r={},n=Object.keys(t);for(o=0;o<n.length;o++)i=n[o],e.indexOf(i)>=0||(r[i]=t[i]);return r}(t,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);for(o=0;o<n.length;o++)i=n[o],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(r[i]=t[i])}return r}function G(){return G=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},G.apply(this,arguments)}function D(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function J(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?D(Object(i),!0).forEach((function(e){V(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):D(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function V(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Y(t){return t&&t.map(((t,e)=>r.createElement(t.tag,J({key:e},t.attr),Y(t.child))))}function I(t){return e=>r.createElement(R,G({attr:J({},t.attr)},e),Y(t.child))}function R(t){var e=e=>{var i,{attr:o,size:n,title:l}=t,s=Z(t,H),a=n||e.size||"1em";return e.className&&(i=e.className),t.className&&(i=(i?i+" ":"")+t.className),r.createElement("svg",G({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,o,s,{className:i,style:J(J({color:t.color||e.color},e.style),t.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),l&&r.createElement("title",null,l),t.children)};return void 0!==F?r.createElement(F.Consumer,null,(t=>e(t))):e(E)}function $(t){return I({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M13.293 6.293 7.586 12l5.707 5.707 1.414-1.414L10.414 12l4.293-4.293z"},child:[]}]})(t)}function Q(t){return I({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10.707 17.707 16.414 12l-5.707-5.707-1.414 1.414L13.586 12l-4.293 4.293z"},child:[]}]})(t)}function K(t){return I({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M5 11h14v2H5z"},child:[]}]})(t)}function U(t){return I({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z"},child:[]}]})(t)}const _=d.input`
|
|
2
2
|
margin: 4px 10px 4px 6px;
|
|
3
3
|
border-radius: 10px;
|
|
4
4
|
border: 1px solid #373739;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("@emotion/styled"),t=require("lodash"),i=require("react"),r=require("./helper-
|
|
1
|
+
"use strict";var e=require("@emotion/styled"),t=require("lodash"),i=require("react"),r=require("./helper-C12ODUOJ.cjs"),n=require("react-konva"),o=require("./index-1M-rArhg.cjs"),s=require("bignumber.js"),l=require("@dodoex/api");require("@lingui/core"),require("@lingui/react"),require("@dodoex/components"),require("@web3-react/core"),require("react-redux"),require("axios"),require("@ethersproject/bignumber"),require("@reduxjs/toolkit"),require("redux"),require("@dodoex/dodo-contract-request"),require("@tanstack/react-query"),require("@web3-react/eip1193"),require("@web3-react/walletconnect-v2"),require("@web3-react/metamask"),require("@web3-react/types"),require("zustand"),require("identicon.js"),require("react-dom"),require("dayjs"),require("react-transition-group"),require("@dodoex/contract-request"),require("recharts"),require("react-window"),require("jsbi"),require("tiny-invariant"),require("@uniswap/sdk-core"),require("@uniswap/v2-sdk"),require("react-infinite-scroller"),require("d3"),require("rmc-date-picker");const a=e.div`
|
|
2
2
|
height: 100%;
|
|
3
3
|
position: relative;
|
|
4
4
|
`,u=e.div`
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./index-
|
|
1
|
+
"use strict";var e=require("./index-1M-rArhg.cjs");require("@lingui/react"),require("@lingui/core"),require("@dodoex/api"),require("@dodoex/components"),require("react"),require("@web3-react/core"),require("bignumber.js"),require("lodash"),require("react-redux"),require("axios"),require("@ethersproject/bignumber"),require("@reduxjs/toolkit"),require("redux"),require("@dodoex/dodo-contract-request"),require("@tanstack/react-query"),require("@web3-react/eip1193"),require("@web3-react/walletconnect-v2"),require("@web3-react/metamask"),require("@web3-react/types"),require("zustand"),require("identicon.js"),require("react-dom"),require("dayjs"),require("react-transition-group"),require("@dodoex/contract-request"),require("recharts"),require("react-window"),require("jsbi"),require("tiny-invariant"),require("@uniswap/sdk-core"),require("@uniswap/v2-sdk"),require("react-infinite-scroller"),require("d3"),require("rmc-date-picker"),exports.AMMV2Create=e.AMMV2Create,exports.AMMV3PositionManage=e.AMMV3PositionManage,exports.AMMV3PositionsView=e.AMMV3PositionsView,exports.AddLiquidityV3=e.AddLiquidityV3,exports.EmptyList=e.EmptyList,exports.FailedList=e.FailedList,exports.InitSwapWidget=e.InitSwapWidget,exports.Message=e.Message,Object.defineProperty(exports,"MetadataFlag",{enumerable:!0,get:function(){return e.MetadataFlag}}),exports.MiningCreate=e.MiningCreate,exports.MiningDetail=e.MiningDetail,exports.MiningList=e.MiningList,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.PoolWidget=e.PoolWidget,exports.Swap=e.Swap,exports.SwapOrderHistory=e.SwapOrderHistory,exports.SwapWidget=e.SwapWidget,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.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,E as AMMV3PositionManage,D as AMMV3PositionsView,C as AddLiquidityV3,H as EmptyList,G as FailedList,I as InitSwapWidget,g as Message,M as MetadataFlag,B as MiningCreate,z as MiningDetail,y as MiningList,c as PageType,n as Pool,p as PoolCreate,t as PoolDetail,o as PoolList,q as PoolModify,w as PoolOperate,v as PoolOperateDialog,P as PoolWidget,k as Swap,l as SwapOrderHistory,S as SwapWidget,T as TokenCard,F as TokenLogo,U as UnstyleWidget,W as WIDGET_CLASS_NAME,h as WIDGET_MODULE_CLASS_NAME,e as Widget,d as chainListMap,a as formatPercentageNumber,K as formatReadableNumber,f as formatShortNumber,L as formatTokenAmountNumber,J as getEtherscanPage,r as rpcServerMap,s as scanUrlDomainMap,i as useMessageState,x as usePoolBalanceInfo,u as useRouterStore,m as useTradeSwapOrderList}from"./index-
|
|
1
|
+
export{A as AMMV2Create,E as AMMV3PositionManage,D as AMMV3PositionsView,C as AddLiquidityV3,H as EmptyList,G as FailedList,I as InitSwapWidget,g as Message,M as MetadataFlag,B as MiningCreate,z as MiningDetail,y as MiningList,c as PageType,n as Pool,p as PoolCreate,t as PoolDetail,o as PoolList,q as PoolModify,w as PoolOperate,v as PoolOperateDialog,P as PoolWidget,k as Swap,l as SwapOrderHistory,S as SwapWidget,T as TokenCard,F as TokenLogo,U as UnstyleWidget,W as WIDGET_CLASS_NAME,h as WIDGET_MODULE_CLASS_NAME,e as Widget,d as chainListMap,a as formatPercentageNumber,K as formatReadableNumber,f as formatShortNumber,L as formatTokenAmountNumber,J as getEtherscanPage,r as rpcServerMap,s as scanUrlDomainMap,i as useMessageState,x as usePoolBalanceInfo,u as useRouterStore,m as useTradeSwapOrderList}from"./index-CEudvuii.js";import"@lingui/react";import"@lingui/core";import"@dodoex/api";import"@dodoex/components";import"react";import"@web3-react/core";import"bignumber.js";import"lodash";import"react-redux";import"axios";import"@ethersproject/bignumber";import"@reduxjs/toolkit";import"redux";import"@dodoex/dodo-contract-request";import"@tanstack/react-query";import"@web3-react/eip1193";import"@web3-react/walletconnect-v2";import"@web3-react/metamask";import"@web3-react/types";import"zustand";import"identicon.js";import"react-dom";import"dayjs";import"react-transition-group";import"@dodoex/contract-request";import"recharts";import"react-window";import"jsbi";import"tiny-invariant";import"@uniswap/sdk-core";import"@uniswap/v2-sdk";import"react-infinite-scroller";import"d3";import"rmc-date-picker";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { ChainId } from '@dodoex/api';
|
|
1
2
|
import { BoxProps } from '@dodoex/components';
|
|
2
|
-
import { TokenInfo } from '../../../../hooks/Token';
|
|
3
|
-
import { TokenPickerProps } from '../../../TokenPicker';
|
|
4
3
|
import BigNumber from 'bignumber.js';
|
|
5
|
-
import { ChainId } from '@dodoex/api';
|
|
6
4
|
import { BalanceData } from '../../../../hooks/Submission/useBalanceUpdateLoading';
|
|
5
|
+
import { TokenInfo } from '../../../../hooks/Token';
|
|
6
|
+
import { TokenPickerProps } from '../../../TokenPicker';
|
|
7
7
|
export interface TokenCardProps {
|
|
8
8
|
amt: string;
|
|
9
9
|
fiatPriceTxt?: string | React.ReactNode;
|
|
@@ -36,6 +36,5 @@ export interface TokenCardProps {
|
|
|
36
36
|
checkLogBalance?: BalanceData;
|
|
37
37
|
notTokenPickerModal?: boolean;
|
|
38
38
|
}
|
|
39
|
-
export declare function CardPlus(): JSX.Element;
|
|
40
39
|
export declare function CardPlusConnected(): JSX.Element;
|
|
41
40
|
export declare function TokenCard({ sx, inputSx, amt, title, token, readOnly, showMaxBtn, canClickBalance, onMaxClick, fiatPriceTxt, occupiedAddrs, occupiedChainId, onInputFocus, onTokenClick, onInputChange, onTokenChange, side, showChainLogo, showChainName, defaultLoadBalance, overrideBalance, overrideBalanceLoading, balanceText, showPercentage, inputReadonlyTooltip, inputTypography, chainId, hideToken, checkLogBalance, notTokenPickerModal, }: TokenCardProps): JSX.Element;
|
|
@@ -16,7 +16,14 @@ export declare function truncatePoolAddress(address: string): string;
|
|
|
16
16
|
export declare function sortsAddress(address0: string, address1: string): boolean;
|
|
17
17
|
export declare function getEtherscanPage(chainId: ChainId, id?: string | null, prefix?: string): string;
|
|
18
18
|
export declare function openEtherscanPage(path: string | undefined, chainId: ChainId, customUrl?: string): Promise<void>;
|
|
19
|
-
|
|
19
|
+
/**
|
|
20
|
+
* UniswapV2Router02
|
|
21
|
+
* contracts > v2-periphery-contracts > contracts > libraries > UniswapV2Library.sol -> pairFor
|
|
22
|
+
* @param chainId
|
|
23
|
+
* @returns
|
|
24
|
+
* @see https://test-explorer.plumenetwork.xyz/address/0x3A7Bc5F9E41356728f037f17D88c642EE46d1Aaa?tab=contract
|
|
25
|
+
*/
|
|
26
|
+
export declare const getUniInitCodeHash: (chainId: number) => "0x67a372377cf6d7f78cfdcc9df0bc21e1139bd49e5a47c33ee0de5389a4396410" | "0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f" | "0x007722521498f3d29a63d1eb6ab35e202874706c77ce73d45c1ad9da88174a3f";
|
|
20
27
|
export declare function sortsBefore(tokenA: TokenInfo, tokenB: TokenInfo): boolean;
|
|
21
28
|
export declare const computePairAddress: ({ factoryAddress, tokenA, tokenB, fee, }: {
|
|
22
29
|
factoryAddress: string;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { Page, PageType } from '../../../router/types';
|
|
2
|
-
export default function PoolList({ params, }: {
|
|
3
|
+
export default function PoolList({ params, scrollRef: scrollParentRefProps, }: {
|
|
3
4
|
params?: Page<PageType.Pool>['params'];
|
|
5
|
+
scrollRef?: React.RefObject<any>;
|
|
4
6
|
}): JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OperatePool } from './types';
|
|
2
1
|
import { usePoolBalanceInfo } from '../hooks/usePoolBalanceInfo';
|
|
2
|
+
import { OperatePool } from './types';
|
|
3
3
|
export declare function AddPoolOperate({ submittedBack: submittedBackProps, onlyShowSide, pool, balanceInfo, }: {
|
|
4
4
|
submittedBack?: () => void;
|
|
5
5
|
onlyShowSide?: 'base' | 'quote';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OperatePool } from './types';
|
|
2
1
|
import { usePoolBalanceInfo } from '../hooks/usePoolBalanceInfo';
|
|
2
|
+
import { OperatePool } from './types';
|
|
3
3
|
export declare function RemovePoolOperate({ submittedBack: submittedBackProps, onlyShowSide, pool, balanceInfo, }: {
|
|
4
4
|
submittedBack?: () => void;
|
|
5
5
|
onlyShowSide?: 'base' | 'quote';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BoxProps } from '@dodoex/components';
|
|
1
2
|
import { usePoolBalanceInfo } from '../../hooks/usePoolBalanceInfo';
|
|
2
3
|
import { OperatePool } from '../types';
|
|
3
4
|
export interface LiquidityInfoProps {
|
|
@@ -5,5 +6,6 @@ export interface LiquidityInfoProps {
|
|
|
5
6
|
hidePoolInfo?: boolean;
|
|
6
7
|
pool: OperatePool;
|
|
7
8
|
balanceInfo: ReturnType<typeof usePoolBalanceInfo>;
|
|
9
|
+
sx?: BoxProps['sx'];
|
|
8
10
|
}
|
|
9
|
-
export default function LiquidityInfo({ loading: loadingProps, hidePoolInfo, pool, balanceInfo, }: LiquidityInfoProps): JSX.Element;
|
|
11
|
+
export default function LiquidityInfo({ loading: loadingProps, hidePoolInfo, pool, balanceInfo, sx, }: LiquidityInfoProps): JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BoxProps } from '@dodoex/components';
|
|
2
|
+
import { usePoolBalanceInfo } from '../../hooks/usePoolBalanceInfo';
|
|
3
|
+
import { OperatePool } from '../types';
|
|
4
|
+
export interface LiquidityInfoProps {
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
hidePoolInfo?: boolean;
|
|
7
|
+
pool: OperatePool;
|
|
8
|
+
balanceInfo: ReturnType<typeof usePoolBalanceInfo>;
|
|
9
|
+
}
|
|
10
|
+
export declare function MyLiquidityInfo({ loading: loadingProps, pool, balanceInfo, sx, }: {
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
pool: OperatePool;
|
|
13
|
+
balanceInfo: ReturnType<typeof usePoolBalanceInfo>;
|
|
14
|
+
sx?: BoxProps['sx'];
|
|
15
|
+
}): JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PoolType } from '@dodoex/api';
|
|
2
2
|
import { BigNumber } from 'bignumber.js';
|
|
3
|
-
import { TokenInfo } from '../../../hooks/Token';
|
|
4
3
|
type Balance = BigNumber | null | undefined;
|
|
5
4
|
export declare function getLpToTokenBalance(userLpBalance: Balance, totalLpBalance: Balance, reserve: Balance, target: Balance, address: string | undefined, type: PoolType | undefined, decimals: number | undefined): undefined[] | BigNumber[];
|
|
6
5
|
export declare function usePoolBalanceInfo({ account, pool, }: {
|
|
@@ -8,8 +7,10 @@ export declare function usePoolBalanceInfo({ account, pool, }: {
|
|
|
8
7
|
pool?: {
|
|
9
8
|
address: string;
|
|
10
9
|
chainId: number;
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
baseTokenDecimals: number;
|
|
11
|
+
quoteTokenDecimals: number;
|
|
12
|
+
baseLpTokenDecimals: number;
|
|
13
|
+
quoteLpTokenDecimals: number;
|
|
13
14
|
type: PoolType;
|
|
14
15
|
};
|
|
15
16
|
}): {
|
|
@@ -39,11 +39,13 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
39
39
|
id: string;
|
|
40
40
|
symbol: string;
|
|
41
41
|
name: string;
|
|
42
|
+
decimals: any;
|
|
42
43
|
} | null;
|
|
43
44
|
quoteLpToken?: {
|
|
44
45
|
id: string;
|
|
45
46
|
symbol: string;
|
|
46
47
|
name: string;
|
|
48
|
+
decimals: any;
|
|
47
49
|
} | null;
|
|
48
50
|
} | null;
|
|
49
51
|
data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery;
|
|
@@ -106,11 +108,13 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
106
108
|
id: string;
|
|
107
109
|
symbol: string;
|
|
108
110
|
name: string;
|
|
111
|
+
decimals: any;
|
|
109
112
|
} | null;
|
|
110
113
|
quoteLpToken?: {
|
|
111
114
|
id: string;
|
|
112
115
|
symbol: string;
|
|
113
116
|
name: string;
|
|
117
|
+
decimals: any;
|
|
114
118
|
} | null;
|
|
115
119
|
} | null;
|
|
116
120
|
data: import("@dodoex/api/dist/types/gql/graphql").FetchPoolQuery;
|
|
@@ -173,11 +177,13 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
173
177
|
id: string;
|
|
174
178
|
symbol: string;
|
|
175
179
|
name: string;
|
|
180
|
+
decimals: any;
|
|
176
181
|
} | null;
|
|
177
182
|
quoteLpToken?: {
|
|
178
183
|
id: string;
|
|
179
184
|
symbol: string;
|
|
180
185
|
name: string;
|
|
186
|
+
decimals: any;
|
|
181
187
|
} | null;
|
|
182
188
|
} | null;
|
|
183
189
|
data: undefined;
|
|
@@ -240,11 +246,13 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
240
246
|
id: string;
|
|
241
247
|
symbol: string;
|
|
242
248
|
name: string;
|
|
249
|
+
decimals: any;
|
|
243
250
|
} | null;
|
|
244
251
|
quoteLpToken?: {
|
|
245
252
|
id: string;
|
|
246
253
|
symbol: string;
|
|
247
254
|
name: string;
|
|
255
|
+
decimals: any;
|
|
248
256
|
} | null;
|
|
249
257
|
} | null;
|
|
250
258
|
data: undefined;
|
|
@@ -307,11 +315,13 @@ export declare function usePoolDetail({ id, chainId, }: {
|
|
|
307
315
|
id: string;
|
|
308
316
|
symbol: string;
|
|
309
317
|
name: string;
|
|
318
|
+
decimals: any;
|
|
310
319
|
} | null;
|
|
311
320
|
quoteLpToken?: {
|
|
312
321
|
id: string;
|
|
313
322
|
symbol: string;
|
|
314
323
|
name: string;
|
|
324
|
+
decimals: any;
|
|
315
325
|
} | null;
|
|
316
326
|
} | null;
|
|
317
327
|
data: undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dodoex/widgets",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3-neox.3",
|
|
4
4
|
"description": "DODO Widgets",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@babel/runtime": "^7.17.0",
|
|
61
|
-
"@dodoex/api": "3.0.
|
|
62
|
-
"@dodoex/components": "
|
|
61
|
+
"@dodoex/api": "3.0.3-neox.3",
|
|
62
|
+
"@dodoex/components": "3.0.1-beta.1",
|
|
63
63
|
"@dodoex/contract-request": "^1.3.0",
|
|
64
|
-
"@dodoex/dodo-contract-request": "^1.
|
|
64
|
+
"@dodoex/dodo-contract-request": "^1.9.0-alpha.3",
|
|
65
65
|
"@dodoex/icons": "^2.0.2",
|
|
66
66
|
"@emotion/react": "^11.10.0",
|
|
67
67
|
"@emotion/styled": "^11.10.0",
|