@morpho-org/morpho-sdk 2.1.1 → 3.1.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 (206) hide show
  1. package/lib/cjs/abis.d.ts +2816 -0
  2. package/lib/cjs/abis.js +1951 -0
  3. package/lib/cjs/actions/index.d.ts +3 -0
  4. package/lib/cjs/actions/marketV1/borrow.js +7 -10
  5. package/lib/cjs/actions/marketV1/buildReallocationActions.d.ts +2 -3
  6. package/lib/cjs/actions/marketV1/buildReallocationActions.js +1 -2
  7. package/lib/cjs/actions/marketV1/index.d.ts +2 -0
  8. package/lib/cjs/actions/marketV1/index.js +2 -0
  9. package/lib/cjs/actions/marketV1/repay.d.ts +2 -0
  10. package/lib/cjs/actions/marketV1/repay.js +7 -8
  11. package/lib/cjs/actions/marketV1/repayWithdrawCollateral.d.ts +2 -0
  12. package/lib/cjs/actions/marketV1/repayWithdrawCollateral.js +9 -10
  13. package/lib/cjs/actions/marketV1/supply.d.ts +69 -0
  14. package/lib/cjs/actions/marketV1/supply.js +128 -0
  15. package/lib/cjs/actions/marketV1/supplyCollateral.d.ts +3 -1
  16. package/lib/cjs/actions/marketV1/supplyCollateral.js +12 -13
  17. package/lib/cjs/actions/marketV1/supplyCollateralBorrow.d.ts +3 -1
  18. package/lib/cjs/actions/marketV1/supplyCollateralBorrow.js +14 -15
  19. package/lib/cjs/actions/marketV1/withdraw.d.ts +83 -0
  20. package/lib/cjs/actions/marketV1/withdraw.js +110 -0
  21. package/lib/cjs/actions/requirements/encode/encodeErc20Approval.js +2 -2
  22. package/lib/cjs/actions/requirements/getRequirementsAction.d.ts +1 -1
  23. package/lib/cjs/actions/requirements/getRequirementsApproval.js +2 -2
  24. package/lib/cjs/actions/vaultV1/deposit.d.ts +2 -0
  25. package/lib/cjs/actions/vaultV1/deposit.js +13 -14
  26. package/lib/cjs/actions/vaultV1/migrateToV2.d.ts +2 -0
  27. package/lib/cjs/actions/vaultV1/migrateToV2.js +11 -9
  28. package/lib/cjs/actions/vaultV2/deposit.d.ts +2 -0
  29. package/lib/cjs/actions/vaultV2/deposit.js +13 -14
  30. package/lib/cjs/addresses.d.ts +2 -0
  31. package/lib/cjs/addresses.js +18 -0
  32. package/lib/cjs/augment/AccrualPosition.d.ts +9 -0
  33. package/lib/cjs/augment/AccrualPosition.js +8 -0
  34. package/lib/cjs/augment/AccrualVault.d.ts +8 -0
  35. package/lib/cjs/augment/AccrualVault.js +7 -0
  36. package/lib/cjs/augment/Holding.d.ts +8 -0
  37. package/lib/cjs/augment/Holding.js +7 -0
  38. package/lib/cjs/augment/Market.d.ts +8 -0
  39. package/lib/cjs/augment/Market.js +7 -0
  40. package/lib/cjs/augment/MarketParams.d.ts +8 -0
  41. package/lib/cjs/augment/MarketParams.js +7 -0
  42. package/lib/cjs/augment/Position.d.ts +8 -0
  43. package/lib/cjs/augment/Position.js +7 -0
  44. package/lib/cjs/augment/Token.d.ts +8 -0
  45. package/lib/cjs/augment/Token.js +7 -0
  46. package/lib/cjs/augment/User.d.ts +8 -0
  47. package/lib/cjs/augment/User.js +7 -0
  48. package/lib/cjs/augment/Vault.d.ts +8 -0
  49. package/lib/cjs/augment/Vault.js +7 -0
  50. package/lib/cjs/augment/VaultConfig.d.ts +8 -0
  51. package/lib/cjs/augment/VaultConfig.js +7 -0
  52. package/lib/cjs/augment/VaultMarketAllocation.d.ts +8 -0
  53. package/lib/cjs/augment/VaultMarketAllocation.js +7 -0
  54. package/lib/cjs/augment/VaultMarketConfig.d.ts +8 -0
  55. package/lib/cjs/augment/VaultMarketConfig.js +7 -0
  56. package/lib/cjs/augment/VaultMarketPublicAllocatorConfig.d.ts +8 -0
  57. package/lib/cjs/augment/VaultMarketPublicAllocatorConfig.js +8 -0
  58. package/lib/cjs/augment/VaultUser.d.ts +8 -0
  59. package/lib/cjs/augment/VaultUser.js +7 -0
  60. package/lib/cjs/augment.d.ts +14 -0
  61. package/lib/cjs/augment.js +16 -0
  62. package/lib/cjs/bundler/actions.d.ts +637 -0
  63. package/lib/cjs/bundler/actions.js +1088 -0
  64. package/lib/cjs/bundler/index.d.ts +2 -0
  65. package/lib/cjs/bundler/index.js +18 -0
  66. package/lib/cjs/bundler/types.d.ts +200 -0
  67. package/lib/cjs/bundler/types.js +2 -0
  68. package/lib/cjs/constants.d.ts +3 -0
  69. package/lib/cjs/constants.js +32 -0
  70. package/lib/cjs/entities/index.d.ts +6 -3
  71. package/lib/cjs/entities/index.js +41 -17
  72. package/lib/cjs/entities/marketV1/marketV1.d.ts +161 -24
  73. package/lib/cjs/entities/marketV1/marketV1.js +166 -19
  74. package/lib/cjs/entities/reallocationData.d.ts +193 -0
  75. package/lib/cjs/entities/reallocationData.js +406 -0
  76. package/lib/cjs/errors.d.ts +2 -0
  77. package/lib/cjs/errors.js +18 -0
  78. package/lib/cjs/fetch.d.ts +1 -0
  79. package/lib/cjs/fetch.js +30 -0
  80. package/lib/cjs/format.d.ts +2 -0
  81. package/lib/cjs/format.js +22 -0
  82. package/lib/cjs/helpers/computeReallocations.d.ts +63 -12
  83. package/lib/cjs/helpers/computeReallocations.js +160 -41
  84. package/lib/cjs/helpers/constant.d.ts +17 -0
  85. package/lib/cjs/helpers/constant.js +30 -1
  86. package/lib/cjs/helpers/index.d.ts +3 -2
  87. package/lib/cjs/helpers/index.js +14 -2
  88. package/lib/cjs/helpers/slippage.d.ts +57 -0
  89. package/lib/cjs/helpers/slippage.js +82 -0
  90. package/lib/cjs/helpers/validate.d.ts +40 -7
  91. package/lib/cjs/helpers/validate.js +67 -12
  92. package/lib/cjs/index.d.ts +0 -1
  93. package/lib/cjs/index.js +0 -1
  94. package/lib/cjs/types/action.d.ts +27 -6
  95. package/lib/cjs/types/client.d.ts +1 -1
  96. package/lib/cjs/types/error.d.ts +155 -7
  97. package/lib/cjs/types/error.js +202 -11
  98. package/lib/cjs/types/sharedLiquidity.d.ts +43 -3
  99. package/lib/cjs/types.d.ts +3 -0
  100. package/lib/cjs/types.js +17 -0
  101. package/lib/cjs/utils.d.ts +9 -0
  102. package/lib/cjs/utils.js +65 -0
  103. package/lib/esm/abis.d.ts +2816 -0
  104. package/lib/esm/abis.js +1922 -0
  105. package/lib/esm/actions/index.d.ts +3 -0
  106. package/lib/esm/actions/marketV1/borrow.js +2 -5
  107. package/lib/esm/actions/marketV1/buildReallocationActions.d.ts +2 -3
  108. package/lib/esm/actions/marketV1/buildReallocationActions.js +1 -2
  109. package/lib/esm/actions/marketV1/index.d.ts +2 -0
  110. package/lib/esm/actions/marketV1/index.js +2 -0
  111. package/lib/esm/actions/marketV1/repay.d.ts +2 -0
  112. package/lib/esm/actions/marketV1/repay.js +4 -5
  113. package/lib/esm/actions/marketV1/repayWithdrawCollateral.d.ts +2 -0
  114. package/lib/esm/actions/marketV1/repayWithdrawCollateral.js +4 -5
  115. package/lib/esm/actions/marketV1/supply.d.ts +69 -0
  116. package/lib/esm/actions/marketV1/supply.js +124 -0
  117. package/lib/esm/actions/marketV1/supplyCollateral.d.ts +3 -1
  118. package/lib/esm/actions/marketV1/supplyCollateral.js +7 -8
  119. package/lib/esm/actions/marketV1/supplyCollateralBorrow.d.ts +3 -1
  120. package/lib/esm/actions/marketV1/supplyCollateralBorrow.js +7 -8
  121. package/lib/esm/actions/marketV1/withdraw.d.ts +83 -0
  122. package/lib/esm/actions/marketV1/withdraw.js +106 -0
  123. package/lib/esm/actions/requirements/encode/encodeErc20Approval.js +1 -1
  124. package/lib/esm/actions/requirements/getRequirementsAction.d.ts +1 -1
  125. package/lib/esm/actions/requirements/getRequirementsApproval.js +1 -1
  126. package/lib/esm/actions/vaultV1/deposit.d.ts +2 -0
  127. package/lib/esm/actions/vaultV1/deposit.js +3 -4
  128. package/lib/esm/actions/vaultV1/migrateToV2.d.ts +2 -0
  129. package/lib/esm/actions/vaultV1/migrateToV2.js +3 -1
  130. package/lib/esm/actions/vaultV2/deposit.d.ts +2 -0
  131. package/lib/esm/actions/vaultV2/deposit.js +3 -4
  132. package/lib/esm/addresses.d.ts +2 -0
  133. package/lib/esm/addresses.js +1 -0
  134. package/lib/esm/augment/AccrualPosition.d.ts +9 -0
  135. package/lib/esm/augment/AccrualPosition.js +5 -0
  136. package/lib/esm/augment/AccrualVault.d.ts +8 -0
  137. package/lib/esm/augment/AccrualVault.js +4 -0
  138. package/lib/esm/augment/Holding.d.ts +8 -0
  139. package/lib/esm/augment/Holding.js +4 -0
  140. package/lib/esm/augment/Market.d.ts +8 -0
  141. package/lib/esm/augment/Market.js +4 -0
  142. package/lib/esm/augment/MarketParams.d.ts +8 -0
  143. package/lib/esm/augment/MarketParams.js +4 -0
  144. package/lib/esm/augment/Position.d.ts +8 -0
  145. package/lib/esm/augment/Position.js +4 -0
  146. package/lib/esm/augment/Token.d.ts +8 -0
  147. package/lib/esm/augment/Token.js +4 -0
  148. package/lib/esm/augment/User.d.ts +8 -0
  149. package/lib/esm/augment/User.js +4 -0
  150. package/lib/esm/augment/Vault.d.ts +8 -0
  151. package/lib/esm/augment/Vault.js +4 -0
  152. package/lib/esm/augment/VaultConfig.d.ts +8 -0
  153. package/lib/esm/augment/VaultConfig.js +4 -0
  154. package/lib/esm/augment/VaultMarketAllocation.d.ts +8 -0
  155. package/lib/esm/augment/VaultMarketAllocation.js +4 -0
  156. package/lib/esm/augment/VaultMarketConfig.d.ts +8 -0
  157. package/lib/esm/augment/VaultMarketConfig.js +4 -0
  158. package/lib/esm/augment/VaultMarketPublicAllocatorConfig.d.ts +8 -0
  159. package/lib/esm/augment/VaultMarketPublicAllocatorConfig.js +5 -0
  160. package/lib/esm/augment/VaultUser.d.ts +8 -0
  161. package/lib/esm/augment/VaultUser.js +4 -0
  162. package/lib/esm/augment.d.ts +14 -0
  163. package/lib/esm/augment.js +14 -0
  164. package/lib/esm/bundler/actions.d.ts +637 -0
  165. package/lib/esm/bundler/actions.js +1085 -0
  166. package/lib/esm/bundler/index.d.ts +2 -0
  167. package/lib/esm/bundler/index.js +2 -0
  168. package/lib/esm/bundler/types.d.ts +200 -0
  169. package/lib/esm/bundler/types.js +1 -0
  170. package/lib/esm/constants.d.ts +3 -0
  171. package/lib/esm/constants.js +3 -0
  172. package/lib/esm/entities/index.d.ts +6 -3
  173. package/lib/esm/entities/index.js +5 -3
  174. package/lib/esm/entities/marketV1/marketV1.d.ts +161 -24
  175. package/lib/esm/entities/marketV1/marketV1.js +170 -23
  176. package/lib/esm/entities/reallocationData.d.ts +193 -0
  177. package/lib/esm/entities/reallocationData.js +402 -0
  178. package/lib/esm/errors.d.ts +2 -0
  179. package/lib/esm/errors.js +1 -0
  180. package/lib/esm/fetch.d.ts +1 -0
  181. package/lib/esm/fetch.js +1 -0
  182. package/lib/esm/format.d.ts +2 -0
  183. package/lib/esm/format.js +1 -0
  184. package/lib/esm/helpers/computeReallocations.d.ts +63 -12
  185. package/lib/esm/helpers/computeReallocations.js +160 -41
  186. package/lib/esm/helpers/constant.d.ts +17 -0
  187. package/lib/esm/helpers/constant.js +30 -1
  188. package/lib/esm/helpers/index.d.ts +3 -2
  189. package/lib/esm/helpers/index.js +3 -2
  190. package/lib/esm/helpers/slippage.d.ts +57 -0
  191. package/lib/esm/helpers/slippage.js +80 -0
  192. package/lib/esm/helpers/validate.d.ts +40 -7
  193. package/lib/esm/helpers/validate.js +63 -11
  194. package/lib/esm/index.d.ts +0 -1
  195. package/lib/esm/index.js +0 -1
  196. package/lib/esm/types/action.d.ts +27 -6
  197. package/lib/esm/types/client.d.ts +1 -1
  198. package/lib/esm/types/error.d.ts +155 -7
  199. package/lib/esm/types/error.js +185 -9
  200. package/lib/esm/types/sharedLiquidity.d.ts +43 -3
  201. package/lib/esm/types.d.ts +3 -0
  202. package/lib/esm/types.js +1 -0
  203. package/lib/esm/utils.d.ts +9 -0
  204. package/lib/esm/utils.js +7 -0
  205. package/package.json +128 -17
  206. package/src/index.ts +0 -1
