@morpho-org/morpho-sdk 7.1.0-next.1 → 8.2.0-next.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 (193) hide show
  1. package/MIGRATION-v7-to-v8.md +290 -0
  2. package/README.md +11 -6
  3. package/lib/cjs/actions/bundles/resolveBundlesTokenRequirements.d.ts +2 -0
  4. package/lib/cjs/actions/bundles/resolveBundlesTokenRequirements.js +2 -0
  5. package/lib/cjs/actions/midnight/cancelAndMake.d.ts +17 -71
  6. package/lib/cjs/actions/midnight/cancelAndMake.js +41 -29
  7. package/lib/cjs/actions/midnight/redeem.d.ts +8 -1
  8. package/lib/cjs/actions/midnight/redeem.js +18 -1
  9. package/lib/cjs/actions/midnight/repayWithdrawCollateral.d.ts +19 -3
  10. package/lib/cjs/actions/midnight/repayWithdrawCollateral.js +24 -2
  11. package/lib/cjs/actions/midnight/supplyCollateral.d.ts +1 -0
  12. package/lib/cjs/actions/midnight/supplyCollateral.js +3 -0
  13. package/lib/cjs/actions/midnight/supplyCollateralTakeBorrow.d.ts +21 -6
  14. package/lib/cjs/actions/midnight/supplyCollateralTakeBorrow.js +49 -14
  15. package/lib/cjs/actions/midnight/takeBorrow.d.ts +18 -5
  16. package/lib/cjs/actions/midnight/takeBorrow.js +44 -12
  17. package/lib/cjs/actions/midnight/takeLend.d.ts +10 -5
  18. package/lib/cjs/actions/midnight/takeLend.js +27 -9
  19. package/lib/cjs/actions/midnight/takeRepayWithdrawCollateral.d.ts +22 -7
  20. package/lib/cjs/actions/midnight/takeRepayWithdrawCollateral.js +51 -27
  21. package/lib/cjs/actions/midnight/takeWithdraw.d.ts +14 -5
  22. package/lib/cjs/actions/midnight/takeWithdraw.js +40 -9
  23. package/lib/cjs/actions/requirements/blue/getBlueAuthorizationRequirement.d.ts +6 -2
  24. package/lib/cjs/actions/requirements/blue/getBlueAuthorizationRequirement.js +11 -6
  25. package/lib/cjs/actions/requirements/encode/encodeBlueSignatureAuthorization.d.ts +3 -0
  26. package/lib/cjs/actions/requirements/encode/encodeBlueSignatureAuthorization.js +2 -1
  27. package/lib/cjs/actions/requirements/encode/encodeErc20Permit.d.ts +13 -2
  28. package/lib/cjs/actions/requirements/encode/encodeErc20Permit.js +17 -6
  29. package/lib/cjs/actions/requirements/encode/encodeErc20Permit2SignatureTransfer.d.ts +3 -0
  30. package/lib/cjs/actions/requirements/encode/encodeErc20Permit2SignatureTransfer.js +2 -1
  31. package/lib/cjs/actions/requirements/encode/encodeVaultSharesPermit.d.ts +5 -0
  32. package/lib/cjs/actions/requirements/encode/encodeVaultSharesPermit.js +4 -1
  33. package/lib/cjs/actions/requirements/midnight/getMidnightApprovalRequirements.d.ts +3 -1
  34. package/lib/cjs/actions/requirements/midnight/getMidnightApprovalRequirements.js +5 -1
  35. package/lib/cjs/actions/requirements/midnight/getMidnightAuthorizationRequirement.d.ts +3 -1
  36. package/lib/cjs/actions/requirements/midnight/getMidnightAuthorizationRequirement.js +5 -1
  37. package/lib/cjs/actions/requirements/validateClientChainId.d.ts +26 -0
  38. package/lib/cjs/actions/requirements/validateClientChainId.js +34 -0
  39. package/lib/cjs/blue/errors.d.ts +1 -1
  40. package/lib/cjs/blue/errors.js +3 -1
  41. package/lib/cjs/blue/types.d.ts +1 -1
  42. package/lib/cjs/blue/utils.d.ts +1 -1
  43. package/lib/cjs/blue/utils.js +5 -1
  44. package/lib/cjs/entities/blue/blue.d.ts +109 -27
  45. package/lib/cjs/entities/blue/blue.js +103 -28
  46. package/lib/cjs/entities/index.d.ts +1 -1
  47. package/lib/cjs/entities/midnight/deadline.d.ts +15 -0
  48. package/lib/cjs/entities/midnight/deadline.js +24 -0
  49. package/lib/cjs/entities/midnight/midnight.d.ts +427 -72
  50. package/lib/cjs/entities/midnight/midnight.js +864 -186
  51. package/lib/cjs/entities/midnight/publication.d.ts +134 -0
  52. package/lib/cjs/entities/midnight/publication.js +404 -0
  53. package/lib/cjs/entities/midnight/types.d.ts +26 -5
  54. package/lib/cjs/entities/requirements/assertContractCode.d.ts +49 -0
  55. package/lib/cjs/entities/requirements/assertContractCode.js +79 -0
  56. package/lib/cjs/entities/requirements/getBundlesTokenRequirements.d.ts +19 -4
  57. package/lib/cjs/entities/requirements/getBundlesTokenRequirements.js +45 -18
  58. package/lib/cjs/entities/requirements/getUnusedPermit2Nonce.d.ts +3 -2
  59. package/lib/cjs/entities/requirements/getUnusedPermit2Nonce.js +5 -2
  60. package/lib/cjs/entities/requirements/getVaultBundlesSharesRequirements.d.ts +5 -1
  61. package/lib/cjs/entities/requirements/getVaultBundlesSharesRequirements.js +8 -2
  62. package/lib/cjs/entities/vaultV1/vaultV1.d.ts +63 -11
  63. package/lib/cjs/entities/vaultV1/vaultV1.js +52 -15
  64. package/lib/cjs/entities/vaultV2/vaultV2.d.ts +54 -12
  65. package/lib/cjs/entities/vaultV2/vaultV2.js +52 -15
  66. package/lib/cjs/entities/vaultV2BlueReallocationData.d.ts +12 -6
  67. package/lib/cjs/entities/vaultV2BlueReallocationData.js +42 -14
  68. package/lib/cjs/errors.d.ts +1 -1
  69. package/lib/cjs/errors.js +4 -2
  70. package/lib/cjs/helpers/constant.d.ts +5 -0
  71. package/lib/cjs/helpers/constant.js +6 -1
  72. package/lib/cjs/helpers/index.d.ts +1 -1
  73. package/lib/cjs/helpers/index.js +2 -1
  74. package/lib/cjs/helpers/validate.d.ts +163 -8
  75. package/lib/cjs/helpers/validate.js +179 -8
  76. package/lib/cjs/helpers/validateMidnightBounds.d.ts +47 -0
  77. package/lib/cjs/helpers/validateMidnightBounds.js +79 -0
  78. package/lib/cjs/helpers/validateMidnightPublication.d.ts +12 -0
  79. package/lib/cjs/helpers/validateMidnightPublication.js +144 -0
  80. package/lib/cjs/helpers/validateMidnightReceiver.d.ts +29 -0
  81. package/lib/cjs/helpers/validateMidnightReceiver.js +84 -0
  82. package/lib/cjs/helpers/validateMidnightTakeFeasibility.d.ts +102 -0
  83. package/lib/cjs/helpers/validateMidnightTakeFeasibility.js +231 -0
  84. package/lib/cjs/index.d.ts +1 -0
  85. package/lib/cjs/index.js +3 -0
  86. package/lib/cjs/types/error.d.ts +197 -4
  87. package/lib/cjs/types/error.js +265 -5
  88. package/lib/cjs/types/index.d.ts +1 -0
  89. package/lib/cjs/types/index.js +1 -0
  90. package/lib/cjs/types/midnightCancelAndMake.d.ts +70 -0
  91. package/lib/cjs/types/midnightCancelAndMake.js +2 -0
  92. package/lib/cjs/types/midnightPublicationError.d.ts +332 -0
  93. package/lib/cjs/types/midnightPublicationError.js +376 -0
  94. package/lib/cjs/types/sharedLiquidity.d.ts +12 -7
  95. package/lib/cjs/types.d.ts +1 -1
  96. package/lib/cjs/utils.d.ts +2 -1
  97. package/lib/cjs/utils.js +8 -2
  98. package/lib/esm/actions/bundles/resolveBundlesTokenRequirements.d.ts +2 -0
  99. package/lib/esm/actions/bundles/resolveBundlesTokenRequirements.js +2 -0
  100. package/lib/esm/actions/midnight/cancelAndMake.d.ts +17 -71
  101. package/lib/esm/actions/midnight/cancelAndMake.js +42 -30
  102. package/lib/esm/actions/midnight/redeem.d.ts +8 -1
  103. package/lib/esm/actions/midnight/redeem.js +18 -1
  104. package/lib/esm/actions/midnight/repayWithdrawCollateral.d.ts +19 -3
  105. package/lib/esm/actions/midnight/repayWithdrawCollateral.js +24 -2
  106. package/lib/esm/actions/midnight/supplyCollateral.d.ts +1 -0
  107. package/lib/esm/actions/midnight/supplyCollateral.js +3 -0
  108. package/lib/esm/actions/midnight/supplyCollateralTakeBorrow.d.ts +21 -6
  109. package/lib/esm/actions/midnight/supplyCollateralTakeBorrow.js +52 -17
  110. package/lib/esm/actions/midnight/takeBorrow.d.ts +18 -5
  111. package/lib/esm/actions/midnight/takeBorrow.js +47 -15
  112. package/lib/esm/actions/midnight/takeLend.d.ts +10 -5
  113. package/lib/esm/actions/midnight/takeLend.js +27 -9
  114. package/lib/esm/actions/midnight/takeRepayWithdrawCollateral.d.ts +22 -7
  115. package/lib/esm/actions/midnight/takeRepayWithdrawCollateral.js +52 -28
  116. package/lib/esm/actions/midnight/takeWithdraw.d.ts +14 -5
  117. package/lib/esm/actions/midnight/takeWithdraw.js +41 -10
  118. package/lib/esm/actions/requirements/blue/getBlueAuthorizationRequirement.d.ts +6 -2
  119. package/lib/esm/actions/requirements/blue/getBlueAuthorizationRequirement.js +13 -8
  120. package/lib/esm/actions/requirements/encode/encodeBlueSignatureAuthorization.d.ts +3 -0
  121. package/lib/esm/actions/requirements/encode/encodeBlueSignatureAuthorization.js +2 -1
  122. package/lib/esm/actions/requirements/encode/encodeErc20Permit.d.ts +13 -2
  123. package/lib/esm/actions/requirements/encode/encodeErc20Permit.js +17 -6
  124. package/lib/esm/actions/requirements/encode/encodeErc20Permit2SignatureTransfer.d.ts +3 -0
  125. package/lib/esm/actions/requirements/encode/encodeErc20Permit2SignatureTransfer.js +2 -1
  126. package/lib/esm/actions/requirements/encode/encodeVaultSharesPermit.d.ts +5 -0
  127. package/lib/esm/actions/requirements/encode/encodeVaultSharesPermit.js +4 -1
  128. package/lib/esm/actions/requirements/midnight/getMidnightApprovalRequirements.d.ts +3 -1
  129. package/lib/esm/actions/requirements/midnight/getMidnightApprovalRequirements.js +5 -1
  130. package/lib/esm/actions/requirements/midnight/getMidnightAuthorizationRequirement.d.ts +3 -1
  131. package/lib/esm/actions/requirements/midnight/getMidnightAuthorizationRequirement.js +5 -1
  132. package/lib/esm/actions/requirements/validateClientChainId.d.ts +26 -0
  133. package/lib/esm/actions/requirements/validateClientChainId.js +30 -0
  134. package/lib/esm/blue/errors.d.ts +1 -1
  135. package/lib/esm/blue/errors.js +1 -1
  136. package/lib/esm/blue/types.d.ts +1 -1
  137. package/lib/esm/blue/utils.d.ts +1 -1
  138. package/lib/esm/blue/utils.js +1 -1
  139. package/lib/esm/entities/blue/blue.d.ts +109 -27
  140. package/lib/esm/entities/blue/blue.js +104 -29
  141. package/lib/esm/entities/index.d.ts +1 -1
  142. package/lib/esm/entities/midnight/deadline.d.ts +15 -0
  143. package/lib/esm/entities/midnight/deadline.js +20 -0
  144. package/lib/esm/entities/midnight/midnight.d.ts +427 -72
  145. package/lib/esm/entities/midnight/midnight.js +865 -187
  146. package/lib/esm/entities/midnight/publication.d.ts +134 -0
  147. package/lib/esm/entities/midnight/publication.js +397 -0
  148. package/lib/esm/entities/midnight/types.d.ts +26 -5
  149. package/lib/esm/entities/requirements/assertContractCode.d.ts +49 -0
  150. package/lib/esm/entities/requirements/assertContractCode.js +74 -0
  151. package/lib/esm/entities/requirements/getBundlesTokenRequirements.d.ts +19 -4
  152. package/lib/esm/entities/requirements/getBundlesTokenRequirements.js +47 -20
  153. package/lib/esm/entities/requirements/getUnusedPermit2Nonce.d.ts +3 -2
  154. package/lib/esm/entities/requirements/getUnusedPermit2Nonce.js +5 -2
  155. package/lib/esm/entities/requirements/getVaultBundlesSharesRequirements.d.ts +5 -1
  156. package/lib/esm/entities/requirements/getVaultBundlesSharesRequirements.js +8 -2
  157. package/lib/esm/entities/vaultV1/vaultV1.d.ts +63 -11
  158. package/lib/esm/entities/vaultV1/vaultV1.js +53 -16
  159. package/lib/esm/entities/vaultV2/vaultV2.d.ts +54 -12
  160. package/lib/esm/entities/vaultV2/vaultV2.js +53 -16
  161. package/lib/esm/entities/vaultV2BlueReallocationData.d.ts +12 -6
  162. package/lib/esm/entities/vaultV2BlueReallocationData.js +42 -14
  163. package/lib/esm/errors.d.ts +1 -1
  164. package/lib/esm/errors.js +1 -1
  165. package/lib/esm/helpers/constant.d.ts +5 -0
  166. package/lib/esm/helpers/constant.js +5 -0
  167. package/lib/esm/helpers/index.d.ts +1 -1
  168. package/lib/esm/helpers/index.js +1 -1
  169. package/lib/esm/helpers/validate.d.ts +163 -8
  170. package/lib/esm/helpers/validate.js +177 -7
  171. package/lib/esm/helpers/validateMidnightBounds.d.ts +47 -0
  172. package/lib/esm/helpers/validateMidnightBounds.js +72 -0
  173. package/lib/esm/helpers/validateMidnightPublication.d.ts +12 -0
  174. package/lib/esm/helpers/validateMidnightPublication.js +139 -0
  175. package/lib/esm/helpers/validateMidnightReceiver.d.ts +29 -0
  176. package/lib/esm/helpers/validateMidnightReceiver.js +80 -0
  177. package/lib/esm/helpers/validateMidnightTakeFeasibility.d.ts +102 -0
  178. package/lib/esm/helpers/validateMidnightTakeFeasibility.js +226 -0
  179. package/lib/esm/index.d.ts +1 -0
  180. package/lib/esm/index.js +1 -0
  181. package/lib/esm/types/error.d.ts +197 -4
  182. package/lib/esm/types/error.js +253 -2
  183. package/lib/esm/types/index.d.ts +1 -0
  184. package/lib/esm/types/index.js +1 -0
  185. package/lib/esm/types/midnightCancelAndMake.d.ts +70 -0
  186. package/lib/esm/types/midnightCancelAndMake.js +1 -0
  187. package/lib/esm/types/midnightPublicationError.d.ts +332 -0
  188. package/lib/esm/types/midnightPublicationError.js +359 -0
  189. package/lib/esm/types/sharedLiquidity.d.ts +12 -7
  190. package/lib/esm/types.d.ts +1 -1
  191. package/lib/esm/utils.d.ts +2 -1
  192. package/lib/esm/utils.js +2 -1
  193. package/package.json +7 -6
