@morpho-org/morpho-sdk 5.9.0 → 5.11.0

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 (97) hide show
  1. package/README.md +6 -0
  2. package/lib/cjs/abis.d.ts +17 -2
  3. package/lib/cjs/abis.js +14 -1
  4. package/lib/cjs/actions/midnight/supplyCollateralTakeBorrow.d.ts +2 -2
  5. package/lib/cjs/actions/midnight/supplyCollateralTakeBorrow.js +2 -2
  6. package/lib/cjs/actions/midnight/takeBorrow.d.ts +2 -2
  7. package/lib/cjs/actions/midnight/takeBorrow.js +2 -2
  8. package/lib/cjs/actions/midnight/takeLend.d.ts +2 -2
  9. package/lib/cjs/actions/midnight/takeLend.js +2 -2
  10. package/lib/cjs/augment/VaultMarketPublicAllocatorConfig.d.ts +4 -1
  11. package/lib/cjs/blue/abis.d.ts +5 -1
  12. package/lib/cjs/blue/abis.js +2 -0
  13. package/lib/cjs/blue/entities.d.ts +8 -2
  14. package/lib/cjs/blue/entities.js +1 -0
  15. package/lib/cjs/blue/errors.d.ts +1 -1
  16. package/lib/cjs/blue/errors.js +2 -1
  17. package/lib/cjs/blue/fetch.d.ts +3 -1
  18. package/lib/cjs/blue/fetch.js +1 -0
  19. package/lib/cjs/entities/blue/blue.d.ts +10 -0
  20. package/lib/cjs/entities/blue/blue.js +9 -2
  21. package/lib/cjs/entities/index.d.ts +8 -2
  22. package/lib/cjs/entities/index.js +1 -0
  23. package/lib/cjs/entities/midnight/midnight.d.ts +2 -2
  24. package/lib/cjs/entities/midnight/midnight.js +5 -13
  25. package/lib/cjs/entities/vaultV1/vaultV1.d.ts +71 -12
  26. package/lib/cjs/entities/vaultV1/vaultV1.js +9 -2
  27. package/lib/cjs/entities/vaultV1ReallocationData.d.ts +6 -0
  28. package/lib/cjs/entities/vaultV1ReallocationData.js +20 -5
  29. package/lib/cjs/entities/vaultV2/vaultV2.d.ts +2 -0
  30. package/lib/cjs/entities/vaultV2/vaultV2.js +3 -1
  31. package/lib/cjs/entities/vaultV2BlueReallocationData.d.ts +8 -1
  32. package/lib/cjs/entities/vaultV2BlueReallocationData.js +46 -13
  33. package/lib/cjs/errors.d.ts +1 -1
  34. package/lib/cjs/errors.js +3 -2
  35. package/lib/cjs/fetch.d.ts +3 -1
  36. package/lib/cjs/fetch.js +1 -0
  37. package/lib/cjs/helpers/computeVaultV1Reallocations.d.ts +2 -0
  38. package/lib/cjs/helpers/computeVaultV1Reallocations.js +2 -0
  39. package/lib/cjs/helpers/metadata.d.ts +3 -5
  40. package/lib/cjs/helpers/metadata.js +4 -6
  41. package/lib/cjs/helpers/previewVaultV2InKindRedeem.d.ts +1 -0
  42. package/lib/cjs/helpers/previewVaultV2InKindRedeem.js +2 -0
  43. package/lib/cjs/helpers/validate.d.ts +30 -8
  44. package/lib/cjs/helpers/validate.js +30 -8
  45. package/lib/cjs/types/action.d.ts +57 -4
  46. package/lib/cjs/types/error.d.ts +1 -1
  47. package/lib/cjs/types/error.js +2 -2
  48. package/lib/cjs/types/sharedLiquidity.d.ts +2 -2
  49. package/lib/esm/abis.d.ts +17 -2
  50. package/lib/esm/abis.js +17 -2
  51. package/lib/esm/actions/midnight/supplyCollateralTakeBorrow.d.ts +2 -2
  52. package/lib/esm/actions/midnight/supplyCollateralTakeBorrow.js +2 -2
  53. package/lib/esm/actions/midnight/takeBorrow.d.ts +2 -2
  54. package/lib/esm/actions/midnight/takeBorrow.js +2 -2
  55. package/lib/esm/actions/midnight/takeLend.d.ts +2 -2
  56. package/lib/esm/actions/midnight/takeLend.js +2 -2
  57. package/lib/esm/augment/VaultMarketPublicAllocatorConfig.d.ts +4 -1
  58. package/lib/esm/augment/VaultMarketPublicAllocatorConfig.js +3 -1
  59. package/lib/esm/blue/abis.d.ts +5 -1
  60. package/lib/esm/blue/abis.js +5 -1
  61. package/lib/esm/blue/entities.d.ts +8 -2
  62. package/lib/esm/blue/entities.js +3 -1
  63. package/lib/esm/blue/errors.d.ts +1 -1
  64. package/lib/esm/blue/errors.js +1 -1
  65. package/lib/esm/blue/fetch.d.ts +3 -1
  66. package/lib/esm/blue/fetch.js +3 -1
  67. package/lib/esm/entities/blue/blue.d.ts +10 -0
  68. package/lib/esm/entities/blue/blue.js +9 -2
  69. package/lib/esm/entities/index.d.ts +8 -2
  70. package/lib/esm/entities/index.js +3 -1
  71. package/lib/esm/entities/midnight/midnight.d.ts +2 -2
  72. package/lib/esm/entities/midnight/midnight.js +5 -13
  73. package/lib/esm/entities/vaultV1/vaultV1.d.ts +71 -12
  74. package/lib/esm/entities/vaultV1/vaultV1.js +9 -2
  75. package/lib/esm/entities/vaultV1ReallocationData.d.ts +6 -0
  76. package/lib/esm/entities/vaultV1ReallocationData.js +20 -5
  77. package/lib/esm/entities/vaultV2/vaultV2.d.ts +2 -0
  78. package/lib/esm/entities/vaultV2/vaultV2.js +3 -1
  79. package/lib/esm/entities/vaultV2BlueReallocationData.d.ts +8 -1
  80. package/lib/esm/entities/vaultV2BlueReallocationData.js +46 -13
  81. package/lib/esm/errors.d.ts +1 -1
  82. package/lib/esm/errors.js +1 -1
  83. package/lib/esm/fetch.d.ts +3 -1
  84. package/lib/esm/fetch.js +3 -1
  85. package/lib/esm/helpers/computeVaultV1Reallocations.d.ts +2 -0
  86. package/lib/esm/helpers/computeVaultV1Reallocations.js +2 -0
  87. package/lib/esm/helpers/metadata.d.ts +3 -5
  88. package/lib/esm/helpers/metadata.js +4 -6
  89. package/lib/esm/helpers/previewVaultV2InKindRedeem.d.ts +1 -0
  90. package/lib/esm/helpers/previewVaultV2InKindRedeem.js +2 -0
  91. package/lib/esm/helpers/validate.d.ts +30 -8
  92. package/lib/esm/helpers/validate.js +30 -8
  93. package/lib/esm/types/action.d.ts +57 -4
  94. package/lib/esm/types/error.d.ts +1 -1
  95. package/lib/esm/types/error.js +2 -2
  96. package/lib/esm/types/sharedLiquidity.d.ts +2 -2
  97. package/package.json +8 -8
@@ -14,6 +14,7 @@ const blue_sdk_1 = require("@morpho-org/blue-sdk");
14
14
  * @param params.requestedExitAssets - Positive penalty-inclusive amount the user wants to exit.