@@ -1,9 +1,49 @@
1
- import type { MarketId, MarketParams } from "@morpho-org/blue-sdk";
2
- import type { PublicAllocatorOptions } from "@morpho-org/simulation-sdk";
1
+ import type { BigIntish, MarketId, MarketParams } from "@morpho-org/blue-sdk";
3
2
  import type { Address } from "viem";
3
+ /**
4
+ * Options controlling public allocator withdrawal discovery.
5
+ */
6
+ export interface PublicAllocatorOptions {
7
+ /** Whether public allocator reallocation discovery is enabled. */
8
+ readonly enabled?: boolean;
9
+ /**
10
+ * Timestamp at which market interest and public allocator pending caps are evaluated.
11
+ * Defaults to the target market's last update timestamp.
12
+ */
13
+ readonly timestamp?: BigIntish;
14
+ /**
15
+ * Vaults to consider for reallocation. They must have enabled the PublicAllocator.
16
+ * Defaults to all vaults present in the reallocation data.
17
+ */
18
+ readonly reallocatableVaults?: readonly Address[];
19
+ /**
20
+ * The maximum utilization each source market may reach when withdrawing
21
+ * shared liquidity, scaled by WAD.
22
+ */
23
+ readonly maxWithdrawalUtilization?: Readonly<Record<MarketId, bigint | undefined>>;
24
+ /**
25
+ * The default maximum utilization source markets may reach when withdrawing
26
+ * shared liquidity, scaled by WAD.
27
+ * @default 92% (920000000000000000n)
28
+ */
29
+ readonly defaultMaxWithdrawalUtilization?: bigint;
30
+ }
31
+ /**
32
+ * A computed source-market withdrawal before it is grouped by vault.
33
+ */
34
+ export interface PublicReallocation {
35
+ /** Source market id to withdraw from. */
36
+ readonly id: MarketId;
37
+ /** Vault that can perform the public allocator reallocation. */
38
+ readonly vault: Address;
39
+ /** Assets to withdraw from the source market. */
40
+ readonly assets: bigint;
41
+ }
4
42
  /** A single withdrawal from a source market within a vault reallocation. */