@@ -1,4 +1,5 @@
1
1
  import { type MarketId, UnknownDataError } from "@morpho-org/blue-sdk";
2
+ import type { AddressLabel } from "@morpho-org/morpho-ts";
2
3
  import type { Address, Hash, Hex } from "viem";
3
4
  /**
4
5
  * Thrown when a morpho-sdk input that must be non-negative is negative.
@@ -583,6 +584,19 @@ export declare class ReferralFeePctExceededError extends InputExceedsMaxError {
583
584
  /** @param referralFeePct - WAD-scaled referral fee percentage supplied by the caller. */
584
585
  constructor(referralFeePct: bigint);
585
586
  }
587
+ /**
588
+ * Thrown when the SDK's 10% (`WAD / 10n`) Midnight referral-fee cap is exceeded;
589
+ * the contract itself only requires `referralFeePct < WAD`.
590
+ */
591
+ export declare class MidnightReferralFeePctExceededError extends InputExceedsMaxError {
592
+ readonly referralFeePct: bigint;
593
+ /**
594
+ * @param referralFeePct - WAD-scaled referral fee percentage supplied by the caller.
595
+ * The SDK cap is 10% (`WAD / 10n`); the contract itself only requires
596
+ * `referralFeePct < WAD`.
597
+ */
598
+ constructor(referralFeePct: bigint);
599
+ }
586
600
  /** Thrown when a fixed bundles call mixes ERC-20 and native funding. */
