@dhedge/trading-widget 3.0.4 → 3.1.1

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.
Files changed (47) hide show
  1. package/README.md +30 -1
  2. package/core-kit/abi/easy-swapper-v2.d.ts +114 -0
  3. package/core-kit/const/contracts/base.d.ts +1 -0
  4. package/core-kit/const/default-data.d.ts +2 -0
  5. package/core-kit/const/error.d.ts +6 -0
  6. package/core-kit/const/logger.d.ts +6 -5
  7. package/core-kit/hooks/pool/index.d.ts +1 -1
  8. package/core-kit/hooks/pool/multicall/use-pool.static.d.ts +228 -0
  9. package/core-kit/hooks/pool/{use-fmed-vested-points.d.ts → use-vault-vested-points.d.ts} +3 -1
  10. package/core-kit/hooks/trading/deposit-v2/use-deposit-quote-contract-read.d.ts +114 -0
  11. package/core-kit/hooks/trading/withdraw-v2/use-withdrawal-vault-address.d.ts +114 -0
  12. package/core-kit/hooks/user/multicall/use-user-multicall.d.ts +114 -0
  13. package/core-kit/utils/flat-money.d.ts +1 -1
  14. package/core-kit/utils/index.d.ts +1 -0
  15. package/core-kit/utils/logger.d.ts +17 -0
  16. package/{index-9cb35e91.js → index-348a3d46.js} +12699 -12264
  17. package/index-71d484d4.cjs +217 -0
  18. package/index.cjs +1 -1
  19. package/index.d.ts +2 -2
  20. package/index.js +145 -143
  21. package/package.json +1 -1
  22. package/{pyth-adapter-c77fed23.js → pyth-adapter-14673ba7.js} +1 -1
  23. package/{pyth-adapter-0e675a02.cjs → pyth-adapter-a1821dab.cjs} +1 -1
  24. package/style.css +1 -1
  25. package/trading-widget/components/common/button/icon-button/icon-button.d.ts +1 -0
  26. package/trading-widget/components/common/button/reload-button/reload-button.d.ts +3 -0
  27. package/trading-widget/components/common/button/reload-button/reload-button.hooks.d.ts +10 -0
  28. package/trading-widget/components/common/layout/index.d.ts +2 -0
  29. package/trading-widget/components/common/layout/notification/notification.d.ts +6 -0
  30. package/trading-widget/components/widget/widget-buttons/index.d.ts +1 -0
  31. package/trading-widget/components/widget/widget-buttons/reload-swap-quote-button/reload-deposit-swap-quote-button/reload-deposit-swap-quote-button.d.ts +2 -0
  32. package/trading-widget/components/widget/widget-buttons/reload-swap-quote-button/reload-deposit-swap-quote-button/reload-deposit-swap-quote-button.hooks.d.ts +8 -0
  33. package/trading-widget/components/widget/widget-buttons/reload-swap-quote-button/reload-swap-quote-button.d.ts +2 -0
  34. package/trading-widget/components/widget/widget-buttons/reload-swap-quote-button/reload-withdraw-swap-quote-button/reload-withdraw-swap-quote-button.d.ts +2 -0
  35. package/trading-widget/components/widget/widget-buttons/reload-swap-quote-button/reload-withdraw-swap-quote-button/reload-withdraw-swap-quote-button.hooks.d.ts +8 -0
  36. package/trading-widget/components/widget/widget-overlay/{fmed-withdrawal-overlay/fmed-withdrawal-overlay.d.ts → fmp-withdrawal-overlay/fmp-withdrawal-overlay.d.ts} +1 -1
  37. package/trading-widget/components/widget/widget-overlay/fmp-withdrawal-overlay/fmp-withdrawal-overlay.hooks.d.ts +10 -0
  38. package/trading-widget/components/widget/widget-overlay/index.d.ts +2 -1
  39. package/trading-widget/components/widget/widget-overlay/notification-overlay/notification-overlay.d.ts +3 -0
  40. package/trading-widget/components/widget/widget-overlay/notification-overlay/notification-overlay.hooks.d.ts +8 -0
  41. package/trading-widget/components/withdraw/complete-step/button/swap-button/swap-button.hooks.d.ts +1 -1
  42. package/trading-widget/providers/config-provider/config-provider.types.d.ts +1 -0
  43. package/trading-widget/providers/overlay-provider/overlay-provider.hooks.d.ts +3 -0
  44. package/trading-widget/providers/overlay-provider/overlay-provider.types.d.ts +4 -1
  45. package/trading-widget/providers/translation-provider/translation-provider.types.d.ts +2 -0
  46. package/trading-widget/types/overlay.types.d.ts +2 -1
  47. package/index-389bb96e.cjs +0 -217
