@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.
- package/lib/cjs/abis.d.ts +2816 -0
- package/lib/cjs/abis.js +1951 -0
- package/lib/cjs/actions/index.d.ts +3 -0
- package/lib/cjs/actions/marketV1/borrow.js +7 -10
- package/lib/cjs/actions/marketV1/buildReallocationActions.d.ts +2 -3
- package/lib/cjs/actions/marketV1/buildReallocationActions.js +1 -2
- package/lib/cjs/actions/marketV1/index.d.ts +2 -0
- package/lib/cjs/actions/marketV1/index.js +2 -0
- package/lib/cjs/actions/marketV1/repay.d.ts +2 -0
- package/lib/cjs/actions/marketV1/repay.js +7 -8
- package/lib/cjs/actions/marketV1/repayWithdrawCollateral.d.ts +2 -0
- package/lib/cjs/actions/marketV1/repayWithdrawCollateral.js +9 -10
- package/lib/cjs/actions/marketV1/supply.d.ts +69 -0
- package/lib/cjs/actions/marketV1/supply.js +128 -0
- package/lib/cjs/actions/marketV1/supplyCollateral.d.ts +3 -1
- package/lib/cjs/actions/marketV1/supplyCollateral.js +12 -13
- package/lib/cjs/actions/marketV1/supplyCollateralBorrow.d.ts +3 -1
- package/lib/cjs/actions/marketV1/supplyCollateralBorrow.js +14 -15
- package/lib/cjs/actions/marketV1/withdraw.d.ts +83 -0
- package/lib/cjs/actions/marketV1/withdraw.js +110 -0
- package/lib/cjs/actions/requirements/encode/encodeErc20Approval.js +2 -2
- package/lib/cjs/actions/requirements/getRequirementsAction.d.ts +1 -1
- package/lib/cjs/actions/requirements/getRequirementsApproval.js +2 -2
- package/lib/cjs/actions/vaultV1/deposit.d.ts +2 -0
- package/lib/cjs/actions/vaultV1/deposit.js +13 -14
- package/lib/cjs/actions/vaultV1/migrateToV2.d.ts +2 -0
- package/lib/cjs/actions/vaultV1/migrateToV2.js +11 -9
- package/lib/cjs/actions/vaultV2/deposit.d.ts +2 -0
- package/lib/cjs/actions/vaultV2/deposit.js +13 -14
- package/lib/cjs/addresses.d.ts +2 -0
- package/lib/cjs/addresses.js +18 -0
- package/lib/cjs/augment/AccrualPosition.d.ts +9 -0
- package/lib/cjs/augment/AccrualPosition.js +8 -0
- package/lib/cjs/augment/AccrualVault.d.ts +8 -0
- package/lib/cjs/augment/AccrualVault.js +7 -0
- package/lib/cjs/augment/Holding.d.ts +8 -0
- package/lib/cjs/augment/Holding.js +7 -0
- package/lib/cjs/augment/Market.d.ts +8 -0
- package/lib/cjs/augment/Market.js +7 -0
- package/lib/cjs/augment/MarketParams.d.ts +8 -0
- package/lib/cjs/augment/MarketParams.js +7 -0
- package/lib/cjs/augment/Position.d.ts +8 -0
- package/lib/cjs/augment/Position.js +7 -0
- package/lib/cjs/augment/Token.d.ts +8 -0
- package/lib/cjs/augment/Token.js +7 -0
- package/lib/cjs/augment/User.d.ts +8 -0
- package/lib/cjs/augment/User.js +7 -0
- package/lib/cjs/augment/Vault.d.ts +8 -0
- package/lib/cjs/augment/Vault.js +7 -0
- package/lib/cjs/augment/VaultConfig.d.ts +8 -0
- package/lib/cjs/augment/VaultConfig.js +7 -0
- package/lib/cjs/augment/VaultMarketAllocation.d.ts +8 -0
- package/lib/cjs/augment/VaultMarketAllocation.js +7 -0
- package/lib/cjs/augment/VaultMarketConfig.d.ts +8 -0
- package/lib/cjs/augment/VaultMarketConfig.js +7 -0
- package/lib/cjs/augment/VaultMarketPublicAllocatorConfig.d.ts +8 -0
- package/lib/cjs/augment/VaultMarketPublicAllocatorConfig.js +8 -0
- package/lib/cjs/augment/VaultUser.d.ts +8 -0
- package/lib/cjs/augment/VaultUser.js +7 -0
- package/lib/cjs/augment.d.ts +14 -0
- package/lib/cjs/augment.js +16 -0
- package/lib/cjs/bundler/actions.d.ts +637 -0
- package/lib/cjs/bundler/actions.js +1088 -0
- package/lib/cjs/bundler/index.d.ts +2 -0
- package/lib/cjs/bundler/index.js +18 -0
- package/lib/cjs/bundler/types.d.ts +200 -0
- package/lib/cjs/bundler/types.js +2 -0
- package/lib/cjs/constants.d.ts +3 -0
- package/lib/cjs/constants.js +32 -0
- package/lib/cjs/entities/index.d.ts +6 -3
- package/lib/cjs/entities/index.js +41 -17
- package/lib/cjs/entities/marketV1/marketV1.d.ts +161 -24
- package/lib/cjs/entities/marketV1/marketV1.js +166 -19
- package/lib/cjs/entities/reallocationData.d.ts +193 -0
- package/lib/cjs/entities/reallocationData.js +406 -0
- package/lib/cjs/errors.d.ts +2 -0
- package/lib/cjs/errors.js +18 -0
- package/lib/cjs/fetch.d.ts +1 -0
- package/lib/cjs/fetch.js +30 -0
- package/lib/cjs/format.d.ts +2 -0
- package/lib/cjs/format.js +22 -0
- package/lib/cjs/helpers/computeReallocations.d.ts +63 -12
- package/lib/cjs/helpers/computeReallocations.js +160 -41
- package/lib/cjs/helpers/constant.d.ts +17 -0
- package/lib/cjs/helpers/constant.js +30 -1
- package/lib/cjs/helpers/index.d.ts +3 -2
- package/lib/cjs/helpers/index.js +14 -2
- package/lib/cjs/helpers/slippage.d.ts +57 -0
- package/lib/cjs/helpers/slippage.js +82 -0
- package/lib/cjs/helpers/validate.d.ts +40 -7
- package/lib/cjs/helpers/validate.js +67 -12
- package/lib/cjs/index.d.ts +0 -1
- package/lib/cjs/index.js +0 -1
- package/lib/cjs/types/action.d.ts +27 -6
- package/lib/cjs/types/client.d.ts +1 -1
- package/lib/cjs/types/error.d.ts +155 -7
- package/lib/cjs/types/error.js +202 -11
- package/lib/cjs/types/sharedLiquidity.d.ts +43 -3
- package/lib/cjs/types.d.ts +3 -0
- package/lib/cjs/types.js +17 -0
- package/lib/cjs/utils.d.ts +9 -0
- package/lib/cjs/utils.js +65 -0
- package/lib/esm/abis.d.ts +2816 -0
- package/lib/esm/abis.js +1922 -0
- package/lib/esm/actions/index.d.ts +3 -0
- package/lib/esm/actions/marketV1/borrow.js +2 -5
- package/lib/esm/actions/marketV1/buildReallocationActions.d.ts +2 -3
- package/lib/esm/actions/marketV1/buildReallocationActions.js +1 -2
- package/lib/esm/actions/marketV1/index.d.ts +2 -0
- package/lib/esm/actions/marketV1/index.js +2 -0
- package/lib/esm/actions/marketV1/repay.d.ts +2 -0
- package/lib/esm/actions/marketV1/repay.js +4 -5
- package/lib/esm/actions/marketV1/repayWithdrawCollateral.d.ts +2 -0
- package/lib/esm/actions/marketV1/repayWithdrawCollateral.js +4 -5
- package/lib/esm/actions/marketV1/supply.d.ts +69 -0
- package/lib/esm/actions/marketV1/supply.js +124 -0
- package/lib/esm/actions/marketV1/supplyCollateral.d.ts +3 -1
- package/lib/esm/actions/marketV1/supplyCollateral.js +7 -8
- package/lib/esm/actions/marketV1/supplyCollateralBorrow.d.ts +3 -1
- package/lib/esm/actions/marketV1/supplyCollateralBorrow.js +7 -8
- package/lib/esm/actions/marketV1/withdraw.d.ts +83 -0
- package/lib/esm/actions/marketV1/withdraw.js +106 -0
- package/lib/esm/actions/requirements/encode/encodeErc20Approval.js +1 -1
- package/lib/esm/actions/requirements/getRequirementsAction.d.ts +1 -1
- package/lib/esm/actions/requirements/getRequirementsApproval.js +1 -1
- package/lib/esm/actions/vaultV1/deposit.d.ts +2 -0
- package/lib/esm/actions/vaultV1/deposit.js +3 -4
- package/lib/esm/actions/vaultV1/migrateToV2.d.ts +2 -0
- package/lib/esm/actions/vaultV1/migrateToV2.js +3 -1
- package/lib/esm/actions/vaultV2/deposit.d.ts +2 -0
- package/lib/esm/actions/vaultV2/deposit.js +3 -4
- package/lib/esm/addresses.d.ts +2 -0
- package/lib/esm/addresses.js +1 -0
- package/lib/esm/augment/AccrualPosition.d.ts +9 -0
- package/lib/esm/augment/AccrualPosition.js +5 -0
- package/lib/esm/augment/AccrualVault.d.ts +8 -0
- package/lib/esm/augment/AccrualVault.js +4 -0
- package/lib/esm/augment/Holding.d.ts +8 -0
- package/lib/esm/augment/Holding.js +4 -0
- package/lib/esm/augment/Market.d.ts +8 -0
- package/lib/esm/augment/Market.js +4 -0
- package/lib/esm/augment/MarketParams.d.ts +8 -0
- package/lib/esm/augment/MarketParams.js +4 -0
- package/lib/esm/augment/Position.d.ts +8 -0
- package/lib/esm/augment/Position.js +4 -0
- package/lib/esm/augment/Token.d.ts +8 -0
- package/lib/esm/augment/Token.js +4 -0
- package/lib/esm/augment/User.d.ts +8 -0
- package/lib/esm/augment/User.js +4 -0
- package/lib/esm/augment/Vault.d.ts +8 -0
- package/lib/esm/augment/Vault.js +4 -0
- package/lib/esm/augment/VaultConfig.d.ts +8 -0
- package/lib/esm/augment/VaultConfig.js +4 -0
- package/lib/esm/augment/VaultMarketAllocation.d.ts +8 -0
- package/lib/esm/augment/VaultMarketAllocation.js +4 -0
- package/lib/esm/augment/VaultMarketConfig.d.ts +8 -0
- package/lib/esm/augment/VaultMarketConfig.js +4 -0
- package/lib/esm/augment/VaultMarketPublicAllocatorConfig.d.ts +8 -0
- package/lib/esm/augment/VaultMarketPublicAllocatorConfig.js +5 -0
- package/lib/esm/augment/VaultUser.d.ts +8 -0
- package/lib/esm/augment/VaultUser.js +4 -0
- package/lib/esm/augment.d.ts +14 -0
- package/lib/esm/augment.js +14 -0
- package/lib/esm/bundler/actions.d.ts +637 -0
- package/lib/esm/bundler/actions.js +1085 -0
- package/lib/esm/bundler/index.d.ts +2 -0
- package/lib/esm/bundler/index.js +2 -0
- package/lib/esm/bundler/types.d.ts +200 -0
- package/lib/esm/bundler/types.js +1 -0
- package/lib/esm/constants.d.ts +3 -0
- package/lib/esm/constants.js +3 -0
- package/lib/esm/entities/index.d.ts +6 -3
- package/lib/esm/entities/index.js +5 -3
- package/lib/esm/entities/marketV1/marketV1.d.ts +161 -24
- package/lib/esm/entities/marketV1/marketV1.js +170 -23
- package/lib/esm/entities/reallocationData.d.ts +193 -0
- package/lib/esm/entities/reallocationData.js +402 -0
- package/lib/esm/errors.d.ts +2 -0
- package/lib/esm/errors.js +1 -0
- package/lib/esm/fetch.d.ts +1 -0
- package/lib/esm/fetch.js +1 -0
- package/lib/esm/format.d.ts +2 -0
- package/lib/esm/format.js +1 -0
- package/lib/esm/helpers/computeReallocations.d.ts +63 -12
- package/lib/esm/helpers/computeReallocations.js +160 -41
- package/lib/esm/helpers/constant.d.ts +17 -0
- package/lib/esm/helpers/constant.js +30 -1
- package/lib/esm/helpers/index.d.ts +3 -2
- package/lib/esm/helpers/index.js +3 -2
- package/lib/esm/helpers/slippage.d.ts +57 -0
- package/lib/esm/helpers/slippage.js +80 -0
- package/lib/esm/helpers/validate.d.ts +40 -7
- package/lib/esm/helpers/validate.js +63 -11
- package/lib/esm/index.d.ts +0 -1
- package/lib/esm/index.js +0 -1
- package/lib/esm/types/action.d.ts +27 -6
- package/lib/esm/types/client.d.ts +1 -1
- package/lib/esm/types/error.d.ts +155 -7
- package/lib/esm/types/error.js +185 -9
- package/lib/esm/types/sharedLiquidity.d.ts +43 -3
- package/lib/esm/types.d.ts +3 -0
- package/lib/esm/types.js +1 -0
- package/lib/esm/utils.d.ts +9 -0
- package/lib/esm/utils.js +7 -0
- package/package.json +128 -17
- 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";
|
package/lib/esm/types.js
ADDED
|
@@ -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";
|
package/lib/esm/utils.js
ADDED
|
@@ -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": "
|
|
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":
|
|
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.
|
|
24
|
-
"@morpho-org/blue-sdk-viem": "^5.0.
|
|
25
|
-
"@morpho-org/
|
|
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.
|
|
36
|
-
"vitest": "^4.1.
|
|
37
|
-
"@morpho-org/
|
|
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
|
}
|