587
601
  export declare class MixedBundlesFundingError extends Error {
588
602
  constructor();
@@ -1112,13 +1126,128 @@ export declare class UnboundedMidnightTakeInputError extends Error {
1112
1126
  */
1113
1127
  constructor(field: "target.units" | "target.maxBuyerAssets" | "target.maxUnits" | "deadline");
1114
1128
  }
1115
- /** Thrown when a Midnight taker flow uses a zero address as its receiver. */
1129
+ /**
1130
+ * Thrown when none of a Midnight take's offers can fill and the flow has no other source of units,
1131
+ * so `MidnightBundlesV2` would revert with `OutOfOffers()`, or when every offer would abort the
1132
+ * bundle before its take (`Panic(0x12)`, `PriceGreaterThanOne()` or an underflow), whatever the
1133
+ * fallback.
1134
+ */
1135
+ export declare class MidnightTakeableOffersNotFillableError extends Error {
1136
+ /** Every supplied offer with the reason it cannot fill. */
1137
+ readonly offers: readonly {
1138
+ /** Offer index in the supplied `takeableOffers`. */
1139
+ readonly index: number;
1140
+ /** Why the offer cannot fill. */
1141
+ readonly reason: "expired" | "notStarted" | "selfTake" | "continuousFeeCapBelowMarketFee" | "zeroUnits" | "receiverIfMakerIsSellerNotZero" | "marketMatured" | "zeroBuyerPrice" | "buyerPriceAboveOne" | "priceBelowSettlementFee" | "tickOutOfRange";
1142
+ }[];
1143
+ /**
1144
+ * @param offers - Every supplied offer with the reason it cannot fill.
1145
+ */
1146
+ constructor(offers: MidnightTakeableOffersNotFillableError["offers"]);
1147
+ }
1148
+ /**
1149
+ * Thrown when a Midnight take target can never be met, so `MidnightBundlesV2` would revert
1150
+ * (`OutOfOffers()`, `SellerAssetsTooLow()`, `UnitsTooHigh()` or a loan-token transfer error).
1151
+ */
1152
+ export declare class MidnightTakeTargetUnreachableError extends Error {
1153
+ /** Target bound that cannot be met, or `takeableOffers` when the offers lack capacity. */
1154
+ readonly field: "target.minSellerAssets" | "target.maxUnits" | "target.maxBuyerAssets" | "repay.maxBuyerAssets" | "takeableOffers";
1155
+ /** Supplied bound, or the fillable units for `takeableOffers`. */
1156
+ readonly value: bigint;
1157
+ /** Bound the target needs. */
1158
+ readonly limit: bigint;
1159
+ /**
1160
+ * @param params - Unreachable bound, supplied value and required limit.
1161
+ * @param params.field - Target bound that cannot be met, or `takeableOffers`.
1162
+ * @param params.value - Supplied bound, or the fillable units for `takeableOffers`.
1163
+ * @param params.limit - Bound the target needs.
1164
+ */
1165
+ constructor(params: {
1166
+ readonly field: MidnightTakeTargetUnreachableError["field"];
1167
+ readonly value: bigint;
1168
+ readonly limit: bigint;
1169
+ });
1170
+ }
1171
+ /**
1172
+ * Thrown when a Midnight buy's `maxContinuousFee` is below the market's continuous fee, so
1173
+ * `MidnightBundlesV2` would revert with `ContinuousFeeAboveMax()`.
1174
+ */
1175
+ export declare class MidnightContinuousFeeAboveMaxError extends Error {
1176
+ /** Largest continuous fee the caller accepts. */
1177
+ readonly maxContinuousFee: bigint;
1178
+ /** Market continuous fee from the market snapshot. */
1179
+ readonly continuousFee: bigint;
1180
+ /**
1181
+ * @param params - Caller cap and market fee.
1182
+ * @param params.maxContinuousFee - Largest continuous fee the caller accepts.
1183
+ * @param params.continuousFee - Market continuous fee from the market snapshot.
1184
+ */
1185
+ constructor(params: {
1186
+ readonly maxContinuousFee: bigint;
1187
+ readonly continuousFee: bigint;
1188
+ });
1189
+ }
1190
+ /**
1191
+ * Thrown when a Midnight reduce-only repay targets more than the position's debt, so
1192
+ * `MidnightBundlesV2` would revert with `NotReduceOnly()` or `OutOfOffers()`.
1193
+ */
1194
+ export declare class MidnightRepayExceedsDebtError extends Error {
1195
+ /** Repay input that exceeds the debt. */
1196
+ readonly field: "target.units" | "target.minUnits" | "target.assets" | "repay.assets";
1197
+ /** Supplied repay amount; for `target.assets`, net of the referral fee. */
1198
+ readonly value: bigint;
1199
+ /** Debt from the position snapshot. */
1200
+ readonly debt: bigint;
1201
+ /**
1202
+ * @param params - Repay input, amount and debt.
1203
+ * @param params.field - Repay input that exceeds the debt.
1204
+ * @param params.value - Supplied repay amount; for `target.assets`, net of the referral fee.
1205
+ * @param params.debt - Debt from the position snapshot.
1206
+ */
1207
+ constructor(params: {
1208
+ readonly field: "target.units" | "target.minUnits" | "target.assets" | "repay.assets";
1209
+ readonly value: bigint;
1210
+ readonly debt: bigint;
1211
+ });
1212
+ }
1213
+ /**
1214
+ * Thrown when a Midnight flow uses a zero receiver or a zero collateral receiver with withdrawals.
1215
+ */
1116
1216
  export declare class MidnightZeroReceiverError extends Error {
1117
- readonly field: "receiver";
1217
+ readonly field: "receiver" | "collateralReceiver";
1218
+ /**
1219
+ * @param field - Receiver field or collateral receiver field containing the zero address.
1220
+ */
1221
+ constructor(field: "receiver" | "collateralReceiver");
1222
+ }
1223
+ /**
1224
+ * Thrown when a Midnight receiver is a Midnight protocol or market token contract that cannot
1225
+ * forward received assets.
1226
+ */
1227
+ export declare class MidnightContractReceiverError extends Error {
1228
+ /** Receiver field supplied with the contract address. */
1229
+ readonly field: "receiver" | "collateralReceiver" | "referralFeeRecipient";
1230
+ /** Contract address supplied as the receiver. */
1231
+ readonly receiver: Address;
1232
+ /** Midnight registry key (`"midnight"`, `"midnightBundlesV2"`,
1233
+ * `"midnightBlueBuyCallbackFactory"`, `"midnightMempool"`, `"ecrecoverRatifier"`,
1234
+ * `"ecrecoverAuthorizer"`, `"setterRatifier"`, `"priceRatifierV1"`,
1235
+ * `"rateRatifierV1"`) or market token label (`"loanToken"`, `"collateralToken[i]"`)
1236
+ * identifying the matched contract. */
1237
+ readonly contract: "midnight" | "midnightBundlesV2" | "midnightBlueBuyCallbackFactory" | "midnightMempool" | "ecrecoverRatifier" | "ecrecoverAuthorizer" | "setterRatifier" | "priceRatifierV1" | "rateRatifierV1" | "loanToken" | `collateralToken[${number}]`;
1118
1238
  /**
1119
- * @param field - Receiver field containing the zero address.
1239
+ * @param params - Matched receiver field, contract address, and contract label.
1240
+ * @param params.field - Receiver field supplied with the contract address.
1241
+ * @param params.receiver - Contract address supplied as the receiver.
1242
+ * @param params.contract - Midnight registry key (for example `"midnightBundlesV2"`) or
1243
+ * market token label (`"loanToken"`, `"collateralToken[i]"`) identifying the matched
1244
+ * contract.
1120
1245
  */
1121
- constructor(field: "receiver");
1246
+ constructor(params: {
1247
+ readonly field: "receiver" | "collateralReceiver" | "referralFeeRecipient";
1248
+ readonly receiver: Address;
1249
+ readonly contract: "midnight" | "midnightBundlesV2" | "midnightBlueBuyCallbackFactory" | "midnightMempool" | "ecrecoverRatifier" | "ecrecoverAuthorizer" | "setterRatifier" | "priceRatifierV1" | "rateRatifierV1" | "loanToken" | `collateralToken[${number}]`;
1250
+ });
1122
1251
  }
1123
1252
  /** Thrown when a Midnight take deadline is more than one hour from the current time. */
1124
1253
  export declare class MidnightTakeDeadlineTooFarError extends Error {
@@ -1238,6 +1367,37 @@ export declare class InsufficientMidnightWithdrawableLiquidityError extends Erro
1238
1367
  withdrawable: bigint;
1239
1368
  });
