@morpho-org/morpho-sdk 5.6.0 → 5.7.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/README.md +3 -1
- package/lib/cjs/abis.d.ts +15 -3
- package/lib/cjs/abis.js +13 -1
- package/lib/cjs/actions/midnight/mempoolSubmitOffers.d.ts +2 -2
- package/lib/cjs/actions/midnight/mempoolSubmitOffers.js +2 -2
- package/lib/cjs/actions/requirements/generalAdapter/getGeneralAdapterRequirementsPermit2.d.ts +1 -1
- package/lib/cjs/actions/requirements/generalAdapter/getGeneralAdapterRequirementsPermit2.js +1 -1
- package/lib/cjs/blue/abis.d.ts +2 -0
- package/lib/cjs/blue/abis.js +33 -0
- package/lib/cjs/blue/addresses.d.ts +2 -0
- package/lib/cjs/blue/addresses.js +19 -0
- package/lib/cjs/blue/constants.d.ts +1 -0
- package/lib/cjs/blue/constants.js +13 -0
- package/lib/cjs/blue/entities.d.ts +2 -0
- package/lib/cjs/blue/entities.js +37 -0
- package/lib/cjs/blue/errors.d.ts +2 -0
- package/lib/cjs/blue/errors.js +29 -0
- package/lib/cjs/blue/fetch.d.ts +1 -0
- package/lib/cjs/blue/fetch.js +33 -0
- package/lib/cjs/blue/types.d.ts +2 -0
- package/lib/cjs/blue/types.js +2 -0
- package/lib/cjs/blue/utils.d.ts +3 -0
- package/lib/cjs/blue/utils.js +29 -0
- package/lib/cjs/bundler/actions.d.ts +10 -8
- package/lib/cjs/bundler/actions.js +10 -8
- package/lib/cjs/constants.d.ts +36 -2
- package/lib/cjs/constants.js +39 -1
- package/lib/cjs/entities/blue/blue.d.ts +8 -6
- package/lib/cjs/entities/blue/blue.js +4 -3
- package/lib/cjs/entities/index.d.ts +62 -3
- package/lib/cjs/entities/index.js +32 -20
- package/lib/cjs/entities/vaultV2BlueReallocationData.d.ts +6 -6
- package/lib/cjs/entities/vaultV2BlueReallocationData.js +22 -33
- package/lib/cjs/errors.d.ts +48 -3
- package/lib/cjs/errors.js +62 -1
- package/lib/cjs/fetch.d.ts +16 -1
- package/lib/cjs/fetch.js +24 -1
- package/lib/cjs/helpers/validate.d.ts +2 -2
- package/lib/cjs/helpers/validate.js +2 -2
- package/lib/cjs/midnight/abis.d.ts +1 -0
- package/lib/cjs/midnight/abis.js +8 -0
- package/lib/cjs/midnight/constants.d.ts +1 -0
- package/lib/cjs/midnight/constants.js +19 -0
- package/lib/cjs/midnight/entities.d.ts +2 -0
- package/lib/cjs/midnight/entities.js +11 -0
- package/lib/cjs/midnight/errors.d.ts +1 -0
- package/lib/cjs/midnight/errors.js +24 -0
- package/lib/cjs/midnight/fetch.d.ts +1 -0
- package/lib/cjs/midnight/fetch.js +9 -0
- package/lib/cjs/midnight/types.d.ts +1 -0
- package/lib/cjs/midnight/types.js +2 -0
- package/lib/cjs/midnight/utils.d.ts +1 -0
- package/lib/cjs/midnight/utils.js +17 -0
- package/lib/cjs/types.d.ts +17 -2
- package/lib/cjs/utils.d.ts +30 -3
- package/lib/cjs/utils.js +40 -2
- package/lib/esm/abis.d.ts +15 -3
- package/lib/esm/abis.js +15 -3
- package/lib/esm/actions/midnight/mempoolSubmitOffers.d.ts +2 -2
- package/lib/esm/actions/midnight/mempoolSubmitOffers.js +2 -2
- package/lib/esm/actions/requirements/generalAdapter/getGeneralAdapterRequirementsPermit2.d.ts +1 -1
- package/lib/esm/actions/requirements/generalAdapter/getGeneralAdapterRequirementsPermit2.js +1 -1
- package/lib/esm/blue/abis.d.ts +2 -0
- package/lib/esm/blue/abis.js +2 -0
- package/lib/esm/blue/addresses.d.ts +2 -0
- package/lib/esm/blue/addresses.js +1 -0
- package/lib/esm/blue/constants.d.ts +1 -0
- package/lib/esm/blue/constants.js +1 -0
- package/lib/esm/blue/entities.d.ts +2 -0
- package/lib/esm/blue/entities.js +1 -0
- package/lib/esm/blue/errors.d.ts +2 -0
- package/lib/esm/blue/errors.js +2 -0
- package/lib/esm/blue/fetch.d.ts +1 -0
- package/lib/esm/blue/fetch.js +1 -0
- package/lib/esm/blue/types.d.ts +2 -0
- package/lib/esm/blue/types.js +1 -0
- package/lib/esm/blue/utils.d.ts +3 -0
- package/lib/esm/blue/utils.js +2 -0
- package/lib/esm/bundler/actions.d.ts +10 -8
- package/lib/esm/bundler/actions.js +10 -8
- package/lib/esm/constants.d.ts +36 -2
- package/lib/esm/constants.js +36 -2
- package/lib/esm/entities/blue/blue.d.ts +8 -6
- package/lib/esm/entities/blue/blue.js +4 -3
- package/lib/esm/entities/index.d.ts +62 -3
- package/lib/esm/entities/index.js +17 -2
- package/lib/esm/entities/vaultV2BlueReallocationData.d.ts +6 -6
- package/lib/esm/entities/vaultV2BlueReallocationData.js +22 -33
- package/lib/esm/errors.d.ts +48 -3
- package/lib/esm/errors.js +48 -3
- package/lib/esm/fetch.d.ts +16 -1
- package/lib/esm/fetch.js +16 -1
- package/lib/esm/helpers/validate.d.ts +2 -2
- package/lib/esm/helpers/validate.js +2 -2
- package/lib/esm/midnight/abis.d.ts +1 -0
- package/lib/esm/midnight/abis.js +1 -0
- package/lib/esm/midnight/constants.d.ts +1 -0
- package/lib/esm/midnight/constants.js +1 -0
- package/lib/esm/midnight/entities.d.ts +2 -0
- package/lib/esm/midnight/entities.js +1 -0
- package/lib/esm/midnight/errors.d.ts +1 -0
- package/lib/esm/midnight/errors.js +1 -0
- package/lib/esm/midnight/fetch.d.ts +1 -0
- package/lib/esm/midnight/fetch.js +1 -0
- package/lib/esm/midnight/types.d.ts +1 -0
- package/lib/esm/midnight/types.js +1 -0
- package/lib/esm/midnight/utils.d.ts +1 -0
- package/lib/esm/midnight/utils.js +1 -0
- package/lib/esm/types.d.ts +17 -2
- package/lib/esm/utils.d.ts +30 -3
- package/lib/esm/utils.js +30 -3
- package/package.json +22 -6
package/lib/cjs/errors.js
CHANGED
|
@@ -1,37 +1,98 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.InvalidMidnightTreeHeightError = exports.InvalidTreeError = exports.InvalidMidnightTreeError = exports.InvalidTickSpacingError = exports.InvalidMidnightTickSpacingError = exports.InvalidPositionLossFactorError = exports.InvalidMidnightPositionLossFactorError = exports.InvalidPositionAccrualTimestampError = exports.InvalidMidnightPositionAccrualTimestampError = exports.InvalidPositionAccrualStateError = exports.InvalidMidnightPositionAccrualStateError = exports.InvalidOfferParameterError = exports.InvalidMidnightOfferParameterError = exports.InvalidOfferGroupError = exports.InvalidMidnightOfferGroupError = exports.InvalidMidnightApiResponseError = exports.InvalidMidnightMarketParameterError = exports.InvalidMidnightEcrecoverSignatureVError = exports.MidnightChainIdMismatchError = exports.UnsupportedPermitDomainExtensionsError = exports.isBlueUnknownOfFactoryError = exports.InvalidPermitDomainVerifyingContractError = exports.InvalidPermitDomainChainIdError = exports.getBlueUnsupportedVaultV2Adapter = exports.VaultV2Errors = exports.UnsupportedVaultV2AdapterError = exports.UnsupportedBlueVaultV2AdapterError = exports.UnsupportedPreLiquidationParamsError = exports.UnsupportedBluePreLiquidationParamsError = exports.UnsupportedChainIdError = exports.UnknownVaultConfigError = exports.UnknownBlueVaultConfigError = exports.UnknownTokenPriceError = exports.UnknownBlueTokenPriceError = exports.UnknownTokenError = exports.UnknownBlueTokenError = exports.UnknownOfFactory = exports.UnknownBlueOfFactory = exports.UnknownMarketParamsError = exports.UnknownBlueMarketParamsError = exports.UnknownBlueMarketAllocationError = exports.UnknownFactory = exports.UnknownBlueFactory = exports.UnknownDataError = exports.UnknownBlueDataError = exports.UnknownAddressError = exports.InvalidMarketParamsError = exports.InvalidBlueMarketParamsError = exports.IncompleteChainRegistryError = exports.BlueErrors = void 0;
|
|
4
|
+
exports.RegistryValueAlreadyRegisteredError = exports.NegativeValueError = exports.InvalidBitLengthError = exports.DivisionByZeroError = exports._try = exports.UnknownCollateralIndexError = exports.UnknownMidnightCollateralIndexError = exports.TickOutOfRangeError = exports.MidnightTickOutOfRangeError = exports.SettlementFeeExceedsPriceError = exports.MidnightSettlementFeeExceedsPriceError = exports.PriceGreaterThanOneError = exports.MidnightPriceGreaterThanOneError = exports.MidnightPayloadDecodeError = exports.MidnightMempoolValidationError = exports.MidnightApiError = exports.InvalidMidnightTypedDataSignatureError = exports.InvalidTreeHeightError = void 0;
|
|
4
5
|
var blue_sdk_1 = require("@morpho-org/blue-sdk");
|
|
5
6
|
Object.defineProperty(exports, "BlueErrors", { enumerable: true, get: function () { return blue_sdk_1.BlueErrors; } });
|
|
6
7
|
Object.defineProperty(exports, "IncompleteChainRegistryError", { enumerable: true, get: function () { return blue_sdk_1.IncompleteChainRegistryError; } });
|
|
8
|
+
Object.defineProperty(exports, "InvalidBlueMarketParamsError", { enumerable: true, get: function () { return blue_sdk_1.InvalidMarketParamsError; } });
|
|
9
|
+
/** @deprecated Use InvalidBlueMarketParamsError or the raw protocol subpath. */
|
|
7
10
|
Object.defineProperty(exports, "InvalidMarketParamsError", { enumerable: true, get: function () { return blue_sdk_1.InvalidMarketParamsError; } });
|
|
8
11
|
Object.defineProperty(exports, "UnknownAddressError", { enumerable: true, get: function () { return blue_sdk_1.UnknownAddressError; } });
|
|
12
|
+
Object.defineProperty(exports, "UnknownBlueDataError", { enumerable: true, get: function () { return blue_sdk_1.UnknownDataError; } });
|
|
13
|
+
/** @deprecated Use UnknownBlueDataError or the raw protocol subpath. */
|
|
9
14
|
Object.defineProperty(exports, "UnknownDataError", { enumerable: true, get: function () { return blue_sdk_1.UnknownDataError; } });
|
|
15
|
+
Object.defineProperty(exports, "UnknownBlueFactory", { enumerable: true, get: function () { return blue_sdk_1.UnknownFactory; } });
|
|
16
|
+
/** @deprecated Use UnknownBlueFactory or the raw protocol subpath. */
|
|
10
17
|
Object.defineProperty(exports, "UnknownFactory", { enumerable: true, get: function () { return blue_sdk_1.UnknownFactory; } });
|
|
18
|
+
Object.defineProperty(exports, "UnknownBlueMarketAllocationError", { enumerable: true, get: function () { return blue_sdk_1.UnknownMarketAllocationError; } });
|
|
19
|
+
Object.defineProperty(exports, "UnknownBlueMarketParamsError", { enumerable: true, get: function () { return blue_sdk_1.UnknownMarketParamsError; } });
|
|
20
|
+
/** @deprecated Use UnknownBlueMarketParamsError or the raw protocol subpath. */
|
|
11
21
|
Object.defineProperty(exports, "UnknownMarketParamsError", { enumerable: true, get: function () { return blue_sdk_1.UnknownMarketParamsError; } });
|
|
22
|
+
Object.defineProperty(exports, "UnknownBlueOfFactory", { enumerable: true, get: function () { return blue_sdk_1.UnknownOfFactory; } });
|
|
23
|
+
/** @deprecated Use UnknownBlueOfFactory or the raw protocol subpath. */
|
|
12
24
|
Object.defineProperty(exports, "UnknownOfFactory", { enumerable: true, get: function () { return blue_sdk_1.UnknownOfFactory; } });
|
|
25
|
+
Object.defineProperty(exports, "UnknownBlueTokenError", { enumerable: true, get: function () { return blue_sdk_1.UnknownTokenError; } });
|
|
26
|
+
/** @deprecated Use UnknownBlueTokenError or the raw protocol subpath. */
|
|
13
27
|
Object.defineProperty(exports, "UnknownTokenError", { enumerable: true, get: function () { return blue_sdk_1.UnknownTokenError; } });
|
|
28
|
+
Object.defineProperty(exports, "UnknownBlueTokenPriceError", { enumerable: true, get: function () { return blue_sdk_1.UnknownTokenPriceError; } });
|
|
29
|
+
/** @deprecated Use UnknownBlueTokenPriceError or the raw protocol subpath. */
|
|
14
30
|
Object.defineProperty(exports, "UnknownTokenPriceError", { enumerable: true, get: function () { return blue_sdk_1.UnknownTokenPriceError; } });
|
|
31
|
+
Object.defineProperty(exports, "UnknownBlueVaultConfigError", { enumerable: true, get: function () { return blue_sdk_1.UnknownVaultConfigError; } });
|
|
32
|
+
/** @deprecated Use UnknownBlueVaultConfigError or the raw protocol subpath. */
|
|
15
33
|
Object.defineProperty(exports, "UnknownVaultConfigError", { enumerable: true, get: function () { return blue_sdk_1.UnknownVaultConfigError; } });
|
|
16
34
|
Object.defineProperty(exports, "UnsupportedChainIdError", { enumerable: true, get: function () { return blue_sdk_1.UnsupportedChainIdError; } });
|
|
35
|
+
Object.defineProperty(exports, "UnsupportedBluePreLiquidationParamsError", { enumerable: true, get: function () { return blue_sdk_1.UnsupportedPreLiquidationParamsError; } });
|
|
36
|
+
/** @deprecated Use UnsupportedBluePreLiquidationParamsError or the raw protocol subpath. */
|
|
17
37
|
Object.defineProperty(exports, "UnsupportedPreLiquidationParamsError", { enumerable: true, get: function () { return blue_sdk_1.UnsupportedPreLiquidationParamsError; } });
|
|
38
|
+
Object.defineProperty(exports, "UnsupportedBlueVaultV2AdapterError", { enumerable: true, get: function () { return blue_sdk_1.UnsupportedVaultV2AdapterError; } });
|
|
39
|
+
/** @deprecated Use UnsupportedBlueVaultV2AdapterError or the raw protocol subpath. */
|
|
18
40
|
Object.defineProperty(exports, "UnsupportedVaultV2AdapterError", { enumerable: true, get: function () { return blue_sdk_1.UnsupportedVaultV2AdapterError; } });
|
|
19
41
|
Object.defineProperty(exports, "VaultV2Errors", { enumerable: true, get: function () { return blue_sdk_1.VaultV2Errors; } });
|
|
42
|
+
var blue_sdk_viem_1 = require("@morpho-org/blue-sdk-viem");
|
|
43
|
+
Object.defineProperty(exports, "getBlueUnsupportedVaultV2Adapter", { enumerable: true, get: function () { return blue_sdk_viem_1.getUnsupportedVaultV2Adapter; } });
|
|
44
|
+
Object.defineProperty(exports, "InvalidPermitDomainChainIdError", { enumerable: true, get: function () { return blue_sdk_viem_1.InvalidPermitDomainChainIdError; } });
|
|
45
|
+
Object.defineProperty(exports, "InvalidPermitDomainVerifyingContractError", { enumerable: true, get: function () { return blue_sdk_viem_1.InvalidPermitDomainVerifyingContractError; } });
|
|
46
|
+
Object.defineProperty(exports, "isBlueUnknownOfFactoryError", { enumerable: true, get: function () { return blue_sdk_viem_1.isUnknownOfFactoryError; } });
|
|
47
|
+
Object.defineProperty(exports, "UnsupportedPermitDomainExtensionsError", { enumerable: true, get: function () { return blue_sdk_viem_1.UnsupportedPermitDomainExtensionsError; } });
|
|
20
48
|
var midnight_sdk_1 = require("@morpho-org/midnight-sdk");
|
|
49
|
+
Object.defineProperty(exports, "MidnightChainIdMismatchError", { enumerable: true, get: function () { return midnight_sdk_1.ChainIdMismatchError; } });
|
|
50
|
+
Object.defineProperty(exports, "InvalidMidnightEcrecoverSignatureVError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidEcrecoverSignatureVError; } });
|
|
51
|
+
Object.defineProperty(exports, "InvalidMidnightMarketParameterError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidMarketParameterError; } });
|
|
21
52
|
Object.defineProperty(exports, "InvalidMidnightApiResponseError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidMidnightApiResponseError; } });
|
|
53
|
+
Object.defineProperty(exports, "InvalidMidnightOfferGroupError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidOfferGroupError; } });
|
|
54
|
+
/** @deprecated Use InvalidMidnightOfferGroupError or the raw protocol subpath. */
|
|
22
55
|
Object.defineProperty(exports, "InvalidOfferGroupError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidOfferGroupError; } });
|
|
56
|
+
Object.defineProperty(exports, "InvalidMidnightOfferParameterError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidOfferParameterError; } });
|
|
57
|
+
/** @deprecated Use InvalidMidnightOfferParameterError or the raw protocol subpath. */
|
|
23
58
|
Object.defineProperty(exports, "InvalidOfferParameterError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidOfferParameterError; } });
|
|
59
|
+
Object.defineProperty(exports, "InvalidMidnightPositionAccrualStateError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidPositionAccrualStateError; } });
|
|
60
|
+
/** @deprecated Use InvalidMidnightPositionAccrualStateError or the raw protocol subpath. */
|
|
24
61
|
Object.defineProperty(exports, "InvalidPositionAccrualStateError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidPositionAccrualStateError; } });
|
|
62
|
+
Object.defineProperty(exports, "InvalidMidnightPositionAccrualTimestampError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidPositionAccrualTimestampError; } });
|
|
63
|
+
/** @deprecated Use InvalidMidnightPositionAccrualTimestampError or the raw protocol subpath. */
|
|
25
64
|
Object.defineProperty(exports, "InvalidPositionAccrualTimestampError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidPositionAccrualTimestampError; } });
|
|
65
|
+
Object.defineProperty(exports, "InvalidMidnightPositionLossFactorError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidPositionLossFactorError; } });
|
|
66
|
+
/** @deprecated Use InvalidMidnightPositionLossFactorError or the raw protocol subpath. */
|
|
26
67
|
Object.defineProperty(exports, "InvalidPositionLossFactorError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidPositionLossFactorError; } });
|
|
68
|
+
Object.defineProperty(exports, "InvalidMidnightTickSpacingError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidTickSpacingError; } });
|
|
69
|
+
/** @deprecated Use InvalidMidnightTickSpacingError or the raw protocol subpath. */
|
|
27
70
|
Object.defineProperty(exports, "InvalidTickSpacingError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidTickSpacingError; } });
|
|
71
|
+
Object.defineProperty(exports, "InvalidMidnightTreeError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidTreeError; } });
|
|
72
|
+
/** @deprecated Use InvalidMidnightTreeError or the raw protocol subpath. */
|
|
28
73
|
Object.defineProperty(exports, "InvalidTreeError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidTreeError; } });
|
|
74
|
+
Object.defineProperty(exports, "InvalidMidnightTreeHeightError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidTreeHeightError; } });
|
|
75
|
+
/** @deprecated Use InvalidMidnightTreeHeightError or the raw protocol subpath. */
|
|
29
76
|
Object.defineProperty(exports, "InvalidTreeHeightError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidTreeHeightError; } });
|
|
77
|
+
Object.defineProperty(exports, "InvalidMidnightTypedDataSignatureError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidTypedDataSignatureError; } });
|
|
30
78
|
Object.defineProperty(exports, "MidnightApiError", { enumerable: true, get: function () { return midnight_sdk_1.MidnightApiError; } });
|
|
31
79
|
Object.defineProperty(exports, "MidnightMempoolValidationError", { enumerable: true, get: function () { return midnight_sdk_1.MidnightMempoolValidationError; } });
|
|
80
|
+
Object.defineProperty(exports, "MidnightPayloadDecodeError", { enumerable: true, get: function () { return midnight_sdk_1.PayloadDecodeError; } });
|
|
81
|
+
Object.defineProperty(exports, "MidnightPriceGreaterThanOneError", { enumerable: true, get: function () { return midnight_sdk_1.PriceGreaterThanOneError; } });
|
|
82
|
+
/** @deprecated Use MidnightPriceGreaterThanOneError or the raw protocol subpath. */
|
|
32
83
|
Object.defineProperty(exports, "PriceGreaterThanOneError", { enumerable: true, get: function () { return midnight_sdk_1.PriceGreaterThanOneError; } });
|
|
84
|
+
Object.defineProperty(exports, "MidnightSettlementFeeExceedsPriceError", { enumerable: true, get: function () { return midnight_sdk_1.SettlementFeeExceedsPriceError; } });
|
|
85
|
+
/** @deprecated Use MidnightSettlementFeeExceedsPriceError or the raw protocol subpath. */
|
|
33
86
|
Object.defineProperty(exports, "SettlementFeeExceedsPriceError", { enumerable: true, get: function () { return midnight_sdk_1.SettlementFeeExceedsPriceError; } });
|
|
87
|
+
Object.defineProperty(exports, "MidnightTickOutOfRangeError", { enumerable: true, get: function () { return midnight_sdk_1.TickOutOfRangeError; } });
|
|
88
|
+
/** @deprecated Use MidnightTickOutOfRangeError or the raw protocol subpath. */
|
|
34
89
|
Object.defineProperty(exports, "TickOutOfRangeError", { enumerable: true, get: function () { return midnight_sdk_1.TickOutOfRangeError; } });
|
|
90
|
+
Object.defineProperty(exports, "UnknownMidnightCollateralIndexError", { enumerable: true, get: function () { return midnight_sdk_1.UnknownCollateralIndexError; } });
|
|
91
|
+
/** @deprecated Use UnknownMidnightCollateralIndexError or the raw protocol subpath. */
|
|
35
92
|
Object.defineProperty(exports, "UnknownCollateralIndexError", { enumerable: true, get: function () { return midnight_sdk_1.UnknownCollateralIndexError; } });
|
|
36
93
|
var morpho_ts_1 = require("@morpho-org/morpho-ts");
|
|
37
94
|
Object.defineProperty(exports, "_try", { enumerable: true, get: function () { return morpho_ts_1._try; } });
|
|
95
|
+
Object.defineProperty(exports, "DivisionByZeroError", { enumerable: true, get: function () { return morpho_ts_1.DivisionByZeroError; } });
|
|
96
|
+
Object.defineProperty(exports, "InvalidBitLengthError", { enumerable: true, get: function () { return morpho_ts_1.InvalidBitLengthError; } });
|
|
97
|
+
Object.defineProperty(exports, "NegativeValueError", { enumerable: true, get: function () { return morpho_ts_1.NegativeValueError; } });
|
|
98
|
+
Object.defineProperty(exports, "RegistryValueAlreadyRegisteredError", { enumerable: true, get: function () { return morpho_ts_1.RegistryValueAlreadyRegisteredError; } });
|
package/lib/cjs/fetch.d.ts
CHANGED
|
@@ -1 +1,16 @@
|
|
|
1
|
-
export { fetchAccrualPosition
|
|
1
|
+
export { fetchAccrualPosition as fetchBlueAccrualPosition,
|
|
2
|
+
/** @deprecated Use `fetchBlueAccrualPosition` or the raw `/blue/fetch` subpath. */
|
|
3
|
+
fetchAccrualPosition, fetchAccrualVault, fetchAccrualVaultV2, fetchAccrualVaultV2Adapter, fetchAccrualVaultV2MorphoMarketV1Adapter, fetchAccrualVaultV2MorphoMarketV1AdapterV2, fetchAccrualVaultV2MorphoVaultV1Adapter, fetchHolding, fetchMarket as fetchBlueMarket,
|
|
4
|
+
/** @deprecated Use `fetchBlueMarket` or the raw `/blue/fetch` subpath. */
|
|
5
|
+
fetchMarket, fetchMarketParams as fetchBlueMarketParams,
|
|
6
|
+
/** @deprecated Use `fetchBlueMarketParams` or the raw `/blue/fetch` subpath. */
|
|
7
|
+
fetchMarketParams, fetchPosition as fetchBluePosition,
|
|
8
|
+
/** @deprecated Use `fetchBluePosition` or the raw `/blue/fetch` subpath. */
|
|
9
|
+
fetchPosition, fetchPreLiquidationParams as fetchBluePreLiquidationParams,
|
|
10
|
+
/** @deprecated Use `fetchBluePreLiquidationParams` or the raw `/blue/fetch` subpath. */
|
|
11
|
+
fetchPreLiquidationParams, fetchPreLiquidationPosition as fetchBluePreLiquidationPosition,
|
|
12
|
+
/** @deprecated Use `fetchBluePreLiquidationPosition` or the raw `/blue/fetch` subpath. */
|
|
13
|
+
fetchPreLiquidationPosition, fetchToken, fetchUser as fetchBlueUser,
|
|
14
|
+
/** @deprecated Use `fetchBlueUser` or the raw `/blue/fetch` subpath. */
|
|
15
|
+
fetchUser, fetchVault, fetchVaultConfig, fetchVaultMarketAllocation, fetchVaultMarketConfig, fetchVaultMarketPublicAllocatorConfig, fetchVaultUser, fetchVaultV2, fetchVaultV2Adapter, fetchVaultV2BlueMarketPublicAllocatorConfig, fetchVaultV2BluePublicAllocatorConfig, fetchVaultV2BluePublicAllocatorData, fetchVaultV2MorphoMarketV1Adapter, fetchVaultV2MorphoMarketV1AdapterV2, fetchVaultV2MorphoVaultV1Adapter, } from "@morpho-org/blue-sdk-viem";
|
|
16
|
+
export { fetchAccrualPosition as fetchMidnightAccrualPosition, fetchMarket as fetchMidnightMarket, fetchMarketParams as fetchMidnightMarketParams, fetchPosition as fetchMidnightPosition, fetchRatifierInfo as fetchMidnightRatifierInfo, } from "@morpho-org/midnight-sdk";
|
package/lib/cjs/fetch.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fetchVaultV2MorphoVaultV1Adapter = exports.fetchVaultV2MorphoMarketV1AdapterV2 = exports.fetchVaultV2MorphoMarketV1Adapter = exports.fetchVaultV2Adapter = exports.fetchVaultV2 = exports.fetchVaultUser = exports.fetchVaultMarketPublicAllocatorConfig = exports.fetchVaultMarketConfig = exports.fetchVaultMarketAllocation = exports.fetchVaultConfig = exports.fetchVault = exports.fetchUser = exports.fetchToken = exports.fetchPreLiquidationPosition = exports.fetchPreLiquidationParams = exports.fetchPosition = exports.fetchMarketParams = exports.fetchMarket = exports.fetchHolding = exports.fetchAccrualVaultV2MorphoVaultV1Adapter = exports.fetchAccrualVaultV2MorphoMarketV1AdapterV2 = exports.fetchAccrualVaultV2MorphoMarketV1Adapter = exports.fetchAccrualVaultV2Adapter = exports.fetchAccrualVaultV2 = exports.fetchAccrualVault = exports.fetchAccrualPosition = void 0;
|
|
3
|
+
exports.fetchMidnightRatifierInfo = exports.fetchMidnightPosition = exports.fetchMidnightMarketParams = exports.fetchMidnightMarket = exports.fetchMidnightAccrualPosition = exports.fetchVaultV2MorphoVaultV1Adapter = exports.fetchVaultV2MorphoMarketV1AdapterV2 = exports.fetchVaultV2MorphoMarketV1Adapter = exports.fetchVaultV2BluePublicAllocatorData = exports.fetchVaultV2BluePublicAllocatorConfig = exports.fetchVaultV2BlueMarketPublicAllocatorConfig = exports.fetchVaultV2Adapter = exports.fetchVaultV2 = exports.fetchVaultUser = exports.fetchVaultMarketPublicAllocatorConfig = exports.fetchVaultMarketConfig = exports.fetchVaultMarketAllocation = exports.fetchVaultConfig = exports.fetchVault = exports.fetchUser = exports.fetchBlueUser = exports.fetchToken = exports.fetchPreLiquidationPosition = exports.fetchBluePreLiquidationPosition = exports.fetchPreLiquidationParams = exports.fetchBluePreLiquidationParams = exports.fetchPosition = exports.fetchBluePosition = exports.fetchMarketParams = exports.fetchBlueMarketParams = exports.fetchMarket = exports.fetchBlueMarket = exports.fetchHolding = exports.fetchAccrualVaultV2MorphoVaultV1Adapter = exports.fetchAccrualVaultV2MorphoMarketV1AdapterV2 = exports.fetchAccrualVaultV2MorphoMarketV1Adapter = exports.fetchAccrualVaultV2Adapter = exports.fetchAccrualVaultV2 = exports.fetchAccrualVault = exports.fetchAccrualPosition = exports.fetchBlueAccrualPosition = void 0;
|
|
4
4
|
var blue_sdk_viem_1 = require("@morpho-org/blue-sdk-viem");
|
|
5
|
+
Object.defineProperty(exports, "fetchBlueAccrualPosition", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchAccrualPosition; } });
|
|
6
|
+
/** @deprecated Use `fetchBlueAccrualPosition` or the raw `/blue/fetch` subpath. */
|
|
5
7
|
Object.defineProperty(exports, "fetchAccrualPosition", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchAccrualPosition; } });
|
|
6
8
|
Object.defineProperty(exports, "fetchAccrualVault", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchAccrualVault; } });
|
|
7
9
|
Object.defineProperty(exports, "fetchAccrualVaultV2", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchAccrualVaultV2; } });
|
|
@@ -10,12 +12,24 @@ Object.defineProperty(exports, "fetchAccrualVaultV2MorphoMarketV1Adapter", { enu
|
|
|
10
12
|
Object.defineProperty(exports, "fetchAccrualVaultV2MorphoMarketV1AdapterV2", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchAccrualVaultV2MorphoMarketV1AdapterV2; } });
|
|
11
13
|
Object.defineProperty(exports, "fetchAccrualVaultV2MorphoVaultV1Adapter", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchAccrualVaultV2MorphoVaultV1Adapter; } });
|
|
12
14
|
Object.defineProperty(exports, "fetchHolding", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchHolding; } });
|
|
15
|
+
Object.defineProperty(exports, "fetchBlueMarket", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchMarket; } });
|
|
16
|
+
/** @deprecated Use `fetchBlueMarket` or the raw `/blue/fetch` subpath. */
|
|
13
17
|
Object.defineProperty(exports, "fetchMarket", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchMarket; } });
|
|
18
|
+
Object.defineProperty(exports, "fetchBlueMarketParams", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchMarketParams; } });
|
|
19
|
+
/** @deprecated Use `fetchBlueMarketParams` or the raw `/blue/fetch` subpath. */
|
|
14
20
|
Object.defineProperty(exports, "fetchMarketParams", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchMarketParams; } });
|
|
21
|
+
Object.defineProperty(exports, "fetchBluePosition", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchPosition; } });
|
|
22
|
+
/** @deprecated Use `fetchBluePosition` or the raw `/blue/fetch` subpath. */
|
|
15
23
|
Object.defineProperty(exports, "fetchPosition", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchPosition; } });
|
|
24
|
+
Object.defineProperty(exports, "fetchBluePreLiquidationParams", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchPreLiquidationParams; } });
|
|
25
|
+
/** @deprecated Use `fetchBluePreLiquidationParams` or the raw `/blue/fetch` subpath. */
|
|
16
26
|
Object.defineProperty(exports, "fetchPreLiquidationParams", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchPreLiquidationParams; } });
|
|
27
|
+
Object.defineProperty(exports, "fetchBluePreLiquidationPosition", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchPreLiquidationPosition; } });
|
|
28
|
+
/** @deprecated Use `fetchBluePreLiquidationPosition` or the raw `/blue/fetch` subpath. */
|
|
17
29
|
Object.defineProperty(exports, "fetchPreLiquidationPosition", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchPreLiquidationPosition; } });
|
|
18
30
|
Object.defineProperty(exports, "fetchToken", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchToken; } });
|
|
31
|
+
Object.defineProperty(exports, "fetchBlueUser", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchUser; } });
|
|
32
|
+
/** @deprecated Use `fetchBlueUser` or the raw `/blue/fetch` subpath. */
|
|
19
33
|
Object.defineProperty(exports, "fetchUser", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchUser; } });
|
|
20
34
|
Object.defineProperty(exports, "fetchVault", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchVault; } });
|
|
21
35
|
Object.defineProperty(exports, "fetchVaultConfig", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchVaultConfig; } });
|
|
@@ -25,6 +39,15 @@ Object.defineProperty(exports, "fetchVaultMarketPublicAllocatorConfig", { enumer
|
|
|
25
39
|
Object.defineProperty(exports, "fetchVaultUser", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchVaultUser; } });
|
|
26
40
|
Object.defineProperty(exports, "fetchVaultV2", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchVaultV2; } });
|
|
27
41
|
Object.defineProperty(exports, "fetchVaultV2Adapter", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchVaultV2Adapter; } });
|
|
42
|
+
Object.defineProperty(exports, "fetchVaultV2BlueMarketPublicAllocatorConfig", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchVaultV2BlueMarketPublicAllocatorConfig; } });
|
|
43
|
+
Object.defineProperty(exports, "fetchVaultV2BluePublicAllocatorConfig", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchVaultV2BluePublicAllocatorConfig; } });
|
|
44
|
+
Object.defineProperty(exports, "fetchVaultV2BluePublicAllocatorData", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchVaultV2BluePublicAllocatorData; } });
|
|
28
45
|
Object.defineProperty(exports, "fetchVaultV2MorphoMarketV1Adapter", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchVaultV2MorphoMarketV1Adapter; } });
|
|
29
46
|
Object.defineProperty(exports, "fetchVaultV2MorphoMarketV1AdapterV2", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchVaultV2MorphoMarketV1AdapterV2; } });
|
|
30
47
|
Object.defineProperty(exports, "fetchVaultV2MorphoVaultV1Adapter", { enumerable: true, get: function () { return blue_sdk_viem_1.fetchVaultV2MorphoVaultV1Adapter; } });
|
|
48
|
+
var midnight_sdk_1 = require("@morpho-org/midnight-sdk");
|
|
49
|
+
Object.defineProperty(exports, "fetchMidnightAccrualPosition", { enumerable: true, get: function () { return midnight_sdk_1.fetchAccrualPosition; } });
|
|
50
|
+
Object.defineProperty(exports, "fetchMidnightMarket", { enumerable: true, get: function () { return midnight_sdk_1.fetchMarket; } });
|
|
51
|
+
Object.defineProperty(exports, "fetchMidnightMarketParams", { enumerable: true, get: function () { return midnight_sdk_1.fetchMarketParams; } });
|
|
52
|
+
Object.defineProperty(exports, "fetchMidnightPosition", { enumerable: true, get: function () { return midnight_sdk_1.fetchPosition; } });
|
|
53
|
+
Object.defineProperty(exports, "fetchMidnightRatifierInfo", { enumerable: true, get: function () { return midnight_sdk_1.fetchRatifierInfo; } });
|
|
@@ -150,11 +150,11 @@ export declare const validateRepayShares: (params: {
|
|
|
150
150
|
* @throws {UnsortedReallocationWithdrawalsError} when withdrawals are not strictly market-id sorted.
|
|
151
151
|
* @example
|
|
152
152
|
* ```ts
|
|
153
|
-
* import type {
|
|
153
|
+
* import type { BlueMarketId } from "@morpho-org/morpho-sdk/types";
|
|
154
154
|
* import { validateReallocations } from "@morpho-org/morpho-sdk";
|
|
155
155
|
* import { zeroHash } from "viem";
|
|
156
156
|
*
|
|
157
|
-
* const result: void = validateReallocations([], zeroHash as
|
|
157
|
+
* const result: void = validateReallocations([], zeroHash as BlueMarketId);
|
|
158
158
|
* ```
|
|
159
159
|
*/
|
|
160
160
|
export declare const validateReallocations: (reallocations: Iterable<VaultV1Reallocation>, targetMarketId: MarketId) => void;
|
|
@@ -243,11 +243,11 @@ exports.validateRepayShares = validateRepayShares;
|
|
|
243
243
|
* @throws {UnsortedReallocationWithdrawalsError} when withdrawals are not strictly market-id sorted.
|
|
244
244
|
* @example
|
|
245
245
|
* ```ts
|
|
246
|
-
* import type {
|
|
246
|
+
* import type { BlueMarketId } from "@morpho-org/morpho-sdk/types";
|
|
247
247
|
* import { validateReallocations } from "@morpho-org/morpho-sdk";
|
|
248
248
|
* import { zeroHash } from "viem";
|
|
249
249
|
*
|
|
250
|
-
* const result: void = validateReallocations([], zeroHash as
|
|
250
|
+
* const result: void = validateReallocations([], zeroHash as BlueMarketId);
|
|
251
251
|
* ```
|
|
252
252
|
*/
|
|
253
253
|
const validateReallocations = (reallocations, targetMarketId) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ecrecoverRatifierAbi, midnightAbi, midnightBundlesAbi, setterRatifierAbi, } from "@morpho-org/midnight-sdk";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setterRatifierAbi = exports.midnightBundlesAbi = exports.midnightAbi = exports.ecrecoverRatifierAbi = void 0;
|
|
4
|
+
var midnight_sdk_1 = require("@morpho-org/midnight-sdk");
|
|
5
|
+
Object.defineProperty(exports, "ecrecoverRatifierAbi", { enumerable: true, get: function () { return midnight_sdk_1.ecrecoverRatifierAbi; } });
|
|
6
|
+
Object.defineProperty(exports, "midnightAbi", { enumerable: true, get: function () { return midnight_sdk_1.midnightAbi; } });
|
|
7
|
+
Object.defineProperty(exports, "midnightBundlesAbi", { enumerable: true, get: function () { return midnight_sdk_1.midnightBundlesAbi; } });
|
|
8
|
+
Object.defineProperty(exports, "setterRatifierAbi", { enumerable: true, get: function () { return midnight_sdk_1.setterRatifierAbi; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CBP, COLLATERAL_PARAMS_TYPEHASH, DEFAULT_TICK_SPACING, EIP712_DOMAIN_TYPEHASH, MARKET_TYPEHASH, MAX_COLLATERALS, MAX_COLLATERALS_PER_BORROWER, MAX_CONTINUOUS_FEE, MAX_OFFER_CAP, MAX_SETTLEMENT_FEES, MAX_TICK, OFFER_TYPEHASH, PRICE_ROUNDING_STEP, SETTLEMENT_FEE_BREAKPOINTS, TIME_TO_MAX_LIF, } from "@morpho-org/midnight-sdk";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TIME_TO_MAX_LIF = exports.SETTLEMENT_FEE_BREAKPOINTS = exports.PRICE_ROUNDING_STEP = exports.OFFER_TYPEHASH = exports.MAX_TICK = exports.MAX_SETTLEMENT_FEES = exports.MAX_OFFER_CAP = exports.MAX_CONTINUOUS_FEE = exports.MAX_COLLATERALS_PER_BORROWER = exports.MAX_COLLATERALS = exports.MARKET_TYPEHASH = exports.EIP712_DOMAIN_TYPEHASH = exports.DEFAULT_TICK_SPACING = exports.COLLATERAL_PARAMS_TYPEHASH = exports.CBP = void 0;
|
|
4
|
+
var midnight_sdk_1 = require("@morpho-org/midnight-sdk");
|
|
5
|
+
Object.defineProperty(exports, "CBP", { enumerable: true, get: function () { return midnight_sdk_1.CBP; } });
|
|
6
|
+
Object.defineProperty(exports, "COLLATERAL_PARAMS_TYPEHASH", { enumerable: true, get: function () { return midnight_sdk_1.COLLATERAL_PARAMS_TYPEHASH; } });
|
|
7
|
+
Object.defineProperty(exports, "DEFAULT_TICK_SPACING", { enumerable: true, get: function () { return midnight_sdk_1.DEFAULT_TICK_SPACING; } });
|
|
8
|
+
Object.defineProperty(exports, "EIP712_DOMAIN_TYPEHASH", { enumerable: true, get: function () { return midnight_sdk_1.EIP712_DOMAIN_TYPEHASH; } });
|
|
9
|
+
Object.defineProperty(exports, "MARKET_TYPEHASH", { enumerable: true, get: function () { return midnight_sdk_1.MARKET_TYPEHASH; } });
|
|
10
|
+
Object.defineProperty(exports, "MAX_COLLATERALS", { enumerable: true, get: function () { return midnight_sdk_1.MAX_COLLATERALS; } });
|
|
11
|
+
Object.defineProperty(exports, "MAX_COLLATERALS_PER_BORROWER", { enumerable: true, get: function () { return midnight_sdk_1.MAX_COLLATERALS_PER_BORROWER; } });
|
|
12
|
+
Object.defineProperty(exports, "MAX_CONTINUOUS_FEE", { enumerable: true, get: function () { return midnight_sdk_1.MAX_CONTINUOUS_FEE; } });
|
|
13
|
+
Object.defineProperty(exports, "MAX_OFFER_CAP", { enumerable: true, get: function () { return midnight_sdk_1.MAX_OFFER_CAP; } });
|
|
14
|
+
Object.defineProperty(exports, "MAX_SETTLEMENT_FEES", { enumerable: true, get: function () { return midnight_sdk_1.MAX_SETTLEMENT_FEES; } });
|
|
15
|
+
Object.defineProperty(exports, "MAX_TICK", { enumerable: true, get: function () { return midnight_sdk_1.MAX_TICK; } });
|
|
16
|
+
Object.defineProperty(exports, "OFFER_TYPEHASH", { enumerable: true, get: function () { return midnight_sdk_1.OFFER_TYPEHASH; } });
|
|
17
|
+
Object.defineProperty(exports, "PRICE_ROUNDING_STEP", { enumerable: true, get: function () { return midnight_sdk_1.PRICE_ROUNDING_STEP; } });
|
|
18
|
+
Object.defineProperty(exports, "SETTLEMENT_FEE_BREAKPOINTS", { enumerable: true, get: function () { return midnight_sdk_1.SETTLEMENT_FEE_BREAKPOINTS; } });
|
|
19
|
+
Object.defineProperty(exports, "TIME_TO_MAX_LIF", { enumerable: true, get: function () { return midnight_sdk_1.TIME_TO_MAX_LIF; } });
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type { BuildOfferParams, CollateralParams, GroupInput, IAccrualPosition, ICollateralParams, IGroup, IMarket, IMarketParams, IOffer, IPosition, MarketInput, OfferStruct, RatifierTreeInput, SettlementFeeCbps, TreeCreateParams, TreeDescriptor, TreeInput, TreeLike, TreeMempoolValidateParams, TreeMempoolValidateRatification, TreeProof, } from "@morpho-org/midnight-sdk";
|
|
2
|
+
export { AccrualPosition, Group, Market, MarketParams, Offer, Position, Tree, } from "@morpho-org/midnight-sdk";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Tree = exports.Position = exports.Offer = exports.MarketParams = exports.Market = exports.Group = exports.AccrualPosition = void 0;
|
|
4
|
+
var midnight_sdk_1 = require("@morpho-org/midnight-sdk");
|
|
5
|
+
Object.defineProperty(exports, "AccrualPosition", { enumerable: true, get: function () { return midnight_sdk_1.AccrualPosition; } });
|
|
6
|
+
Object.defineProperty(exports, "Group", { enumerable: true, get: function () { return midnight_sdk_1.Group; } });
|
|
7
|
+
Object.defineProperty(exports, "Market", { enumerable: true, get: function () { return midnight_sdk_1.Market; } });
|
|
8
|
+
Object.defineProperty(exports, "MarketParams", { enumerable: true, get: function () { return midnight_sdk_1.MarketParams; } });
|
|
9
|
+
Object.defineProperty(exports, "Offer", { enumerable: true, get: function () { return midnight_sdk_1.Offer; } });
|
|
10
|
+
Object.defineProperty(exports, "Position", { enumerable: true, get: function () { return midnight_sdk_1.Position; } });
|
|
11
|
+
Object.defineProperty(exports, "Tree", { enumerable: true, get: function () { return midnight_sdk_1.Tree; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ChainIdMismatchError, InvalidEcrecoverSignatureVError, InvalidMarketParameterError, InvalidMidnightApiResponseError, InvalidOfferGroupError, InvalidOfferParameterError, InvalidPositionAccrualStateError, InvalidPositionAccrualTimestampError, InvalidPositionLossFactorError, InvalidTickSpacingError, InvalidTreeError, InvalidTreeHeightError, InvalidTypedDataSignatureError, MidnightApiError, MidnightMempoolValidationError, PayloadDecodeError, PriceGreaterThanOneError, SettlementFeeExceedsPriceError, TickOutOfRangeError, UnknownCollateralIndexError, } from "@morpho-org/midnight-sdk";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnknownCollateralIndexError = exports.TickOutOfRangeError = exports.SettlementFeeExceedsPriceError = exports.PriceGreaterThanOneError = exports.PayloadDecodeError = exports.MidnightMempoolValidationError = exports.MidnightApiError = exports.InvalidTypedDataSignatureError = exports.InvalidTreeHeightError = exports.InvalidTreeError = exports.InvalidTickSpacingError = exports.InvalidPositionLossFactorError = exports.InvalidPositionAccrualTimestampError = exports.InvalidPositionAccrualStateError = exports.InvalidOfferParameterError = exports.InvalidOfferGroupError = exports.InvalidMidnightApiResponseError = exports.InvalidMarketParameterError = exports.InvalidEcrecoverSignatureVError = exports.ChainIdMismatchError = void 0;
|
|
4
|
+
var midnight_sdk_1 = require("@morpho-org/midnight-sdk");
|
|
5
|
+
Object.defineProperty(exports, "ChainIdMismatchError", { enumerable: true, get: function () { return midnight_sdk_1.ChainIdMismatchError; } });
|
|
6
|
+
Object.defineProperty(exports, "InvalidEcrecoverSignatureVError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidEcrecoverSignatureVError; } });
|
|
7
|
+
Object.defineProperty(exports, "InvalidMarketParameterError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidMarketParameterError; } });
|
|
8
|
+
Object.defineProperty(exports, "InvalidMidnightApiResponseError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidMidnightApiResponseError; } });
|
|
9
|
+
Object.defineProperty(exports, "InvalidOfferGroupError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidOfferGroupError; } });
|
|
10
|
+
Object.defineProperty(exports, "InvalidOfferParameterError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidOfferParameterError; } });
|
|
11
|
+
Object.defineProperty(exports, "InvalidPositionAccrualStateError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidPositionAccrualStateError; } });
|
|
12
|
+
Object.defineProperty(exports, "InvalidPositionAccrualTimestampError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidPositionAccrualTimestampError; } });
|
|
13
|
+
Object.defineProperty(exports, "InvalidPositionLossFactorError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidPositionLossFactorError; } });
|
|
14
|
+
Object.defineProperty(exports, "InvalidTickSpacingError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidTickSpacingError; } });
|
|
15
|
+
Object.defineProperty(exports, "InvalidTreeError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidTreeError; } });
|
|
16
|
+
Object.defineProperty(exports, "InvalidTreeHeightError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidTreeHeightError; } });
|
|
17
|
+
Object.defineProperty(exports, "InvalidTypedDataSignatureError", { enumerable: true, get: function () { return midnight_sdk_1.InvalidTypedDataSignatureError; } });
|
|
18
|
+
Object.defineProperty(exports, "MidnightApiError", { enumerable: true, get: function () { return midnight_sdk_1.MidnightApiError; } });
|
|
19
|
+
Object.defineProperty(exports, "MidnightMempoolValidationError", { enumerable: true, get: function () { return midnight_sdk_1.MidnightMempoolValidationError; } });
|
|
20
|
+
Object.defineProperty(exports, "PayloadDecodeError", { enumerable: true, get: function () { return midnight_sdk_1.PayloadDecodeError; } });
|
|
21
|
+
Object.defineProperty(exports, "PriceGreaterThanOneError", { enumerable: true, get: function () { return midnight_sdk_1.PriceGreaterThanOneError; } });
|
|
22
|
+
Object.defineProperty(exports, "SettlementFeeExceedsPriceError", { enumerable: true, get: function () { return midnight_sdk_1.SettlementFeeExceedsPriceError; } });
|
|
23
|
+
Object.defineProperty(exports, "TickOutOfRangeError", { enumerable: true, get: function () { return midnight_sdk_1.TickOutOfRangeError; } });
|
|
24
|
+
Object.defineProperty(exports, "UnknownCollateralIndexError", { enumerable: true, get: function () { return midnight_sdk_1.UnknownCollateralIndexError; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { fetchAccrualPosition, fetchMarket, fetchMarketParams, fetchPosition, fetchRatifierInfo, } from "@morpho-org/midnight-sdk";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fetchRatifierInfo = exports.fetchPosition = exports.fetchMarketParams = exports.fetchMarket = exports.fetchAccrualPosition = void 0;
|
|
4
|
+
var midnight_sdk_1 = require("@morpho-org/midnight-sdk");
|
|
5
|
+
Object.defineProperty(exports, "fetchAccrualPosition", { enumerable: true, get: function () { return midnight_sdk_1.fetchAccrualPosition; } });
|
|
6
|
+
Object.defineProperty(exports, "fetchMarket", { enumerable: true, get: function () { return midnight_sdk_1.fetchMarket; } });
|
|
7
|
+
Object.defineProperty(exports, "fetchMarketParams", { enumerable: true, get: function () { return midnight_sdk_1.fetchMarketParams; } });
|
|
8
|
+
Object.defineProperty(exports, "fetchPosition", { enumerable: true, get: function () { return midnight_sdk_1.fetchPosition; } });
|
|
9
|
+
Object.defineProperty(exports, "fetchRatifierInfo", { enumerable: true, get: function () { return midnight_sdk_1.fetchRatifierInfo; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { BuildFixedRateOfferChainParams, DecodedEcrecoverRatifierData, DecodedSetterRatifierData, DeploylessFetchParameters, EcrecoverRatificationTypedData, EcrecoverRatifierDataDigestParams, EcrecoverRatifierDataParams, EcrecoverRatifierDataVerificationParams, EcrecoverRatifierRatifyParams, EcrecoverRatifierRootDigestParams, EcrecoverRatifierTypedDataParams, EcrecoverSignatureInput, FixedRateOfferChainLeg, GetRatifierInfoParams, MidnightCallParameters, MidnightFetchParams, RatifierInfo, SetterRatifierDataParams, SetterRatifierDataVerificationParams, VerifiedEcrecoverRatifierData, } from "@morpho-org/midnight-sdk";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EcrecoverRatifierUtils, eip712Digest, GroupUtils, MarketUtils, OfferChainUtils, OfferUtils, Payload, PositionUtils, RatifierUtils, SetterRatifierUtils, TakeAmountsLib, TickLib, TreeUtils, } from "@morpho-org/midnight-sdk";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TreeUtils = exports.TickLib = exports.TakeAmountsLib = exports.SetterRatifierUtils = exports.RatifierUtils = exports.PositionUtils = exports.Payload = exports.OfferUtils = exports.OfferChainUtils = exports.MarketUtils = exports.GroupUtils = exports.eip712Digest = exports.EcrecoverRatifierUtils = void 0;
|
|
4
|
+
var midnight_sdk_1 = require("@morpho-org/midnight-sdk");
|
|
5
|
+
Object.defineProperty(exports, "EcrecoverRatifierUtils", { enumerable: true, get: function () { return midnight_sdk_1.EcrecoverRatifierUtils; } });
|
|
6
|
+
Object.defineProperty(exports, "eip712Digest", { enumerable: true, get: function () { return midnight_sdk_1.eip712Digest; } });
|
|
7
|
+
Object.defineProperty(exports, "GroupUtils", { enumerable: true, get: function () { return midnight_sdk_1.GroupUtils; } });
|
|
8
|
+
Object.defineProperty(exports, "MarketUtils", { enumerable: true, get: function () { return midnight_sdk_1.MarketUtils; } });
|
|
9
|
+
Object.defineProperty(exports, "OfferChainUtils", { enumerable: true, get: function () { return midnight_sdk_1.OfferChainUtils; } });
|
|
10
|
+
Object.defineProperty(exports, "OfferUtils", { enumerable: true, get: function () { return midnight_sdk_1.OfferUtils; } });
|
|
11
|
+
Object.defineProperty(exports, "Payload", { enumerable: true, get: function () { return midnight_sdk_1.Payload; } });
|
|
12
|
+
Object.defineProperty(exports, "PositionUtils", { enumerable: true, get: function () { return midnight_sdk_1.PositionUtils; } });
|
|
13
|
+
Object.defineProperty(exports, "RatifierUtils", { enumerable: true, get: function () { return midnight_sdk_1.RatifierUtils; } });
|
|
14
|
+
Object.defineProperty(exports, "SetterRatifierUtils", { enumerable: true, get: function () { return midnight_sdk_1.SetterRatifierUtils; } });
|
|
15
|
+
Object.defineProperty(exports, "TakeAmountsLib", { enumerable: true, get: function () { return midnight_sdk_1.TakeAmountsLib; } });
|
|
16
|
+
Object.defineProperty(exports, "TickLib", { enumerable: true, get: function () { return midnight_sdk_1.TickLib; } });
|
|
17
|
+
Object.defineProperty(exports, "TreeUtils", { enumerable: true, get: function () { return midnight_sdk_1.TreeUtils; } });
|
package/lib/cjs/types.d.ts
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
export type { BigIntish, CollateralAllocation, Eip712Field, Erc20AllowanceRecipient, Failable, Fetchable, InputMarketParams
|
|
2
|
-
|
|
1
|
+
export type { BigIntish, CollateralAllocation, Eip712Field, Erc20AllowanceRecipient, Failable, Fetchable, InputMarketParams as BlueInputMarketParams,
|
|
2
|
+
/** @deprecated Use `BlueInputMarketParams` or the raw `/blue/types` subpath. */
|
|
3
|
+
InputMarketParams, IPermit2Allowance, Loadable, MarketId as BlueMarketId,
|
|
4
|
+
/** @deprecated Use `BlueMarketId` or the raw `/blue/types` subpath. */
|
|
5
|
+
MarketId, MaxBorrowOptions as BlueMaxBorrowOptions,
|
|
6
|
+
/** @deprecated Use `BlueMaxBorrowOptions` or the raw `/blue/types` subpath. */
|
|
7
|
+
MaxBorrowOptions, MaxPositionCapacities as BlueMaxPositionCapacities,
|
|
8
|
+
/** @deprecated Use `BlueMaxPositionCapacities` or the raw `/blue/types` subpath. */
|
|
9
|
+
MaxPositionCapacities, MaxWithdrawCollateralOptions as BlueMaxWithdrawCollateralOptions,
|
|
10
|
+
/** @deprecated Use `BlueMaxWithdrawCollateralOptions` or the raw `/blue/types` subpath. */
|
|
11
|
+
MaxWithdrawCollateralOptions, Pending, Permit2Allowance, } from "@morpho-org/blue-sdk";
|
|
12
|
+
export type { AuthorizationArgs as BlueAuthorizationTypedDataArgs, DaiPermitArgs, DeploylessFetchParameters as BlueDeploylessFetchParameters,
|
|
13
|
+
/** @deprecated Use `BlueDeploylessFetchParameters` or the raw `/blue/types` subpath. */
|
|
14
|
+
DeploylessFetchParameters, FetchParameters as BlueFetchParameters,
|
|
15
|
+
/** @deprecated Use `BlueFetchParameters` or the raw `/blue/types` subpath. */
|
|
16
|
+
FetchParameters, InputAllocation as BlueInputAllocation, MetaMorphoCall as BlueMetaMorphoCall, Permit2PermitArgs, Permit2TransferFromArgs, PermitArgs as PermitTypedDataArgs, } from "@morpho-org/blue-sdk-viem";
|
|
17
|
+
export type { BuildFixedRateOfferChainParams as MidnightBuildFixedRateOfferChainParams, DecodedEcrecoverRatifierData as MidnightDecodedEcrecoverRatifierData, DecodedSetterRatifierData as MidnightDecodedSetterRatifierData, DeploylessFetchParameters as MidnightDeploylessFetchParameters, EcrecoverRatificationTypedData as MidnightEcrecoverRatificationTypedData, EcrecoverRatifierDataDigestParams as MidnightEcrecoverRatifierDataDigestParams, EcrecoverRatifierDataParams as MidnightEcrecoverRatifierDataParams, EcrecoverRatifierDataVerificationParams as MidnightEcrecoverRatifierDataVerificationParams, EcrecoverRatifierRatifyParams as MidnightEcrecoverRatifierRatifyParams, EcrecoverRatifierRootDigestParams as MidnightEcrecoverRatifierRootDigestParams, EcrecoverRatifierTypedDataParams as MidnightEcrecoverRatifierTypedDataParams, EcrecoverSignatureInput as MidnightEcrecoverSignatureInput, FixedRateOfferChainLeg as MidnightFixedRateOfferChainLeg, GetRatifierInfoParams as MidnightGetRatifierInfoParams, MidnightCallParameters, MidnightFetchParams, RatifierInfo as MidnightRatifierInfo, SetterRatifierDataParams as MidnightSetterRatifierDataParams, SetterRatifierDataVerificationParams as MidnightSetterRatifierDataVerificationParams, VerifiedEcrecoverRatifierData as MidnightVerifiedEcrecoverRatifierData, } from "@morpho-org/midnight-sdk";
|
|
3
18
|
export type { ChainMetadata } from "@morpho-org/morpho-ts";
|
|
4
19
|
export * from "./types/index.js";
|
package/lib/cjs/utils.d.ts
CHANGED
|
@@ -1,10 +1,37 @@
|
|
|
1
1
|
export type { CapacityLimit, RoundingDirection } from "@morpho-org/blue-sdk";
|
|
2
|
-
export { AdaptiveCurveIrmLib
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export { AdaptiveCurveIrmLib as BlueAdaptiveCurveIrmLib,
|
|
3
|
+
/** @deprecated Use BlueAdaptiveCurveIrmLib or the raw protocol subpath. */
|
|
4
|
+
AdaptiveCurveIrmLib, CapacityLimitReason, defaultPreLiquidationParamsRegistry as blueDefaultPreLiquidationParamsRegistry, getDefaultPreLiquidationParams as getBlueDefaultPreLiquidationParams, MarketUtils as BlueMarketUtils,
|
|
5
|
+
/** @deprecated Use BlueMarketUtils or the raw protocol subpath. */
|
|
6
|
+
MarketUtils, MathLib, SharesMath as BlueSharesMath,
|
|
7
|
+
/** @deprecated Use BlueSharesMath or the raw protocol subpath. */
|
|
8
|
+
SharesMath, VaultUtils, VaultV2BlueMarketPublicAllocatorConfigUtils, VaultV2BluePublicAllocatorConfigUtils, VaultV2Utils, } from "@morpho-org/blue-sdk";
|
|
9
|
+
export { decodeBytes32String, getAuthorizationTypedData as getBlueAuthorizationTypedData,
|
|
10
|
+
/** @deprecated Use getBlueAuthorizationTypedData or the raw protocol subpath. */
|
|
11
|
+
getAuthorizationTypedData, getDaiPermitTypedData, getPermit2PermitTypedData, getPermit2TransferFromTypedData, getPermitTypedData, MetaMorphoAction as BlueMetaMorphoAction, optionalBoolean, readContractRestructured, restructure, safeGetAddress, safeParseNumber, safeParseUnits, } from "@morpho-org/blue-sdk-viem";
|
|
12
|
+
export { EcrecoverRatifierUtils as MidnightEcrecoverRatifierUtils,
|
|
13
|
+
/** @deprecated Use MidnightEcrecoverRatifierUtils or the raw protocol subpath. */
|
|
14
|
+
EcrecoverRatifierUtils, eip712Digest, GroupUtils as MidnightGroupUtils,
|
|
15
|
+
/** @deprecated Use MidnightGroupUtils or the raw protocol subpath. */
|
|
16
|
+
GroupUtils, MarketUtils as MidnightMarketUtils, OfferChainUtils as MidnightOfferChainUtils, OfferUtils as MidnightOfferUtils,
|
|
17
|
+
/** @deprecated Use MidnightOfferUtils or the raw protocol subpath. */
|
|
18
|
+
OfferUtils, Payload as MidnightPayload,
|
|
19
|
+
/** @deprecated Use MidnightPayload or the raw protocol subpath. */
|
|
20
|
+
Payload, PositionUtils as MidnightPositionUtils, RatifierUtils as MidnightRatifierUtils,
|
|
21
|
+
/** @deprecated Use MidnightRatifierUtils or the raw protocol subpath. */
|
|
22
|
+
RatifierUtils, SetterRatifierUtils as MidnightSetterRatifierUtils,
|
|
23
|
+
/** @deprecated Use MidnightSetterRatifierUtils or the raw protocol subpath. */
|
|
24
|
+
SetterRatifierUtils, TakeAmountsLib as MidnightTakeAmountsLib,
|
|
25
|
+
/** @deprecated Use MidnightTakeAmountsLib or the raw protocol subpath. */
|
|
26
|
+
TakeAmountsLib, TickLib as MidnightTickLib,
|
|
27
|
+
/** @deprecated Use MidnightTickLib or the raw protocol subpath. */
|
|
28
|
+
TickLib, TreeUtils as MidnightTreeUtils,
|
|
29
|
+
/** @deprecated Use MidnightTreeUtils or the raw protocol subpath. */
|
|
30
|
+
TreeUtils, } from "@morpho-org/midnight-sdk";
|
|
5
31
|
export type { ArrayElementType, DeepPartial, DottedKeys, FieldType, PartialDottedKeys, WithId, WithIndex, } from "@morpho-org/morpho-ts";
|
|
6
32
|
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";
|
|
7
33
|
export { computeReallocations, computeVaultV1Reallocations, } from "./helpers/computeVaultV1Reallocations.js";
|
|
8
34
|
export { addTransactionMetadata } from "./helpers/metadata.js";
|
|
35
|
+
export { type PreviewVaultV2InKindRedeemParams, previewVaultV2InKindRedeem, type VaultV2InKindRedeemMarketPreview, } from "./helpers/previewVaultV2InKindRedeem.js";
|
|
9
36
|
export { computeMaxRepaySharePrice, computeMinBorrowSharePrice, } from "./helpers/slippage.js";
|
|
10
37
|
export { validateAccrualPosition, validateChainId, validateNativeAsset, validatePositionHealth, validatePositionHealthAfterWithdraw, validateReallocations, validateRepayAmount, validateRepayShares, validateSlippageTolerance, validateUserAddress, } from "./helpers/validate.js";
|
package/lib/cjs/utils.js
CHANGED
|
@@ -1,21 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.validateUserAddress = exports.validateSlippageTolerance = exports.validateRepayShares = exports.validateRepayAmount = exports.validateReallocations = exports.validatePositionHealthAfterWithdraw = exports.validatePositionHealth = exports.validateNativeAsset = exports.validateChainId = exports.validateAccrualPosition = exports.computeMinBorrowSharePrice = exports.computeMaxRepaySharePrice = exports.addTransactionMetadata = void 0;
|
|
3
|
+
exports.TreeUtils = exports.MidnightTreeUtils = exports.TickLib = exports.MidnightTickLib = exports.TakeAmountsLib = exports.MidnightTakeAmountsLib = exports.SetterRatifierUtils = exports.MidnightSetterRatifierUtils = exports.RatifierUtils = exports.MidnightRatifierUtils = exports.MidnightPositionUtils = exports.Payload = exports.MidnightPayload = exports.OfferUtils = exports.MidnightOfferUtils = exports.MidnightOfferChainUtils = exports.MidnightMarketUtils = exports.GroupUtils = exports.MidnightGroupUtils = exports.eip712Digest = exports.EcrecoverRatifierUtils = exports.MidnightEcrecoverRatifierUtils = exports.safeParseUnits = exports.safeParseNumber = exports.safeGetAddress = exports.restructure = exports.readContractRestructured = exports.optionalBoolean = exports.BlueMetaMorphoAction = exports.getPermitTypedData = exports.getPermit2TransferFromTypedData = exports.getPermit2PermitTypedData = exports.getDaiPermitTypedData = exports.getAuthorizationTypedData = exports.getBlueAuthorizationTypedData = exports.decodeBytes32String = exports.VaultV2Utils = exports.VaultV2BluePublicAllocatorConfigUtils = exports.VaultV2BlueMarketPublicAllocatorConfigUtils = exports.VaultUtils = exports.SharesMath = exports.BlueSharesMath = exports.MathLib = exports.MarketUtils = exports.BlueMarketUtils = exports.getBlueDefaultPreLiquidationParams = exports.blueDefaultPreLiquidationParamsRegistry = exports.CapacityLimitReason = exports.AdaptiveCurveIrmLib = exports.BlueAdaptiveCurveIrmLib = void 0;
|
|
4
|
+
exports.validateUserAddress = exports.validateSlippageTolerance = exports.validateRepayShares = exports.validateRepayAmount = exports.validateReallocations = exports.validatePositionHealthAfterWithdraw = exports.validatePositionHealth = exports.validateNativeAsset = exports.validateChainId = exports.validateAccrualPosition = exports.computeMinBorrowSharePrice = exports.computeMaxRepaySharePrice = exports.previewVaultV2InKindRedeem = exports.addTransactionMetadata = exports.computeVaultV1Reallocations = exports.computeReallocations = exports.values = exports.transformValue = exports.Time = exports.retryPromiseLinearBackoff = exports.mergeEntries = exports.keys = exports.isNotUndefined = exports.isNotNull = exports.isDefined = exports.hasValue = exports.getValue = exports.getSubdomainBaseUrl = exports.getLastDefined = exports.getLast = exports.fromEntries = exports.filterDefined = exports.entries = exports.deepFreeze = exports.createHasValue = exports.createGetValue = exports.bigIntComparator = void 0;
|
|
5
5
|
var blue_sdk_1 = require("@morpho-org/blue-sdk");
|
|
6
|
+
Object.defineProperty(exports, "BlueAdaptiveCurveIrmLib", { enumerable: true, get: function () { return blue_sdk_1.AdaptiveCurveIrmLib; } });
|
|
7
|
+
/** @deprecated Use BlueAdaptiveCurveIrmLib or the raw protocol subpath. */
|
|
6
8
|
Object.defineProperty(exports, "AdaptiveCurveIrmLib", { enumerable: true, get: function () { return blue_sdk_1.AdaptiveCurveIrmLib; } });
|
|
7
9
|
Object.defineProperty(exports, "CapacityLimitReason", { enumerable: true, get: function () { return blue_sdk_1.CapacityLimitReason; } });
|
|
10
|
+
Object.defineProperty(exports, "blueDefaultPreLiquidationParamsRegistry", { enumerable: true, get: function () { return blue_sdk_1.defaultPreLiquidationParamsRegistry; } });
|
|
11
|
+
Object.defineProperty(exports, "getBlueDefaultPreLiquidationParams", { enumerable: true, get: function () { return blue_sdk_1.getDefaultPreLiquidationParams; } });
|
|
12
|
+
Object.defineProperty(exports, "BlueMarketUtils", { enumerable: true, get: function () { return blue_sdk_1.MarketUtils; } });
|
|
13
|
+
/** @deprecated Use BlueMarketUtils or the raw protocol subpath. */
|
|
8
14
|
Object.defineProperty(exports, "MarketUtils", { enumerable: true, get: function () { return blue_sdk_1.MarketUtils; } });
|
|
9
15
|
Object.defineProperty(exports, "MathLib", { enumerable: true, get: function () { return blue_sdk_1.MathLib; } });
|
|
16
|
+
Object.defineProperty(exports, "BlueSharesMath", { enumerable: true, get: function () { return blue_sdk_1.SharesMath; } });
|
|
17
|
+
/** @deprecated Use BlueSharesMath or the raw protocol subpath. */
|
|
10
18
|
Object.defineProperty(exports, "SharesMath", { enumerable: true, get: function () { return blue_sdk_1.SharesMath; } });
|
|
11
19
|
Object.defineProperty(exports, "VaultUtils", { enumerable: true, get: function () { return blue_sdk_1.VaultUtils; } });
|
|
20
|
+
Object.defineProperty(exports, "VaultV2BlueMarketPublicAllocatorConfigUtils", { enumerable: true, get: function () { return blue_sdk_1.VaultV2BlueMarketPublicAllocatorConfigUtils; } });
|
|
21
|
+
Object.defineProperty(exports, "VaultV2BluePublicAllocatorConfigUtils", { enumerable: true, get: function () { return blue_sdk_1.VaultV2BluePublicAllocatorConfigUtils; } });
|
|
12
22
|
Object.defineProperty(exports, "VaultV2Utils", { enumerable: true, get: function () { return blue_sdk_1.VaultV2Utils; } });
|
|
13
23
|
var blue_sdk_viem_1 = require("@morpho-org/blue-sdk-viem");
|
|
14
24
|
Object.defineProperty(exports, "decodeBytes32String", { enumerable: true, get: function () { return blue_sdk_viem_1.decodeBytes32String; } });
|
|
25
|
+
Object.defineProperty(exports, "getBlueAuthorizationTypedData", { enumerable: true, get: function () { return blue_sdk_viem_1.getAuthorizationTypedData; } });
|
|
26
|
+
/** @deprecated Use getBlueAuthorizationTypedData or the raw protocol subpath. */
|
|
15
27
|
Object.defineProperty(exports, "getAuthorizationTypedData", { enumerable: true, get: function () { return blue_sdk_viem_1.getAuthorizationTypedData; } });
|
|
28
|
+
Object.defineProperty(exports, "getDaiPermitTypedData", { enumerable: true, get: function () { return blue_sdk_viem_1.getDaiPermitTypedData; } });
|
|
16
29
|
Object.defineProperty(exports, "getPermit2PermitTypedData", { enumerable: true, get: function () { return blue_sdk_viem_1.getPermit2PermitTypedData; } });
|
|
17
30
|
Object.defineProperty(exports, "getPermit2TransferFromTypedData", { enumerable: true, get: function () { return blue_sdk_viem_1.getPermit2TransferFromTypedData; } });
|
|
18
31
|
Object.defineProperty(exports, "getPermitTypedData", { enumerable: true, get: function () { return blue_sdk_viem_1.getPermitTypedData; } });
|
|
32
|
+
Object.defineProperty(exports, "BlueMetaMorphoAction", { enumerable: true, get: function () { return blue_sdk_viem_1.MetaMorphoAction; } });
|
|
19
33
|
Object.defineProperty(exports, "optionalBoolean", { enumerable: true, get: function () { return blue_sdk_viem_1.optionalBoolean; } });
|
|
20
34
|
Object.defineProperty(exports, "readContractRestructured", { enumerable: true, get: function () { return blue_sdk_viem_1.readContractRestructured; } });
|
|
21
35
|
Object.defineProperty(exports, "restructure", { enumerable: true, get: function () { return blue_sdk_viem_1.restructure; } });
|
|
@@ -23,14 +37,36 @@ Object.defineProperty(exports, "safeGetAddress", { enumerable: true, get: functi
|
|
|
23
37
|
Object.defineProperty(exports, "safeParseNumber", { enumerable: true, get: function () { return blue_sdk_viem_1.safeParseNumber; } });
|
|
24
38
|
Object.defineProperty(exports, "safeParseUnits", { enumerable: true, get: function () { return blue_sdk_viem_1.safeParseUnits; } });
|
|
25
39
|
var midnight_sdk_1 = require("@morpho-org/midnight-sdk");
|
|
40
|
+
Object.defineProperty(exports, "MidnightEcrecoverRatifierUtils", { enumerable: true, get: function () { return midnight_sdk_1.EcrecoverRatifierUtils; } });
|
|
41
|
+
/** @deprecated Use MidnightEcrecoverRatifierUtils or the raw protocol subpath. */
|
|
26
42
|
Object.defineProperty(exports, "EcrecoverRatifierUtils", { enumerable: true, get: function () { return midnight_sdk_1.EcrecoverRatifierUtils; } });
|
|
43
|
+
Object.defineProperty(exports, "eip712Digest", { enumerable: true, get: function () { return midnight_sdk_1.eip712Digest; } });
|
|
44
|
+
Object.defineProperty(exports, "MidnightGroupUtils", { enumerable: true, get: function () { return midnight_sdk_1.GroupUtils; } });
|
|
45
|
+
/** @deprecated Use MidnightGroupUtils or the raw protocol subpath. */
|
|
27
46
|
Object.defineProperty(exports, "GroupUtils", { enumerable: true, get: function () { return midnight_sdk_1.GroupUtils; } });
|
|
47
|
+
Object.defineProperty(exports, "MidnightMarketUtils", { enumerable: true, get: function () { return midnight_sdk_1.MarketUtils; } });
|
|
48
|
+
Object.defineProperty(exports, "MidnightOfferChainUtils", { enumerable: true, get: function () { return midnight_sdk_1.OfferChainUtils; } });
|
|
49
|
+
Object.defineProperty(exports, "MidnightOfferUtils", { enumerable: true, get: function () { return midnight_sdk_1.OfferUtils; } });
|
|
50
|
+
/** @deprecated Use MidnightOfferUtils or the raw protocol subpath. */
|
|
28
51
|
Object.defineProperty(exports, "OfferUtils", { enumerable: true, get: function () { return midnight_sdk_1.OfferUtils; } });
|
|
52
|
+
Object.defineProperty(exports, "MidnightPayload", { enumerable: true, get: function () { return midnight_sdk_1.Payload; } });
|
|
53
|
+
/** @deprecated Use MidnightPayload or the raw protocol subpath. */
|
|
29
54
|
Object.defineProperty(exports, "Payload", { enumerable: true, get: function () { return midnight_sdk_1.Payload; } });
|
|
55
|
+
Object.defineProperty(exports, "MidnightPositionUtils", { enumerable: true, get: function () { return midnight_sdk_1.PositionUtils; } });
|
|
56
|
+
Object.defineProperty(exports, "MidnightRatifierUtils", { enumerable: true, get: function () { return midnight_sdk_1.RatifierUtils; } });
|
|
57
|
+
/** @deprecated Use MidnightRatifierUtils or the raw protocol subpath. */
|
|
30
58
|
Object.defineProperty(exports, "RatifierUtils", { enumerable: true, get: function () { return midnight_sdk_1.RatifierUtils; } });
|
|
59
|
+
Object.defineProperty(exports, "MidnightSetterRatifierUtils", { enumerable: true, get: function () { return midnight_sdk_1.SetterRatifierUtils; } });
|
|
60
|
+
/** @deprecated Use MidnightSetterRatifierUtils or the raw protocol subpath. */
|
|
31
61
|
Object.defineProperty(exports, "SetterRatifierUtils", { enumerable: true, get: function () { return midnight_sdk_1.SetterRatifierUtils; } });
|
|
62
|
+
Object.defineProperty(exports, "MidnightTakeAmountsLib", { enumerable: true, get: function () { return midnight_sdk_1.TakeAmountsLib; } });
|
|
63
|
+
/** @deprecated Use MidnightTakeAmountsLib or the raw protocol subpath. */
|
|
32
64
|
Object.defineProperty(exports, "TakeAmountsLib", { enumerable: true, get: function () { return midnight_sdk_1.TakeAmountsLib; } });
|
|
65
|
+
Object.defineProperty(exports, "MidnightTickLib", { enumerable: true, get: function () { return midnight_sdk_1.TickLib; } });
|
|
66
|
+
/** @deprecated Use MidnightTickLib or the raw protocol subpath. */
|
|
33
67
|
Object.defineProperty(exports, "TickLib", { enumerable: true, get: function () { return midnight_sdk_1.TickLib; } });
|
|
68
|
+
Object.defineProperty(exports, "MidnightTreeUtils", { enumerable: true, get: function () { return midnight_sdk_1.TreeUtils; } });
|
|
69
|
+
/** @deprecated Use MidnightTreeUtils or the raw protocol subpath. */
|
|
34
70
|
Object.defineProperty(exports, "TreeUtils", { enumerable: true, get: function () { return midnight_sdk_1.TreeUtils; } });
|
|
35
71
|
var morpho_ts_1 = require("@morpho-org/morpho-ts");
|
|
36
72
|
Object.defineProperty(exports, "bigIntComparator", { enumerable: true, get: function () { return morpho_ts_1.bigIntComparator; } });
|
|
@@ -59,6 +95,8 @@ Object.defineProperty(exports, "computeReallocations", { enumerable: true, get:
|
|
|
59
95
|
Object.defineProperty(exports, "computeVaultV1Reallocations", { enumerable: true, get: function () { return computeVaultV1Reallocations_js_1.computeVaultV1Reallocations; } });
|
|
60
96
|
var metadata_js_1 = require("./helpers/metadata.js");
|
|
61
97
|
Object.defineProperty(exports, "addTransactionMetadata", { enumerable: true, get: function () { return metadata_js_1.addTransactionMetadata; } });
|
|
98
|
+
var previewVaultV2InKindRedeem_js_1 = require("./helpers/previewVaultV2InKindRedeem.js");
|
|
99
|
+
Object.defineProperty(exports, "previewVaultV2InKindRedeem", { enumerable: true, get: function () { return previewVaultV2InKindRedeem_js_1.previewVaultV2InKindRedeem; } });
|
|
62
100
|
var slippage_js_1 = require("./helpers/slippage.js");
|
|
63
101
|
Object.defineProperty(exports, "computeMaxRepaySharePrice", { enumerable: true, get: function () { return slippage_js_1.computeMaxRepaySharePrice; } });
|
|
64
102
|
Object.defineProperty(exports, "computeMinBorrowSharePrice", { enumerable: true, get: function () { return slippage_js_1.computeMinBorrowSharePrice; } });
|
package/lib/esm/abis.d.ts
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
|
-
export { marketParamsAbi
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export { marketParamsAbi as blueMarketParamsAbi,
|
|
2
|
+
/** @deprecated Use `blueMarketParamsAbi` or the raw `/blue/abis` subpath. */
|
|
3
|
+
marketParamsAbi, } from "@morpho-org/blue-sdk";
|
|
4
|
+
export { adaptiveCurveIrmAbi as blueAdaptiveCurveIrmAbi,
|
|
5
|
+
/** @deprecated Use `blueAdaptiveCurveIrmAbi` or the raw `/blue/abis` subpath. */
|
|
6
|
+
adaptiveCurveIrmAbi, blueAbi, blueOracleAbi, erc2612Abi, erc5267Abi, metaMorphoAbi, metaMorphoFactoryAbi, morphoMarketV1AdapterAbi, morphoMarketV1AdapterFactoryAbi, morphoMarketV1AdapterV2Abi, morphoMarketV1AdapterV2FactoryAbi, morphoVaultV1AdapterAbi, morphoVaultV1AdapterFactoryAbi, permissionedErc20WrapperAbi, permit2Abi, preLiquidationAbi as bluePreLiquidationAbi,
|
|
7
|
+
/** @deprecated Use `bluePreLiquidationAbi` or the raw `/blue/abis` subpath. */
|
|
8
|
+
preLiquidationAbi, preLiquidationFactoryAbi as bluePreLiquidationFactoryAbi,
|
|
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";
|
|
11
|
+
export { ecrecoverRatifierAbi as midnightEcrecoverRatifierAbi,
|
|
12
|
+
/** @deprecated Use `midnightEcrecoverRatifierAbi` or the raw `/midnight/abis` subpath. */
|
|
13
|
+
ecrecoverRatifierAbi, midnightAbi, midnightBundlesAbi, setterRatifierAbi as midnightSetterRatifierAbi,
|
|
14
|
+
/** @deprecated Use `midnightSetterRatifierAbi` or the raw `/midnight/abis` subpath. */
|
|
15
|
+
setterRatifierAbi, } from "@morpho-org/midnight-sdk";
|
|
4
16
|
/** ABI for the VaultExitBundlesV1 periphery contract. */
|
|
5
17
|
export declare const vaultExitBundlesV1Abi: readonly [{
|
|
6
18
|
readonly type: "constructor";
|
package/lib/esm/abis.js
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
|
-
export { marketParamsAbi
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export { marketParamsAbi as blueMarketParamsAbi,
|
|
2
|
+
/** @deprecated Use `blueMarketParamsAbi` or the raw `/blue/abis` subpath. */
|
|
3
|
+
marketParamsAbi, } from "@morpho-org/blue-sdk";
|
|
4
|
+
export { adaptiveCurveIrmAbi as blueAdaptiveCurveIrmAbi,
|
|
5
|
+
/** @deprecated Use `blueAdaptiveCurveIrmAbi` or the raw `/blue/abis` subpath. */
|
|
6
|
+
adaptiveCurveIrmAbi, blueAbi, blueOracleAbi, erc2612Abi, erc5267Abi, metaMorphoAbi, metaMorphoFactoryAbi, morphoMarketV1AdapterAbi, morphoMarketV1AdapterFactoryAbi, morphoMarketV1AdapterV2Abi, morphoMarketV1AdapterV2FactoryAbi, morphoVaultV1AdapterAbi, morphoVaultV1AdapterFactoryAbi, permissionedErc20WrapperAbi, permit2Abi, preLiquidationAbi as bluePreLiquidationAbi,
|
|
7
|
+
/** @deprecated Use `bluePreLiquidationAbi` or the raw `/blue/abis` subpath. */
|
|
8
|
+
preLiquidationAbi, preLiquidationFactoryAbi as bluePreLiquidationFactoryAbi,
|
|
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";
|
|
11
|
+
export { ecrecoverRatifierAbi as midnightEcrecoverRatifierAbi,
|
|
12
|
+
/** @deprecated Use `midnightEcrecoverRatifierAbi` or the raw `/midnight/abis` subpath. */
|
|
13
|
+
ecrecoverRatifierAbi, midnightAbi, midnightBundlesAbi, setterRatifierAbi as midnightSetterRatifierAbi,
|
|
14
|
+
/** @deprecated Use `midnightSetterRatifierAbi` or the raw `/midnight/abis` subpath. */
|
|
15
|
+
setterRatifierAbi, } from "@morpho-org/midnight-sdk";
|
|
4
16
|
/** ABI for the VaultExitBundlesV1 periphery contract. */
|
|
5
17
|
export const vaultExitBundlesV1Abi = [
|
|
6
18
|
{
|