@dhedge/trading-widget 3.1.0 → 3.1.2
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/core-kit/abi/easy-swapper-v2.d.ts +114 -0
- package/core-kit/hooks/pool/multicall/use-pool.static.d.ts +228 -0
- package/core-kit/hooks/trading/deposit-v2/use-deposit-quote-contract-read.d.ts +114 -0
- package/core-kit/hooks/trading/withdraw-v2/use-withdrawal-vault-address.d.ts +114 -0
- package/core-kit/hooks/user/multicall/use-user-multicall.d.ts +114 -0
- package/{index-01347663.cjs → index-3f40f1e0.cjs} +41 -41
- package/{index-0fbeafc7.js → index-d1c559d9.js} +5096 -4933
- package/index.cjs +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/{pyth-adapter-23431569.cjs → pyth-adapter-b7f2167d.cjs} +1 -1
- package/{pyth-adapter-a934350b.js → pyth-adapter-e6819793.js} +1 -1
|
@@ -1,4 +1,118 @@
|
|
|
1
1
|
export declare const EasySwapperV2Abi: readonly [{
|
|
2
|
+
readonly inputs: readonly [];
|
|
3
|
+
readonly name: "FailedInnerCall";
|
|
4
|
+
readonly type: "error";
|
|
5
|
+
}, {
|
|
6
|
+
readonly inputs: readonly [{
|
|
7
|
+
readonly internalType: "bytes";
|
|
8
|
+
readonly name: "returnData";
|
|
9
|
+
readonly type: "bytes";
|
|
10
|
+
}];
|
|
11
|
+
readonly name: "FailedToApproveParaswap";
|
|
12
|
+
readonly type: "error";
|
|
13
|
+
}, {
|
|
14
|
+
readonly inputs: readonly [{
|
|
15
|
+
readonly internalType: "contract IERC20";
|
|
16
|
+
readonly name: "destToken";
|
|
17
|
+
readonly type: "address";
|
|
18
|
+
}, {
|
|
19
|
+
readonly internalType: "uint256";
|
|
20
|
+
readonly name: "receivedAmount";
|
|
21
|
+
readonly type: "uint256";
|
|
22
|
+
}, {
|
|
23
|
+
readonly internalType: "uint256";
|
|
24
|
+
readonly name: "minAmount";
|
|
25
|
+
readonly type: "uint256";
|
|
26
|
+
}];
|
|
27
|
+
readonly name: "InsufficientAmountReceived";
|
|
28
|
+
readonly type: "error";
|
|
29
|
+
}, {
|
|
30
|
+
readonly inputs: readonly [{
|
|
31
|
+
readonly internalType: "bytes32";
|
|
32
|
+
readonly name: "routerKey";
|
|
33
|
+
readonly type: "bytes32";
|
|
34
|
+
}];
|
|
35
|
+
readonly name: "InvalidAggregator";
|
|
36
|
+
readonly type: "error";
|
|
37
|
+
}, {
|
|
38
|
+
readonly inputs: readonly [];
|
|
39
|
+
readonly name: "InvalidNativeTokenTransferEncoding";
|
|
40
|
+
readonly type: "error";
|
|
41
|
+
}, {
|
|
42
|
+
readonly inputs: readonly [];
|
|
43
|
+
readonly name: "NativeTokenSentWithoutNativeSwap";
|
|
44
|
+
readonly type: "error";
|
|
45
|
+
}, {
|
|
46
|
+
readonly inputs: readonly [{
|
|
47
|
+
readonly internalType: "uint256";
|
|
48
|
+
readonly name: "expectedAmount";
|
|
49
|
+
readonly type: "uint256";
|
|
50
|
+
}, {
|
|
51
|
+
readonly internalType: "uint256";
|
|
52
|
+
readonly name: "sentAmount";
|
|
53
|
+
readonly type: "uint256";
|
|
54
|
+
}];
|
|
55
|
+
readonly name: "NotEnoughNativeTokenSent";
|
|
56
|
+
readonly type: "error";
|
|
57
|
+
}, {
|
|
58
|
+
readonly inputs: readonly [{
|
|
59
|
+
readonly internalType: "address";
|
|
60
|
+
readonly name: "token";
|
|
61
|
+
readonly type: "address";
|
|
62
|
+
}];
|
|
63
|
+
readonly name: "SafeERC20FailedOperation";
|
|
64
|
+
readonly type: "error";
|
|
65
|
+
}, {
|
|
66
|
+
readonly inputs: readonly [{
|
|
67
|
+
readonly internalType: "address";
|
|
68
|
+
readonly name: "router";
|
|
69
|
+
readonly type: "address";
|
|
70
|
+
}, {
|
|
71
|
+
readonly components: readonly [{
|
|
72
|
+
readonly internalType: "contract IERC20";
|
|
73
|
+
readonly name: "token";
|
|
74
|
+
readonly type: "address";
|
|
75
|
+
}, {
|
|
76
|
+
readonly internalType: "uint256";
|
|
77
|
+
readonly name: "amount";
|
|
78
|
+
readonly type: "uint256";
|
|
79
|
+
}, {
|
|
80
|
+
readonly components: readonly [{
|
|
81
|
+
readonly internalType: "bytes32";
|
|
82
|
+
readonly name: "routerKey";
|
|
83
|
+
readonly type: "bytes32";
|
|
84
|
+
}, {
|
|
85
|
+
readonly internalType: "bytes";
|
|
86
|
+
readonly name: "swapData";
|
|
87
|
+
readonly type: "bytes";
|
|
88
|
+
}];
|
|
89
|
+
readonly internalType: "struct AggregatorData";
|
|
90
|
+
readonly name: "aggregatorData";
|
|
91
|
+
readonly type: "tuple";
|
|
92
|
+
}];
|
|
93
|
+
readonly internalType: "struct SrcTokenSwapDetails";
|
|
94
|
+
readonly name: "srcTokenSwapDetails";
|
|
95
|
+
readonly type: "tuple";
|
|
96
|
+
}, {
|
|
97
|
+
readonly internalType: "bytes";
|
|
98
|
+
readonly name: "returnData";
|
|
99
|
+
readonly type: "bytes";
|
|
100
|
+
}];
|
|
101
|
+
readonly name: "SwapFailed";
|
|
102
|
+
readonly type: "error";
|
|
103
|
+
}, {
|
|
104
|
+
readonly inputs: readonly [{
|
|
105
|
+
readonly internalType: "enum Permit2TransferType";
|
|
106
|
+
readonly name: "transferType";
|
|
107
|
+
readonly type: "uint8";
|
|
108
|
+
}];
|
|
109
|
+
readonly name: "UnsupportedPermit2Method";
|
|
110
|
+
readonly type: "error";
|
|
111
|
+
}, {
|
|
112
|
+
readonly inputs: readonly [];
|
|
113
|
+
readonly name: "UnsupportedTokenTransferMethod";
|
|
114
|
+
readonly type: "error";
|
|
115
|
+
}, {
|
|
2
116
|
readonly anonymous: false;
|
|
3
117
|
readonly inputs: readonly [{
|
|
4
118
|
readonly indexed: true;
|
|
@@ -246,6 +246,120 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
246
246
|
}, {
|
|
247
247
|
readonly address: `0x${string}`;
|
|
248
248
|
readonly abi: readonly [{
|
|
249
|
+
readonly inputs: readonly [];
|
|
250
|
+
readonly name: "FailedInnerCall";
|
|
251
|
+
readonly type: "error";
|
|
252
|
+
}, {
|
|
253
|
+
readonly inputs: readonly [{
|
|
254
|
+
readonly internalType: "bytes";
|
|
255
|
+
readonly name: "returnData";
|
|
256
|
+
readonly type: "bytes";
|
|
257
|
+
}];
|
|
258
|
+
readonly name: "FailedToApproveParaswap";
|
|
259
|
+
readonly type: "error";
|
|
260
|
+
}, {
|
|
261
|
+
readonly inputs: readonly [{
|
|
262
|
+
readonly internalType: "contract IERC20";
|
|
263
|
+
readonly name: "destToken";
|
|
264
|
+
readonly type: "address";
|
|
265
|
+
}, {
|
|
266
|
+
readonly internalType: "uint256";
|
|
267
|
+
readonly name: "receivedAmount";
|
|
268
|
+
readonly type: "uint256";
|
|
269
|
+
}, {
|
|
270
|
+
readonly internalType: "uint256";
|
|
271
|
+
readonly name: "minAmount";
|
|
272
|
+
readonly type: "uint256";
|
|
273
|
+
}];
|
|
274
|
+
readonly name: "InsufficientAmountReceived";
|
|
275
|
+
readonly type: "error";
|
|
276
|
+
}, {
|
|
277
|
+
readonly inputs: readonly [{
|
|
278
|
+
readonly internalType: "bytes32";
|
|
279
|
+
readonly name: "routerKey";
|
|
280
|
+
readonly type: "bytes32";
|
|
281
|
+
}];
|
|
282
|
+
readonly name: "InvalidAggregator";
|
|
283
|
+
readonly type: "error";
|
|
284
|
+
}, {
|
|
285
|
+
readonly inputs: readonly [];
|
|
286
|
+
readonly name: "InvalidNativeTokenTransferEncoding";
|
|
287
|
+
readonly type: "error";
|
|
288
|
+
}, {
|
|
289
|
+
readonly inputs: readonly [];
|
|
290
|
+
readonly name: "NativeTokenSentWithoutNativeSwap";
|
|
291
|
+
readonly type: "error";
|
|
292
|
+
}, {
|
|
293
|
+
readonly inputs: readonly [{
|
|
294
|
+
readonly internalType: "uint256";
|
|
295
|
+
readonly name: "expectedAmount";
|
|
296
|
+
readonly type: "uint256";
|
|
297
|
+
}, {
|
|
298
|
+
readonly internalType: "uint256";
|
|
299
|
+
readonly name: "sentAmount";
|
|
300
|
+
readonly type: "uint256";
|
|
301
|
+
}];
|
|
302
|
+
readonly name: "NotEnoughNativeTokenSent";
|
|
303
|
+
readonly type: "error";
|
|
304
|
+
}, {
|
|
305
|
+
readonly inputs: readonly [{
|
|
306
|
+
readonly internalType: "address";
|
|
307
|
+
readonly name: "token";
|
|
308
|
+
readonly type: "address";
|
|
309
|
+
}];
|
|
310
|
+
readonly name: "SafeERC20FailedOperation";
|
|
311
|
+
readonly type: "error";
|
|
312
|
+
}, {
|
|
313
|
+
readonly inputs: readonly [{
|
|
314
|
+
readonly internalType: "address";
|
|
315
|
+
readonly name: "router";
|
|
316
|
+
readonly type: "address";
|
|
317
|
+
}, {
|
|
318
|
+
readonly components: readonly [{
|
|
319
|
+
readonly internalType: "contract IERC20";
|
|
320
|
+
readonly name: "token";
|
|
321
|
+
readonly type: "address";
|
|
322
|
+
}, {
|
|
323
|
+
readonly internalType: "uint256";
|
|
324
|
+
readonly name: "amount";
|
|
325
|
+
readonly type: "uint256";
|
|
326
|
+
}, {
|
|
327
|
+
readonly components: readonly [{
|
|
328
|
+
readonly internalType: "bytes32";
|
|
329
|
+
readonly name: "routerKey";
|
|
330
|
+
readonly type: "bytes32";
|
|
331
|
+
}, {
|
|
332
|
+
readonly internalType: "bytes";
|
|
333
|
+
readonly name: "swapData";
|
|
334
|
+
readonly type: "bytes";
|
|
335
|
+
}];
|
|
336
|
+
readonly internalType: "struct AggregatorData";
|
|
337
|
+
readonly name: "aggregatorData";
|
|
338
|
+
readonly type: "tuple";
|
|
339
|
+
}];
|
|
340
|
+
readonly internalType: "struct SrcTokenSwapDetails";
|
|
341
|
+
readonly name: "srcTokenSwapDetails";
|
|
342
|
+
readonly type: "tuple";
|
|
343
|
+
}, {
|
|
344
|
+
readonly internalType: "bytes";
|
|
345
|
+
readonly name: "returnData";
|
|
346
|
+
readonly type: "bytes";
|
|
347
|
+
}];
|
|
348
|
+
readonly name: "SwapFailed";
|
|
349
|
+
readonly type: "error";
|
|
350
|
+
}, {
|
|
351
|
+
readonly inputs: readonly [{
|
|
352
|
+
readonly internalType: "enum Permit2TransferType";
|
|
353
|
+
readonly name: "transferType";
|
|
354
|
+
readonly type: "uint8";
|
|
355
|
+
}];
|
|
356
|
+
readonly name: "UnsupportedPermit2Method";
|
|
357
|
+
readonly type: "error";
|
|
358
|
+
}, {
|
|
359
|
+
readonly inputs: readonly [];
|
|
360
|
+
readonly name: "UnsupportedTokenTransferMethod";
|
|
361
|
+
readonly type: "error";
|
|
362
|
+
}, {
|
|
249
363
|
readonly anonymous: false;
|
|
250
364
|
readonly inputs: readonly [{
|
|
251
365
|
readonly indexed: true;
|
|
@@ -1083,6 +1197,120 @@ export declare const usePoolStatic: ({ address, chainId }: PoolContractCallParam
|
|
|
1083
1197
|
}, {
|
|
1084
1198
|
readonly address: `0x${string}`;
|
|
1085
1199
|
readonly abi: readonly [{
|
|
1200
|
+
readonly inputs: readonly [];
|
|
1201
|
+
readonly name: "FailedInnerCall";
|
|
1202
|
+
readonly type: "error";
|
|
1203
|
+
}, {
|
|
1204
|
+
readonly inputs: readonly [{
|
|
1205
|
+
readonly internalType: "bytes";
|
|
1206
|
+
readonly name: "returnData";
|
|
1207
|
+
readonly type: "bytes";
|
|
1208
|
+
}];
|
|
1209
|
+
readonly name: "FailedToApproveParaswap";
|
|
1210
|
+
readonly type: "error";
|
|
1211
|
+
}, {
|
|
1212
|
+
readonly inputs: readonly [{
|
|
1213
|
+
readonly internalType: "contract IERC20";
|
|
1214
|
+
readonly name: "destToken";
|
|
1215
|
+
readonly type: "address";
|
|
1216
|
+
}, {
|
|
1217
|
+
readonly internalType: "uint256";
|
|
1218
|
+
readonly name: "receivedAmount";
|
|
1219
|
+
readonly type: "uint256";
|
|
1220
|
+
}, {
|
|
1221
|
+
readonly internalType: "uint256";
|
|
1222
|
+
readonly name: "minAmount";
|
|
1223
|
+
readonly type: "uint256";
|
|
1224
|
+
}];
|
|
1225
|
+
readonly name: "InsufficientAmountReceived";
|
|
1226
|
+
readonly type: "error";
|
|
1227
|
+
}, {
|
|
1228
|
+
readonly inputs: readonly [{
|
|
1229
|
+
readonly internalType: "bytes32";
|
|
1230
|
+
readonly name: "routerKey";
|
|
1231
|
+
readonly type: "bytes32";
|
|
1232
|
+
}];
|
|
1233
|
+
readonly name: "InvalidAggregator";
|
|
1234
|
+
readonly type: "error";
|
|
1235
|
+
}, {
|
|
1236
|
+
readonly inputs: readonly [];
|
|
1237
|
+
readonly name: "InvalidNativeTokenTransferEncoding";
|
|
1238
|
+
readonly type: "error";
|
|
1239
|
+
}, {
|
|
1240
|
+
readonly inputs: readonly [];
|
|
1241
|
+
readonly name: "NativeTokenSentWithoutNativeSwap";
|
|
1242
|
+
readonly type: "error";
|
|
1243
|
+
}, {
|
|
1244
|
+
readonly inputs: readonly [{
|
|
1245
|
+
readonly internalType: "uint256";
|
|
1246
|
+
readonly name: "expectedAmount";
|
|
1247
|
+
readonly type: "uint256";
|
|
1248
|
+
}, {
|
|
1249
|
+
readonly internalType: "uint256";
|
|
1250
|
+
readonly name: "sentAmount";
|
|
1251
|
+
readonly type: "uint256";
|
|
1252
|
+
}];
|
|
1253
|
+
readonly name: "NotEnoughNativeTokenSent";
|
|
1254
|
+
readonly type: "error";
|
|
1255
|
+
}, {
|
|
1256
|
+
readonly inputs: readonly [{
|
|
1257
|
+
readonly internalType: "address";
|
|
1258
|
+
readonly name: "token";
|
|
1259
|
+
readonly type: "address";
|
|
1260
|
+
}];
|
|
1261
|
+
readonly name: "SafeERC20FailedOperation";
|
|
1262
|
+
readonly type: "error";
|
|
1263
|
+
}, {
|
|
1264
|
+
readonly inputs: readonly [{
|
|
1265
|
+
readonly internalType: "address";
|
|
1266
|
+
readonly name: "router";
|
|
1267
|
+
readonly type: "address";
|
|
1268
|
+
}, {
|
|
1269
|
+
readonly components: readonly [{
|
|
1270
|
+
readonly internalType: "contract IERC20";
|
|
1271
|
+
readonly name: "token";
|
|
1272
|
+
readonly type: "address";
|
|
1273
|
+
}, {
|
|
1274
|
+
readonly internalType: "uint256";
|
|
1275
|
+
readonly name: "amount";
|
|
1276
|
+
readonly type: "uint256";
|
|
1277
|
+
}, {
|
|
1278
|
+
readonly components: readonly [{
|
|
1279
|
+
readonly internalType: "bytes32";
|
|
1280
|
+
readonly name: "routerKey";
|
|
1281
|
+
readonly type: "bytes32";
|
|
1282
|
+
}, {
|
|
1283
|
+
readonly internalType: "bytes";
|
|
1284
|
+
readonly name: "swapData";
|
|
1285
|
+
readonly type: "bytes";
|
|
1286
|
+
}];
|
|
1287
|
+
readonly internalType: "struct AggregatorData";
|
|
1288
|
+
readonly name: "aggregatorData";
|
|
1289
|
+
readonly type: "tuple";
|
|
1290
|
+
}];
|
|
1291
|
+
readonly internalType: "struct SrcTokenSwapDetails";
|
|
1292
|
+
readonly name: "srcTokenSwapDetails";
|
|
1293
|
+
readonly type: "tuple";
|
|
1294
|
+
}, {
|
|
1295
|
+
readonly internalType: "bytes";
|
|
1296
|
+
readonly name: "returnData";
|
|
1297
|
+
readonly type: "bytes";
|
|
1298
|
+
}];
|
|
1299
|
+
readonly name: "SwapFailed";
|
|
1300
|
+
readonly type: "error";
|
|
1301
|
+
}, {
|
|
1302
|
+
readonly inputs: readonly [{
|
|
1303
|
+
readonly internalType: "enum Permit2TransferType";
|
|
1304
|
+
readonly name: "transferType";
|
|
1305
|
+
readonly type: "uint8";
|
|
1306
|
+
}];
|
|
1307
|
+
readonly name: "UnsupportedPermit2Method";
|
|
1308
|
+
readonly type: "error";
|
|
1309
|
+
}, {
|
|
1310
|
+
readonly inputs: readonly [];
|
|
1311
|
+
readonly name: "UnsupportedTokenTransferMethod";
|
|
1312
|
+
readonly type: "error";
|
|
1313
|
+
}, {
|
|
1086
1314
|
readonly anonymous: false;
|
|
1087
1315
|
readonly inputs: readonly [{
|
|
1088
1316
|
readonly indexed: true;
|
|
@@ -1,5 +1,119 @@
|
|
|
1
1
|
import type { PoolConfig } from 'core-kit/types/config.types';
|
|
2
2
|
export declare const useDepositQuoteContractRead: ({ address, chainId, }: Pick<PoolConfig, 'address' | 'chainId'>) => import("wagmi").UseReadContractReturnType<readonly [{
|
|
3
|
+
readonly inputs: readonly [];
|
|
4
|
+
readonly name: "FailedInnerCall";
|
|
5
|
+
readonly type: "error";
|
|
6
|
+
}, {
|
|
7
|
+
readonly inputs: readonly [{
|
|
8
|
+
readonly internalType: "bytes";
|
|
9
|
+
readonly name: "returnData";
|
|
10
|
+
readonly type: "bytes";
|
|
11
|
+
}];
|
|
12
|
+
readonly name: "FailedToApproveParaswap";
|
|
13
|
+
readonly type: "error";
|
|
14
|
+
}, {
|
|
15
|
+
readonly inputs: readonly [{
|
|
16
|
+
readonly internalType: "contract IERC20";
|
|
17
|
+
readonly name: "destToken";
|
|
18
|
+
readonly type: "address";
|
|
19
|
+
}, {
|
|
20
|
+
readonly internalType: "uint256";
|
|
21
|
+
readonly name: "receivedAmount";
|
|
22
|
+
readonly type: "uint256";
|
|
23
|
+
}, {
|
|
24
|
+
readonly internalType: "uint256";
|
|
25
|
+
readonly name: "minAmount";
|
|
26
|
+
readonly type: "uint256";
|
|
27
|
+
}];
|
|
28
|
+
readonly name: "InsufficientAmountReceived";
|
|
29
|
+
readonly type: "error";
|
|
30
|
+
}, {
|
|
31
|
+
readonly inputs: readonly [{
|
|
32
|
+
readonly internalType: "bytes32";
|
|
33
|
+
readonly name: "routerKey";
|
|
34
|
+
readonly type: "bytes32";
|
|
35
|
+
}];
|
|
36
|
+
readonly name: "InvalidAggregator";
|
|
37
|
+
readonly type: "error";
|
|
38
|
+
}, {
|
|
39
|
+
readonly inputs: readonly [];
|
|
40
|
+
readonly name: "InvalidNativeTokenTransferEncoding";
|
|
41
|
+
readonly type: "error";
|
|
42
|
+
}, {
|
|
43
|
+
readonly inputs: readonly [];
|
|
44
|
+
readonly name: "NativeTokenSentWithoutNativeSwap";
|
|
45
|
+
readonly type: "error";
|
|
46
|
+
}, {
|
|
47
|
+
readonly inputs: readonly [{
|
|
48
|
+
readonly internalType: "uint256";
|
|
49
|
+
readonly name: "expectedAmount";
|
|
50
|
+
readonly type: "uint256";
|
|
51
|
+
}, {
|
|
52
|
+
readonly internalType: "uint256";
|
|
53
|
+
readonly name: "sentAmount";
|
|
54
|
+
readonly type: "uint256";
|
|
55
|
+
}];
|
|
56
|
+
readonly name: "NotEnoughNativeTokenSent";
|
|
57
|
+
readonly type: "error";
|
|
58
|
+
}, {
|
|
59
|
+
readonly inputs: readonly [{
|
|
60
|
+
readonly internalType: "address";
|
|
61
|
+
readonly name: "token";
|
|
62
|
+
readonly type: "address";
|
|
63
|
+
}];
|
|
64
|
+
readonly name: "SafeERC20FailedOperation";
|
|
65
|
+
readonly type: "error";
|
|
66
|
+
}, {
|
|
67
|
+
readonly inputs: readonly [{
|
|
68
|
+
readonly internalType: "address";
|
|
69
|
+
readonly name: "router";
|
|
70
|
+
readonly type: "address";
|
|
71
|
+
}, {
|
|
72
|
+
readonly components: readonly [{
|
|
73
|
+
readonly internalType: "contract IERC20";
|
|
74
|
+
readonly name: "token";
|
|
75
|
+
readonly type: "address";
|
|
76
|
+
}, {
|
|
77
|
+
readonly internalType: "uint256";
|
|
78
|
+
readonly name: "amount";
|
|
79
|
+
readonly type: "uint256";
|
|
80
|
+
}, {
|
|
81
|
+
readonly components: readonly [{
|
|
82
|
+
readonly internalType: "bytes32";
|
|
83
|
+
readonly name: "routerKey";
|
|
84
|
+
readonly type: "bytes32";
|
|
85
|
+
}, {
|
|
86
|
+
readonly internalType: "bytes";
|
|
87
|
+
readonly name: "swapData";
|
|
88
|
+
readonly type: "bytes";
|
|
89
|
+
}];
|
|
90
|
+
readonly internalType: "struct AggregatorData";
|
|
91
|
+
readonly name: "aggregatorData";
|
|
92
|
+
readonly type: "tuple";
|
|
93
|
+
}];
|
|
94
|
+
readonly internalType: "struct SrcTokenSwapDetails";
|
|
95
|
+
readonly name: "srcTokenSwapDetails";
|
|
96
|
+
readonly type: "tuple";
|
|
97
|
+
}, {
|
|
98
|
+
readonly internalType: "bytes";
|
|
99
|
+
readonly name: "returnData";
|
|
100
|
+
readonly type: "bytes";
|
|
101
|
+
}];
|
|
102
|
+
readonly name: "SwapFailed";
|
|
103
|
+
readonly type: "error";
|
|
104
|
+
}, {
|
|
105
|
+
readonly inputs: readonly [{
|
|
106
|
+
readonly internalType: "enum Permit2TransferType";
|
|
107
|
+
readonly name: "transferType";
|
|
108
|
+
readonly type: "uint8";
|
|
109
|
+
}];
|
|
110
|
+
readonly name: "UnsupportedPermit2Method";
|
|
111
|
+
readonly type: "error";
|
|
112
|
+
}, {
|
|
113
|
+
readonly inputs: readonly [];
|
|
114
|
+
readonly name: "UnsupportedTokenTransferMethod";
|
|
115
|
+
readonly type: "error";
|
|
116
|
+
}, {
|
|
3
117
|
readonly anonymous: false;
|
|
4
118
|
readonly inputs: readonly [{
|
|
5
119
|
readonly indexed: true;
|
|
@@ -1,4 +1,118 @@
|
|
|
1
1
|
export declare const useWithdrawalVaultAddress: () => import("wagmi").UseReadContractReturnType<readonly [{
|
|
2
|
+
readonly inputs: readonly [];
|
|
3
|
+
readonly name: "FailedInnerCall";
|
|
4
|
+
readonly type: "error";
|
|
5
|
+
}, {
|
|
6
|
+
readonly inputs: readonly [{
|
|
7
|
+
readonly internalType: "bytes";
|
|
8
|
+
readonly name: "returnData";
|
|
9
|
+
readonly type: "bytes";
|
|
10
|
+
}];
|
|
11
|
+
readonly name: "FailedToApproveParaswap";
|
|
12
|
+
readonly type: "error";
|
|
13
|
+
}, {
|
|
14
|
+
readonly inputs: readonly [{
|
|
15
|
+
readonly internalType: "contract IERC20";
|
|
16
|
+
readonly name: "destToken";
|
|
17
|
+
readonly type: "address";
|
|
18
|
+
}, {
|
|
19
|
+
readonly internalType: "uint256";
|
|
20
|
+
readonly name: "receivedAmount";
|
|
21
|
+
readonly type: "uint256";
|
|
22
|
+
}, {
|
|
23
|
+
readonly internalType: "uint256";
|
|
24
|
+
readonly name: "minAmount";
|
|
25
|
+
readonly type: "uint256";
|
|
26
|
+
}];
|
|
27
|
+
readonly name: "InsufficientAmountReceived";
|
|
28
|
+
readonly type: "error";
|
|
29
|
+
}, {
|
|
30
|
+
readonly inputs: readonly [{
|
|
31
|
+
readonly internalType: "bytes32";
|
|
32
|
+
readonly name: "routerKey";
|
|
33
|
+
readonly type: "bytes32";
|
|
34
|
+
}];
|
|
35
|
+
readonly name: "InvalidAggregator";
|
|
36
|
+
readonly type: "error";
|
|
37
|
+
}, {
|
|
38
|
+
readonly inputs: readonly [];
|
|
39
|
+
readonly name: "InvalidNativeTokenTransferEncoding";
|
|
40
|
+
readonly type: "error";
|
|
41
|
+
}, {
|
|
42
|
+
readonly inputs: readonly [];
|
|
43
|
+
readonly name: "NativeTokenSentWithoutNativeSwap";
|
|
44
|
+
readonly type: "error";
|
|
45
|
+
}, {
|
|
46
|
+
readonly inputs: readonly [{
|
|
47
|
+
readonly internalType: "uint256";
|
|
48
|
+
readonly name: "expectedAmount";
|
|
49
|
+
readonly type: "uint256";
|
|
50
|
+
}, {
|
|
51
|
+
readonly internalType: "uint256";
|
|
52
|
+
readonly name: "sentAmount";
|
|
53
|
+
readonly type: "uint256";
|
|
54
|
+
}];
|
|
55
|
+
readonly name: "NotEnoughNativeTokenSent";
|
|
56
|
+
readonly type: "error";
|
|
57
|
+
}, {
|
|
58
|
+
readonly inputs: readonly [{
|
|
59
|
+
readonly internalType: "address";
|
|
60
|
+
readonly name: "token";
|
|
61
|
+
readonly type: "address";
|
|
62
|
+
}];
|
|
63
|
+
readonly name: "SafeERC20FailedOperation";
|
|
64
|
+
readonly type: "error";
|
|
65
|
+
}, {
|
|
66
|
+
readonly inputs: readonly [{
|
|
67
|
+
readonly internalType: "address";
|
|
68
|
+
readonly name: "router";
|
|
69
|
+
readonly type: "address";
|
|
70
|
+
}, {
|
|
71
|
+
readonly components: readonly [{
|
|
72
|
+
readonly internalType: "contract IERC20";
|
|
73
|
+
readonly name: "token";
|
|
74
|
+
readonly type: "address";
|
|
75
|
+
}, {
|
|
76
|
+
readonly internalType: "uint256";
|
|
77
|
+
readonly name: "amount";
|
|
78
|
+
readonly type: "uint256";
|
|
79
|
+
}, {
|
|
80
|
+
readonly components: readonly [{
|
|
81
|
+
readonly internalType: "bytes32";
|
|
82
|
+
readonly name: "routerKey";
|
|
83
|
+
readonly type: "bytes32";
|
|
84
|
+
}, {
|
|
85
|
+
readonly internalType: "bytes";
|
|
86
|
+
readonly name: "swapData";
|
|
87
|
+
readonly type: "bytes";
|
|
88
|
+
}];
|
|
89
|
+
readonly internalType: "struct AggregatorData";
|
|
90
|
+
readonly name: "aggregatorData";
|
|
91
|
+
readonly type: "tuple";
|
|
92
|
+
}];
|
|
93
|
+
readonly internalType: "struct SrcTokenSwapDetails";
|
|
94
|
+
readonly name: "srcTokenSwapDetails";
|
|
95
|
+
readonly type: "tuple";
|
|
96
|
+
}, {
|
|
97
|
+
readonly internalType: "bytes";
|
|
98
|
+
readonly name: "returnData";
|
|
99
|
+
readonly type: "bytes";
|
|
100
|
+
}];
|
|
101
|
+
readonly name: "SwapFailed";
|
|
102
|
+
readonly type: "error";
|
|
103
|
+
}, {
|
|
104
|
+
readonly inputs: readonly [{
|
|
105
|
+
readonly internalType: "enum Permit2TransferType";
|
|
106
|
+
readonly name: "transferType";
|
|
107
|
+
readonly type: "uint8";
|
|
108
|
+
}];
|
|
109
|
+
readonly name: "UnsupportedPermit2Method";
|
|
110
|
+
readonly type: "error";
|
|
111
|
+
}, {
|
|
112
|
+
readonly inputs: readonly [];
|
|
113
|
+
readonly name: "UnsupportedTokenTransferMethod";
|
|
114
|
+
readonly type: "error";
|
|
115
|
+
}, {
|
|
2
116
|
readonly anonymous: false;
|
|
3
117
|
readonly inputs: readonly [{
|
|
4
118
|
readonly indexed: true;
|