1240
1369
  }
1370
+ /**
1371
+ * Thrown when a Midnight root, publication or cancellation group, Blue callback salt,
1372
+ * root-signature `r`/`s`, or payload is not valid bounded hex input.
1373
+ */
1374
+ export declare class InvalidMidnightHexInputError extends Error {
1375
+ /**
1376
+ * @param params - Invalid hex field details.
1377
+ * @param params.field - Midnight input field containing the invalid value.
1378
+ * @param params.value - Supplied hex value.
1379
+ * @param params.reason - Why the supplied value is invalid.
1380
+ */
1381
+ constructor(params: {
1382
+ readonly field: string;
1383
+ readonly value: string;
1384
+ readonly reason: "notHex" | "oddLength" | "wrongSize" | "tooLong";
1385
+ });
1386
+ /** Midnight input field containing the invalid value. */
1387
+ readonly field: string;
1388
+ /** Supplied hex value. */
1389
+ readonly value: string;
1390
+ /** Why the supplied value is invalid. */
1391
+ readonly reason: "notHex" | "oddLength" | "wrongSize" | "tooLong";
1392
+ }
1393
+ /** Thrown when a Midnight entity account is malformed or the zero address. */
1394
+ export declare class MidnightInvalidAccountAddressError extends Error {
1395
+ readonly value: string;
1396
+ /**
1397
+ * @param value - Account address supplied by the caller.
1398
+ */
1399
+ constructor(value: string);
1400
+ }
1241
1401
  /** Thrown when a loan-asset withdraw specifies both `assets` and `shares` as non-zero (modes are mutually exclusive). */