package/README.md CHANGED
@@ -120,6 +120,7 @@ UI configuration provider. Manages params to configure custom styling, component
120
120
  > | `defaultWithdrawSlippage` | `number` | `[0.1, 0.3, 0.5, 1, 1.5, 3]` | Initial withdraw slippage absolute percent. Further adjustments are available in panel settings |
121
121
  > | `defaultSwapTransactionSlippage` | `number` | `0.3` | Default slippage (%) applied to swap transaction. |
122
122
  > | `defaultNoSwapMinDepositAmountGap` | `number` | `0.1` | Default gap (%) for min received vault tokens during no swap deposits. |
123
+ > | `defaultNotificationDuration` | `number` | `10000` | Notification duration in ms |
123
124
  > | `defaultLockTime` | `string` | `'24 hours'` | Formatted default deposit lock time to be displayed in panel (Long lockup period is used to bypass entry fee and can be managed in panel settings) |
124
125
  > | `customLockTime` | `string` | `'15 minutes'` | Formatted custom deposit lock time alternative to be displayed in panel |
125
126
  > | `stablePrecision` | `number` | `3` | Number of decimals to be displayed in stables (e.g USDC balance) |
@@ -429,7 +430,7 @@ path: `component.meta[name]`
429
430
  </summary>|
430
431
 
431
432
  > | name | type | default value | description |
432
- > | -------------------------------- | ------ |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| ----------- |
433
+ > | -------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
433
434
  > | `depositSlippageWarning` | string | Excludes entry fee. Slippage may be amplified by the leverage. See the docs for more info. | |
434
435
  > | `withdrawSlippageWarning` | string | Slippage only applies to single asset withdrawals and withdrawals from vaults with debt positions in Aave. | |
435
436
  > | `minSlippageWarning` | string | Flexible min slippage value that is likely enough to process the transaction. | |
@@ -498,6 +499,7 @@ path: `component.meta[name]`
498
499
  > | `selectToken` | string | Select Token | |
499
500
  > | `sendingOrderToWallet` | string | Sending order to your wallet | |
500
501
  > | `settingUpTx` | string | Setting up transaction | |
502
+ > | `miningTx` | string | Processing | |
501
503
  > | `updateSynthetixOracles` | string | Updating Synthetix Oracles | |
502
504
  > | `approveSpending` | string | Approve {symbol} spending | |
503
505
  > | `pay` | string | Pay | |
@@ -522,9 +524,36 @@ path: `component.meta[name]`
522
524
  > | `total` | string | Total: | |
523
525
  > | `showAll` | string | Show All | |
524
526
  > | `hide` | string | Hide | |
527
+ > | `refreshSwapQuoteTooltip` | string | Refresh swap quote | |
525
528
 
526
529
  ###### Source: `packages/trading-widget/src/trading-widget/providers/translation-provider/translation-provider.tsx`
527
530
 
528
531
  ###### Default values: `packages/trading-widget/src/trading-widget/providers/translation-provider/translation-provider.defaults.ts`
529
532
 
530
533
  </details>
534
+
535
+ ## Local Development
536
+
537
+ Follow the steps below to set up the project for local development:
538
+
539
+ 1. **Install Dependencies**:
540
+ Use `pnpm` to install all required dependencies:
541
+
542
+ ```bash
543
+ pnpm install
544
+ ```
545
+
546
+ 2. **Update Alchemy API Key**: Replace the placeholder Alchemy API key in the file:
547
+
548
+ ```bash
549
+ packages/trading-widget/src/core-kit/providers/wagmi-provider.tsx
550
+ ```
551
+
552
+ 3. **Implement** getSwapData in:
553
+ ```bash
554
+ packages/trading-widget/src/core-kit/providers/wagmi-provider.tsx
555
+ ```
556
+ 4. **Run Storybook**
557
+ ```bash
558
+ pnpm storybook
559
+ ```
@@ -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;
@@ -3,3 +3,4 @@ export declare const SYNTHETIX_V3_CORE_ADDRESS_BASE = "0x32C222A9A159782aFD7529c
3
3
  export declare const EASY_SWAPPER_V2_ADDRESS_BASE = "0xf067575Eb60c7587C11e867907AA7284833704d1";
