@morpho-org/blue-sdk 4.2.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/addresses.d.ts +54 -0
- package/lib/addresses.js +34 -0
- package/lib/chain.d.ts +3 -1
- package/lib/chain.js +16 -0
- package/package.json +1 -1
package/lib/addresses.d.ts
CHANGED
|
@@ -349,6 +349,33 @@ declare const _addressesRegistry: {
|
|
|
349
349
|
readonly preLiquidationFactory: "0x678EB53A3bB79111263f47B84989d16D81c36D85";
|
|
350
350
|
readonly wNative: "0xEE7D8BCFb72bC1880D0Cf19822eB0A2e6577aB62";
|
|
351
351
|
};
|
|
352
|
+
readonly 239: {
|
|
353
|
+
readonly morpho: "0x918B9F2E4B44E20c6423105BB6cCEB71473aD35c";
|
|
354
|
+
readonly bundler3: {
|
|
355
|
+
readonly bundler3: "0x84b189823D0f84c36728Bb3335dD8C833564e72f";
|
|
356
|
+
readonly generalAdapter1: "0x6D94E7dCA6d8FAE2CF954633C2Cf9c286258E0af";
|
|
357
|
+
};
|
|
358
|
+
readonly adaptiveCurveIrm: "0x7E82b16496fA8CC04935528dA7F5A2C684A3C7A3";
|
|
359
|
+
readonly publicAllocator: "0x414247afcf1fE3b94C617e7E3A7adB81D8D3208F";
|
|
360
|
+
readonly metaMorphoFactory: "0xcDA78f4979d17Ec93052A84A12001fe0088AD734";
|
|
361
|
+
readonly chainlinkOracleFactory: "0xbf10eD52dD60C60E901BF022c3675303ad4a56b1";
|
|
362
|
+
readonly preLiquidationFactory: "0x5851C1e423A2F93aFb821834a63cA052D19ae4Ef";
|
|
363
|
+
readonly wNative: "0xB63B9f0eb4A6E6f191529D71d4D88cc8900Df2C9";
|
|
364
|
+
};
|
|
365
|
+
readonly 1135: {
|
|
366
|
+
readonly morpho: "0x00cD58DEEbd7A2F1C55dAec715faF8aed5b27BF8";
|
|
367
|
+
readonly bundler3: {
|
|
368
|
+
readonly bundler3: "0xD96E5e02580C4EAfE15B5537b25eE3dEe5861e00";
|
|
369
|
+
readonly generalAdapter1: "0x76cFE4BF840C7b461772fE7CDE399f58c4173584";
|
|
370
|
+
};
|
|
371
|
+
readonly adaptiveCurveIrm: "0x5576629f21D528A8c3e06C338dDa907B94563902";
|
|
372
|
+
readonly publicAllocator: "0xb1E5B1De2a54ab55C412B5ee1E38e46799588103";
|
|
373
|
+
readonly metaMorphoFactory: "0x01dD876130690469F685a65C2B295A90a81BaD91";
|
|
374
|
+
readonly chainlinkOracleFactory: "0x2eb4D17C2AAf1EA62Bf83Fb49Dd1128b14AF4D93";
|
|
375
|
+
readonly preLiquidationFactory: "0xF2c325F26691b6556e6f66451bb38bDa37FEbaa7";
|
|
376
|
+
readonly wNative: "0x4200000000000000000000000000000000000006";
|
|
377
|
+
readonly usdc: "0xF242275d3a6527d877f2c927a82D9b057609cc71";
|
|
378
|
+
};
|
|
352
379
|
};
|
|
353
380
|
export type AddressLabel = DottedKeys<(typeof _addressesRegistry)[ChainId]>;
|
|
354
381
|
export declare const getChainAddresses: (chainId: number) => ChainAddresses;
|
|
@@ -677,6 +704,33 @@ export declare let addressesRegistry: {
|
|
|
677
704
|
readonly preLiquidationFactory: "0x678EB53A3bB79111263f47B84989d16D81c36D85";
|
|
678
705
|
readonly wNative: "0xEE7D8BCFb72bC1880D0Cf19822eB0A2e6577aB62";
|
|
679
706
|
};
|
|
707
|
+
readonly 239: {
|
|
708
|
+
readonly morpho: "0x918B9F2E4B44E20c6423105BB6cCEB71473aD35c";
|
|
709
|
+
readonly bundler3: {
|
|
710
|
+
readonly bundler3: "0x84b189823D0f84c36728Bb3335dD8C833564e72f";
|
|
711
|
+
readonly generalAdapter1: "0x6D94E7dCA6d8FAE2CF954633C2Cf9c286258E0af";
|
|
712
|
+
};
|
|
713
|
+
readonly adaptiveCurveIrm: "0x7E82b16496fA8CC04935528dA7F5A2C684A3C7A3";
|
|
714
|
+
readonly publicAllocator: "0x414247afcf1fE3b94C617e7E3A7adB81D8D3208F";
|
|
715
|
+
readonly metaMorphoFactory: "0xcDA78f4979d17Ec93052A84A12001fe0088AD734";
|
|
716
|
+
readonly chainlinkOracleFactory: "0xbf10eD52dD60C60E901BF022c3675303ad4a56b1";
|
|
717
|
+
readonly preLiquidationFactory: "0x5851C1e423A2F93aFb821834a63cA052D19ae4Ef";
|
|
718
|
+
readonly wNative: "0xB63B9f0eb4A6E6f191529D71d4D88cc8900Df2C9";
|
|
719
|
+
};
|
|
720
|
+
readonly 1135: {
|
|
721
|
+
readonly morpho: "0x00cD58DEEbd7A2F1C55dAec715faF8aed5b27BF8";
|
|
722
|
+
readonly bundler3: {
|
|
723
|
+
readonly bundler3: "0xD96E5e02580C4EAfE15B5537b25eE3dEe5861e00";
|
|
724
|
+
readonly generalAdapter1: "0x76cFE4BF840C7b461772fE7CDE399f58c4173584";
|
|
725
|
+
};
|
|
726
|
+
readonly adaptiveCurveIrm: "0x5576629f21D528A8c3e06C338dDa907B94563902";
|
|
727
|
+
readonly publicAllocator: "0xb1E5B1De2a54ab55C412B5ee1E38e46799588103";
|
|
728
|
+
readonly metaMorphoFactory: "0x01dD876130690469F685a65C2B295A90a81BaD91";
|
|
729
|
+
readonly chainlinkOracleFactory: "0x2eb4D17C2AAf1EA62Bf83Fb49Dd1128b14AF4D93";
|
|
730
|
+
readonly preLiquidationFactory: "0xF2c325F26691b6556e6f66451bb38bDa37FEbaa7";
|
|
731
|
+
readonly wNative: "0x4200000000000000000000000000000000000006";
|
|
732
|
+
readonly usdc: "0xF242275d3a6527d877f2c927a82D9b057609cc71";
|
|
733
|
+
};
|
|
680
734
|
};
|
|
681
735
|
export declare let addresses: Record<number, ChainAddresses>;
|
|
682
736
|
export declare let unwrappedTokensMapping: Record<number, Record<`0x${string}`, `0x${string}`>>;
|
package/lib/addresses.js
CHANGED
|
@@ -331,6 +331,34 @@ const _addressesRegistry = {
|
|
|
331
331
|
preLiquidationFactory: "0x678EB53A3bB79111263f47B84989d16D81c36D85",
|
|
332
332
|
wNative: "0xEE7D8BCFb72bC1880D0Cf19822eB0A2e6577aB62",
|
|
333
333
|
},
|
|
334
|
+
[chain_js_1.ChainId.TacMainnet]: {
|
|
335
|
+
morpho: "0x918B9F2E4B44E20c6423105BB6cCEB71473aD35c",
|
|
336
|
+
bundler3: {
|
|
337
|
+
bundler3: "0x84b189823D0f84c36728Bb3335dD8C833564e72f",
|
|
338
|
+
generalAdapter1: "0x6D94E7dCA6d8FAE2CF954633C2Cf9c286258E0af",
|
|
339
|
+
},
|
|
340
|
+
adaptiveCurveIrm: "0x7E82b16496fA8CC04935528dA7F5A2C684A3C7A3",
|
|
341
|
+
publicAllocator: "0x414247afcf1fE3b94C617e7E3A7adB81D8D3208F",
|
|
342
|
+
metaMorphoFactory: "0xcDA78f4979d17Ec93052A84A12001fe0088AD734",
|
|
343
|
+
chainlinkOracleFactory: "0xbf10eD52dD60C60E901BF022c3675303ad4a56b1",
|
|
344
|
+
preLiquidationFactory: "0x5851C1e423A2F93aFb821834a63cA052D19ae4Ef",
|
|
345
|
+
wNative: "0xB63B9f0eb4A6E6f191529D71d4D88cc8900Df2C9",
|
|
346
|
+
},
|
|
347
|
+
[chain_js_1.ChainId.LiskMainnet]: {
|
|
348
|
+
morpho: "0x00cD58DEEbd7A2F1C55dAec715faF8aed5b27BF8",
|
|
349
|
+
bundler3: {
|
|
350
|
+
bundler3: "0xD96E5e02580C4EAfE15B5537b25eE3dEe5861e00",
|
|
351
|
+
generalAdapter1: "0x76cFE4BF840C7b461772fE7CDE399f58c4173584",
|
|
352
|
+
},
|
|
353
|
+
adaptiveCurveIrm: "0x5576629f21D528A8c3e06C338dDa907B94563902",
|
|
354
|
+
publicAllocator: "0xb1E5B1De2a54ab55C412B5ee1E38e46799588103",
|
|
355
|
+
metaMorphoFactory: "0x01dD876130690469F685a65C2B295A90a81BaD91",
|
|
356
|
+
chainlinkOracleFactory: "0x2eb4D17C2AAf1EA62Bf83Fb49Dd1128b14AF4D93",
|
|
357
|
+
preLiquidationFactory: "0xF2c325F26691b6556e6f66451bb38bDa37FEbaa7",
|
|
358
|
+
wNative: "0x4200000000000000000000000000000000000006",
|
|
359
|
+
// Must implement USDC permit version 2 (otherwise breaks permit signatures).
|
|
360
|
+
usdc: "0xF242275d3a6527d877f2c927a82D9b057609cc71",
|
|
361
|
+
},
|
|
334
362
|
};
|
|
335
363
|
const getChainAddresses = (chainId) => {
|
|
336
364
|
const chainAddresses = exports.addresses[chainId];
|
|
@@ -404,6 +432,12 @@ const _unwrappedTokensMapping = {
|
|
|
404
432
|
[chain_js_1.ChainId.ArbitrumMainnet]: {
|
|
405
433
|
[_addressesRegistry[chain_js_1.ChainId.ArbitrumMainnet].wNative]: exports.NATIVE_ADDRESS,
|
|
406
434
|
},
|
|
435
|
+
[chain_js_1.ChainId.TacMainnet]: {
|
|
436
|
+
[_addressesRegistry[chain_js_1.ChainId.TacMainnet].wNative]: exports.NATIVE_ADDRESS,
|
|
437
|
+
},
|
|
438
|
+
[chain_js_1.ChainId.LiskMainnet]: {
|
|
439
|
+
[_addressesRegistry[chain_js_1.ChainId.LiskMainnet].wNative]: exports.NATIVE_ADDRESS,
|
|
440
|
+
},
|
|
407
441
|
};
|
|
408
442
|
function getUnwrappedToken(wrappedToken, chainId) {
|
|
409
443
|
return exports.unwrappedTokensMapping[chainId]?.[wrappedToken];
|
package/lib/chain.d.ts
CHANGED
|
@@ -15,7 +15,9 @@ export declare enum ChainId {
|
|
|
15
15
|
CornMainnet = 21000000,
|
|
16
16
|
PlumeMainnet = 98866,
|
|
17
17
|
CampMainnet = 123420001114,
|
|
18
|
-
KatanaMainnet = 747474
|
|
18
|
+
KatanaMainnet = 747474,
|
|
19
|
+
TacMainnet = 239,
|
|
20
|
+
LiskMainnet = 1135
|
|
19
21
|
}
|
|
20
22
|
export interface ChainMetadata {
|
|
21
23
|
readonly name: string;
|
package/lib/chain.js
CHANGED
|
@@ -20,6 +20,8 @@ var ChainId;
|
|
|
20
20
|
ChainId[ChainId["PlumeMainnet"] = 98866] = "PlumeMainnet";
|
|
21
21
|
ChainId[ChainId["CampMainnet"] = 123420001114] = "CampMainnet";
|
|
22
22
|
ChainId[ChainId["KatanaMainnet"] = 747474] = "KatanaMainnet";
|
|
23
|
+
ChainId[ChainId["TacMainnet"] = 239] = "TacMainnet";
|
|
24
|
+
ChainId[ChainId["LiskMainnet"] = 1135] = "LiskMainnet";
|
|
23
25
|
})(ChainId || (exports.ChainId = ChainId = {}));
|
|
24
26
|
var ChainUtils;
|
|
25
27
|
(function (ChainUtils) {
|
|
@@ -155,5 +157,19 @@ var ChainUtils;
|
|
|
155
157
|
explorerUrl: "https://explorer.katanarpc.com",
|
|
156
158
|
identifier: "katana",
|
|
157
159
|
},
|
|
160
|
+
[ChainId.TacMainnet]: {
|
|
161
|
+
name: "TAC",
|
|
162
|
+
id: ChainId.TacMainnet,
|
|
163
|
+
nativeCurrency: { name: "TAC", symbol: "TAC", decimals: 18 },
|
|
164
|
+
explorerUrl: "https://explorer.tac.build/",
|
|
165
|
+
identifier: "tac",
|
|
166
|
+
},
|
|
167
|
+
[ChainId.LiskMainnet]: {
|
|
168
|
+
name: "Lisk",
|
|
169
|
+
id: ChainId.LiskMainnet,
|
|
170
|
+
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
171
|
+
explorerUrl: "https://blockscout.lisk.com",
|
|
172
|
+
identifier: "lisk",
|
|
173
|
+
},
|
|
158
174
|
};
|
|
159
175
|
})(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.
|
|
4
|
+
"version": "4.4.0",
|
|
5
5
|
"author": "Morpho Association <contact@morpho.org>",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Rubilmax <rmilon@gmail.com>"
|