1242
1402
  export declare class MutuallyExclusiveWithdrawAmountsError extends Error {
1243
1403
  constructor(market: string);
@@ -1295,3 +1455,36 @@ export declare class MidnightOfferNotReduceOnlyError extends Error {
1295
1455
  readonly index: number;
1296
1456
  });
1297
1457
  }
1458
+ /**
1459
+ * Thrown when a configured registry address holds no contract code.
1460
+ *
1461
+ * A call to a code-less address succeeds on-chain as a no-op, so entity
1462
+ * `getRequirements()` checks each registry target with one `eth_getCode`
1463
+ * before returning requirements. Use {@link MissingContractCodeError.address}
1464
+ * and {@link MissingContractCodeError.role} to find the misconfigured registry
1465
+ * entry.
1466
+ *
1467
+ * @example
1468
+ * ```ts
1469
+ * import { MissingContractCodeError } from "@morpho-org/morpho-sdk";
1470
+ *
1471
+ * try {
1472
+ * await deposit.getRequirements();
1473
+ * } catch (error) {
1474
+ * if (error instanceof MissingContractCodeError) {
1475
+ * console.error(error.address, error.chainId, error.role);
1476
+ * }
1477
+ * }
1478
+ * ```
1479
+ */
1480
+ export declare class MissingContractCodeError extends Error {
1481
+ readonly address: Address;
1482
+ readonly chainId: number;
1483
+ readonly role: AddressLabel;
1484
+ /**
1485
+ * @param address - Registry-configured address without deployed code.
1486
+ * @param chainId - Chain id the flow targets.
1487
+ * @param role - Registry label naming the address's role in the flow.
1488
+ */
1489
+ constructor(address: Address, chainId: number, role: AddressLabel);
1490
+ }
@@ -1,4 +1,6 @@
1
1
  import { MathLib, UnknownDataError } from "@morpho-org/blue-sdk";
2
+ import { Payload } from "@morpho-org/midnight-sdk";
3
+ import { MIDNIGHT_MAX_REFERRAL_FEE_PCT } from "../helpers/constant.js";
2
4
  /**
3
5
  * Thrown when a morpho-sdk input that must be non-negative is negative.
4
6
  *
@@ -671,6 +673,28 @@ export class ReferralFeePctExceededError extends InputExceedsMaxError {
671
673
  this.name = "ReferralFeePctExceededError";
672
674
  }
673
675
  }
676
+ /**
677
+ * Thrown when the SDK's 10% (`WAD / 10n`) Midnight referral-fee cap is exceeded;
678
+ * the contract itself only requires `referralFeePct < WAD`.
679
+ */
680
+ export class MidnightReferralFeePctExceededError extends InputExceedsMaxError {
681
+ referralFeePct;
682
+ /**
683
+ * @param referralFeePct - WAD-scaled referral fee percentage supplied by the caller.
684
+ * The SDK cap is 10% (`WAD / 10n`); the contract itself only requires
685
+ * `referralFeePct < WAD`.
686
+ */
687
+ constructor(referralFeePct) {
688
+ super({
689
+ field: "referralFeePct",
690
+ value: referralFeePct,
691
+ max: MIDNIGHT_MAX_REFERRAL_FEE_PCT,
692
+ });
693
+ this.referralFeePct = referralFeePct;
694
+ this.message = `Referral fee "${referralFeePct}" exceeds the SDK's 10% Midnight referral-fee cap "${MIDNIGHT_MAX_REFERRAL_FEE_PCT}". Reduce referralFeePct.`;
695
+ this.name = "MidnightReferralFeePctExceededError";
696
+ }
697
+ }
674
698
  /** Thrown when a fixed bundles call mixes ERC-20 and native funding. */
