@morpho-org/blue-sdk 4.13.0 → 4.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/addresses.d.ts +50 -0
- package/lib/addresses.js +28 -0
- package/lib/chain.d.ts +13 -1
- package/lib/chain.js +8 -0
- package/package.json +1 -1
package/lib/addresses.d.ts
CHANGED
|
@@ -457,6 +457,19 @@ declare const _addressesRegistry: {
|
|
|
457
457
|
readonly preLiquidationFactory: "0x1b6782Ac7A859503cE953FBf4736311CC335B8f0";
|
|
458
458
|
readonly wNative: "0x5555555555555555555555555555555555555555";
|
|
459
459
|
};
|
|
460
|
+
readonly 1329: {
|
|
461
|
+
readonly morpho: "0xc9cDAc20FCeAAF616f7EB0bb6Cd2c69dcfa9094c";
|
|
462
|
+
readonly bundler3: {
|
|
463
|
+
readonly bundler3: "0xF9457356F18A3349Bb317Ac144c3Bcc62e5761aD";
|
|
464
|
+
readonly generalAdapter1: "0x02e0e71e145f254820B9D89c9E6068f08256F601";
|
|
465
|
+
};
|
|
466
|
+
readonly adaptiveCurveIrm: "0x6eFA8e3Aa8279eB2fd46b6083A9E52dA72EA56c4";
|
|
467
|
+
readonly publicAllocator: "0xD878509446bE2C601f0f032F501851001B159D6B";
|
|
468
|
+
readonly metaMorphoFactory: "0x8Dea49ec5bd5AeAc8bcf96B3E187F59354118291";
|
|
469
|
+
readonly chainlinkOracleFactory: "0x4bD68c2FF3274207EC07ED281C915758b6F23F07";
|
|
470
|
+
readonly preLiquidationFactory: "0x65eD61058cEB4895B7d62437BaCEA39b04f6D27B";
|
|
471
|
+
readonly wNative: "0xE30feDd158A2e3b13e9badaeABaFc5516e95e8C7";
|
|
472
|
+
};
|
|
460
473
|
};
|
|
461
474
|
export type ChainDeployments<Addresses = ChainAddresses> = {
|
|
462
475
|
[key in keyof Addresses]: Address extends Addresses[key] ? bigint : ChainDeployments<Addresses[key]>;
|
|
@@ -752,6 +765,18 @@ declare const _deployments: {
|
|
|
752
765
|
readonly chainlinkOracleFactory: 1988677n;
|
|
753
766
|
readonly preLiquidationFactory: 1988956n;
|
|
754
767
|
};
|
|
768
|
+
readonly 1329: {
|
|
769
|
+
readonly morpho: 166036723n;
|
|
770
|
+
readonly bundler3: {
|
|
771
|
+
readonly bundler3: 168897284n;
|
|
772
|
+
readonly generalAdapter1: 168897284n;
|
|
773
|
+
};
|
|
774
|
+
readonly adaptiveCurveIrm: 166036723n;
|
|
775
|
+
readonly publicAllocator: 166036723n;
|
|
776
|
+
readonly metaMorphoFactory: 168896078n;
|
|
777
|
+
readonly chainlinkOracleFactory: 168896078n;
|
|
778
|
+
readonly preLiquidationFactory: 168897284n;
|
|
779
|
+
};
|
|
755
780
|
};
|
|
756
781
|
export type AddressLabel = DottedKeys<(typeof _addressesRegistry)[ChainId]>;
|
|
757
782
|
export declare const getChainAddresses: (chainId: number) => ChainAddresses;
|
|
@@ -1170,6 +1195,19 @@ export declare let addressesRegistry: {
|
|
|
1170
1195
|
readonly preLiquidationFactory: "0x1b6782Ac7A859503cE953FBf4736311CC335B8f0";
|
|
1171
1196
|
readonly wNative: "0x5555555555555555555555555555555555555555";
|
|
1172
1197
|
};
|
|
1198
|
+
readonly 1329: {
|
|
1199
|
+
readonly morpho: "0xc9cDAc20FCeAAF616f7EB0bb6Cd2c69dcfa9094c";
|
|
1200
|
+
readonly bundler3: {
|
|
1201
|
+
readonly bundler3: "0xF9457356F18A3349Bb317Ac144c3Bcc62e5761aD";
|
|
1202
|
+
readonly generalAdapter1: "0x02e0e71e145f254820B9D89c9E6068f08256F601";
|
|
1203
|
+
};
|
|
1204
|
+
readonly adaptiveCurveIrm: "0x6eFA8e3Aa8279eB2fd46b6083A9E52dA72EA56c4";
|
|
1205
|
+
readonly publicAllocator: "0xD878509446bE2C601f0f032F501851001B159D6B";
|
|
1206
|
+
readonly metaMorphoFactory: "0x8Dea49ec5bd5AeAc8bcf96B3E187F59354118291";
|
|
1207
|
+
readonly chainlinkOracleFactory: "0x4bD68c2FF3274207EC07ED281C915758b6F23F07";
|
|
1208
|
+
readonly preLiquidationFactory: "0x65eD61058cEB4895B7d62437BaCEA39b04f6D27B";
|
|
1209
|
+
readonly wNative: "0xE30feDd158A2e3b13e9badaeABaFc5516e95e8C7";
|
|
1210
|
+
};
|
|
1173
1211
|
};
|
|
1174
1212
|
export declare let addresses: Record<number, ChainAddresses>;
|
|
1175
1213
|
export declare let deployments: {
|
|
@@ -1463,6 +1501,18 @@ export declare let deployments: {
|
|
|
1463
1501
|
readonly chainlinkOracleFactory: 1988677n;
|
|
1464
1502
|
readonly preLiquidationFactory: 1988956n;
|
|
1465
1503
|
};
|
|
1504
|
+
readonly 1329: {
|
|
1505
|
+
readonly morpho: 166036723n;
|
|
1506
|
+
readonly bundler3: {
|
|
1507
|
+
readonly bundler3: 168897284n;
|
|
1508
|
+
readonly generalAdapter1: 168897284n;
|
|
1509
|
+
};
|
|
1510
|
+
readonly adaptiveCurveIrm: 166036723n;
|
|
1511
|
+
readonly publicAllocator: 166036723n;
|
|
1512
|
+
readonly metaMorphoFactory: 168896078n;
|
|
1513
|
+
readonly chainlinkOracleFactory: 168896078n;
|
|
1514
|
+
readonly preLiquidationFactory: 168897284n;
|
|
1515
|
+
};
|
|
1466
1516
|
};
|
|
1467
1517
|
export declare let unwrappedTokensMapping: Record<number, Record<`0x${string}`, `0x${string}`>>;
|
|
1468
1518
|
/**
|
package/lib/addresses.js
CHANGED
|
@@ -422,6 +422,19 @@ const _addressesRegistry = {
|
|
|
422
422
|
preLiquidationFactory: "0x1b6782Ac7A859503cE953FBf4736311CC335B8f0",
|
|
423
423
|
wNative: "0x5555555555555555555555555555555555555555",
|
|
424
424
|
},
|
|
425
|
+
[chain_js_1.ChainId.SeiMainnet]: {
|
|
426
|
+
morpho: "0xc9cDAc20FCeAAF616f7EB0bb6Cd2c69dcfa9094c",
|
|
427
|
+
bundler3: {
|
|
428
|
+
bundler3: "0xF9457356F18A3349Bb317Ac144c3Bcc62e5761aD",
|
|
429
|
+
generalAdapter1: "0x02e0e71e145f254820B9D89c9E6068f08256F601",
|
|
430
|
+
},
|
|
431
|
+
adaptiveCurveIrm: "0x6eFA8e3Aa8279eB2fd46b6083A9E52dA72EA56c4",
|
|
432
|
+
publicAllocator: "0xD878509446bE2C601f0f032F501851001B159D6B",
|
|
433
|
+
metaMorphoFactory: "0x8Dea49ec5bd5AeAc8bcf96B3E187F59354118291",
|
|
434
|
+
chainlinkOracleFactory: "0x4bD68c2FF3274207EC07ED281C915758b6F23F07",
|
|
435
|
+
preLiquidationFactory: "0x65eD61058cEB4895B7d62437BaCEA39b04f6D27B",
|
|
436
|
+
wNative: "0xE30feDd158A2e3b13e9badaeABaFc5516e95e8C7",
|
|
437
|
+
},
|
|
425
438
|
};
|
|
426
439
|
const _deployments = {
|
|
427
440
|
[chain_js_1.ChainId.EthMainnet]: {
|
|
@@ -714,6 +727,18 @@ const _deployments = {
|
|
|
714
727
|
chainlinkOracleFactory: 1988677n,
|
|
715
728
|
preLiquidationFactory: 1988956n,
|
|
716
729
|
},
|
|
730
|
+
[chain_js_1.ChainId.SeiMainnet]: {
|
|
731
|
+
morpho: 166036723n,
|
|
732
|
+
bundler3: {
|
|
733
|
+
bundler3: 168897284n,
|
|
734
|
+
generalAdapter1: 168897284n,
|
|
735
|
+
},
|
|
736
|
+
adaptiveCurveIrm: 166036723n,
|
|
737
|
+
publicAllocator: 166036723n,
|
|
738
|
+
metaMorphoFactory: 168896078n,
|
|
739
|
+
chainlinkOracleFactory: 168896078n,
|
|
740
|
+
preLiquidationFactory: 168897284n,
|
|
741
|
+
},
|
|
717
742
|
};
|
|
718
743
|
const getChainAddresses = (chainId) => {
|
|
719
744
|
const chainAddresses = exports.addresses[chainId];
|
|
@@ -799,6 +824,9 @@ const _unwrappedTokensMapping = {
|
|
|
799
824
|
[chain_js_1.ChainId.HyperliquidMainnet]: {
|
|
800
825
|
[_addressesRegistry[chain_js_1.ChainId.HyperliquidMainnet].wNative]: exports.NATIVE_ADDRESS,
|
|
801
826
|
},
|
|
827
|
+
[chain_js_1.ChainId.SeiMainnet]: {
|
|
828
|
+
[_addressesRegistry[chain_js_1.ChainId.SeiMainnet].wNative]: exports.NATIVE_ADDRESS,
|
|
829
|
+
},
|
|
802
830
|
};
|
|
803
831
|
function getUnwrappedToken(wrappedToken, chainId) {
|
|
804
832
|
return exports.unwrappedTokensMapping[chainId]?.[wrappedToken];
|
package/lib/chain.d.ts
CHANGED
|
@@ -19,7 +19,8 @@ export declare enum ChainId {
|
|
|
19
19
|
EtherlinkMainnet = 42793,
|
|
20
20
|
TacMainnet = 239,
|
|
21
21
|
LiskMainnet = 1135,
|
|
22
|
-
HyperliquidMainnet = 999
|
|
22
|
+
HyperliquidMainnet = 999,
|
|
23
|
+
SeiMainnet = 1329
|
|
23
24
|
}
|
|
24
25
|
export interface ChainMetadata {
|
|
25
26
|
readonly name: string;
|
|
@@ -269,5 +270,16 @@ export declare namespace ChainUtils {
|
|
|
269
270
|
explorerUrl: string;
|
|
270
271
|
identifier: string;
|
|
271
272
|
};
|
|
273
|
+
1329: {
|
|
274
|
+
name: string;
|
|
275
|
+
id: ChainId.SeiMainnet;
|
|
276
|
+
nativeCurrency: {
|
|
277
|
+
name: string;
|
|
278
|
+
symbol: string;
|
|
279
|
+
decimals: number;
|
|
280
|
+
};
|
|
281
|
+
explorerUrl: string;
|
|
282
|
+
identifier: string;
|
|
283
|
+
};
|
|
272
284
|
};
|
|
273
285
|
}
|
package/lib/chain.js
CHANGED
|
@@ -24,6 +24,7 @@ var ChainId;
|
|
|
24
24
|
ChainId[ChainId["TacMainnet"] = 239] = "TacMainnet";
|
|
25
25
|
ChainId[ChainId["LiskMainnet"] = 1135] = "LiskMainnet";
|
|
26
26
|
ChainId[ChainId["HyperliquidMainnet"] = 999] = "HyperliquidMainnet";
|
|
27
|
+
ChainId[ChainId["SeiMainnet"] = 1329] = "SeiMainnet";
|
|
27
28
|
})(ChainId || (exports.ChainId = ChainId = {}));
|
|
28
29
|
var ChainUtils;
|
|
29
30
|
(function (ChainUtils) {
|
|
@@ -187,5 +188,12 @@ var ChainUtils;
|
|
|
187
188
|
explorerUrl: "https://hyperevmscan.io",
|
|
188
189
|
identifier: "hyperliquid",
|
|
189
190
|
},
|
|
191
|
+
[ChainId.SeiMainnet]: {
|
|
192
|
+
name: "Sei",
|
|
193
|
+
id: ChainId.SeiMainnet,
|
|
194
|
+
nativeCurrency: { name: "Sei", symbol: "SEI", decimals: 18 },
|
|
195
|
+
explorerUrl: "https://seitrace.com",
|
|
196
|
+
identifier: "sei",
|
|
197
|
+
},
|
|
190
198
|
};
|
|
191
199
|
})(ChainUtils || (exports.ChainUtils = ChainUtils = {}));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morpho-org/blue-sdk",
|
|
3
3
|
"description": "Framework-agnostic package that defines Morpho-related entity classes (such as `Market`, `Token`, `Vault`).",
|
|
4
|
-
"version": "4.13.
|
|
4
|
+
"version": "4.13.1",
|
|
5
5
|
"author": "Morpho Association <contact@morpho.org>",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Rubilmax <rmilon@gmail.com>"
|