4
4
  export declare const FLATCOIN_POINTS_MODULE_ADDRESS_BASE = "0x59525b9b23adc475ef91d98dae06b568ba574ce5";
5
5
  export declare const FLATMONEY_EARLY_DEPOSITOR_VAULT_ADDRESS_BASE = "0xa907504d7a4c415b4e6e1d0866d96afe8202f0e5";
6
+ export declare const FLATMONEY_DHT_STAKING_VAULT_ADDRESS_BASE = "0x1849324228d852a67eb7443e42d967e480ffe95d";
@@ -24,3 +24,5 @@ export declare const GAS_LIMIT_BUFFER_COEFF = 1.25;
24
24
  export declare const MANAGER_FEE_DENOMINATOR = 10000;
25
25
  export declare const DEFAULT_PROMISE_TIMEOUT_MS = 13000;
26
26
  export declare const DEFAULT_VISIBLE_ASSETS_LIMIT = 3;
27
+ export declare const SWAP_QUOTE_REFRESH_INTERVAL_MS = 20000;
28
+ export declare const DEFAULT_NOTIFICATION_DURATION_MS = 10000;
@@ -2,3 +2,9 @@ export declare const GAS_ESTIMATION_ERROR = "Gas estimate error occurred";
2
2
  export declare const DEFAULT_ERROR_MESSAGE = "See console logs to report error details.";
3
3
  export declare const DEFAULT_SIMULATION_ERROR = "Missing simulation params";
4
4
  export declare const SIMULATION_TIMEOUT_ERROR = "Simulation timeout";
5
+ export declare const DEPOSIT_SWAP_DATA_ERROR = "swap_data_deposit_error";
6
+ export declare const WITHDRAW_SWAP_DATA_ERROR = "swap_data_withdraw_error";
7
+ export declare const TRANSACTION_ERRORS: Record<string, {
8
+ title: string;
9
+ hint?: string;
10
+ }>;
@@ -1,11 +1,16 @@
1
1
  export declare const TRADING_PANEL_LOG_EVENT: {
2
2
  INVEST_INPUT_FOCUS: string;
3
3
  APPROVED_TOKEN: string;
4
+ UPDATE_ORACLES: string;
4
5
  DEPOSIT: string;
6
+ MULTI_ASSET_WITHDRAW: string;
7
+ SINGLE_ASSET_WITHDRAW: string;
8
+ SINGLE_ASSET_WITHDRAW_AND_CLAIM: string;
9
+ CLAIM: string;
10
+ SWAP: string;
5
11
  WITHDRAWAL: string;
6
12
  TRADING_SETTINGS_OPENED: string;
7
13
  INFINITE_ALLOWANCE_CHANGE: string;
8
- MULTI_ASSET_WITHDRAWAL_CHANGE: string;
9
14
  };
10
15
  /**
11
16
  * Limits: Up to 50 custom event parameters per project;
@@ -18,10 +23,6 @@ export declare const TRADING_LOG_EVENT_PARAM: {
18
23
  NAME: string;
19
24
  TYPE: string;
20
25
  };
21
- IS_MULTI_ASSET: {
22
- NAME: string;
23
- TYPE: string;
24
- };
25
26
  SYMBOL: {
26
27
  NAME: string;
27
28
  TYPE: string;
@@ -12,4 +12,4 @@ export { useSynthetixV3AssetBalance } from './synthetixV3/use-synthetix-v3-asset
12
12
  export { useTotalFundValueMutable } from './synthetixV3/use-total-funds-value-mutable';
13
13
  export { useInvalidatePoolContractData } from './use-invalidate-pool-contract-data';
14
14
  export { usePoolsDynamic } from './multicall';
15
- export { useFmedVestedPoints } from './use-fmed-vested-points';
15
+ export { useVaultVestedPoints } from './use-vault-vested-points';
@@ -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,7 +1,9 @@
1
+ import type { Address } from 'core-kit/types';
1
2
  interface UseFmedVestedPointsProps {
2
3
  enabled?: boolean;
4
+ address: Address;
3
5
  }
4
- export declare const useFmedVestedPoints: ({ enabled, }?: UseFmedVestedPointsProps | undefined) => import("wagmi").UseReadContractsReturnType<{
6
+ export declare const useVaultVestedPoints: ({ enabled, address, }: UseFmedVestedPointsProps) => import("wagmi").UseReadContractsReturnType<{
5
7
  address: `0x${string}`;
6
8
  chainId: 8453;
7
9
  abi: readonly [{
@@ -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;