5
43
  export interface ReallocationWithdrawal {
44
+ /** Source market parameters to pass to the public allocator. */
6
45
  readonly marketParams: MarketParams;
46
+ /** Asset amount to withdraw from the source market. */
7
47
  readonly amount: bigint;
8
48
  }
9
49
  /**
@@ -31,7 +71,7 @@ export interface ReallocationComputeOptions extends PublicAllocatorOptions {
31
71
  * is triggered (scaled by WAD). Overrides `defaultSupplyTargetUtilization`
32
72
  * for the specified market.
33
73
  */
34
- readonly supplyTargetUtilization?: Record<MarketId, bigint | undefined>;
74
+ readonly supplyTargetUtilization?: Readonly<Record<MarketId, bigint | undefined>>;
35
75
  /**
36
76
  * The default target utilization above which the shared liquidity algorithm
37
77
  * is triggered (scaled by WAD).
@@ -0,0 +1,3 @@
1
+ export type { BigIntish, ChainMetadata, CollateralAllocation, Eip712Field, Erc20AllowanceRecipient, Failable, Fetchable, InputMarketParams, IPermit2Allowance, Loadable, MarketId, MaxBorrowOptions, MaxPositionCapacities, MaxWithdrawCollateralOptions, Pending, Permit2Allowance, } from "@morpho-org/blue-sdk";
2
+ export type { DeploylessFetchParameters, FetchParameters, } from "@morpho-org/blue-sdk-viem";
3
+ export * from "./types/index.js";
@@ -0,0 +1 @@
1
+ export * from "./types/index.js";
@@ -0,0 +1,9 @@
1
+ export type { CapacityLimit, RoundingDirection } from "@morpho-org/blue-sdk";
2
+ export { AdaptiveCurveIrmLib, CapacityLimitReason, MarketUtils, MathLib, SharesMath, VaultUtils, } from "@morpho-org/blue-sdk";
3
+ export { decodeBytes32String, getAuthorizationTypedData, getDaiPermitTypedData, getPermit2PermitTypedData, getPermit2TransferFromTypedData, getPermitTypedData, optionalBoolean, readContractRestructured, restructure, safeGetAddress, safeParseNumber, safeParseUnits, } from "@morpho-org/blue-sdk-viem";
4
+ export type { ArrayElementType, DeepPartial, DottedKeys, FieldType, PartialDottedKeys, WithId, WithIndex, } from "@morpho-org/morpho-ts";
5
+ export { bigIntComparator, createGetValue, createHasValue, deepFreeze, entries, filterDefined, fromEntries, getLast, getLastDefined, getSubdomainBaseUrl, getValue, hasValue, isDefined, isNotNull, isNotUndefined, keys, mergeEntries, retryPromiseLinearBackoff, Time, transformValue, values, } from "@morpho-org/morpho-ts";
6
+ export { computeReallocations } from "./helpers/computeReallocations.js";
7
+ export { addTransactionMetadata } from "./helpers/metadata.js";
8
+ export { computeMaxRepaySharePrice, computeMinBorrowSharePrice, } from "./helpers/slippage.js";
9
+ export { validateAccrualPosition, validateChainId, validateNativeAsset, validatePositionHealth, validatePositionHealthAfterWithdraw, validateReallocations, validateRepayAmount, validateRepayParams, validateRepayShares, validateSlippageTolerance, validateUserAddress, } from "./helpers/validate.js";
@@ -0,0 +1,7 @@
1
+ export { AdaptiveCurveIrmLib, CapacityLimitReason, MarketUtils, MathLib, SharesMath, VaultUtils, } from "@morpho-org/blue-sdk";
2
+ export { decodeBytes32String, getAuthorizationTypedData, getDaiPermitTypedData, getPermit2PermitTypedData, getPermit2TransferFromTypedData, getPermitTypedData, optionalBoolean, readContractRestructured, restructure, safeGetAddress, safeParseNumber, safeParseUnits, } from "@morpho-org/blue-sdk-viem";
3
+ export { bigIntComparator, createGetValue, createHasValue, deepFreeze, entries, filterDefined, fromEntries, getLast, getLastDefined, getSubdomainBaseUrl, getValue, hasValue, isDefined, isNotNull, isNotUndefined, keys, mergeEntries, retryPromiseLinearBackoff, Time, transformValue, values, } from "@morpho-org/morpho-ts";
4
+ export { computeReallocations } from "./helpers/computeReallocations.js";
5
+ export { addTransactionMetadata } from "./helpers/metadata.js";
6
+ export { computeMaxRepaySharePrice, computeMinBorrowSharePrice, } from "./helpers/slippage.js";
7
+ export { validateAccrualPosition, validateChainId, validateNativeAsset, validatePositionHealth, validatePositionHealthAfterWithdraw, validateReallocations, validateRepayAmount, validateRepayParams, validateRepayShares, validateSlippageTolerance, validateUserAddress, } from "./helpers/validate.js";
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "@morpho-org/morpho-sdk",
3
3
  "description": "Abstraction layer for Morpho's complexity.",
4
- "version": "2.1.1",
4
+ "version": "3.1.0",
5
5
  "author": "Morpho Association <contact@morpho.org>",
6
6
  "contributors": [
7
7
  "Foulks-Plb <https://x.com/FoulkPlb>"
8
8
  ],
9
- "repository": "github:morpho-org/sdks",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/morpho-org/sdks.git",
12
+ "directory": "packages/morpho-sdk"
13
+ },
10
14
  "homepage": "https://github.com/morpho-org/sdks",
11
15
  "bugs": {
12
16
  "url": "https://github.com/morpho-org/sdks/issues",
@@ -15,26 +19,140 @@
15
19
  "license": "MIT",
16
20
  "type": "module",
17
21
  "main": "src/index.ts",
22
+ "exports": {
23
+ ".": {
24
+ "types": "./lib/esm/index.d.ts",
25
+ "import": "./lib/esm/index.js",
26
+ "require": "./lib/cjs/index.js"
27
+ },
28
+ "./abis": {
29
+ "types": "./lib/esm/abis.d.ts",
30
+ "import": "./lib/esm/abis.js",
31
+ "require": "./lib/cjs/abis.js"
32
+ },
33
+ "./addresses": {
34
+ "types": "./lib/esm/addresses.d.ts",
35
+ "import": "./lib/esm/addresses.js",
36
+ "require": "./lib/cjs/addresses.js"
37
+ },
38
+ "./augment": {
39
+ "types": "./lib/esm/augment.d.ts",
40
+ "import": "./lib/esm/augment.js",
41
+ "require": "./lib/cjs/augment.js"
42
+ },
43
+ "./augment/*": {
44
+ "types": "./lib/esm/augment/*.d.ts",
45
+ "import": "./lib/esm/augment/*.js",
46
+ "require": "./lib/cjs/augment/*.js"
47
+ },
48
+ "./bundler": {
49
+ "types": "./lib/esm/bundler/index.d.ts",
50
+ "import": "./lib/esm/bundler/index.js",
51
+ "require": "./lib/cjs/bundler/index.js"
52
+ },
53
+ "./constants": {
54
+ "types": "./lib/esm/constants.d.ts",
55
+ "import": "./lib/esm/constants.js",
56
+ "require": "./lib/cjs/constants.js"
57
+ },
58
+ "./entities": {
59
+ "types": "./lib/esm/entities/index.d.ts",
60
+ "import": "./lib/esm/entities/index.js",
61
+ "require": "./lib/cjs/entities/index.js"
62
+ },
63
+ "./errors": {
64
+ "types": "./lib/esm/errors.d.ts",
65
+ "import": "./lib/esm/errors.js",
66
+ "require": "./lib/cjs/errors.js"
67
+ },
68
+ "./fetch": {
69
+ "types": "./lib/esm/fetch.d.ts",
70
+ "import": "./lib/esm/fetch.js",
71
+ "require": "./lib/cjs/fetch.js"
72
+ },
73
+ "./format": {
74
+ "types": "./lib/esm/format.d.ts",
75
+ "import": "./lib/esm/format.js",
76
+ "require": "./lib/cjs/format.js"
77
+ },
78
+ "./types": {
79
+ "types": "./lib/esm/types.d.ts",
80
+ "import": "./lib/esm/types.js",
81
+ "require": "./lib/cjs/types.js"
82
+ },
83
+ "./utils": {
84
+ "types": "./lib/esm/utils.d.ts",
85
+ "import": "./lib/esm/utils.js",
86
+ "require": "./lib/cjs/utils.js"
87
+ }
88
+ },
89
+ "typesVersions": {
90
+ "*": {
91
+ "abis": [
92
+ "src/abis.ts"
93
+ ],
94
+ "addresses": [
95
+ "src/addresses.ts"
96
+ ],
97
+ "augment": [
98
+ "src/augment.ts"
99
+ ],
100
+ "augment/*": [
101
+ "src/augment/*.ts"
102
+ ],
103
+ "bundler": [
104
+ "src/bundler/index.ts"
105
+ ],
106
+ "constants": [
107
+ "src/constants.ts"
108
+ ],
109
+ "entities": [
110
+ "src/entities/index.ts"
111
+ ],
112
+ "errors": [
113
+ "src/errors.ts"
114
+ ],
115
+ "fetch": [
116
+ "src/fetch.ts"
117
+ ],
118
+ "format": [
119
+ "src/format.ts"
120
+ ],
121
+ "types": [
122
+ "src/types.ts"
123
+ ],
124
+ "utils": [
125
+ "src/utils.ts"
126
+ ]
127
+ }
128
+ },
129
+ "sideEffects": [
130
+ "./src/augment.ts",
131
+ "./src/augment/*.ts",
132
+ "./lib/*/augment.js",
133
+ "./lib/*/augment/*.js"
134
+ ],
18
135
  "files": [
19
136
  "lib"
20
137
  ],
