@dodoex/widgets 3.0.2-zetachain.21 → 3.0.2-zetachain.22
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-DoG4qEIn.cjs → helper-CqaIE4xv.cjs} +1 -1
- package/dist/{helper-v-YUfxBk.js → helper-DqBPoP8x.js} +1 -1
- package/dist/{index-B0nclRgB.cjs → index-1guHW9xj.cjs} +1 -1
- package/dist/{index-Qb_tdXwY.js → index-7faklOrt.js} +1 -1
- package/dist/index-Cbv1N9aF.js +40 -0
- package/dist/{index-DEEt1nK_.cjs → index-CvOKKE-A.cjs} +1 -1
- package/dist/index-Cy0L_rwv.cjs +40 -0
- package/dist/{index-C5tFAI0V.js → index-DTEiQR81.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/components/Bridge/RouteVision.d.ts +1 -1
- package/dist/types/components/Swap/SwapOrderHistory/CrossOrderCard.d.ts +1 -1
- package/dist/types/hooks/Bridge/useFetchRoutePriceBridge.d.ts +126 -1
- package/dist/types/hooks/Bridge/utils.d.ts +6 -0
- package/dist/types/hooks/Swap/useCrossSwapOrderList.d.ts +48 -6
- package/package.json +1 -1
- package/dist/index-CRWap_f7.cjs +0 -40
- package/dist/index-DVySClt8.js +0 -40
|
@@ -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 c}from"@emotion/react";import{Stage as u,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 w,f as j,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 c}from"@emotion/react";import{Stage as u,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 w,f as j,u as z,g as L,h as k,l as B,i as C,j as S,k as N}from"./helper-DqBPoP8x.js";import{f as O,j as X,a as T,b as A}from"./index-Cbv1N9aF.js";import{solveQuadraticFunctionForTarget as q,PMMModel as W}from"@dodoex/api";import"@lingui/core";import"react-dom";import"@lingui/react";import"@dodoex/components";import"@reown/appkit-utils";import"@solana/web3.js";import"@reown/appkit/networks";import"@ethersproject/bignumber";import"@tanstack/react-query";import"zustand";import"@web3-react/core";import"@dodoex/dodo-contract-request";import"@reown/appkit/react";import"@web3-react/eip1193";import"@web3-react/walletconnect-v2";import"@web3-react/metamask";import"@web3-react/types";import"axios";import"@ethersproject/contracts";import"identicon.js";import"dayjs";import"react-transition-group";import"@dodoex/contract-request";import"recharts";import"react-window";import"jsbi";import"tiny-invariant";import"@ethersproject/units";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;
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./index-
|
|
1
|
+
"use strict";var e=require("./index-Cy0L_rwv.cjs");require("react-dom"),require("@lingui/react"),require("@lingui/core"),require("@dodoex/api"),require("@dodoex/components"),require("react"),require("@reown/appkit-utils"),require("bignumber.js"),require("lodash"),require("@solana/web3.js"),require("@reown/appkit/networks"),require("@ethersproject/bignumber"),require("@tanstack/react-query"),require("zustand"),require("@web3-react/core"),require("@dodoex/dodo-contract-request"),require("@reown/appkit/react"),require("@web3-react/eip1193"),require("@web3-react/walletconnect-v2"),require("@web3-react/metamask"),require("@web3-react/types"),require("axios"),require("@ethersproject/contracts"),require("identicon.js"),require("dayjs"),require("react-transition-group"),require("@dodoex/contract-request"),require("recharts"),require("react-window"),require("jsbi"),require("tiny-invariant"),require("@ethersproject/units"),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.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,B as AMMV3PositionManage,C as AMMV3PositionsView,z as AddLiquidityV3,E as EmptyList,F as FailedList,I as InitSwapWidget,M as Message,k as MetadataFlag,v as MiningCreate,w as MiningDetail,x as MiningList,m as PageType,y as Pool,G as PoolCreate,H as PoolDetail,J as PoolList,K as PoolModify,L as PoolOperate,N as PoolOperateDialog,P as PoolWidget,c as Swap,d as SwapOrderHistory,S as SwapWidget,T as TokenCard,e as TokenLogo,U as UnstyleWidget,g as WIDGET_CLASS_NAME,h as WIDGET_MODULE_CLASS_NAME,W as Widget,i as chainListMap,t as defaultTokenList,a as formatPercentageNumber,p as formatReadableNumber,f as formatShortNumber,q as formatTokenAmountNumber,o as getEtherscanPage,r as rpcServerMap,s as scanUrlDomainMap,l as useMessageState,D as usePoolBalanceInfo,n as useRouterStore,u as useTradeSwapOrderList}from"./index-
|
|
1
|
+
export{A as AMMV2Create,B as AMMV3PositionManage,C as AMMV3PositionsView,z as AddLiquidityV3,E as EmptyList,F as FailedList,I as InitSwapWidget,M as Message,k as MetadataFlag,v as MiningCreate,w as MiningDetail,x as MiningList,m as PageType,y as Pool,G as PoolCreate,H as PoolDetail,J as PoolList,K as PoolModify,L as PoolOperate,N as PoolOperateDialog,P as PoolWidget,c as Swap,d as SwapOrderHistory,S as SwapWidget,T as TokenCard,e as TokenLogo,U as UnstyleWidget,g as WIDGET_CLASS_NAME,h as WIDGET_MODULE_CLASS_NAME,W as Widget,i as chainListMap,t as defaultTokenList,a as formatPercentageNumber,p as formatReadableNumber,f as formatShortNumber,q as formatTokenAmountNumber,o as getEtherscanPage,r as rpcServerMap,s as scanUrlDomainMap,l as useMessageState,D as usePoolBalanceInfo,n as useRouterStore,u as useTradeSwapOrderList}from"./index-Cbv1N9aF.js";import"react-dom";import"@lingui/react";import"@lingui/core";import"@dodoex/api";import"@dodoex/components";import"react";import"@reown/appkit-utils";import"bignumber.js";import"lodash";import"@solana/web3.js";import"@reown/appkit/networks";import"@ethersproject/bignumber";import"@tanstack/react-query";import"zustand";import"@web3-react/core";import"@dodoex/dodo-contract-request";import"@reown/appkit/react";import"@web3-react/eip1193";import"@web3-react/walletconnect-v2";import"@web3-react/metamask";import"@web3-react/types";import"axios";import"@ethersproject/contracts";import"identicon.js";import"dayjs";import"react-transition-group";import"@dodoex/contract-request";import"recharts";import"react-window";import"jsbi";import"tiny-invariant";import"@ethersproject/units";import"@uniswap/sdk-core";import"@uniswap/v2-sdk";import"react-infinite-scroller";import"d3";import"rmc-date-picker";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BridgeRouteI } from '../../hooks/Bridge';
|
|
3
3
|
export interface RouteVisionProps {
|
|
4
|
-
route: BridgeRouteI
|
|
4
|
+
route: Pick<BridgeRouteI, 'fromChainId' | 'toChainId' | 'step'>;
|
|
5
5
|
}
|
|
6
6
|
export declare const RouteVision: ({ route }: RouteVisionProps) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useCrossSwapOrderList } from '../../../hooks/Swap/useCrossSwapOrderList';
|
|
3
3
|
export default function CrossOrderCard({ data, isMobile, }: {
|
|
4
|
-
data: ReturnType<typeof useCrossSwapOrderList>['orderList'][0]
|
|
4
|
+
data: NonNullable<ReturnType<typeof useCrossSwapOrderList>['orderList'][0]>;
|
|
5
5
|
isMobile: boolean;
|
|
6
6
|
}): React.JSX.Element;
|
|
@@ -2,6 +2,130 @@ import { Cross_Chain_Swap_Zetachain_RoutesQuery } from '@dodoex/api';
|
|
|
2
2
|
import BigNumber from 'bignumber.js';
|
|
3
3
|
import { useWalletInfo } from '../ConnectWallet/useWalletInfo';
|
|
4
4
|
import { TokenInfo } from '../Token';
|
|
5
|
+
export declare const routesExample: {
|
|
6
|
+
data: {
|
|
7
|
+
cross_chain_swap_zetachain_routes: {
|
|
8
|
+
routeId: string;
|
|
9
|
+
fromChainId: number;
|
|
10
|
+
fromTokenAddress: string;
|
|
11
|
+
fromAmount: string;
|
|
12
|
+
fromAmountWithOutDecimals: string;
|
|
13
|
+
fromAmountUSD: string;
|
|
14
|
+
toChainId: number;
|
|
15
|
+
toTokenAddress: string;
|
|
16
|
+
toAmount: string;
|
|
17
|
+
toAmountWithOutDecimals: string;
|
|
18
|
+
toAmountUSD: string;
|
|
19
|
+
fromAddress: string;
|
|
20
|
+
toAddress: string;
|
|
21
|
+
slippage: number;
|
|
22
|
+
approveTarget: string;
|
|
23
|
+
fees: {
|
|
24
|
+
type: string;
|
|
25
|
+
chainId: number;
|
|
26
|
+
token: string;
|
|
27
|
+
amount: string;
|
|
28
|
+
AmountWithOutDecimals: string;
|
|
29
|
+
amountUSD: string;
|
|
30
|
+
}[];
|
|
31
|
+
omniPlan: ({
|
|
32
|
+
hash: string;
|
|
33
|
+
type: string;
|
|
34
|
+
inChainType: string;
|
|
35
|
+
inChainId: number;
|
|
36
|
+
inToken: string;
|
|
37
|
+
inAmount: string;
|
|
38
|
+
inAmountWithOutDecimals: number;
|
|
39
|
+
outChainType: string;
|
|
40
|
+
outChainId: number;
|
|
41
|
+
outToken: string;
|
|
42
|
+
outAmount: string;
|
|
43
|
+
outAmountWithOutDecimals: number;
|
|
44
|
+
feeChainType: string;
|
|
45
|
+
feeChainId: number;
|
|
46
|
+
feeToken: string;
|
|
47
|
+
feeAmount: string;
|
|
48
|
+
feeRateBps: number;
|
|
49
|
+
swapSteps?: undefined;
|
|
50
|
+
withdrawGasCostZrc20?: undefined;
|
|
51
|
+
withdrawGas?: undefined;
|
|
52
|
+
} | {
|
|
53
|
+
hash: string;
|
|
54
|
+
type: string;
|
|
55
|
+
inChainType: string;
|
|
56
|
+
inChainId: number;
|
|
57
|
+
inToken: string;
|
|
58
|
+
inAmount: string;
|
|
59
|
+
inAmountWithOutDecimals: number;
|
|
60
|
+
outChainType: string;
|
|
61
|
+
outChainId: number;
|
|
62
|
+
outToken: string;
|
|
63
|
+
outAmount: string;
|
|
64
|
+
outAmountWithOutDecimals: number;
|
|
65
|
+
feeChainType: string;
|
|
66
|
+
feeChainId: number;
|
|
67
|
+
feeToken: string;
|
|
68
|
+
feeAmount: string;
|
|
69
|
+
feeRateBps: number;
|
|
70
|
+
swapSteps: {
|
|
71
|
+
ammKey: string;
|
|
72
|
+
label: string;
|
|
73
|
+
percent: number;
|
|
74
|
+
inputToken: string;
|
|
75
|
+
inAmount: string;
|
|
76
|
+
outputToken: string;
|
|
77
|
+
outAmount: string;
|
|
78
|
+
feeToken: string;
|
|
79
|
+
feeAmount: string;
|
|
80
|
+
assembleArgs: {
|
|
81
|
+
baseToken: string;
|
|
82
|
+
quoteToken: string;
|
|
83
|
+
pairAddress: string;
|
|
84
|
+
pairName: string;
|
|
85
|
+
pmmState: {
|
|
86
|
+
i: string;
|
|
87
|
+
k: string;
|
|
88
|
+
b: string;
|
|
89
|
+
q: string;
|
|
90
|
+
b0: string;
|
|
91
|
+
q0: string;
|
|
92
|
+
r: number;
|
|
93
|
+
};
|
|
94
|
+
lpFeeRate: string;
|
|
95
|
+
mtFeeRate: string;
|
|
96
|
+
updatedAt: string;
|
|
97
|
+
};
|
|
98
|
+
}[];
|
|
99
|
+
withdrawGasCostZrc20?: undefined;
|
|
100
|
+
withdrawGas?: undefined;
|
|
101
|
+
} | {
|
|
102
|
+
hash: string;
|
|
103
|
+
type: string;
|
|
104
|
+
inChainType: string;
|
|
105
|
+
inChainId: number;
|
|
106
|
+
inToken: string;
|
|
107
|
+
inAmount: string;
|
|
108
|
+
inAmountWithOutDecimals: number;
|
|
109
|
+
outChainType: string;
|
|
110
|
+
outChainId: number;
|
|
111
|
+
outToken: string;
|
|
112
|
+
outAmount: string;
|
|
113
|
+
outAmountWithOutDecimals: number;
|
|
114
|
+
feeChainType: string;
|
|
115
|
+
feeChainId: number;
|
|
116
|
+
feeToken: string;
|
|
117
|
+
feeAmount: string;
|
|
118
|
+
feeRateBps: number;
|
|
119
|
+
withdrawGasCostZrc20: string;
|
|
120
|
+
withdrawGas: string;
|
|
121
|
+
swapSteps?: undefined;
|
|
122
|
+
})[];
|
|
123
|
+
encodeParams: {
|
|
124
|
+
interfaceParams: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
5
129
|
export interface BridgeTokenI {
|
|
6
130
|
id: number;
|
|
7
131
|
symbol: string;
|
|
@@ -31,7 +155,7 @@ export interface BridgeStepSwapStep {
|
|
|
31
155
|
inAmount: string;
|
|
32
156
|
outputToken: TokenInfo;
|
|
33
157
|
outAmount: string;
|
|
34
|
-
assembleArgs
|
|
158
|
+
assembleArgs?: {
|
|
35
159
|
baseToken: string;
|
|
36
160
|
quoteToken: string;
|
|
37
161
|
pairAddress: string;
|
|
@@ -52,6 +176,7 @@ export interface BridgeStep {
|
|
|
52
176
|
type: string;
|
|
53
177
|
estimate: BridgeStepEstimate;
|
|
54
178
|
swapSteps?: Array<BridgeStepSwapStep>;
|
|
179
|
+
hash?: string;
|
|
55
180
|
}>;
|
|
56
181
|
}
|
|
57
182
|
export interface BridgeRouteI {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TokenList } from '../Token/type';
|
|
2
|
+
import { BridgeStep, routesExample } from './useFetchRoutePriceBridge';
|
|
3
|
+
export declare function generateBridgeStep({ omniPlan, tokenList, }: {
|
|
4
|
+
omniPlan: (typeof routesExample)['data']['cross_chain_swap_zetachain_routes']['omniPlan'];
|
|
5
|
+
tokenList: TokenList;
|
|
6
|
+
}): BridgeStep;
|
|
@@ -11,7 +11,14 @@ export declare function useCrossSwapOrderList({ account, limit, type, }: {
|
|
|
11
11
|
fromAmount: BigNumber | null;
|
|
12
12
|
toAmount: BigNumber | null;
|
|
13
13
|
createdAt: string | null | undefined;
|
|
14
|
-
|
|
14
|
+
fromAddress: string | null | undefined;
|
|
15
|
+
toAddress: string | null | undefined;
|
|
16
|
+
routeData: {
|
|
17
|
+
fromChainId: number | null | undefined;
|
|
18
|
+
toChainId: number | null | undefined;
|
|
19
|
+
step: import("../Bridge").BridgeStep;
|
|
20
|
+
};
|
|
21
|
+
fees: any;
|
|
15
22
|
status: string | null | undefined;
|
|
16
23
|
transactionHash: string | null | undefined;
|
|
17
24
|
fromTokenPrice: string | null;
|
|
@@ -58,7 +65,14 @@ export declare function useCrossSwapOrderList({ account, limit, type, }: {
|
|
|
58
65
|
fromAmount: BigNumber | null;
|
|
59
66
|
toAmount: BigNumber | null;
|
|
60
67
|
createdAt: string | null | undefined;
|
|
61
|
-
|
|
68
|
+
fromAddress: string | null | undefined;
|
|
69
|
+
toAddress: string | null | undefined;
|
|
70
|
+
routeData: {
|
|
71
|
+
fromChainId: number | null | undefined;
|
|
72
|
+
toChainId: number | null | undefined;
|
|
73
|
+
step: import("../Bridge").BridgeStep;
|
|
74
|
+
};
|
|
75
|
+
fees: any;
|
|
62
76
|
status: string | null | undefined;
|
|
63
77
|
transactionHash: string | null | undefined;
|
|
64
78
|
fromTokenPrice: string | null;
|
|
@@ -105,7 +119,14 @@ export declare function useCrossSwapOrderList({ account, limit, type, }: {
|
|
|
105
119
|
fromAmount: BigNumber | null;
|
|
106
120
|
toAmount: BigNumber | null;
|
|
107
121
|
createdAt: string | null | undefined;
|
|
108
|
-
|
|
122
|
+
fromAddress: string | null | undefined;
|
|
123
|
+
toAddress: string | null | undefined;
|
|
124
|
+
routeData: {
|
|
125
|
+
fromChainId: number | null | undefined;
|
|
126
|
+
toChainId: number | null | undefined;
|
|
127
|
+
step: import("../Bridge").BridgeStep;
|
|
128
|
+
};
|
|
129
|
+
fees: any;
|
|
109
130
|
status: string | null | undefined;
|
|
110
131
|
transactionHash: string | null | undefined;
|
|
111
132
|
fromTokenPrice: string | null;
|
|
@@ -152,7 +173,14 @@ export declare function useCrossSwapOrderList({ account, limit, type, }: {
|
|
|
152
173
|
fromAmount: BigNumber | null;
|
|
153
174
|
toAmount: BigNumber | null;
|
|
154
175
|
createdAt: string | null | undefined;
|
|
155
|
-
|
|
176
|
+
fromAddress: string | null | undefined;
|
|
177
|
+
toAddress: string | null | undefined;
|
|
178
|
+
routeData: {
|
|
179
|
+
fromChainId: number | null | undefined;
|
|
180
|
+
toChainId: number | null | undefined;
|
|
181
|
+
step: import("../Bridge").BridgeStep;
|
|
182
|
+
};
|
|
183
|
+
fees: any;
|
|
156
184
|
status: string | null | undefined;
|
|
157
185
|
transactionHash: string | null | undefined;
|
|
158
186
|
fromTokenPrice: string | null;
|
|
@@ -199,7 +227,14 @@ export declare function useCrossSwapOrderList({ account, limit, type, }: {
|
|
|
199
227
|
fromAmount: BigNumber | null;
|
|
200
228
|
toAmount: BigNumber | null;
|
|
201
229
|
createdAt: string | null | undefined;
|
|
202
|
-
|
|
230
|
+
fromAddress: string | null | undefined;
|
|
231
|
+
toAddress: string | null | undefined;
|
|
232
|
+
routeData: {
|
|
233
|
+
fromChainId: number | null | undefined;
|
|
234
|
+
toChainId: number | null | undefined;
|
|
235
|
+
step: import("../Bridge").BridgeStep;
|
|
236
|
+
};
|
|
237
|
+
fees: any;
|
|
203
238
|
status: string | null | undefined;
|
|
204
239
|
transactionHash: string | null | undefined;
|
|
205
240
|
fromTokenPrice: string | null;
|
|
@@ -246,7 +281,14 @@ export declare function useCrossSwapOrderList({ account, limit, type, }: {
|
|
|
246
281
|
fromAmount: BigNumber | null;
|
|
247
282
|
toAmount: BigNumber | null;
|
|
248
283
|
createdAt: string | null | undefined;
|
|
249
|
-
|
|
284
|
+
fromAddress: string | null | undefined;
|
|
285
|
+
toAddress: string | null | undefined;
|
|
286
|
+
routeData: {
|
|
287
|
+
fromChainId: number | null | undefined;
|
|
288
|
+
toChainId: number | null | undefined;
|
|
289
|
+
step: import("../Bridge").BridgeStep;
|
|
290
|
+
};
|
|
291
|
+
fees: any;
|
|
250
292
|
status: string | null | undefined;
|
|
251
293
|
transactionHash: string | null | undefined;
|
|
252
294
|
fromTokenPrice: string | null;
|