15
15
  * @param params.timestamp - Timestamp used to accrue Morpho Blue markets before calculating capacity.
16
16
  * @returns Frontend-ready market choices, or an empty list when no choices are available.
17
+ * @throws {UnsupportedBlueMarketIrmError} when an adapter-listed market with positive debt uses an unsupported IRM.
17
18
  * @example
18
19
  * ```ts
19
20
  * import { previewVaultV2InKindRedeem } from "@morpho-org/morpho-sdk";
@@ -40,6 +41,7 @@ function previewVaultV2InKindRedeem(vaultData, params) {
40
41
  const penalty = vaultData.forceDeallocatePenalties[adapter.address] ?? 0n;
41
42
  const availableIdleAssets = vaultData.assetBalance;
42
43
  const allocations = adapter.markets
44
+ .filter((market) => (adapter.supplyShares[market.id] ?? 0n) !== 0n)
43
45
  .map((market) => ({
44
46
  market,
45
47
  allocationAssets: market
@@ -23,22 +23,44 @@ export declare const validateMidnightMarketChainId: (market: MidnightMarketInput
23
23
  * Asserts that the client has a connected account AND that it matches
24
24
  * the provided user address.
25
25
  *
26
- * Used internally by the signature requirements (`encodeErc20Permit`,
27
- * `encodeErc20Permit2Approve`) to enforce builder = signer at `sign()` time:
28
- * the signing flow is the only path where an account/address mismatch
29
- * is a real security concern (rather than just an integrator footgun).
26
+ * Used at `sign()` time by the shared `signAndVerifyTypedData` helper (which
27
+ * backs the permit, Permit2, Blue authorization, and Midnight offer-root
28
+ * signature flows) and by `encodeVaultSharesPermit`, to enforce builder =
29
+ * signer: the signing flow is
30
+ * the only path where an account/address mismatch is a real security concern
31
+ * (rather than just an integrator footgun).
30
32
  *
31
33
  * Transaction builders no longer call this helper — callers are
32
34
  * responsible for keeping `userAddress` aligned with the signing account
33
35
  * at the builder layer.
34
36
  *
35
- * Throws {@link MissingClientPropertyError} if the client has no account.
36
- * Throws {@link AddressMismatchError} if the client account differs from
37
- * `userAddress`.
38
- *
39
37
  * @param clientAccountAddress - The client's account address; if undefined,
40
38
  * `MissingClientPropertyError` is thrown.
41
39
  * @param userAddress - The user address provided by the caller.
40
+ * @returns Nothing; narrows `clientAccountAddress` to a defined `Address` when
41
+ * it is present and equal to `userAddress`.
42
+ * @throws {MissingClientPropertyError} when the client has no connected account.
43
+ * @throws {AddressMismatchError} when the client account differs from
44
+ * `userAddress`.
45
+ * @example
46
+ * ```ts
47
+ * import { createWalletClient, http } from "viem";
48
+ * import { privateKeyToAccount } from "viem/accounts";
49
+ * import { mainnet } from "viem/chains";
50
+ * import { validateUserAddress } from "@morpho-org/morpho-sdk";
51
+ *
52
+ * const account = privateKeyToAccount("0x...");
53
+ * const walletClient = createWalletClient({
54
+ * account,
55
+ * chain: mainnet,
56
+ * transport: http(),
57
+ * });
58
+ *
59
+ * // Inside a `sign()` flow, before producing a typed-data signature:
60
+ * validateUserAddress(walletClient.account?.address, account.address);
61
+ * // Passes when the connected account equals the expected signer;
62
+ * // throws if the wallet has no account or signs for a different address.
63
+ * ```
42
64
  */
43
65
  export declare function validateUserAddress(clientAccountAddress: Address | undefined, userAddress: Address): asserts clientAccountAddress is Address;
44
66
  /**
@@ -41,22 +41,44 @@ exports.validateMidnightMarketChainId = validateMidnightMarketChainId;
41
41
  * Asserts that the client has a connected account AND that it matches
42
42
  * the provided user address.
43
43
  *
44
- * Used internally by the signature requirements (`encodeErc20Permit`,
45
- * `encodeErc20Permit2Approve`) to enforce builder = signer at `sign()` time:
46
- * the signing flow is the only path where an account/address mismatch
47
- * is a real security concern (rather than just an integrator footgun).
44
+ * Used at `sign()` time by the shared `signAndVerifyTypedData` helper (which
45
+ * backs the permit, Permit2, Blue authorization, and Midnight offer-root
46
+ * signature flows) and by `encodeVaultSharesPermit`, to enforce builder =
47
+ * signer: the signing flow is
48
+ * the only path where an account/address mismatch is a real security concern
49
+ * (rather than just an integrator footgun).
48
50
  *
49
51
  * Transaction builders no longer call this helper — callers are
50
52
  * responsible for keeping `userAddress` aligned with the signing account
51
53
  * at the builder layer.
52
54
  *
53
- * Throws {@link MissingClientPropertyError} if the client has no account.
54
- * Throws {@link AddressMismatchError} if the client account differs from
55
- * `userAddress`.
56
- *
57
55
  * @param clientAccountAddress - The client's account address; if undefined,
58
56
  * `MissingClientPropertyError` is thrown.
59
57
  * @param userAddress - The user address provided by the caller.
58
+ * @returns Nothing; narrows `clientAccountAddress` to a defined `Address` when
59
+ * it is present and equal to `userAddress`.
60
+ * @throws {MissingClientPropertyError} when the client has no connected account.
61
+ * @throws {AddressMismatchError} when the client account differs from
62
+ * `userAddress`.
63
+ * @example
64
+ * ```ts
65
+ * import { createWalletClient, http } from "viem";
66
+ * import { privateKeyToAccount } from "viem/accounts";
67
+ * import { mainnet } from "viem/chains";
68
+ * import { validateUserAddress } from "@morpho-org/morpho-sdk";
69
+ *
70
+ * const account = privateKeyToAccount("0x...");
71
+ * const walletClient = createWalletClient({
72
+ * account,
73
+ * chain: mainnet,
74
+ * transport: http(),
75
+ * });
76
+ *
77
+ * // Inside a `sign()` flow, before producing a typed-data signature:
78
+ * validateUserAddress(walletClient.account?.address, account.address);
79
+ * // Passes when the connected account equals the expected signer;
80
+ * // throws if the wallet has no account or signs for a different address.
81
+ * ```
60
82
  */
61
83
  function validateUserAddress(clientAccountAddress, userAddress) {
62
84
  if (clientAccountAddress === undefined) {
@@ -1,6 +1,17 @@
1
1
  import type { InputMarketParams } from "@morpho-org/blue-sdk";
2
2
  import type { Address, Hex, WalletClient } from "viem";
3
3
  import type { Deallocation } from "./deallocation.js";
4
+ /**
5
+ * Serves as the common discriminated action-metadata base shared by both
6
+ * {@link TransactionAction} (actions that carry encoded calldata) and
7
+ * {@link SignatureRequirementAction} (signature requirements whose metadata is
8
+ * exposed before any calldata exists). Each concrete action narrows
9
+ * {@link BaseAction} on its literal `type` tag and carries an
10
+ * operation-specific `args` record surfaced for tracing.
11
+ *
12
+ * @typeParam TType - Literal discriminator identifying the action.
13
+ * @typeParam TArgs - The action's argument record.
14
+ */
4
15
  export interface BaseAction<TType extends string = string, TArgs extends Record<string, unknown> = Record<string, unknown>> {
5
16
  readonly type: TType;
6
17
  readonly args: TArgs;
@@ -115,7 +126,11 @@ export interface BlueWithdrawAction extends BaseAction<"blueWithdraw", {
115
126
  shares: bigint;
116
127
  receiver: Address;
117
128
  minSharePrice: bigint;
118
- /** Native-token fees paid to PublicAllocator V1. */
129
+ /**
130
+ * Native-token fees paid to PublicAllocator V1.
131
+ * @deprecated Vault V1 PublicAllocator support will be removed in the next major.
132
+ * Vault V2 loan-token penalties are reported in `reallocationPenaltyAssets`.
133
+ */
119
134
  reallocationFee: bigint;
120
135
  /** Loan-token assets donated as BluePublicAllocator V2 penalties. */
121
136
  readonly reallocationPenaltyAssets: bigint;
@@ -133,7 +148,11 @@ export interface BlueBorrowAction extends BaseAction<"blueBorrow", {
133
148
  amount: bigint;
134
149
  receiver: Address;
135
150
  minSharePrice: bigint;
136
- /** Native-token fees paid to PublicAllocator V1. */
151
+ /**
152
+ * Native-token fees paid to PublicAllocator V1.
153
+ * @deprecated Vault V1 PublicAllocator support will be removed in the next major.
154
+ * Vault V2 loan-token penalties are reported in `reallocationPenaltyAssets`.
155
+ */
137
156
  reallocationFee: bigint;
138
157
  /** Loan-token assets donated as BluePublicAllocator V2 penalties. */
139
158
  readonly reallocationPenaltyAssets: bigint;
@@ -147,7 +166,11 @@ export interface BlueSupplyCollateralBorrowAction extends BaseAction<"blueSupply
147
166
  onBehalf: Address;
148
167
  receiver: Address;
149
168
  nativeAmount?: bigint;
150
- /** Native-token fees paid to PublicAllocator V1. */
169
+ /**
170
+ * Native-token fees paid to PublicAllocator V1.
171
+ * @deprecated Vault V1 PublicAllocator support will be removed in the next major.
172
+ * Vault V2 loan-token penalties are reported in `reallocationPenaltyAssets`.
173
+ */
151
174
  reallocationFee: bigint;
152
175
  /** Loan-token assets donated as BluePublicAllocator V2 penalties. */
153
176
  readonly reallocationPenaltyAssets: bigint;
@@ -194,7 +217,11 @@ export interface BlueRefinanceAction extends BaseAction<"blueRefinance", {
194
217
  readonly minBorrowSharePrice: bigint;
195
218
  readonly maxRepaySharePrice: bigint;
196
219
  readonly user: Address;
197
- /** Native-token fees paid to PublicAllocator V1. */
220
+ /**
221
+ * Native-token fees paid to PublicAllocator V1.
222
+ * @deprecated Vault V1 PublicAllocator support will be removed in the next major.
223
+ * Vault V2 loan-token penalties are reported in `reallocationPenaltyAssets`.
224
+ */
198
225
  readonly reallocationFee: bigint;
199
226
  /** Loan-token assets donated as BluePublicAllocator V2 penalties. */
200
227
  readonly reallocationPenaltyAssets: bigint;
@@ -358,7 +385,19 @@ export interface MidnightCancelOfferAction extends BaseAction<"midnightCancelOff
358
385
  readonly onBehalf: Address;
359
386
  }> {
360
387
  }
388
+ /**
389
+ * Enumerates every action a {@link Transaction} can describe across the VaultV1,
390
+ * VaultV2, Blue, and Midnight flows. The `type` tag discriminates the union so
391
+ * consumers can `switch` exhaustively on it.
392
+ */
361
393
  export type TransactionAction = ERC20ApprovalAction | VaultV2DepositAction | VaultV2WithdrawAction | VaultV2RedeemAction | VaultV2InKindRedeemAction | VaultV2ForceWithdrawAction | VaultV2ForceRedeemAction | VaultV1DepositAction | VaultV1WithdrawAction | VaultV1RedeemAction | VaultV1InKindRedeemAction | VaultV1MigrateToV2Action | BlueSupplyAction | BlueWithdrawAction | BlueSupplyCollateralAction | BlueBorrowAction | BlueSupplyCollateralBorrowAction | BlueRepayAction | BlueWithdrawCollateralAction | BlueRepayWithdrawCollateralAction | BlueRefinanceAction | BlueAuthorizationAction | MidnightAuthorizationAction | SetterRatifierRatifyRootAction | MidnightTakeLendAction | MidnightTakeBorrowAction | MidnightSupplyCollateralTakeBorrowAction | MidnightSupplyCollateralAction | MempoolSubmitOffersAction | MidnightRedeemAction | MidnightRepayWithdrawCollateralAction | MidnightCancelOfferAction;
394
+ /**
395
+ * Describes a single, immutable, deep-frozen transaction to submit on-chain:
396
+ * the target `to`, native `value`, encoded call `data`, and the originating
397
+ * {@link BaseAction} for tracing. Every action builder returns one.
398
+ *
399
+ * @typeParam TAction - The action that produced this transaction.
400
+ */
362
401
  export interface Transaction<TAction extends BaseAction = TransactionAction> {
363
402
  readonly to: Address;
364
403
  readonly value: bigint;
@@ -379,6 +418,14 @@ export type DepositAmountArgs = {
379
418
  nativeAmount: bigint;
380
419
  amount?: bigint;
381
420
  };
421
+ /**
422
+ * Holds the pre-resolved arguments for an ERC-2612 `permit`: the signed approval
423
+ * of `amount` of `asset` from `owner` to the permitted spender, bounded by the
424
+ * `deadline` timestamp and consuming the given `nonce`. The spender is the
425
+ * GeneralAdapter1/Bundler3 periphery for bundler permits, or the standalone
426
+ * `VaultExitBundlesV1` contract for an in-kind vault redemption permit produced
427
+ * by `encodeVaultSharesPermit`.
428
+ */
382
429
  export interface PermitArgs {
383
430
  owner: Address;
384
431
  nonce: bigint;
@@ -387,6 +434,12 @@ export interface PermitArgs {
387
434
  amount: bigint;
388
435
  deadline: bigint;
389
436
  }
437
+ /**
438
+ * Holds the pre-resolved arguments for a Permit2 `permit` bundler call. It
439
+ * mirrors {@link PermitArgs} but adds the Permit2 allowance `expiration` (when
440
+ * the on-chain allowance lapses) alongside the signature `deadline` (by when the
441
+ * signature must be submitted).
442
+ */
390
443
  export interface Permit2Args {
391
444
  owner: Address;
392
445
  nonce: bigint;
@@ -971,7 +971,7 @@ export declare class MidnightOfferRootOfferCountMismatchError extends Error {
971
971
  actualOffers: number;
972
972
  });
973
973
  }
974
- /** Thrown when a Midnight offer-root signature was not prepared by this maker flow. */
974
+ /** Thrown when a Midnight offer-root signature carries no encoded payload. */
975
975
  export declare class UnpreparedMidnightOfferRootSignatureError extends Error {
976
976
  constructor();
977
977
  }
@@ -1146,10 +1146,10 @@ class MidnightOfferRootOfferCountMismatchError extends Error {
1146
1146
  }
1147
1147
  }
1148
1148
  exports.MidnightOfferRootOfferCountMismatchError = MidnightOfferRootOfferCountMismatchError;
1149
- /** Thrown when a Midnight offer-root signature was not prepared by this maker flow. */
1149
+ /** Thrown when a Midnight offer-root signature carries no encoded payload. */
1150
1150
  class UnpreparedMidnightOfferRootSignatureError extends Error {
1151
1151
  constructor() {
1152
- super("Midnight offer root signature was not prepared for this offer tree. Sign this flow's offer-root requirement before building the submit transaction.");
1152
+ super("Midnight offer root signature carries no encoded payload. Sign the offer-root requirement (its signature already includes the payload) before building the submit transaction.");
1153
1153
  }
1154
1154
  }
1155
1155
  exports.UnpreparedMidnightOfferRootSignatureError = UnpreparedMidnightOfferRootSignatureError;
@@ -24,8 +24,8 @@ export interface PublicAllocatorOptions {
24
24
  * The maximum utilization each source market may reach when withdrawing
25
25
  * shared liquidity, scaled by WAD.
26
26
  *
27
- * @deprecated Per-market source ceilings will be removed in the next major.
28
- * Use `defaultMaxWithdrawalUtilization` to configure one ceiling for every source.
27
+ * @deprecated Vault V1 shared-liquidity planning will be removed in the next major.
28
+ * Use `VaultV2BluePublicAllocatorOptions.maxWithdrawalUtilization` with the Vault V2 planner.
29
29
  */
30
30
  readonly maxWithdrawalUtilization?: Readonly<Record<MarketId, bigint | undefined>>;
31
31
  /**
package/lib/esm/abis.d.ts CHANGED
@@ -7,7 +7,11 @@ adaptiveCurveIrmAbi, blueAbi, blueOracleAbi, erc2612Abi, erc5267Abi, metaMorphoA
7
7
  /** @deprecated Use `bluePreLiquidationAbi` or the raw `/blue/abis` subpath. */
8
8
  preLiquidationAbi, preLiquidationFactoryAbi as bluePreLiquidationFactoryAbi,
9
9
  /** @deprecated Use `bluePreLiquidationFactoryAbi` or the raw `/blue/abis` subpath. */
10
- preLiquidationFactoryAbi, publicAllocatorAbi, vaultV1AdapterAbi, vaultV1AdapterFactoryAbi, vaultV1PublicAllocatorAbi, vaultV2Abi, vaultV2BluePublicAllocatorAbi, vaultV2FactoryAbi, whitelistControllerAggregatorV2Abi, wrappedBackedTokenAbi, wstEthAbi, } from "@morpho-org/blue-sdk-viem";
10
+ preLiquidationFactoryAbi,
11
+ /** @deprecated Vault V1 PublicAllocator support will be removed in the next major. Use `vaultV2BluePublicAllocatorAbi`. */
12
+ publicAllocatorAbi, vaultV1AdapterAbi, vaultV1AdapterFactoryAbi,
13
+ /** @deprecated Vault V1 PublicAllocator support will be removed in the next major. Use `vaultV2BluePublicAllocatorAbi`. */
14
+ vaultV1PublicAllocatorAbi, vaultV2Abi, vaultV2BluePublicAllocatorAbi, vaultV2FactoryAbi, whitelistControllerAggregatorV2Abi, wrappedBackedTokenAbi, wstEthAbi, } from "@morpho-org/blue-sdk-viem";
11
15
  export { ecrecoverRatifierAbi as midnightEcrecoverRatifierAbi,
12
16
  /** @deprecated Use `midnightEcrecoverRatifierAbi` or the raw `/midnight/abis` subpath. */
13
17
  ecrecoverRatifierAbi, midnightAbi, midnightBundlesAbi, setterRatifierAbi as midnightSetterRatifierAbi,
@@ -1164,7 +1168,12 @@ export declare const generalAdapter1Abi: readonly [{
1164
1168
  readonly name: "ZeroShares";
1165
1169
  readonly inputs: readonly [];
1166
1170
  }];
1167
- /** ABI for the Ethereum-specific Bundler3 GeneralAdapter1 extension. */
1171
+ /**
1172
+ * ABI for the Ethereum-specific Bundler3 GeneralAdapter1 extension.
1173
+ *
1174
+ * MORPHO legacy token wrapping entries are deprecated and will be removed in the next major.
1175
+ * Use the current MORPHO token directly. Native-token and stETH wrapping remain supported.
1176
+ */
1168
1177
  export declare const ethereumGeneralAdapter1Abi: readonly [{
1169
1178
  readonly type: "receive";
1170
1179
  readonly stateMutability: "payable";
@@ -1833,10 +1842,12 @@ export declare const ethereumGeneralAdapter1Abi: readonly [{
1833
1842
  readonly type: "address";
1834
1843
  readonly internalType: "address";
1835
1844
  }, {
1845
+ /** @deprecated MORPHO legacy token wrapping will be removed in the next major. Use the current MORPHO token directly. */
1836
1846
  readonly name: "morphoToken";
1837
1847
  readonly type: "address";
1838
1848
  readonly internalType: "address";
1839
1849
  }, {
1850
+ /** @deprecated MORPHO legacy token wrapping will be removed in the next major. Use the current MORPHO token directly. */
1840
1851
  readonly name: "morphoWrapper";
1841
1852
  readonly type: "address";
1842
1853
  readonly internalType: "address";
@@ -1844,6 +1855,7 @@ export declare const ethereumGeneralAdapter1Abi: readonly [{
1844
1855
  readonly stateMutability: "nonpayable";
1845
1856
  }, {
1846
1857
  readonly type: "function";
1858
+ /** @deprecated MORPHO legacy token wrapping will be removed in the next major. Use the current MORPHO token directly. */
1847
1859
  readonly name: "MORPHO_TOKEN";
1848
1860
  readonly inputs: readonly [];
1849
1861
  readonly outputs: readonly [{
@@ -1854,6 +1866,7 @@ export declare const ethereumGeneralAdapter1Abi: readonly [{
1854
1866
  readonly stateMutability: "view";
1855
1867
  }, {
1856
1868
  readonly type: "function";
1869
+ /** @deprecated MORPHO legacy token wrapping will be removed in the next major. Use the current MORPHO token directly. */
1857
1870
  readonly name: "MORPHO_WRAPPER";
1858
1871
  readonly inputs: readonly [];
1859
1872
  readonly outputs: readonly [{
@@ -1884,6 +1897,7 @@ export declare const ethereumGeneralAdapter1Abi: readonly [{
1884
1897
  readonly stateMutability: "view";
1885
1898
  }, {
1886
1899
  readonly type: "function";
1900
+ /** @deprecated MORPHO legacy token wrapping will be removed in the next major. Use the current MORPHO token directly. */
1887
1901
  readonly name: "morphoWrapperDepositFor";
1888
1902
  readonly inputs: readonly [{
1889
1903
  readonly name: "receiver";
@@ -1898,6 +1912,7 @@ export declare const ethereumGeneralAdapter1Abi: readonly [{
1898
1912
  readonly stateMutability: "nonpayable";
1899
1913
  }, {
1900
1914
  readonly type: "function";
1915
+ /** @deprecated MORPHO legacy token wrapping will be removed in the next major. Use the current MORPHO token directly. */
1901
1916
  readonly name: "morphoWrapperWithdrawTo";
1902
1917
  readonly inputs: readonly [{
1903
1918
  readonly name: "receiver";
package/lib/esm/abis.js CHANGED
@@ -7,7 +7,11 @@ adaptiveCurveIrmAbi, blueAbi, blueOracleAbi, erc2612Abi, erc5267Abi, metaMorphoA
7
7
  /** @deprecated Use `bluePreLiquidationAbi` or the raw `/blue/abis` subpath. */
8
8
  preLiquidationAbi, preLiquidationFactoryAbi as bluePreLiquidationFactoryAbi,
9
9
  /** @deprecated Use `bluePreLiquidationFactoryAbi` or the raw `/blue/abis` subpath. */
10
- preLiquidationFactoryAbi, publicAllocatorAbi, vaultV1AdapterAbi, vaultV1AdapterFactoryAbi, vaultV1PublicAllocatorAbi, vaultV2Abi, vaultV2BluePublicAllocatorAbi, vaultV2FactoryAbi, whitelistControllerAggregatorV2Abi, wrappedBackedTokenAbi, wstEthAbi, } from "@morpho-org/blue-sdk-viem";
10
+ preLiquidationFactoryAbi,
11
+ /** @deprecated Vault V1 PublicAllocator support will be removed in the next major. Use `vaultV2BluePublicAllocatorAbi`. */
12
+ publicAllocatorAbi, vaultV1AdapterAbi, vaultV1AdapterFactoryAbi,
13
+ /** @deprecated Vault V1 PublicAllocator support will be removed in the next major. Use `vaultV2BluePublicAllocatorAbi`. */
14
+ vaultV1PublicAllocatorAbi, vaultV2Abi, vaultV2BluePublicAllocatorAbi, vaultV2FactoryAbi, whitelistControllerAggregatorV2Abi, wrappedBackedTokenAbi, wstEthAbi, } from "@morpho-org/blue-sdk-viem";
11
15
  export { ecrecoverRatifierAbi as midnightEcrecoverRatifierAbi,
12
16
  /** @deprecated Use `midnightEcrecoverRatifierAbi` or the raw `/midnight/abis` subpath. */
13
17
  ecrecoverRatifierAbi, midnightAbi, midnightBundlesAbi, setterRatifierAbi as midnightSetterRatifierAbi,
@@ -1146,7 +1150,12 @@ export const generalAdapter1Abi = [
1146
1150
  inputs: [],
1147
1151
  },
1148
1152
  ];
1149
- /** ABI for the Ethereum-specific Bundler3 GeneralAdapter1 extension. */
1153
+ /**
1154
+ * ABI for the Ethereum-specific Bundler3 GeneralAdapter1 extension.
1155
+ *
1156
+ * MORPHO legacy token wrapping entries are deprecated and will be removed in the next major.
1157
+ * Use the current MORPHO token directly. Native-token and stETH wrapping remain supported.
1158
+ */
1150
1159
  export const ethereumGeneralAdapter1Abi = [
1151
1160
  ...generalAdapter1Abi,
1152
1161
  {
@@ -1173,11 +1182,13 @@ export const ethereumGeneralAdapter1Abi = [
1173
1182
  internalType: "address",
1174
1183
  },
1175
1184
  {
1185
+ /** @deprecated MORPHO legacy token wrapping will be removed in the next major. Use the current MORPHO token directly. */
1176
1186
  name: "morphoToken",
1177
1187
  type: "address",
1178
1188
  internalType: "address",
1179
1189
  },
1180
1190
  {
1191
+ /** @deprecated MORPHO legacy token wrapping will be removed in the next major. Use the current MORPHO token directly. */
1181
1192
  name: "morphoWrapper",
1182
1193
  type: "address",
1183
1194
  internalType: "address",
@@ -1187,6 +1198,7 @@ export const ethereumGeneralAdapter1Abi = [
1187
1198
  },
1188
1199
  {
1189
1200
  type: "function",
1201
+ /** @deprecated MORPHO legacy token wrapping will be removed in the next major. Use the current MORPHO token directly. */
1190
1202
  name: "MORPHO_TOKEN",
1191
1203
  inputs: [],
1192
1204
  outputs: [
@@ -1200,6 +1212,7 @@ export const ethereumGeneralAdapter1Abi = [
1200
1212
  },
1201
1213
  {
1202
1214
  type: "function",
1215
+ /** @deprecated MORPHO legacy token wrapping will be removed in the next major. Use the current MORPHO token directly. */
1203
1216
  name: "MORPHO_WRAPPER",
1204
1217
  inputs: [],
1205
1218
  outputs: [
@@ -1239,6 +1252,7 @@ export const ethereumGeneralAdapter1Abi = [
1239
1252
  },
1240
1253
  {
1241
1254
  type: "function",
1255
+ /** @deprecated MORPHO legacy token wrapping will be removed in the next major. Use the current MORPHO token directly. */
1242
1256
  name: "morphoWrapperDepositFor",
1243
1257
  inputs: [
1244
1258
  {
@@ -1257,6 +1271,7 @@ export const ethereumGeneralAdapter1Abi = [
1257
1271
  },
1258
1272
  {
1259
1273
  type: "function",
1274
+ /** @deprecated MORPHO legacy token wrapping will be removed in the next major. Use the current MORPHO token directly. */
1260
1275
  name: "morphoWrapperWithdrawTo",
1261
1276
  inputs: [
1262
1277
  {
@@ -40,8 +40,8 @@ export interface MidnightSupplyCollateralTakeBorrowParams extends MidnightTakeBo
40
40
  * chainId: 8453,
41
41
  * market: marketData.params,
42
42
  * collateralAssets: 2_000_000n,
43
- * loanAssets: BigInt(quote.data.availableAssets),
44
- * maxUnits: BigInt(quote.data.availableUnits),
43
+ * loanAssets: 1_000_000n,
44
+ * maxUnits: 1_100_000n,
45
45
  * taker: borrower,
46
46
  * takeableOffers: quote.data.takeableOffers,
47
47
  * deadline: maxUint256,
@@ -41,8 +41,8 @@ import { PermitKind } from "./types.js";
41
41
  * chainId: 8453,
42
42
  * market: marketData.params,
43
43
  * collateralAssets: 2_000_000n,
44
- * loanAssets: BigInt(quote.data.availableAssets),
45
- * maxUnits: BigInt(quote.data.availableUnits),
44
+ * loanAssets: 1_000_000n,
45
+ * maxUnits: 1_100_000n,
46
46
  * taker: borrower,
47
47
  * takeableOffers: quote.data.takeableOffers,
48
48
  * deadline: maxUint256,
@@ -46,8 +46,8 @@ export interface MidnightTakeBorrowParams {
46
46
  * const tx = midnightTakeBorrow({
47
47
  * chainId: 8453,
48
48
  * market: marketData.params,
49
- * loanAssets: BigInt(quote.data.availableAssets),
50
- * maxUnits: BigInt(quote.data.availableUnits),
49
+ * loanAssets: 1_000_000n,
50
+ * maxUnits: 1_100_000n,
51
51
  * taker: borrower,
52
52
  * takeableOffers: quote.data.takeableOffers,
53
53
  * deadline: maxUint256,
@@ -37,8 +37,8 @@ import { NegativeInputError, NonPositiveInputError, } from "../../types/index.js
37
37
  * const tx = midnightTakeBorrow({
38
38
  * chainId: 8453,
39
39
  * market: marketData.params,
40
- * loanAssets: BigInt(quote.data.availableAssets),
41
- * maxUnits: BigInt(quote.data.availableUnits),
40
+ * loanAssets: 1_000_000n,
41
+ * maxUnits: 1_100_000n,
42
42
  * taker: borrower,
43
43
  * takeableOffers: quote.data.takeableOffers,
44
44
  * deadline: maxUint256,
@@ -46,8 +46,8 @@ export interface MidnightTakeLendParams {
46
46
  * const tx = midnightTakeLend({
47
47
  * chainId: 8453,
48
48
  * market: marketData.params,
49
- * assets: BigInt(quote.data.availableAssets),
50
- * minUnits: BigInt(quote.data.availableUnits),
49
+ * assets: 1_000_000n,
50
+ * minUnits: 900_000n,
51
51
  * taker: lender,
52
52
  * takeableOffers: quote.data.takeableOffers,
53
53
  * deadline: maxUint256,
@@ -38,8 +38,8 @@ import { PermitKind } from "./types.js";
38
38
  * const tx = midnightTakeLend({
39
39
  * chainId: 8453,
40
40
  * market: marketData.params,
41
- * assets: BigInt(quote.data.availableAssets),
42
- * minUnits: BigInt(quote.data.availableUnits),
41
+ * assets: 1_000_000n,
42
+ * minUnits: 900_000n,
43
43
  * taker: lender,
44
44
  * takeableOffers: quote.data.takeableOffers,
45
45
  * deadline: maxUint256,
@@ -2,7 +2,10 @@ import { VaultMarketPublicAllocatorConfig as BlueVaultMarketPublicAllocatorConfi
2
2
  import { fetchVaultMarketPublicAllocatorConfig } from "@morpho-org/blue-sdk-viem";
3
3
  declare module "@morpho-org/blue-sdk" {
4
4
  namespace VaultMarketPublicAllocatorConfig {
5
+ /** @deprecated Vault V1 PublicAllocator support will be removed in the next major. Use `fetchVaultV2BlueMarketPublicAllocatorConfig` from `@morpho-org/morpho-sdk/fetch`. */
5
6
  let fetch: typeof fetchVaultMarketPublicAllocatorConfig;
6
7
  }
7
8
  }
8
- export { BlueVaultMarketPublicAllocatorConfig as VaultMarketPublicAllocatorConfig, };
9
+ export {
10
+ /** @deprecated Vault V1 PublicAllocator support will be removed in the next major. Use `VaultV2BlueMarketPublicAllocatorConfig` from `@morpho-org/morpho-sdk/entities`. */
11
+ BlueVaultMarketPublicAllocatorConfig as VaultMarketPublicAllocatorConfig, };
@@ -2,4 +2,6 @@ import { VaultMarketPublicAllocatorConfig as BlueVaultMarketPublicAllocatorConfi
2
2
  import { fetchVaultMarketPublicAllocatorConfig } from "@morpho-org/blue-sdk-viem";
3
3
  BlueVaultMarketPublicAllocatorConfig.fetch =
4
4
  fetchVaultMarketPublicAllocatorConfig;
5
- export { BlueVaultMarketPublicAllocatorConfig as VaultMarketPublicAllocatorConfig, };
5
+ export {
6
+ /** @deprecated Vault V1 PublicAllocator support will be removed in the next major. Use `VaultV2BlueMarketPublicAllocatorConfig` from `@morpho-org/morpho-sdk/entities`. */
7
+ BlueVaultMarketPublicAllocatorConfig as VaultMarketPublicAllocatorConfig, };
@@ -1,2 +1,6 @@
1
1
  export { marketParamsAbi } from "@morpho-org/blue-sdk";
2
- export { adaptiveCurveIrmAbi, blueAbi, blueOracleAbi, erc2612Abi, erc5267Abi, metaMorphoAbi, metaMorphoFactoryAbi, morphoMarketV1AdapterAbi, morphoMarketV1AdapterFactoryAbi, morphoMarketV1AdapterV2Abi, morphoMarketV1AdapterV2FactoryAbi, morphoVaultV1AdapterAbi, morphoVaultV1AdapterFactoryAbi, permissionedErc20WrapperAbi, permit2Abi, preLiquidationAbi, preLiquidationFactoryAbi, publicAllocatorAbi, vaultV1AdapterAbi, vaultV1AdapterFactoryAbi, vaultV1PublicAllocatorAbi, vaultV2Abi, vaultV2BluePublicAllocatorAbi, vaultV2FactoryAbi, whitelistControllerAggregatorV2Abi, wrappedBackedTokenAbi, wstEthAbi, } from "@morpho-org/blue-sdk-viem";
2
+ export { adaptiveCurveIrmAbi, blueAbi, blueOracleAbi, erc2612Abi, erc5267Abi, metaMorphoAbi, metaMorphoFactoryAbi, morphoMarketV1AdapterAbi, morphoMarketV1AdapterFactoryAbi, morphoMarketV1AdapterV2Abi, morphoMarketV1AdapterV2FactoryAbi, morphoVaultV1AdapterAbi, morphoVaultV1AdapterFactoryAbi, permissionedErc20WrapperAbi, permit2Abi, preLiquidationAbi, preLiquidationFactoryAbi,
3
+ /** @deprecated Vault V1 PublicAllocator support will be removed in the next major. Use `vaultV2BluePublicAllocatorAbi`. */
4
+ publicAllocatorAbi, vaultV1AdapterAbi, vaultV1AdapterFactoryAbi,
5
+ /** @deprecated Vault V1 PublicAllocator support will be removed in the next major. Use `vaultV2BluePublicAllocatorAbi`. */
6
+ vaultV1PublicAllocatorAbi, vaultV2Abi, vaultV2BluePublicAllocatorAbi, vaultV2FactoryAbi, whitelistControllerAggregatorV2Abi, wrappedBackedTokenAbi, wstEthAbi, } from "@morpho-org/blue-sdk-viem";
@@ -1,2 +1,6 @@
1
1
  export { marketParamsAbi } from "@morpho-org/blue-sdk";
2
- export { adaptiveCurveIrmAbi, blueAbi, blueOracleAbi, erc2612Abi, erc5267Abi, metaMorphoAbi, metaMorphoFactoryAbi, morphoMarketV1AdapterAbi, morphoMarketV1AdapterFactoryAbi, morphoMarketV1AdapterV2Abi, morphoMarketV1AdapterV2FactoryAbi, morphoVaultV1AdapterAbi, morphoVaultV1AdapterFactoryAbi, permissionedErc20WrapperAbi, permit2Abi, preLiquidationAbi, preLiquidationFactoryAbi, publicAllocatorAbi, vaultV1AdapterAbi, vaultV1AdapterFactoryAbi, vaultV1PublicAllocatorAbi, vaultV2Abi, vaultV2BluePublicAllocatorAbi, vaultV2FactoryAbi, whitelistControllerAggregatorV2Abi, wrappedBackedTokenAbi, wstEthAbi, } from "@morpho-org/blue-sdk-viem";
2
+ export { adaptiveCurveIrmAbi, blueAbi, blueOracleAbi, erc2612Abi, erc5267Abi, metaMorphoAbi, metaMorphoFactoryAbi, morphoMarketV1AdapterAbi, morphoMarketV1AdapterFactoryAbi, morphoMarketV1AdapterV2Abi, morphoMarketV1AdapterV2FactoryAbi, morphoVaultV1AdapterAbi, morphoVaultV1AdapterFactoryAbi, permissionedErc20WrapperAbi, permit2Abi, preLiquidationAbi, preLiquidationFactoryAbi,
3
+ /** @deprecated Vault V1 PublicAllocator support will be removed in the next major. Use `vaultV2BluePublicAllocatorAbi`. */
4
+ publicAllocatorAbi, vaultV1AdapterAbi, vaultV1AdapterFactoryAbi,
5
+ /** @deprecated Vault V1 PublicAllocator support will be removed in the next major. Use `vaultV2BluePublicAllocatorAbi`. */
6
+ vaultV1PublicAllocatorAbi, vaultV2Abi, vaultV2BluePublicAllocatorAbi, vaultV2FactoryAbi, whitelistControllerAggregatorV2Abi, wrappedBackedTokenAbi, wstEthAbi, } from "@morpho-org/blue-sdk-viem";
@@ -1,2 +1,8 @@
1
- export type { IAccrualPosition, IAccrualVault, IAccrualVaultV2, IAccrualVaultV2Adapter, IAccrualVaultV2MorphoMarketV1Adapter, IAccrualVaultV2MorphoMarketV1AdapterV2, IAccrualVaultV2MorphoVaultV1Adapter, IAssetBalances, IEip5267Domain, IHolding, IMarket, IMarketParams, IPosition, IPreLiquidationParams, IPreLiquidationPosition, IToken, IVault, IVaultConfig, IVaultMarketAllocation, IVaultMarketConfig, IVaultMarketPublicAllocatorConfig, IVaultToken, IVaultUser, IVaultV2, IVaultV2Adapter, IVaultV2Allocation, IVaultV2BlueMarketPublicAllocatorConfig, IVaultV2BluePublicAllocatorConfig, IVaultV2MorphoMarketV1Adapter, IVaultV2MorphoMarketV1AdapterV2, IVaultV2MorphoVaultV1Adapter, PeripheralBalance, PeripheralBalanceType, VaultPublicAllocatorConfig, } from "@morpho-org/blue-sdk";
2
- export { AccrualPosition, AccrualVault, AccrualVaultV2, AccrualVaultV2MorphoMarketV1Adapter, AccrualVaultV2MorphoMarketV1AdapterV2, AccrualVaultV2MorphoVaultV1Adapter, AssetBalances, ConstantWrappedToken, Eip5267Domain, ExchangeRateWrappedToken, Holding, Market, MarketParams, Position, PreLiquidationParams, PreLiquidationPosition, Token, User, Vault, VaultConfig, VaultMarketAllocation, VaultMarketConfig, VaultMarketPublicAllocatorConfig, VaultToken, VaultUser, VaultV2, VaultV2Adapter, VaultV2BlueMarketPublicAllocatorConfig, VaultV2BluePublicAllocatorConfig, VaultV2MorphoMarketV1Adapter, VaultV2MorphoMarketV1AdapterV2, VaultV2MorphoVaultV1Adapter, WrappedToken, } from "@morpho-org/blue-sdk";
1
+ export type { IAccrualPosition, IAccrualVault, IAccrualVaultV2, IAccrualVaultV2Adapter, IAccrualVaultV2MorphoMarketV1Adapter, IAccrualVaultV2MorphoMarketV1AdapterV2, IAccrualVaultV2MorphoVaultV1Adapter, IAssetBalances, IEip5267Domain, IHolding, IMarket, IMarketParams, IPosition, IPreLiquidationParams, IPreLiquidationPosition, IToken, IVault, IVaultConfig, IVaultMarketAllocation, IVaultMarketConfig,
2
+ /** @deprecated Vault V1 PublicAllocator support will be removed in the next major. Use `IVaultV2BlueMarketPublicAllocatorConfig`. */
3
+ IVaultMarketPublicAllocatorConfig, IVaultToken, IVaultUser, IVaultV2, IVaultV2Adapter, IVaultV2Allocation, IVaultV2BlueMarketPublicAllocatorConfig, IVaultV2BluePublicAllocatorConfig, IVaultV2MorphoMarketV1Adapter, IVaultV2MorphoMarketV1AdapterV2, IVaultV2MorphoVaultV1Adapter, PeripheralBalance, PeripheralBalanceType,
4
+ /** @deprecated Vault V1 PublicAllocator support will be removed in the next major. Use `IVaultV2BluePublicAllocatorConfig`. */
5
+ VaultPublicAllocatorConfig, } from "@morpho-org/blue-sdk";
6
+ export { AccrualPosition, AccrualVault, AccrualVaultV2, AccrualVaultV2MorphoMarketV1Adapter, AccrualVaultV2MorphoMarketV1AdapterV2, AccrualVaultV2MorphoVaultV1Adapter, AssetBalances, ConstantWrappedToken, Eip5267Domain, ExchangeRateWrappedToken, Holding, Market, MarketParams, Position, PreLiquidationParams, PreLiquidationPosition, Token, User, Vault, VaultConfig, VaultMarketAllocation, VaultMarketConfig,
7
+ /** @deprecated Vault V1 PublicAllocator support will be removed in the next major. Use `VaultV2BlueMarketPublicAllocatorConfig`. */
8
+ VaultMarketPublicAllocatorConfig, VaultToken, VaultUser, VaultV2, VaultV2Adapter, VaultV2BlueMarketPublicAllocatorConfig, VaultV2BluePublicAllocatorConfig, VaultV2MorphoMarketV1Adapter, VaultV2MorphoMarketV1AdapterV2, VaultV2MorphoVaultV1Adapter, WrappedToken, } from "@morpho-org/blue-sdk";
@@ -1 +1,3 @@
1
- export { AccrualPosition, AccrualVault, AccrualVaultV2, AccrualVaultV2MorphoMarketV1Adapter, AccrualVaultV2MorphoMarketV1AdapterV2, AccrualVaultV2MorphoVaultV1Adapter, AssetBalances, ConstantWrappedToken, Eip5267Domain, ExchangeRateWrappedToken, Holding, Market, MarketParams, Position, PreLiquidationParams, PreLiquidationPosition, Token, User, Vault, VaultConfig, VaultMarketAllocation, VaultMarketConfig, VaultMarketPublicAllocatorConfig, VaultToken, VaultUser, VaultV2, VaultV2Adapter, VaultV2BlueMarketPublicAllocatorConfig, VaultV2BluePublicAllocatorConfig, VaultV2MorphoMarketV1Adapter, VaultV2MorphoMarketV1AdapterV2, VaultV2MorphoVaultV1Adapter, WrappedToken, } from "@morpho-org/blue-sdk";
1
+ export { AccrualPosition, AccrualVault, AccrualVaultV2, AccrualVaultV2MorphoMarketV1Adapter, AccrualVaultV2MorphoMarketV1AdapterV2, AccrualVaultV2MorphoVaultV1Adapter, AssetBalances, ConstantWrappedToken, Eip5267Domain, ExchangeRateWrappedToken, Holding, Market, MarketParams, Position, PreLiquidationParams, PreLiquidationPosition, Token, User, Vault, VaultConfig, VaultMarketAllocation, VaultMarketConfig,
2
+ /** @deprecated Vault V1 PublicAllocator support will be removed in the next major. Use `VaultV2BlueMarketPublicAllocatorConfig`. */
3
+ VaultMarketPublicAllocatorConfig, VaultToken, VaultUser, VaultV2, VaultV2Adapter, VaultV2BlueMarketPublicAllocatorConfig, VaultV2BluePublicAllocatorConfig, VaultV2MorphoMarketV1Adapter, VaultV2MorphoMarketV1AdapterV2, VaultV2MorphoVaultV1Adapter, WrappedToken, } from "@morpho-org/blue-sdk";
@@ -1,2 +1,2 @@
1
- export { BlueErrors, DivisionByZeroError, IncompleteChainRegistryError, InvalidBitLengthError, InvalidMarketParamsError, RegistryValueAlreadyRegisteredError, UnknownAddressError, UnknownDataError, UnknownFactory, UnknownMarketAllocationError, UnknownMarketParamsError, UnknownOfFactory, UnknownTokenError, UnknownTokenPriceError, UnknownVaultConfigError, UnsupportedChainIdError, UnsupportedPreLiquidationParamsError, UnsupportedVaultV2AdapterError, VaultV2Errors, } from "@morpho-org/blue-sdk";
1
+ export { BlueErrors, DivisionByZeroError, IncompleteChainRegistryError, InvalidBitLengthError, InvalidMarketParamsError, RegistryValueAlreadyRegisteredError, UnknownAddressError, UnknownDataError, UnknownFactory, UnknownMarketAllocationError, UnknownMarketParamsError, UnknownOfFactory, UnknownTokenError, UnknownTokenPriceError, UnknownVaultConfigError, UnsupportedChainIdError, UnsupportedMarketIrmError, UnsupportedPreLiquidationParamsError, UnsupportedVaultV2AdapterError, VaultV2Errors, } from "@morpho-org/blue-sdk";
2
2
  export { getUnsupportedVaultV2Adapter, InvalidPermitDomainChainIdError, InvalidPermitDomainVerifyingContractError, isUnknownOfFactoryError, UnsupportedPermitDomainExtensionsError, } from "@morpho-org/blue-sdk-viem";
@@ -1,2 +1,2 @@
1
- export { BlueErrors, DivisionByZeroError, IncompleteChainRegistryError, InvalidBitLengthError, InvalidMarketParamsError, RegistryValueAlreadyRegisteredError, UnknownAddressError, UnknownDataError, UnknownFactory, UnknownMarketAllocationError, UnknownMarketParamsError, UnknownOfFactory, UnknownTokenError, UnknownTokenPriceError, UnknownVaultConfigError, UnsupportedChainIdError, UnsupportedPreLiquidationParamsError, UnsupportedVaultV2AdapterError, VaultV2Errors, } from "@morpho-org/blue-sdk";
1
+ export { BlueErrors, DivisionByZeroError, IncompleteChainRegistryError, InvalidBitLengthError, InvalidMarketParamsError, RegistryValueAlreadyRegisteredError, UnknownAddressError, UnknownDataError, UnknownFactory, UnknownMarketAllocationError, UnknownMarketParamsError, UnknownOfFactory, UnknownTokenError, UnknownTokenPriceError, UnknownVaultConfigError, UnsupportedChainIdError, UnsupportedMarketIrmError, UnsupportedPreLiquidationParamsError, UnsupportedVaultV2AdapterError, VaultV2Errors, } from "@morpho-org/blue-sdk";
2
2
  export { getUnsupportedVaultV2Adapter, InvalidPermitDomainChainIdError, InvalidPermitDomainVerifyingContractError, isUnknownOfFactoryError, UnsupportedPermitDomainExtensionsError, } from "@morpho-org/blue-sdk-viem";
@@ -1 +1,3 @@
1
- export { fetchAccrualPosition, fetchAccrualVault, fetchAccrualVaultV2, fetchAccrualVaultV2Adapter, fetchAccrualVaultV2MorphoMarketV1Adapter, fetchAccrualVaultV2MorphoMarketV1AdapterV2, fetchAccrualVaultV2MorphoVaultV1Adapter, fetchHolding, fetchMarket, fetchMarketParams, fetchPosition, fetchPreLiquidationParams, fetchPreLiquidationPosition, fetchToken, fetchUser, fetchVault, fetchVaultConfig, fetchVaultMarketAllocation, fetchVaultMarketConfig, fetchVaultMarketPublicAllocatorConfig, fetchVaultUser, fetchVaultV2, fetchVaultV2Adapter, fetchVaultV2BlueMarketPublicAllocatorConfig, fetchVaultV2BluePublicAllocatorConfig, fetchVaultV2BluePublicAllocatorData, fetchVaultV2MorphoMarketV1Adapter, fetchVaultV2MorphoMarketV1AdapterV2, fetchVaultV2MorphoVaultV1Adapter, } from "@morpho-org/blue-sdk-viem";
1
+ export { fetchAccrualPosition, fetchAccrualVault, fetchAccrualVaultV2, fetchAccrualVaultV2Adapter, fetchAccrualVaultV2MorphoMarketV1Adapter, fetchAccrualVaultV2MorphoMarketV1AdapterV2, fetchAccrualVaultV2MorphoVaultV1Adapter, fetchHolding, fetchMarket, fetchMarketParams, fetchPosition, fetchPreLiquidationParams, fetchPreLiquidationPosition, fetchToken, fetchUser, fetchVault, fetchVaultConfig, fetchVaultMarketAllocation, fetchVaultMarketConfig,
2
+ /** @deprecated Vault V1 PublicAllocator support will be removed in the next major. Use `fetchVaultV2BlueMarketPublicAllocatorConfig`. */
3
+ fetchVaultMarketPublicAllocatorConfig, fetchVaultUser, fetchVaultV2, fetchVaultV2Adapter, fetchVaultV2BlueMarketPublicAllocatorConfig, fetchVaultV2BluePublicAllocatorConfig, fetchVaultV2BluePublicAllocatorData, fetchVaultV2MorphoMarketV1Adapter, fetchVaultV2MorphoMarketV1AdapterV2, fetchVaultV2MorphoVaultV1Adapter, } from "@morpho-org/blue-sdk-viem";
@@ -1 +1,3 @@
1
- export { fetchAccrualPosition, fetchAccrualVault, fetchAccrualVaultV2, fetchAccrualVaultV2Adapter, fetchAccrualVaultV2MorphoMarketV1Adapter, fetchAccrualVaultV2MorphoMarketV1AdapterV2, fetchAccrualVaultV2MorphoVaultV1Adapter, fetchHolding, fetchMarket, fetchMarketParams, fetchPosition, fetchPreLiquidationParams, fetchPreLiquidationPosition, fetchToken, fetchUser, fetchVault, fetchVaultConfig, fetchVaultMarketAllocation, fetchVaultMarketConfig, fetchVaultMarketPublicAllocatorConfig, fetchVaultUser, fetchVaultV2, fetchVaultV2Adapter, fetchVaultV2BlueMarketPublicAllocatorConfig, fetchVaultV2BluePublicAllocatorConfig, fetchVaultV2BluePublicAllocatorData, fetchVaultV2MorphoMarketV1Adapter, fetchVaultV2MorphoMarketV1AdapterV2, fetchVaultV2MorphoVaultV1Adapter, } from "@morpho-org/blue-sdk-viem";
1
+ export { fetchAccrualPosition, fetchAccrualVault, fetchAccrualVaultV2, fetchAccrualVaultV2Adapter, fetchAccrualVaultV2MorphoMarketV1Adapter, fetchAccrualVaultV2MorphoMarketV1AdapterV2, fetchAccrualVaultV2MorphoVaultV1Adapter, fetchHolding, fetchMarket, fetchMarketParams, fetchPosition, fetchPreLiquidationParams, fetchPreLiquidationPosition, fetchToken, fetchUser, fetchVault, fetchVaultConfig, fetchVaultMarketAllocation, fetchVaultMarketConfig,
2
+ /** @deprecated Vault V1 PublicAllocator support will be removed in the next major. Use `fetchVaultV2BlueMarketPublicAllocatorConfig`. */
3
+ fetchVaultMarketPublicAllocatorConfig, fetchVaultUser, fetchVaultV2, fetchVaultV2Adapter, fetchVaultV2BlueMarketPublicAllocatorConfig, fetchVaultV2BluePublicAllocatorConfig, fetchVaultV2BluePublicAllocatorData, fetchVaultV2MorphoMarketV1Adapter, fetchVaultV2MorphoMarketV1AdapterV2, fetchVaultV2MorphoVaultV1Adapter, } from "@morpho-org/blue-sdk-viem";