21
138
  "dependencies": {
22
139
  "zod": "^4.4.3",
23
- "@morpho-org/blue-sdk": "^6.0.0",
24
- "@morpho-org/blue-sdk-viem": "^5.0.0",
25
- "@morpho-org/bundler-sdk-viem": "^5.0.0",
26
- "@morpho-org/morpho-ts": "^2.5.1",
27
- "@morpho-org/simulation-sdk": "^4.0.0"
140
+ "@morpho-org/blue-sdk": "^6.0.1",
141
+ "@morpho-org/blue-sdk-viem": "^5.0.1",
142
+ "@morpho-org/morpho-ts": "^2.5.3"
28
143
  },
29
144
  "peerDependencies": {
30
145
  "viem": "^2.0.0"
31
146
  },
32
147
  "devDependencies": {
33
148
  "dotenv": "^17.4.2",
149
+ "fast-check": "^4.8.0",
34
150
  "typescript": "^6.0.3",
35
- "viem": "^2.49.3",
36
- "vitest": "^4.1.6",
37
- "@morpho-org/test": "^2.8.0"
151
+ "viem": "^2.50.4",
152
+ "vitest": "^4.1.7",
153
+ "@morpho-org/bundler-sdk-viem": "^5.0.2",
154
+ "@morpho-org/simulation-sdk": "^4.0.2",
155
+ "@morpho-org/test": "^2.8.1"
38
156
  },
39
157
  "scripts": {
40
158
  "prepublish": "$npm_execpath build",
@@ -42,12 +160,5 @@
42
160
  "build:cjs": "tsc --build tsconfig.build.cjs.json && echo '{\"type\":\"commonjs\"}' > lib/cjs/package.json",
43
161
  "build:esm": "tsc --build tsconfig.build.esm.json && echo '{\"type\":\"module\"}' > lib/esm/package.json",
44
162
  "test": "vitest --root ../.. --project morpho-sdk"
45
- },
46
- "exports": {
47
- ".": {
48
- "types": "./lib/esm/index.d.ts",
49
- "import": "./lib/esm/index.js",
50
- "require": "./lib/cjs/index.js"
51
- }
52
163
  }
53
164
  }
package/src/index.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  export * from "./actions/index.js";
2
2
  export * from "./client/index.js";
3
- export * from "./entities/index.js";
4
3
  export * from "./helpers/index.js";
5
4
  export * from "./types/index.js";