@morpho-org/blue-sdk 3.0.2 → 3.0.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/lib/addresses.d.ts +13 -0
- package/lib/addresses.js +14 -0
- package/lib/chain.d.ts +2 -1
- package/lib/chain.js +8 -0
- package/package.json +1 -1
package/lib/addresses.d.ts
CHANGED
|
@@ -321,6 +321,19 @@ export declare const addressesRegistry: {
|
|
|
321
321
|
readonly preLiquidationFactory: "0xF184156Cf6Ad4D3dA7F6449D40755A0f9de97ef3";
|
|
322
322
|
readonly wNative: "0xEa237441c92CAe6FC17Caaf9a7acB3f953be4bd1";
|
|
323
323
|
};
|
|
324
|
+
readonly 123420001114: {
|
|
325
|
+
readonly morpho: "0xc7CAd9B1377Eb8103397Cb07Cb5c4f03eb2eBEa8";
|
|
326
|
+
readonly bundler3: {
|
|
327
|
+
readonly bundler3: "0xc1A86b3a552C5a34e1ecc910341A64Cc89b2CB01";
|
|
328
|
+
readonly generalAdapter1: "0x86eaf48Fd73c1Aa30E801D01d0efFd731c3E5E85";
|
|
329
|
+
};
|
|
330
|
+
readonly adaptiveCurveIrm: "0xeEccdD33c0C06d7DDa31E3C4a1Cdb35a2A756246";
|
|
331
|
+
readonly publicAllocator: "0x1e145648DA9aC9d831B4F7931C06e9828083BD40";
|
|
332
|
+
readonly metaMorphoFactory: "0xa8CD521d42b716821D7ddD2Ca6a237087aA5b487";
|
|
333
|
+
readonly chainlinkOracleFactory: "0x24Bc64f44B429EEA86c8B1f9C03F54Ab0C6c0C15";
|
|
334
|
+
readonly preLiquidationFactory: "0x6C0155CC30f760DC49138B389F5B69F56eD08841";
|
|
335
|
+
readonly wNative: "0x1aE9c40eCd2DD6ad5858E5430A556d7aff28A44b";
|
|
336
|
+
};
|
|
324
337
|
};
|
|
325
338
|
export declare const addresses: Record<number, ChainAddresses>;
|
|
326
339
|
export type AddressLabel = DottedKeys<(typeof addressesRegistry)[ChainId]>;
|
package/lib/addresses.js
CHANGED
|
@@ -296,6 +296,19 @@ exports.addressesRegistry = {
|
|
|
296
296
|
preLiquidationFactory: "0xF184156Cf6Ad4D3dA7F6449D40755A0f9de97ef3",
|
|
297
297
|
wNative: "0xEa237441c92CAe6FC17Caaf9a7acB3f953be4bd1",
|
|
298
298
|
},
|
|
299
|
+
[chain_js_1.ChainId.CampMainnet]: {
|
|
300
|
+
morpho: "0xc7CAd9B1377Eb8103397Cb07Cb5c4f03eb2eBEa8",
|
|
301
|
+
bundler3: {
|
|
302
|
+
bundler3: "0xc1A86b3a552C5a34e1ecc910341A64Cc89b2CB01",
|
|
303
|
+
generalAdapter1: "0x86eaf48Fd73c1Aa30E801D01d0efFd731c3E5E85",
|
|
304
|
+
},
|
|
305
|
+
adaptiveCurveIrm: "0xeEccdD33c0C06d7DDa31E3C4a1Cdb35a2A756246",
|
|
306
|
+
publicAllocator: "0x1e145648DA9aC9d831B4F7931C06e9828083BD40",
|
|
307
|
+
metaMorphoFactory: "0xa8CD521d42b716821D7ddD2Ca6a237087aA5b487",
|
|
308
|
+
chainlinkOracleFactory: "0x24Bc64f44B429EEA86c8B1f9C03F54Ab0C6c0C15",
|
|
309
|
+
preLiquidationFactory: "0x6C0155CC30f760DC49138B389F5B69F56eD08841",
|
|
310
|
+
wNative: "0x1aE9c40eCd2DD6ad5858E5430A556d7aff28A44b",
|
|
311
|
+
},
|
|
299
312
|
};
|
|
300
313
|
exports.addresses = exports.addressesRegistry;
|
|
301
314
|
const getChainAddresses = (chainId) => {
|
|
@@ -341,6 +354,7 @@ exports.unwrappedTokensMapping = {
|
|
|
341
354
|
[chain_js_1.ChainId.ModeMainnet]: {},
|
|
342
355
|
[chain_js_1.ChainId.CornMainnet]: {},
|
|
343
356
|
[chain_js_1.ChainId.PlumeMainnet]: {},
|
|
357
|
+
[chain_js_1.ChainId.CampMainnet]: {},
|
|
344
358
|
};
|
|
345
359
|
function getUnwrappedToken(wrappedToken, chainId) {
|
|
346
360
|
return exports.unwrappedTokensMapping[chainId][wrappedToken];
|
package/lib/chain.d.ts
CHANGED
package/lib/chain.js
CHANGED
|
@@ -18,6 +18,7 @@ var ChainId;
|
|
|
18
18
|
ChainId[ChainId["ModeMainnet"] = 34443] = "ModeMainnet";
|
|
19
19
|
ChainId[ChainId["CornMainnet"] = 21000000] = "CornMainnet";
|
|
20
20
|
ChainId[ChainId["PlumeMainnet"] = 98866] = "PlumeMainnet";
|
|
21
|
+
ChainId[ChainId["CampMainnet"] = 123420001114] = "CampMainnet";
|
|
21
22
|
})(ChainId || (exports.ChainId = ChainId = {}));
|
|
22
23
|
var ChainUtils;
|
|
23
24
|
(function (ChainUtils) {
|
|
@@ -139,5 +140,12 @@ var ChainUtils;
|
|
|
139
140
|
explorerUrl: "https://phoenix-explorer.plumenetwork.xyz",
|
|
140
141
|
identifier: "plume",
|
|
141
142
|
},
|
|
143
|
+
[ChainId.CampMainnet]: {
|
|
144
|
+
name: "Camp",
|
|
145
|
+
id: ChainId.CampMainnet,
|
|
146
|
+
nativeCurrency: { name: "Camp", symbol: "CAMP", decimals: 18 },
|
|
147
|
+
explorerUrl: "https://basecamp.cloud.blockscout.com/",
|
|
148
|
+
identifier: "camp",
|
|
149
|
+
},
|
|
142
150
|
};
|
|
143
151
|
})(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": "3.0.
|
|
4
|
+
"version": "3.0.3",
|
|
5
5
|
"author": "Morpho Association <contact@morpho.org>",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Rubilmax <rmilon@gmail.com>"
|