@morpho-org/blue-sdk 5.23.1 → 5.23.3
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 +11 -2
- package/lib/cjs/addresses.d.ts +184 -0
- package/lib/cjs/addresses.js +102 -0
- package/lib/cjs/chain.d.ts +37 -1
- package/lib/cjs/chain.js +24 -0
- package/lib/cjs/errors.js +2 -0
- package/lib/cjs/holding/index.d.ts +1 -1
- package/lib/cjs/holding/index.js +1 -1
- package/lib/cjs/index.d.ts +6 -6
- package/lib/cjs/index.js +6 -6
- package/lib/cjs/market/Market.js +15 -0
- package/lib/cjs/market/MarketParams.d.ts +1 -1
- package/lib/cjs/market/MarketParams.js +1 -1
- package/lib/cjs/market/MarketUtils.d.ts +26 -2
- package/lib/cjs/market/MarketUtils.js +49 -6
- package/lib/cjs/market/index.d.ts +2 -2
- package/lib/cjs/market/index.js +2 -2
- package/lib/cjs/math/AdaptiveCurveIrmLib.js +8 -0
- package/lib/cjs/math/MathLib.js +14 -0
- package/lib/cjs/math/SharesMath.js +2 -0
- package/lib/cjs/math/index.d.ts +1 -1
- package/lib/cjs/math/index.js +1 -1
- package/lib/cjs/position/Position.js +9 -0
- package/lib/cjs/position/PreLiquidationPosition.d.ts +1 -0
- package/lib/cjs/position/PreLiquidationPosition.js +8 -0
- package/lib/cjs/preLiquidation.js +1 -0
- package/lib/cjs/token/ConstantWrappedToken.js +5 -0
- package/lib/cjs/token/ExchangeRateWrappedToken.js +1 -0
- package/lib/cjs/token/WrappedToken.js +4 -0
- package/lib/cjs/token/index.d.ts +3 -3
- package/lib/cjs/token/index.js +3 -3
- package/lib/cjs/vault/Vault.js +1 -0
- package/lib/cjs/vault/VaultUtils.js +8 -2
- package/lib/cjs/vault/index.d.ts +2 -2
- package/lib/cjs/vault/index.js +2 -2
- package/lib/cjs/vault/v2/VaultV2.js +2 -0
- package/lib/cjs/vault/v2/VaultV2MorphoMarketV1Adapter.d.ts +1 -1
- package/lib/cjs/vault/v2/VaultV2MorphoMarketV1Adapter.js +3 -1
- package/lib/cjs/vault/v2/VaultV2MorphoMarketV1AdapterV2.d.ts +1 -1
- package/lib/cjs/vault/v2/VaultV2MorphoMarketV1AdapterV2.js +1 -0
- package/lib/cjs/vault/v2/VaultV2MorphoVaultV1Adapter.js +1 -0
- package/lib/esm/addresses.d.ts +184 -0
- package/lib/esm/addresses.js +102 -0
- package/lib/esm/chain.d.ts +37 -1
- package/lib/esm/chain.js +24 -0
- package/lib/esm/errors.js +2 -0
- package/lib/esm/holding/index.d.ts +1 -1
- package/lib/esm/holding/index.js +1 -1
- package/lib/esm/index.d.ts +6 -6
- package/lib/esm/index.js +6 -6
- package/lib/esm/market/Market.js +15 -0
- package/lib/esm/market/MarketParams.d.ts +1 -1
- package/lib/esm/market/MarketParams.js +1 -1
- package/lib/esm/market/MarketUtils.d.ts +26 -2
- package/lib/esm/market/MarketUtils.js +48 -5
- package/lib/esm/market/index.d.ts +2 -2
- package/lib/esm/market/index.js +2 -2
- package/lib/esm/math/AdaptiveCurveIrmLib.js +8 -0
- package/lib/esm/math/MathLib.js +14 -0
- package/lib/esm/math/SharesMath.js +2 -0
- package/lib/esm/math/index.d.ts +1 -1
- package/lib/esm/math/index.js +1 -1
- package/lib/esm/position/Position.js +9 -0
- package/lib/esm/position/PreLiquidationPosition.d.ts +1 -0
- package/lib/esm/position/PreLiquidationPosition.js +8 -0
- package/lib/esm/preLiquidation.js +1 -0
- package/lib/esm/token/ConstantWrappedToken.js +5 -0
- package/lib/esm/token/ExchangeRateWrappedToken.js +1 -0
- package/lib/esm/token/WrappedToken.js +4 -0
- package/lib/esm/token/index.d.ts +3 -3
- package/lib/esm/token/index.js +3 -3
- package/lib/esm/vault/Vault.js +1 -0
- package/lib/esm/vault/VaultUtils.js +8 -2
- package/lib/esm/vault/index.d.ts +2 -2
- package/lib/esm/vault/index.js +2 -2
- package/lib/esm/vault/v2/VaultV2.js +2 -0
- package/lib/esm/vault/v2/VaultV2MorphoMarketV1Adapter.d.ts +1 -1
- package/lib/esm/vault/v2/VaultV2MorphoMarketV1Adapter.js +3 -1
- package/lib/esm/vault/v2/VaultV2MorphoMarketV1AdapterV2.d.ts +1 -1
- package/lib/esm/vault/v2/VaultV2MorphoMarketV1AdapterV2.js +1 -0
- package/lib/esm/vault/v2/VaultV2MorphoVaultV1Adapter.js +1 -0
- package/package.json +6 -6
- package/src/index.ts +6 -6
|
@@ -3,8 +3,8 @@ import { type IMarketParams, MarketParams } from "../../market/index.js";
|
|
|
3
3
|
import type { AccrualPosition } from "../../position/index.js";
|
|
4
4
|
import type { BigIntish } from "../../types.js";
|
|
5
5
|
import { CapacityLimitReason } from "../../utils.js";
|
|
6
|
-
import { VaultV2Adapter } from "./VaultV2Adapter.js";
|
|
7
6
|
import type { IAccrualVaultV2Adapter, IVaultV2Adapter } from "./VaultV2Adapter.js";
|
|
7
|
+
import { VaultV2Adapter } from "./VaultV2Adapter.js";
|
|
8
8
|
export interface IVaultV2MorphoMarketV1Adapter extends Omit<IVaultV2Adapter, "adapterId" | "type"> {
|
|
9
9
|
type?: "VaultV2MorphoMarketV1Adapter";
|
|
10
10
|
marketParamsList: IMarketParams[];
|
|
@@ -50,7 +50,9 @@ class AccrualVaultV2MorphoMarketV1Adapter extends VaultV2MorphoMarketV1Adapter {
|
|
|
50
50
|
}
|
|
51
51
|
maxWithdraw(data) {
|
|
52
52
|
const marketId = index_js_1.MarketParams.fromHex(data).id;
|
|
53
|
-
const position = this.positions.find(
|
|
53
|
+
const position = this.positions.find(
|
|
54
|
+
// biome-ignore lint/nursery/noShadow: TODO rename to avoid shadowing
|
|
55
|
+
(position) => position.marketId === marketId);
|
|
54
56
|
return (position?.market?.getWithdrawCapacityLimit(position) ?? {
|
|
55
57
|
value: 0n,
|
|
56
58
|
limiter: utils_js_1.CapacityLimitReason.position,
|
|
@@ -2,8 +2,8 @@ import { type Address, type Hex } from "viem";
|
|
|
2
2
|
import { type Market, MarketParams } from "../../market/index.js";
|
|
3
3
|
import type { BigIntish, MarketId } from "../../types.js";
|
|
4
4
|
import { CapacityLimitReason } from "../../utils.js";
|
|
5
|
-
import { VaultV2Adapter } from "./VaultV2Adapter.js";
|
|
6
5
|
import type { IAccrualVaultV2Adapter, IVaultV2Adapter } from "./VaultV2Adapter.js";
|
|
6
|
+
import { VaultV2Adapter } from "./VaultV2Adapter.js";
|
|
7
7
|
export interface IVaultV2MorphoMarketV1AdapterV2 extends Omit<IVaultV2Adapter, "adapterId" | "type"> {
|
|
8
8
|
type?: "VaultV2MorphoMarketV1AdapterV2";
|
|
9
9
|
marketIds: MarketId[];
|
|
@@ -57,6 +57,7 @@ class AccrualVaultV2MorphoMarketV1AdapterV2 extends VaultV2MorphoMarketV1Adapter
|
|
|
57
57
|
}
|
|
58
58
|
maxWithdraw(data) {
|
|
59
59
|
const marketId = index_js_1.MarketParams.fromHex(data).id;
|
|
60
|
+
// biome-ignore lint/nursery/noShadow: TODO rename to avoid shadowing
|
|
60
61
|
const market = this.markets.find((market) => market.id === marketId);
|
|
61
62
|
return (market?.getWithdrawCapacityLimit({
|
|
62
63
|
supplyShares: this.supplyShares[marketId] ?? 0n,
|
|
@@ -24,6 +24,7 @@ exports.VaultV2MorphoVaultV1Adapter = VaultV2MorphoVaultV1Adapter;
|
|
|
24
24
|
class AccrualVaultV2MorphoVaultV1Adapter extends VaultV2MorphoVaultV1Adapter {
|
|
25
25
|
accrualVaultV1;
|
|
26
26
|
shares;
|
|
27
|
+
// biome-ignore lint/complexity/useMaxParams: TODO refactor to ≤2 params
|
|
27
28
|
constructor(adapter, accrualVaultV1, shares) {
|
|
28
29
|
super(adapter);
|
|
29
30
|
this.accrualVaultV1 = accrualVaultV1;
|
package/lib/esm/addresses.d.ts
CHANGED
|
@@ -630,6 +630,7 @@ declare const _addressesRegistry: {
|
|
|
630
630
|
readonly adaptiveCurveIrm: "0x112fd4042E442C3C12C67AD23587b0afe36eB74E";
|
|
631
631
|
readonly vaultV2Factory: "0x3DE400E3F79113194fa5AF6Ae5C474947E0C82Db";
|
|
632
632
|
readonly morphoMarketV1AdapterV2Factory: "0xF85aD5f14cC903533FC409B8098B58b4C2f36697";
|
|
633
|
+
readonly morphoVaultV1AdapterFactory: "0x669771F03ab55CebF753E90C3c9D80ad9391cf25";
|
|
633
634
|
readonly registryList: "0xB118227C728b5ce52445a5aAee48C8a281C429E0";
|
|
634
635
|
readonly chainlinkOracleFactory: "0xc2c167BC5cBD833ce58239e85073258F10aD4DF6";
|
|
635
636
|
readonly preLiquidationFactory: "0xB83d2D5CAE5Fc64a408cA82447445442Fe249fe3";
|
|
@@ -679,6 +680,51 @@ declare const _addressesRegistry: {
|
|
|
679
680
|
readonly preLiquidationFactory: "0x57C88ACAbd4Fa19257104ECCF64ccA34e5eB8961";
|
|
680
681
|
readonly wNative: "0x4200000000000000000000000000000000000006";
|
|
681
682
|
};
|
|
683
|
+
readonly 14: {
|
|
684
|
+
readonly morpho: "0xF4346F5132e810f80a28487a79c7559d9797E8B0";
|
|
685
|
+
readonly permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3";
|
|
686
|
+
readonly bundler3: {
|
|
687
|
+
readonly bundler3: "0xb371CFee69984D1F3447D49217889C7388bA2027";
|
|
688
|
+
readonly generalAdapter1: "0x43F4861c9E7f584cFDc9B6BA3F0c2462895BDd67";
|
|
689
|
+
};
|
|
690
|
+
readonly adaptiveCurveIrm: "0xE5B5627C5973AfAE1928a6b8e5c1D6AABFEC8a7a";
|
|
691
|
+
readonly vaultV2Factory: "0x6FC83ECc0e8142635D77200e5052be8A0a9D2f42";
|
|
692
|
+
readonly morphoMarketV1AdapterV2Factory: "0xd8237ea1b5974c83C6b0c8942dc2a16F42f789dd";
|
|
693
|
+
readonly registryList: "0x9730d0B30d9145B66a8e09D26295e36cb84F64a9";
|
|
694
|
+
readonly chainlinkOracleFactory: "0x95cB3625598F9abf6cb8B874AA1EfEEbE7822642";
|
|
695
|
+
readonly preLiquidationFactory: "0xf215D05a04b97f98Bb1bF4E0E5Cb97Ef38fa8895";
|
|
696
|
+
readonly wNative: "0x1D80c49BbBCd1C0911346656B529DF9E5c2F783d";
|
|
697
|
+
};
|
|
698
|
+
readonly 50: {
|
|
699
|
+
readonly morpho: "0xEa49B0fE898aF913A3826F9f462eE2cDcb854fD9";
|
|
700
|
+
readonly permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3";
|
|
701
|
+
readonly bundler3: {
|
|
702
|
+
readonly bundler3: "0xed9bdc3E6081db528b6D5CDDf47EcB05337c62A7";
|
|
703
|
+
readonly generalAdapter1: "0xAB2Ab6A8bb1082C5d8400D6206c6A13cE413e0c0";
|
|
704
|
+
};
|
|
705
|
+
readonly adaptiveCurveIrm: "0x15c7312B0f26aa0AA70B24a0D2AF87B9e7D614A0";
|
|
706
|
+
readonly vaultV2Factory: "0x227544d6989cD15c05AAB6dde4F29523dcfdbe2B";
|
|
707
|
+
readonly morphoMarketV1AdapterV2Factory: "0x5C00c99F2235439725417E9f037B7D38FfF35d31";
|
|
708
|
+
readonly registryList: "0x79A8C4e9E502C1867cAf2E7202f0C6b89aaCd5c1";
|
|
709
|
+
readonly chainlinkOracleFactory: "0x6Ad93a3aA829514473D3DF67382894A76c7283B4";
|
|
710
|
+
readonly preLiquidationFactory: "0xe3845262d726a827817C7196143CDa9a4404218d";
|
|
711
|
+
readonly wNative: "0x951857744785E80e2De051c32EE7b25f9c458C42";
|
|
712
|
+
};
|
|
713
|
+
readonly 8217: {
|
|
714
|
+
readonly morpho: "0xA8BEebdca34d83C697c302A0594f3c41f3994cd2";
|
|
715
|
+
readonly permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3";
|
|
716
|
+
readonly bundler3: {
|
|
717
|
+
readonly bundler3: "0x27880B18ae04a05F1D603B87AEb2a27491FfaBA9";
|
|
718
|
+
readonly generalAdapter1: "0x8e36C2c6d7771820BF14a75f725f3cf0374a7823";
|
|
719
|
+
};
|
|
720
|
+
readonly adaptiveCurveIrm: "0xA4E2bA20Fc64D721D95BD5a28FF71844C5bb5cF2";
|
|
721
|
+
readonly vaultV2Factory: "0xf2Aecd4a4d4C21d08770e34F392C4C271aBD9144";
|
|
722
|
+
readonly morphoMarketV1AdapterV2Factory: "0x4d04C39ca604b560c50F4045c558378FD9AEBCF4";
|
|
723
|
+
readonly registryList: "0xfCA12228DA5fba6E9c0B57a8e8322d0eBaCa03Bc";
|
|
724
|
+
readonly chainlinkOracleFactory: "0x3e89C1071814b2c4170c90260Fcb60B903AD4602";
|
|
725
|
+
readonly preLiquidationFactory: "0xe8eCe452F04117e5Fe1Ea4403097215443225440";
|
|
726
|
+
readonly wNative: "0x19Aac5f612f524B754CA7e7c41cbFa2E981A4432";
|
|
727
|
+
};
|
|
682
728
|
};
|
|
683
729
|
export type ChainDeployments<Addresses = ChainAddresses> = {
|
|
684
730
|
[key in keyof Addresses]: Address extends Addresses[key] ? bigint : ChainDeployments<Addresses[key]>;
|
|
@@ -1183,6 +1229,7 @@ declare const _deployments: {
|
|
|
1183
1229
|
readonly adaptiveCurveIrm: 2375313n;
|
|
1184
1230
|
readonly vaultV2Factory: 2375650n;
|
|
1185
1231
|
readonly morphoMarketV1AdapterV2Factory: 2375701n;
|
|
1232
|
+
readonly morphoVaultV1AdapterFactory: 16475630n;
|
|
1186
1233
|
readonly registryList: 2375601n;
|
|
1187
1234
|
readonly chainlinkOracleFactory: 2375626n;
|
|
1188
1235
|
readonly preLiquidationFactory: 2375010n;
|
|
@@ -1232,6 +1279,51 @@ declare const _deployments: {
|
|
|
1232
1279
|
readonly preLiquidationFactory: 7520548n;
|
|
1233
1280
|
readonly wNative: 0n;
|
|
1234
1281
|
};
|
|
1282
|
+
readonly 14: {
|
|
1283
|
+
readonly morpho: 52378788n;
|
|
1284
|
+
readonly permit2: 58377404n;
|
|
1285
|
+
readonly bundler3: {
|
|
1286
|
+
readonly bundler3: 52378788n;
|
|
1287
|
+
readonly generalAdapter1: 52378788n;
|
|
1288
|
+
};
|
|
1289
|
+
readonly adaptiveCurveIrm: 52378788n;
|
|
1290
|
+
readonly vaultV2Factory: 52383002n;
|
|
1291
|
+
readonly morphoMarketV1AdapterV2Factory: 52383110n;
|
|
1292
|
+
readonly registryList: 52383110n;
|
|
1293
|
+
readonly chainlinkOracleFactory: 52378931n;
|
|
1294
|
+
readonly preLiquidationFactory: 52378931n;
|
|
1295
|
+
readonly wNative: 39n;
|
|
1296
|
+
};
|
|
1297
|
+
readonly 50: {
|
|
1298
|
+
readonly morpho: 101757515n;
|
|
1299
|
+
readonly permit2: 92945178n;
|
|
1300
|
+
readonly bundler3: {
|
|
1301
|
+
readonly bundler3: 101757515n;
|
|
1302
|
+
readonly generalAdapter1: 101757515n;
|
|
1303
|
+
};
|
|
1304
|
+
readonly adaptiveCurveIrm: 101757515n;
|
|
1305
|
+
readonly vaultV2Factory: 101757669n;
|
|
1306
|
+
readonly morphoMarketV1AdapterV2Factory: 101757823n;
|
|
1307
|
+
readonly registryList: 101757823n;
|
|
1308
|
+
readonly chainlinkOracleFactory: 101757578n;
|
|
1309
|
+
readonly preLiquidationFactory: 101757578n;
|
|
1310
|
+
readonly wNative: 42776215n;
|
|
1311
|
+
};
|
|
1312
|
+
readonly 8217: {
|
|
1313
|
+
readonly morpho: 208021118n;
|
|
1314
|
+
readonly permit2: 188994815n;
|
|
1315
|
+
readonly bundler3: {
|
|
1316
|
+
readonly bundler3: 208021118n;
|
|
1317
|
+
readonly generalAdapter1: 208021118n;
|
|
1318
|
+
};
|
|
1319
|
+
readonly adaptiveCurveIrm: 208021118n;
|
|
1320
|
+
readonly vaultV2Factory: 213463014n;
|
|
1321
|
+
readonly morphoMarketV1AdapterV2Factory: 213463079n;
|
|
1322
|
+
readonly registryList: 213463079n;
|
|
1323
|
+
readonly chainlinkOracleFactory: 213462907n;
|
|
1324
|
+
readonly preLiquidationFactory: 213462907n;
|
|
1325
|
+
readonly wNative: 104802159n;
|
|
1326
|
+
};
|
|
1235
1327
|
};
|
|
1236
1328
|
export type AddressLabel = DottedKeys<(typeof _addressesRegistry)[ChainId]>;
|
|
1237
1329
|
export declare const getChainAddresses: (chainId: number) => ChainAddresses;
|
|
@@ -1841,6 +1933,7 @@ export declare let addressesRegistry: {
|
|
|
1841
1933
|
readonly adaptiveCurveIrm: "0x112fd4042E442C3C12C67AD23587b0afe36eB74E";
|
|
1842
1934
|
readonly vaultV2Factory: "0x3DE400E3F79113194fa5AF6Ae5C474947E0C82Db";
|
|
1843
1935
|
readonly morphoMarketV1AdapterV2Factory: "0xF85aD5f14cC903533FC409B8098B58b4C2f36697";
|
|
1936
|
+
readonly morphoVaultV1AdapterFactory: "0x669771F03ab55CebF753E90C3c9D80ad9391cf25";
|
|
1844
1937
|
readonly registryList: "0xB118227C728b5ce52445a5aAee48C8a281C429E0";
|
|
1845
1938
|
readonly chainlinkOracleFactory: "0xc2c167BC5cBD833ce58239e85073258F10aD4DF6";
|
|
1846
1939
|
readonly preLiquidationFactory: "0xB83d2D5CAE5Fc64a408cA82447445442Fe249fe3";
|
|
@@ -1890,6 +1983,51 @@ export declare let addressesRegistry: {
|
|
|
1890
1983
|
readonly preLiquidationFactory: "0x57C88ACAbd4Fa19257104ECCF64ccA34e5eB8961";
|
|
1891
1984
|
readonly wNative: "0x4200000000000000000000000000000000000006";
|
|
1892
1985
|
};
|
|
1986
|
+
readonly 14: {
|
|
1987
|
+
readonly morpho: "0xF4346F5132e810f80a28487a79c7559d9797E8B0";
|
|
1988
|
+
readonly permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3";
|
|
1989
|
+
readonly bundler3: {
|
|
1990
|
+
readonly bundler3: "0xb371CFee69984D1F3447D49217889C7388bA2027";
|
|
1991
|
+
readonly generalAdapter1: "0x43F4861c9E7f584cFDc9B6BA3F0c2462895BDd67";
|
|
1992
|
+
};
|
|
1993
|
+
readonly adaptiveCurveIrm: "0xE5B5627C5973AfAE1928a6b8e5c1D6AABFEC8a7a";
|
|
1994
|
+
readonly vaultV2Factory: "0x6FC83ECc0e8142635D77200e5052be8A0a9D2f42";
|
|
1995
|
+
readonly morphoMarketV1AdapterV2Factory: "0xd8237ea1b5974c83C6b0c8942dc2a16F42f789dd";
|
|
1996
|
+
readonly registryList: "0x9730d0B30d9145B66a8e09D26295e36cb84F64a9";
|
|
1997
|
+
readonly chainlinkOracleFactory: "0x95cB3625598F9abf6cb8B874AA1EfEEbE7822642";
|
|
1998
|
+
readonly preLiquidationFactory: "0xf215D05a04b97f98Bb1bF4E0E5Cb97Ef38fa8895";
|
|
1999
|
+
readonly wNative: "0x1D80c49BbBCd1C0911346656B529DF9E5c2F783d";
|
|
2000
|
+
};
|
|
2001
|
+
readonly 50: {
|
|
2002
|
+
readonly morpho: "0xEa49B0fE898aF913A3826F9f462eE2cDcb854fD9";
|
|
2003
|
+
readonly permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3";
|
|
2004
|
+
readonly bundler3: {
|
|
2005
|
+
readonly bundler3: "0xed9bdc3E6081db528b6D5CDDf47EcB05337c62A7";
|
|
2006
|
+
readonly generalAdapter1: "0xAB2Ab6A8bb1082C5d8400D6206c6A13cE413e0c0";
|
|
2007
|
+
};
|
|
2008
|
+
readonly adaptiveCurveIrm: "0x15c7312B0f26aa0AA70B24a0D2AF87B9e7D614A0";
|
|
2009
|
+
readonly vaultV2Factory: "0x227544d6989cD15c05AAB6dde4F29523dcfdbe2B";
|
|
2010
|
+
readonly morphoMarketV1AdapterV2Factory: "0x5C00c99F2235439725417E9f037B7D38FfF35d31";
|
|
2011
|
+
readonly registryList: "0x79A8C4e9E502C1867cAf2E7202f0C6b89aaCd5c1";
|
|
2012
|
+
readonly chainlinkOracleFactory: "0x6Ad93a3aA829514473D3DF67382894A76c7283B4";
|
|
2013
|
+
readonly preLiquidationFactory: "0xe3845262d726a827817C7196143CDa9a4404218d";
|
|
2014
|
+
readonly wNative: "0x951857744785E80e2De051c32EE7b25f9c458C42";
|
|
2015
|
+
};
|
|
2016
|
+
readonly 8217: {
|
|
2017
|
+
readonly morpho: "0xA8BEebdca34d83C697c302A0594f3c41f3994cd2";
|
|
2018
|
+
readonly permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3";
|
|
2019
|
+
readonly bundler3: {
|
|
2020
|
+
readonly bundler3: "0x27880B18ae04a05F1D603B87AEb2a27491FfaBA9";
|
|
2021
|
+
readonly generalAdapter1: "0x8e36C2c6d7771820BF14a75f725f3cf0374a7823";
|
|
2022
|
+
};
|
|
2023
|
+
readonly adaptiveCurveIrm: "0xA4E2bA20Fc64D721D95BD5a28FF71844C5bb5cF2";
|
|
2024
|
+
readonly vaultV2Factory: "0xf2Aecd4a4d4C21d08770e34F392C4C271aBD9144";
|
|
2025
|
+
readonly morphoMarketV1AdapterV2Factory: "0x4d04C39ca604b560c50F4045c558378FD9AEBCF4";
|
|
2026
|
+
readonly registryList: "0xfCA12228DA5fba6E9c0B57a8e8322d0eBaCa03Bc";
|
|
2027
|
+
readonly chainlinkOracleFactory: "0x3e89C1071814b2c4170c90260Fcb60B903AD4602";
|
|
2028
|
+
readonly preLiquidationFactory: "0xe8eCe452F04117e5Fe1Ea4403097215443225440";
|
|
2029
|
+
readonly wNative: "0x19Aac5f612f524B754CA7e7c41cbFa2E981A4432";
|
|
2030
|
+
};
|
|
1893
2031
|
};
|
|
1894
2032
|
export declare let addresses: Record<number, ChainAddresses>;
|
|
1895
2033
|
export declare let deployments: {
|
|
@@ -2392,6 +2530,7 @@ export declare let deployments: {
|
|
|
2392
2530
|
readonly adaptiveCurveIrm: 2375313n;
|
|
2393
2531
|
readonly vaultV2Factory: 2375650n;
|
|
2394
2532
|
readonly morphoMarketV1AdapterV2Factory: 2375701n;
|
|
2533
|
+
readonly morphoVaultV1AdapterFactory: 16475630n;
|
|
2395
2534
|
readonly registryList: 2375601n;
|
|
2396
2535
|
readonly chainlinkOracleFactory: 2375626n;
|
|
2397
2536
|
readonly preLiquidationFactory: 2375010n;
|
|
@@ -2441,6 +2580,51 @@ export declare let deployments: {
|
|
|
2441
2580
|
readonly preLiquidationFactory: 7520548n;
|
|
2442
2581
|
readonly wNative: 0n;
|
|
2443
2582
|
};
|
|
2583
|
+
readonly 14: {
|
|
2584
|
+
readonly morpho: 52378788n;
|
|
2585
|
+
readonly permit2: 58377404n;
|
|
2586
|
+
readonly bundler3: {
|
|
2587
|
+
readonly bundler3: 52378788n;
|
|
2588
|
+
readonly generalAdapter1: 52378788n;
|
|
2589
|
+
};
|
|
2590
|
+
readonly adaptiveCurveIrm: 52378788n;
|
|
2591
|
+
readonly vaultV2Factory: 52383002n;
|
|
2592
|
+
readonly morphoMarketV1AdapterV2Factory: 52383110n;
|
|
2593
|
+
readonly registryList: 52383110n;
|
|
2594
|
+
readonly chainlinkOracleFactory: 52378931n;
|
|
2595
|
+
readonly preLiquidationFactory: 52378931n;
|
|
2596
|
+
readonly wNative: 39n;
|
|
2597
|
+
};
|
|
2598
|
+
readonly 50: {
|
|
2599
|
+
readonly morpho: 101757515n;
|
|
2600
|
+
readonly permit2: 92945178n;
|
|
2601
|
+
readonly bundler3: {
|
|
2602
|
+
readonly bundler3: 101757515n;
|
|
2603
|
+
readonly generalAdapter1: 101757515n;
|
|
2604
|
+
};
|
|
2605
|
+
readonly adaptiveCurveIrm: 101757515n;
|
|
2606
|
+
readonly vaultV2Factory: 101757669n;
|
|
2607
|
+
readonly morphoMarketV1AdapterV2Factory: 101757823n;
|
|
2608
|
+
readonly registryList: 101757823n;
|
|
2609
|
+
readonly chainlinkOracleFactory: 101757578n;
|
|
2610
|
+
readonly preLiquidationFactory: 101757578n;
|
|
2611
|
+
readonly wNative: 42776215n;
|
|
2612
|
+
};
|
|
2613
|
+
readonly 8217: {
|
|
2614
|
+
readonly morpho: 208021118n;
|
|
2615
|
+
readonly permit2: 188994815n;
|
|
2616
|
+
readonly bundler3: {
|
|
2617
|
+
readonly bundler3: 208021118n;
|
|
2618
|
+
readonly generalAdapter1: 208021118n;
|
|
2619
|
+
};
|
|
2620
|
+
readonly adaptiveCurveIrm: 208021118n;
|
|
2621
|
+
readonly vaultV2Factory: 213463014n;
|
|
2622
|
+
readonly morphoMarketV1AdapterV2Factory: 213463079n;
|
|
2623
|
+
readonly registryList: 213463079n;
|
|
2624
|
+
readonly chainlinkOracleFactory: 213462907n;
|
|
2625
|
+
readonly preLiquidationFactory: 213462907n;
|
|
2626
|
+
readonly wNative: 104802159n;
|
|
2627
|
+
};
|
|
2444
2628
|
};
|
|
2445
2629
|
export declare let unwrappedTokensMapping: Record<number, Record<`0x${string}`, `0x${string}`>>;
|
|
2446
2630
|
/**
|
package/lib/esm/addresses.js
CHANGED
|
@@ -615,6 +615,7 @@ const _addressesRegistry = {
|
|
|
615
615
|
adaptiveCurveIrm: "0x112fd4042E442C3C12C67AD23587b0afe36eB74E",
|
|
616
616
|
vaultV2Factory: "0x3DE400E3F79113194fa5AF6Ae5C474947E0C82Db",
|
|
617
617
|
morphoMarketV1AdapterV2Factory: "0xF85aD5f14cC903533FC409B8098B58b4C2f36697",
|
|
618
|
+
morphoVaultV1AdapterFactory: "0x669771F03ab55CebF753E90C3c9D80ad9391cf25",
|
|
618
619
|
registryList: "0xB118227C728b5ce52445a5aAee48C8a281C429E0",
|
|
619
620
|
chainlinkOracleFactory: "0xc2c167BC5cBD833ce58239e85073258F10aD4DF6",
|
|
620
621
|
preLiquidationFactory: "0xB83d2D5CAE5Fc64a408cA82447445442Fe249fe3",
|
|
@@ -664,6 +665,51 @@ const _addressesRegistry = {
|
|
|
664
665
|
preLiquidationFactory: "0x57C88ACAbd4Fa19257104ECCF64ccA34e5eB8961",
|
|
665
666
|
wNative: "0x4200000000000000000000000000000000000006",
|
|
666
667
|
},
|
|
668
|
+
[ChainId.FlareMainnet]: {
|
|
669
|
+
morpho: "0xF4346F5132e810f80a28487a79c7559d9797E8B0",
|
|
670
|
+
permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
671
|
+
bundler3: {
|
|
672
|
+
bundler3: "0xb371CFee69984D1F3447D49217889C7388bA2027",
|
|
673
|
+
generalAdapter1: "0x43F4861c9E7f584cFDc9B6BA3F0c2462895BDd67",
|
|
674
|
+
},
|
|
675
|
+
adaptiveCurveIrm: "0xE5B5627C5973AfAE1928a6b8e5c1D6AABFEC8a7a",
|
|
676
|
+
vaultV2Factory: "0x6FC83ECc0e8142635D77200e5052be8A0a9D2f42",
|
|
677
|
+
morphoMarketV1AdapterV2Factory: "0xd8237ea1b5974c83C6b0c8942dc2a16F42f789dd",
|
|
678
|
+
registryList: "0x9730d0B30d9145B66a8e09D26295e36cb84F64a9",
|
|
679
|
+
chainlinkOracleFactory: "0x95cB3625598F9abf6cb8B874AA1EfEEbE7822642",
|
|
680
|
+
preLiquidationFactory: "0xf215D05a04b97f98Bb1bF4E0E5Cb97Ef38fa8895",
|
|
681
|
+
wNative: "0x1D80c49BbBCd1C0911346656B529DF9E5c2F783d",
|
|
682
|
+
},
|
|
683
|
+
[ChainId.XdcMainnet]: {
|
|
684
|
+
morpho: "0xEa49B0fE898aF913A3826F9f462eE2cDcb854fD9",
|
|
685
|
+
permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
686
|
+
bundler3: {
|
|
687
|
+
bundler3: "0xed9bdc3E6081db528b6D5CDDf47EcB05337c62A7",
|
|
688
|
+
generalAdapter1: "0xAB2Ab6A8bb1082C5d8400D6206c6A13cE413e0c0",
|
|
689
|
+
},
|
|
690
|
+
adaptiveCurveIrm: "0x15c7312B0f26aa0AA70B24a0D2AF87B9e7D614A0",
|
|
691
|
+
vaultV2Factory: "0x227544d6989cD15c05AAB6dde4F29523dcfdbe2B",
|
|
692
|
+
morphoMarketV1AdapterV2Factory: "0x5C00c99F2235439725417E9f037B7D38FfF35d31",
|
|
693
|
+
registryList: "0x79A8C4e9E502C1867cAf2E7202f0C6b89aaCd5c1",
|
|
694
|
+
chainlinkOracleFactory: "0x6Ad93a3aA829514473D3DF67382894A76c7283B4",
|
|
695
|
+
preLiquidationFactory: "0xe3845262d726a827817C7196143CDa9a4404218d",
|
|
696
|
+
wNative: "0x951857744785E80e2De051c32EE7b25f9c458C42",
|
|
697
|
+
},
|
|
698
|
+
[ChainId.KaiaMainnet]: {
|
|
699
|
+
morpho: "0xA8BEebdca34d83C697c302A0594f3c41f3994cd2",
|
|
700
|
+
permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
701
|
+
bundler3: {
|
|
702
|
+
bundler3: "0x27880B18ae04a05F1D603B87AEb2a27491FfaBA9",
|
|
703
|
+
generalAdapter1: "0x8e36C2c6d7771820BF14a75f725f3cf0374a7823",
|
|
704
|
+
},
|
|
705
|
+
adaptiveCurveIrm: "0xA4E2bA20Fc64D721D95BD5a28FF71844C5bb5cF2",
|
|
706
|
+
vaultV2Factory: "0xf2Aecd4a4d4C21d08770e34F392C4C271aBD9144",
|
|
707
|
+
morphoMarketV1AdapterV2Factory: "0x4d04C39ca604b560c50F4045c558378FD9AEBCF4",
|
|
708
|
+
registryList: "0xfCA12228DA5fba6E9c0B57a8e8322d0eBaCa03Bc",
|
|
709
|
+
chainlinkOracleFactory: "0x3e89C1071814b2c4170c90260Fcb60B903AD4602",
|
|
710
|
+
preLiquidationFactory: "0xe8eCe452F04117e5Fe1Ea4403097215443225440",
|
|
711
|
+
wNative: "0x19Aac5f612f524B754CA7e7c41cbFa2E981A4432",
|
|
712
|
+
},
|
|
667
713
|
};
|
|
668
714
|
const _deployments = {
|
|
669
715
|
[ChainId.EthMainnet]: {
|
|
@@ -1165,6 +1211,7 @@ const _deployments = {
|
|
|
1165
1211
|
adaptiveCurveIrm: 2375313n,
|
|
1166
1212
|
vaultV2Factory: 2375650n,
|
|
1167
1213
|
morphoMarketV1AdapterV2Factory: 2375701n,
|
|
1214
|
+
morphoVaultV1AdapterFactory: 16475630n,
|
|
1168
1215
|
registryList: 2375601n,
|
|
1169
1216
|
chainlinkOracleFactory: 2375626n,
|
|
1170
1217
|
preLiquidationFactory: 2375010n,
|
|
@@ -1214,6 +1261,51 @@ const _deployments = {
|
|
|
1214
1261
|
preLiquidationFactory: 7520548n,
|
|
1215
1262
|
wNative: 0n,
|
|
1216
1263
|
},
|
|
1264
|
+
[ChainId.FlareMainnet]: {
|
|
1265
|
+
morpho: 52378788n,
|
|
1266
|
+
permit2: 58377404n,
|
|
1267
|
+
bundler3: {
|
|
1268
|
+
bundler3: 52378788n,
|
|
1269
|
+
generalAdapter1: 52378788n,
|
|
1270
|
+
},
|
|
1271
|
+
adaptiveCurveIrm: 52378788n,
|
|
1272
|
+
vaultV2Factory: 52383002n,
|
|
1273
|
+
morphoMarketV1AdapterV2Factory: 52383110n,
|
|
1274
|
+
registryList: 52383110n,
|
|
1275
|
+
chainlinkOracleFactory: 52378931n,
|
|
1276
|
+
preLiquidationFactory: 52378931n,
|
|
1277
|
+
wNative: 39n,
|
|
1278
|
+
},
|
|
1279
|
+
[ChainId.XdcMainnet]: {
|
|
1280
|
+
morpho: 101757515n,
|
|
1281
|
+
permit2: 92945178n,
|
|
1282
|
+
bundler3: {
|
|
1283
|
+
bundler3: 101757515n,
|
|
1284
|
+
generalAdapter1: 101757515n,
|
|
1285
|
+
},
|
|
1286
|
+
adaptiveCurveIrm: 101757515n,
|
|
1287
|
+
vaultV2Factory: 101757669n,
|
|
1288
|
+
morphoMarketV1AdapterV2Factory: 101757823n,
|
|
1289
|
+
registryList: 101757823n,
|
|
1290
|
+
chainlinkOracleFactory: 101757578n,
|
|
1291
|
+
preLiquidationFactory: 101757578n,
|
|
1292
|
+
wNative: 42776215n,
|
|
1293
|
+
},
|
|
1294
|
+
[ChainId.KaiaMainnet]: {
|
|
1295
|
+
morpho: 208021118n,
|
|
1296
|
+
permit2: 188994815n,
|
|
1297
|
+
bundler3: {
|
|
1298
|
+
bundler3: 208021118n,
|
|
1299
|
+
generalAdapter1: 208021118n,
|
|
1300
|
+
},
|
|
1301
|
+
adaptiveCurveIrm: 208021118n,
|
|
1302
|
+
vaultV2Factory: 213463014n,
|
|
1303
|
+
morphoMarketV1AdapterV2Factory: 213463079n,
|
|
1304
|
+
registryList: 213463079n,
|
|
1305
|
+
chainlinkOracleFactory: 213462907n,
|
|
1306
|
+
preLiquidationFactory: 213462907n,
|
|
1307
|
+
wNative: 104802159n,
|
|
1308
|
+
},
|
|
1217
1309
|
};
|
|
1218
1310
|
export const getChainAddresses = (chainId) => {
|
|
1219
1311
|
const chainAddresses = addresses[chainId];
|
|
@@ -1334,6 +1426,15 @@ const _unwrappedTokensMapping = {
|
|
|
1334
1426
|
[ChainId.GensynMainnet]: {
|
|
1335
1427
|
[_addressesRegistry[ChainId.GensynMainnet].wNative]: NATIVE_ADDRESS,
|
|
1336
1428
|
},
|
|
1429
|
+
[ChainId.FlareMainnet]: {
|
|
1430
|
+
[_addressesRegistry[ChainId.FlareMainnet].wNative]: NATIVE_ADDRESS,
|
|
1431
|
+
},
|
|
1432
|
+
[ChainId.XdcMainnet]: {
|
|
1433
|
+
[_addressesRegistry[ChainId.XdcMainnet].wNative]: NATIVE_ADDRESS,
|
|
1434
|
+
},
|
|
1435
|
+
[ChainId.KaiaMainnet]: {
|
|
1436
|
+
[_addressesRegistry[ChainId.KaiaMainnet].wNative]: NATIVE_ADDRESS,
|
|
1437
|
+
},
|
|
1337
1438
|
};
|
|
1338
1439
|
export function getUnwrappedToken(wrappedToken, chainId) {
|
|
1339
1440
|
return unwrappedTokensMapping[chainId]?.[wrappedToken];
|
|
@@ -1428,6 +1529,7 @@ export let unwrappedTokensMapping = deepFreeze(_unwrappedTokensMapping);
|
|
|
1428
1529
|
export function registerCustomAddresses({ unwrappedTokens, addresses: customAddresses, deployments: customDeployments, } = {}) {
|
|
1429
1530
|
const customizer = (type) =>
|
|
1430
1531
|
// biome-ignore lint/suspicious/noExplicitAny: type is not trivial and not important here
|
|
1532
|
+
// biome-ignore lint/complexity/useMaxParams: TODO refactor to ≤2 params
|
|
1431
1533
|
(objValue, srcValue, key) => {
|
|
1432
1534
|
if (objValue !== undefined &&
|
|
1433
1535
|
!isPlainObject(objValue) &&
|
package/lib/esm/chain.d.ts
CHANGED
|
@@ -34,7 +34,10 @@ export declare enum ChainId {
|
|
|
34
34
|
TempoMainnet = 4217,
|
|
35
35
|
EdenMainnet = 714,
|
|
36
36
|
PharosMainnet = 1672,
|
|
37
|
-
GensynMainnet = 685689
|
|
37
|
+
GensynMainnet = 685689,
|
|
38
|
+
FlareMainnet = 14,
|
|
39
|
+
XdcMainnet = 50,
|
|
40
|
+
KaiaMainnet = 8217
|
|
38
41
|
}
|
|
39
42
|
export interface ChainMetadata {
|
|
40
43
|
readonly name: string;
|
|
@@ -453,5 +456,38 @@ export declare namespace ChainUtils {
|
|
|
453
456
|
explorerUrl: string;
|
|
454
457
|
identifier: string;
|
|
455
458
|
};
|
|
459
|
+
14: {
|
|
460
|
+
name: string;
|
|
461
|
+
id: ChainId.FlareMainnet;
|
|
462
|
+
nativeCurrency: {
|
|
463
|
+
name: string;
|
|
464
|
+
symbol: string;
|
|
465
|
+
decimals: number;
|
|
466
|
+
};
|
|
467
|
+
explorerUrl: string;
|
|
468
|
+
identifier: string;
|
|
469
|
+
};
|
|
470
|
+
50: {
|
|
471
|
+
name: string;
|
|
472
|
+
id: ChainId.XdcMainnet;
|
|
473
|
+
nativeCurrency: {
|
|
474
|
+
name: string;
|
|
475
|
+
symbol: string;
|
|
476
|
+
decimals: number;
|
|
477
|
+
};
|
|
478
|
+
explorerUrl: string;
|
|
479
|
+
identifier: string;
|
|
480
|
+
};
|
|
481
|
+
8217: {
|
|
482
|
+
name: string;
|
|
483
|
+
id: ChainId.KaiaMainnet;
|
|
484
|
+
nativeCurrency: {
|
|
485
|
+
name: string;
|
|
486
|
+
symbol: string;
|
|
487
|
+
decimals: number;
|
|
488
|
+
};
|
|
489
|
+
explorerUrl: string;
|
|
490
|
+
identifier: string;
|
|
491
|
+
};
|
|
456
492
|
};
|
|
457
493
|
}
|
package/lib/esm/chain.js
CHANGED
|
@@ -36,6 +36,9 @@ export var ChainId;
|
|
|
36
36
|
ChainId[ChainId["EdenMainnet"] = 714] = "EdenMainnet";
|
|
37
37
|
ChainId[ChainId["PharosMainnet"] = 1672] = "PharosMainnet";
|
|
38
38
|
ChainId[ChainId["GensynMainnet"] = 685689] = "GensynMainnet";
|
|
39
|
+
ChainId[ChainId["FlareMainnet"] = 14] = "FlareMainnet";
|
|
40
|
+
ChainId[ChainId["XdcMainnet"] = 50] = "XdcMainnet";
|
|
41
|
+
ChainId[ChainId["KaiaMainnet"] = 8217] = "KaiaMainnet";
|
|
39
42
|
})(ChainId || (ChainId = {}));
|
|
40
43
|
export var ChainUtils;
|
|
41
44
|
(function (ChainUtils) {
|
|
@@ -309,5 +312,26 @@ export var ChainUtils;
|
|
|
309
312
|
explorerUrl: "https://gensyn-mainnet.explorer.alchemy.com",
|
|
310
313
|
identifier: "gensyn",
|
|
311
314
|
},
|
|
315
|
+
[ChainId.FlareMainnet]: {
|
|
316
|
+
name: "Flare",
|
|
317
|
+
id: ChainId.FlareMainnet,
|
|
318
|
+
nativeCurrency: { name: "Flare", symbol: "FLR", decimals: 18 },
|
|
319
|
+
explorerUrl: "https://mainnet.flarescan.com",
|
|
320
|
+
identifier: "flare",
|
|
321
|
+
},
|
|
322
|
+
[ChainId.XdcMainnet]: {
|
|
323
|
+
name: "XDC",
|
|
324
|
+
id: ChainId.XdcMainnet,
|
|
325
|
+
nativeCurrency: { name: "XDC", symbol: "XDC", decimals: 18 },
|
|
326
|
+
explorerUrl: "https://xdcscan.com",
|
|
327
|
+
identifier: "xdc",
|
|
328
|
+
},
|
|
329
|
+
[ChainId.KaiaMainnet]: {
|
|
330
|
+
name: "Kaia",
|
|
331
|
+
id: ChainId.KaiaMainnet,
|
|
332
|
+
nativeCurrency: { name: "Kaia", symbol: "KAIA", decimals: 18 },
|
|
333
|
+
explorerUrl: "https://kaiascan.io",
|
|
334
|
+
identifier: "kaia",
|
|
335
|
+
},
|
|
312
336
|
};
|
|
313
337
|
})(ChainUtils || (ChainUtils = {}));
|
package/lib/esm/errors.js
CHANGED
|
@@ -73,6 +73,7 @@ export var BlueErrors;
|
|
|
73
73
|
marketId;
|
|
74
74
|
timestamp;
|
|
75
75
|
lastUpdate;
|
|
76
|
+
// biome-ignore lint/complexity/useMaxParams: TODO refactor to ≤2 params
|
|
76
77
|
constructor(marketId, timestamp, lastUpdate) {
|
|
77
78
|
super(`invalid interest accrual on market ${marketId}: accrual timestamp ${timestamp} can't be prior to last update ${lastUpdate}`);
|
|
78
79
|
this.marketId = marketId;
|
|
@@ -142,6 +143,7 @@ export var VaultV2Errors;
|
|
|
142
143
|
vault;
|
|
143
144
|
timestamp;
|
|
144
145
|
lastUpdate;
|
|
146
|
+
// biome-ignore lint/complexity/useMaxParams: TODO refactor to ≤2 params
|
|
145
147
|
constructor(vault, timestamp, lastUpdate) {
|
|
146
148
|
super(`invalid interest accrual on vault ${vault}: accrual timestamp ${timestamp} can't be prior to last update ${lastUpdate}`);
|
|
147
149
|
this.vault = vault;
|
package/lib/esm/holding/index.js
CHANGED
package/lib/esm/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export * from "./addresses.js";
|
|
2
|
+
export * from "./chain.js";
|
|
2
3
|
export * from "./constants.js";
|
|
3
4
|
export * from "./errors.js";
|
|
5
|
+
export * from "./holding/index.js";
|
|
4
6
|
export * from "./market/index.js";
|
|
5
|
-
export * from "./chain.js";
|
|
6
|
-
export * from "./token/index.js";
|
|
7
|
-
export * from "./types.js";
|
|
8
7
|
export * from "./math/index.js";
|
|
9
|
-
export * from "./user/index.js";
|
|
10
|
-
export * from "./holding/index.js";
|
|
11
8
|
export * from "./position/index.js";
|
|
12
|
-
export * from "./vault/index.js";
|
|
13
9
|
export * from "./preLiquidation.js";
|
|
10
|
+
export * from "./token/index.js";
|
|
11
|
+
export * from "./types.js";
|
|
12
|
+
export * from "./user/index.js";
|
|
14
13
|
export * from "./utils.js";
|
|
14
|
+
export * from "./vault/index.js";
|
package/lib/esm/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export * from "./addresses.js";
|
|
2
|
+
export * from "./chain.js";
|
|
2
3
|
export * from "./constants.js";
|
|
3
4
|
export * from "./errors.js";
|
|
5
|
+
export * from "./holding/index.js";
|
|
4
6
|
export * from "./market/index.js";
|
|
5
|
-
export * from "./chain.js";
|
|
6
|
-
export * from "./token/index.js";
|
|
7
|
-
export * from "./types.js";
|
|
8
7
|
export * from "./math/index.js";
|
|
9
|
-
export * from "./user/index.js";
|
|
10
|
-
export * from "./holding/index.js";
|
|
11
8
|
export * from "./position/index.js";
|
|
12
|
-
export * from "./vault/index.js";
|
|
13
9
|
export * from "./preLiquidation.js";
|
|
10
|
+
export * from "./token/index.js";
|
|
11
|
+
export * from "./types.js";
|
|
12
|
+
export * from "./user/index.js";
|
|
14
13
|
export * from "./utils.js";
|
|
14
|
+
export * from "./vault/index.js";
|