675
699
  export class MixedBundlesFundingError extends Error {
676
700
  constructor() {
@@ -1300,11 +1324,110 @@ export class UnboundedMidnightTakeInputError extends Error {
1300
1324
  this.name = "UnboundedMidnightTakeInputError";
1301
1325
  }
1302
1326
  }
1303
- /** Thrown when a Midnight taker flow uses a zero address as its receiver. */
1327
+ /**
1328
+ * Thrown when none of a Midnight take's offers can fill and the flow has no other source of units,
1329
+ * so `MidnightBundlesV2` would revert with `OutOfOffers()`, or when every offer would abort the
1330
+ * bundle before its take (`Panic(0x12)`, `PriceGreaterThanOne()` or an underflow), whatever the
1331
+ * fallback.
1332
+ */
1333
+ export class MidnightTakeableOffersNotFillableError extends Error {
1334
+ /** Every supplied offer with the reason it cannot fill. */
1335
+ offers;
1336
+ /**
1337
+ * @param offers - Every supplied offer with the reason it cannot fill.
1338
+ */
1339
+ constructor(offers) {
1340
+ super(`No Midnight takeable offer can fill: ${offers
1341
+ .map(({ index, reason }) => `offer "${index}" is "${reason}"`)
1342
+ .join(", ")}. Refresh the quote and try again.`);
1343
+ this.offers = offers;
1344
+ this.name = "MidnightTakeableOffersNotFillableError";
1345
+ }
1346
+ }
1347
+ /**
1348
+ * Thrown when a Midnight take target can never be met, so `MidnightBundlesV2` would revert
1349
+ * (`OutOfOffers()`, `SellerAssetsTooLow()`, `UnitsTooHigh()` or a loan-token transfer error).
1350
+ */
1351
+ export class MidnightTakeTargetUnreachableError extends Error {
1352
+ /** Target bound that cannot be met, or `takeableOffers` when the offers lack capacity. */
1353
+ field;
1354
+ /** Supplied bound, or the fillable units for `takeableOffers`. */
1355
+ value;
1356
+ /** Bound the target needs. */
1357
+ limit;
1358
+ /**
1359
+ * @param params - Unreachable bound, supplied value and required limit.
1360
+ * @param params.field - Target bound that cannot be met, or `takeableOffers`.
1361
+ * @param params.value - Supplied bound, or the fillable units for `takeableOffers`.
1362
+ * @param params.limit - Bound the target needs.
1363
+ */
1364
+ constructor(params) {
1365
+ super({
1366
+ "target.minSellerAssets": `Midnight "target.minSellerAssets" "${params.value}" exceeds the most the seller can receive, "${params.limit}", since each unit sells for at most one asset and the referral fee is deducted. Lower minSellerAssets or raise target.units.`,
1367
+ "target.maxUnits": `Midnight "target.maxUnits" "${params.value}" is below the "${params.limit}" units needed, since each unit sells for at most one asset and the referral fee is added. Raise maxUnits or lower target.assets.`,
1368
+ "target.maxBuyerAssets": `Midnight "target.maxBuyerAssets" "${params.value}" is below the minimum cost "${params.limit}" of the target units at the cheapest fillable price, including the referral fee. Raise maxBuyerAssets or lower target.units.`,
1369
+ "repay.maxBuyerAssets": `Midnight "repay.maxBuyerAssets" "${params.value}" is below the position debt "${params.limit}", which a full repay pays at par. Raise maxBuyerAssets to cover the debt.`,
1370
+ takeableOffers: `Midnight takeable offers can fill at most "${params.value}" units, below the "${params.limit}" units the target needs. Request a larger quote or lower the target.`,
1371
+ }[params.field]);
1372
+ this.field = params.field;
1373
+ this.value = params.value;
1374
+ this.limit = params.limit;
1375
+ this.name = "MidnightTakeTargetUnreachableError";
1376
+ }
1377
+ }
1378
+ /**
1379
+ * Thrown when a Midnight buy's `maxContinuousFee` is below the market's continuous fee, so
1380
+ * `MidnightBundlesV2` would revert with `ContinuousFeeAboveMax()`.
1381
+ */
1382
+ export class MidnightContinuousFeeAboveMaxError extends Error {
1383
+ /** Largest continuous fee the caller accepts. */
1384
+ maxContinuousFee;
1385
+ /** Market continuous fee from the market snapshot. */
1386
+ continuousFee;
1387
+ /**
1388
+ * @param params - Caller cap and market fee.
1389
+ * @param params.maxContinuousFee - Largest continuous fee the caller accepts.
1390
+ * @param params.continuousFee - Market continuous fee from the market snapshot.
1391
+ */
1392
+ constructor(params) {
1393
+ super(`Midnight market continuous fee "${params.continuousFee}" exceeds maxContinuousFee "${params.maxContinuousFee}". Raise maxContinuousFee or refresh the market data.`);
1394
+ this.maxContinuousFee = params.maxContinuousFee;
1395
+ this.continuousFee = params.continuousFee;
1396
+ this.name = "MidnightContinuousFeeAboveMaxError";
1397
+ }
1398
+ }
1399
+ /**
1400
+ * Thrown when a Midnight reduce-only repay targets more than the position's debt, so
1401
+ * `MidnightBundlesV2` would revert with `NotReduceOnly()` or `OutOfOffers()`.
1402
+ */
1403
+ export class MidnightRepayExceedsDebtError extends Error {
1404
+ /** Repay input that exceeds the debt. */
1405
+ field;
1406
+ /** Supplied repay amount; for `target.assets`, net of the referral fee. */
1407
+ value;
1408
+ /** Debt from the position snapshot. */
1409
+ debt;
1410
+ /**
1411
+ * @param params - Repay input, amount and debt.
1412
+ * @param params.field - Repay input that exceeds the debt.
1413
+ * @param params.value - Supplied repay amount; for `target.assets`, net of the referral fee.
1414
+ * @param params.debt - Debt from the position snapshot.
1415
+ */
1416
+ constructor(params) {
1417
+ super(`Midnight "${params.field}" "${params.value}" exceeds the position debt "${params.debt}". Lower the repay amount or use a full repay.`);
1418
+ this.field = params.field;
1419
+ this.value = params.value;
1420
+ this.debt = params.debt;
1421
+ this.name = "MidnightRepayExceedsDebtError";
1422
+ }
1423
+ }
1424
+ /**
1425
+ * Thrown when a Midnight flow uses a zero receiver or a zero collateral receiver with withdrawals.
1426
+ */
1304
1427
  export class MidnightZeroReceiverError extends Error {
1305
1428
  field;
1306
1429
  /**
1307
- * @param field - Receiver field containing the zero address.
1430
+ * @param field - Receiver field or collateral receiver field containing the zero address.
1308
1431
  */
1309
1432
  constructor(field) {
1310
1433
  super(`Midnight "${field}" cannot be the zero address. Provide a valid recipient.`);
@@ -1312,6 +1435,37 @@ export class MidnightZeroReceiverError extends Error {
1312
1435
  this.name = "MidnightZeroReceiverError";
1313
1436
  }
1314
1437
  }
1438
+ /**
1439
+ * Thrown when a Midnight receiver is a Midnight protocol or market token contract that cannot
1440
+ * forward received assets.
1441
+ */
1442
+ export class MidnightContractReceiverError extends Error {
1443
+ /** Receiver field supplied with the contract address. */
1444
+ field;
1445
+ /** Contract address supplied as the receiver. */
1446
+ receiver;
1447
+ /** Midnight registry key (`"midnight"`, `"midnightBundlesV2"`,
1448
+ * `"midnightBlueBuyCallbackFactory"`, `"midnightMempool"`, `"ecrecoverRatifier"`,
1449
+ * `"ecrecoverAuthorizer"`, `"setterRatifier"`, `"priceRatifierV1"`,
1450
+ * `"rateRatifierV1"`) or market token label (`"loanToken"`, `"collateralToken[i]"`)
1451
+ * identifying the matched contract. */
1452
+ contract;
1453
+ /**
1454
+ * @param params - Matched receiver field, contract address, and contract label.
1455
+ * @param params.field - Receiver field supplied with the contract address.
1456
+ * @param params.receiver - Contract address supplied as the receiver.
1457
+ * @param params.contract - Midnight registry key (for example `"midnightBundlesV2"`) or
1458
+ * market token label (`"loanToken"`, `"collateralToken[i]"`) identifying the matched
1459
+ * contract.
1460
+ */
1461
+ constructor(params) {
1462
+ super(`Midnight "${params.field}" "${params.receiver}" is the ${params.contract} contract, which cannot forward received assets. Provide an account address that can receive them.`);
1463
+ this.name = "MidnightContractReceiverError";
1464
+ this.field = params.field;
1465
+ this.receiver = params.receiver;
1466
+ this.contract = params.contract;
1467
+ }
1468
+ }
1315
1469
  /** Thrown when a Midnight take deadline is more than one hour from the current time. */
1316
1470
  export class MidnightTakeDeadlineTooFarError extends Error {
1317
1471
  /** Deadline supplied by the caller. */
@@ -1414,6 +1568,63 @@ export class InsufficientMidnightWithdrawableLiquidityError extends Error {
1414
1568
  super(`Midnight withdrawable liquidity is insufficient on market "${params.market}": units "${params.units}", withdrawable "${params.withdrawable}". Try again later or redeem less.`);
1415
1569
  }
1416
1570
  }
1571
+ /**
1572
+ * Thrown when a Midnight root, publication or cancellation group, Blue callback salt,
1573
+ * root-signature `r`/`s`, or payload is not valid bounded hex input.
1574
+ */
1575
+ export class InvalidMidnightHexInputError extends Error {
1576
+ /**
1577
+ * @param params - Invalid hex field details.
1578
+ * @param params.field - Midnight input field containing the invalid value.
1579
+ * @param params.value - Supplied hex value.
1580
+ * @param params.reason - Why the supplied value is invalid.
1581
+ */
1582
+ constructor(params) {
1583
+ const { expectation, remedy } = {
1584
+ notHex: {
1585
+ expectation: "strict 0x-prefixed hex",
1586
+ remedy: "Re-encode the value as 0x-prefixed hex.",
1587
+ },
1588
+ oddLength: {
1589
+ expectation: "even-length hex",
1590
+ remedy: "Re-encode the value as 0x-prefixed hex.",
1591
+ },
1592
+ wrongSize: {
1593
+ expectation: "exactly 32 bytes",
1594
+ remedy: "Pass exactly 32 bytes of hex.",
1595
+ },
1596
+ tooLong: {
1597
+ expectation: `no more than ${Payload.MAX_PAYLOAD_BYTES.toLocaleString("en-US")} bytes`,
1598
+ remedy: "Split the offers across smaller trees so the encoded payload fits.",
1599
+ },
1600
+ }[params.reason];
1601
+ const raw = String(params.value);
1602
+ const value = raw.length > 80 ? `${raw.slice(0, 40)}…${raw.slice(-8)}` : raw;
1603
+ super(`Midnight "${params.field}" must be ${expectation}, got "${value}". ${remedy}`);
1604
+ this.field = params.field;
1605
+ this.value = raw;
1606
+ this.reason = params.reason;
1607
+ this.name = "InvalidMidnightHexInputError";
1608
+ }
1609
+ /** Midnight input field containing the invalid value. */
1610
+ field;
1611
+ /** Supplied hex value. */
1612
+ value;
1613
+ /** Why the supplied value is invalid. */
1614
+ reason;
1615
+ }
1616
+ /** Thrown when a Midnight entity account is malformed or the zero address. */
1617
+ export class MidnightInvalidAccountAddressError extends Error {
1618
+ value;
1619
+ /**
1620
+ * @param value - Account address supplied by the caller.
1621
+ */
1622
+ constructor(value) {
1623
+ super(`Midnight accountAddress must be a valid non-zero address, got "${value}". Provide a valid account address.`);
1624
+ this.value = value;
1625
+ this.name = "MidnightInvalidAccountAddressError";
1626
+ }
1627
+ }
1417
1628
  /** Thrown when a loan-asset withdraw specifies both `assets` and `shares` as non-zero (modes are mutually exclusive). */
1418
1629
  export class MutuallyExclusiveWithdrawAmountsError extends Error {
1419
1630
  constructor(market) {
@@ -1470,3 +1681,43 @@ export class MidnightOfferNotReduceOnlyError extends Error {
1470
1681
  super(`Midnight exit offer "${params.index}" must have reduceOnly=true. Rebuild the offer tree for the exit intent.`);
1471
1682
  }
1472
1683
  }
1684
+ /**
1685
+ * Thrown when a configured registry address holds no contract code.
1686
+ *
1687
+ * A call to a code-less address succeeds on-chain as a no-op, so entity
1688
+ * `getRequirements()` checks each registry target with one `eth_getCode`
1689
+ * before returning requirements. Use {@link MissingContractCodeError.address}
1690
+ * and {@link MissingContractCodeError.role} to find the misconfigured registry
1691
+ * entry.
1692
+ *
1693
+ * @example
1694
+ * ```ts
1695
+ * import { MissingContractCodeError } from "@morpho-org/morpho-sdk";
1696
+ *
1697
+ * try {
1698
+ * await deposit.getRequirements();
1699
+ * } catch (error) {
1700
+ * if (error instanceof MissingContractCodeError) {
1701
+ * console.error(error.address, error.chainId, error.role);
1702
+ * }
1703
+ * }
1704
+ * ```
1705
+ */
1706
+ export class MissingContractCodeError extends Error {
1707
+ address;
1708
+ chainId;
1709
+ role;
1710
+ /**
1711
+ * @param address - Registry-configured address without deployed code.
1712
+ * @param chainId - Chain id the flow targets.
1713
+ * @param role - Registry label naming the address's role in the flow.
1714
+ */
1715
+ // biome-ignore lint/complexity/useMaxParams: mirrors the registry-address failure shape
1716
+ constructor(address, chainId, role) {
1717
+ super(`No contract code at ${role} address ${address} on chain ${chainId}. Check the address registry and that the client's RPC serves chain ${chainId}.`);
1718
+ this.address = address;
1719
+ this.chainId = chainId;
1720
+ this.role = role;
1721
+ this.name = "MissingContractCodeError";
1722
+ }
1723
+ }
@@ -4,4 +4,5 @@ export * from "./deallocation.js";
4
4
  export * from "./entity.js";
5
5
  export * from "./error.js";
6
6
  export * from "./metadata.js";
7
+ export * from "./midnightPublicationError.js";
7
8
  export * from "./sharedLiquidity.js";
@@ -4,4 +4,5 @@ export * from "./deallocation.js";
4
4
  export * from "./entity.js";
5
5
  export * from "./error.js";
6
6
  export * from "./metadata.js";
7
+ export * from "./midnightPublicationError.js";
7
8
  export * from "./sharedLiquidity.js";
@@ -0,0 +1,70 @@
1
+ import type { MarketInput } from "@morpho-org/midnight-sdk";
2
+ import type { Address, Hex } from "viem";
3
+ import type { MidnightBlueSupply, MidnightCollateralTransfer, MidnightGroupCancellation } from "./action.js";
4
+ import type { Metadata } from "./metadata.js";
5
+ /**
6
+ * Delegated root-activation signature passed to the ratifier's `setIsRootRatifiedWithSig`.
7
+ * Omit it to activate the root directly with `setIsRootRatified`.
8
+ */
9
+ export interface MidnightRootActivationSignature {
10
+ /** Tree height committed by the signature. */
11
+ readonly height: bigint;
12
+ /** Ratifier signature nonce. */
13
+ readonly nonce: bigint;
14
+ /** Signature deadline timestamp, independent of the bundle deadline. */
15
+ readonly deadline: bigint;
16
+ readonly v: number;
17
+ readonly r: Hex;
18
+ readonly s: Hex;
19
+ }
20
+ /** Collateral supplied for the maker before root activation; every offer must target `market`. */
21
+ export interface MidnightMakeBorrowCollateral {
22
+ readonly market: MarketInput;
23
+ readonly supplies: readonly MidnightCollateralTransfer[];
24
+ }
25
+ /** Offer root activated and published by a Midnight Bundles V2 maker bundle. */
26
+ export interface MidnightOfferPublication {
27
+ /**
28
+ * The chain's registered `priceRatifierV1` or `rateRatifierV1`, which activates `root`.
29
+ * MidnightBundlesV2 authorizes it over the maker's whole Midnight account.
30
+ */
31
+ readonly ratifier: Address;
32
+ /** Offer tree root to activate. */
33
+ readonly root: Hex;
34
+ /** Distinct offer groups contained in `root`. */
35
+ readonly groups: readonly Hex[];
36
+ /** Encoded offer payload for `root`, published to the Midnight log. */
37
+ readonly payload: Hex;
38
+ /**
39
+ * Optional builder-only delegated root-activation signature. Maker entity methods never set it;
40
+ * they encode zero signature fields and rely on MidnightBundlesV2 authorization.
41
+ */
42
+ readonly rootSignature?: MidnightRootActivationSignature;
43
+ /** Optional loan assets parked on Morpho Blue for the maker; share-price slippage is not checked. */
44
+ readonly blueSupply?: MidnightBlueSupply;
45
+ /** Optional collateral supplied to `market` for the maker before activation. */
46
+ readonly collateral?: MidnightMakeBorrowCollateral;
47
+ }
48
+ /**
49
+ * Parameters for encoding a Midnight Bundles V2 maker bundle: an offer publication or repost, or,
50
+ * without a publication, a cancellation of offer groups only.
51
+ */
52
+ export interface MidnightCancelAndMakeParams {
53
+ /** Chain id used to resolve `MidnightBundlesV2`. */
54
+ readonly chainId: number;
55
+ /** Offer groups to cancel, each with its largest accepted consumption. Empty for a new publication. */
56
+ readonly cancellations: readonly MidnightGroupCancellation[];
57
+ /** Bundle execution deadline timestamp. Pass `maxUint256` explicitly for no expiry. */
58
+ readonly deadline: bigint;
59
+ /**
60
+ * Optional native ETH sent as `value`; the bundle wraps it into the chain's wNative and transfers
61
+ * it to `msg.sender` before pulling. It may cover part or all of the maximum wNative amount this
62
+ * call can pull, but not more. Any wrapped native not pulled stays in the sender's wallet as
63
+ * wNative. The wNative approval to `MidnightBundlesV2` is still required for the full pulled amount.
64
+ */
65
+ readonly nativeAmount?: bigint;
66
+ /** Optional analytics metadata appended to calldata. */
67
+ readonly metadata?: Metadata;
68
+ /** Offers to publish after the cancellations. Omit to cancel offer groups only. */
69
+ readonly publication?: MidnightOfferPublication;
70
+ }
@@ -0,0 +1 @@
1
+ export {};