@dodoex/widgets 3.0.2-zetachain.20 → 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.
@@ -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
- routeData: null;
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
- routeData: null;
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
- routeData: null;
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
- routeData: null;
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
- routeData: null;
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
- routeData: null;
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;
@@ -7,6 +7,22 @@ export type MidPathType = {
7
7
  poolAddress: string | null;
8
8
  }[]>;
9
9
  };
10
+ export interface RouteDataType {
11
+ subRouteTotalPart: number;
12
+ subRoute: Array<{
13
+ midPathPart: number;
14
+ midPath: Array<{
15
+ fromToken: string;
16
+ toToken: string;
17
+ oneSplitTotalPart: number;
18
+ poolDetails: Array<{
19
+ poolName: string;
20
+ pool: string;
21
+ poolPart: number;
22
+ }>;
23
+ }>;
24
+ }>;
25
+ }
10
26
  export declare function useRouteVisionData({ rawRouteData, chainId, }: {
11
27
  rawRouteData: string;
12
28
  chainId: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dodoex/widgets",
3
- "version": "3.0.2-zetachain.20",
3
+ "version": "3.0.2-zetachain.22",
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
  "@dodoex/api": "3.0.3-zetachain.8",
62
- "@dodoex/components": "3.0.3-zetachain.4",
62
+ "@dodoex/components": "3.0.3-zetachain.5",
63
63
  "@dodoex/contract-request": "^1.3.0",
64
64
  "@dodoex/dodo-contract-request": "1.12.0-alpha.4",
65
65
  "@dodoex/icons": "2.0.3-zetachain.1",