@morpho-org/blue-sdk 3.0.0-next.5 → 3.0.0-next.6
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 +73 -0
- package/lib/addresses.js +80 -0
- package/lib/chain.d.ts +6 -1
- package/lib/chain.js +40 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
package/lib/addresses.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export interface ChainAddresses {
|
|
|
34
34
|
adaptiveCurveIrm: Address;
|
|
35
35
|
publicAllocator?: Address;
|
|
36
36
|
metaMorphoFactory?: Address;
|
|
37
|
+
chainlinkOracleFactory?: Address;
|
|
37
38
|
wNative?: Address;
|
|
38
39
|
morphoToken?: Address;
|
|
39
40
|
/**
|
|
@@ -76,6 +77,7 @@ export declare const addressesRegistry: {
|
|
|
76
77
|
readonly adaptiveCurveIrm: "0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC";
|
|
77
78
|
readonly publicAllocator: "0xfd32fA2ca22c76dD6E550706Ad913FC6CE91c75D";
|
|
78
79
|
readonly metaMorphoFactory: "0x1897A8997241C1cD4bD0698647e4EB7213535c24";
|
|
80
|
+
readonly chainlinkOracleFactory: "0x3A7bB36Ee3f3eE32A60e9f2b33c1e5f2E83ad766";
|
|
79
81
|
readonly wNative: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2";
|
|
80
82
|
readonly morphoToken: "0x9994E35Db50125E0DF82e4c2dde62496CE330999";
|
|
81
83
|
readonly dai: "0x6B175474E89094C44Da98b954EedeAC495271d0F";
|
|
@@ -125,6 +127,7 @@ export declare const addressesRegistry: {
|
|
|
125
127
|
readonly adaptiveCurveIrm: "0x46415998764C29aB2a25CbeA6254146D50D22687";
|
|
126
128
|
readonly publicAllocator: "0xA090dD1a701408Df1d4d0B85b716c87565f90467";
|
|
127
129
|
readonly metaMorphoFactory: "0xFf62A7c278C62eD665133147129245053Bbf5918";
|
|
130
|
+
readonly chainlinkOracleFactory: "0x2DC205F24BCb6B311E5cdf0745B0741648Aebd3d";
|
|
128
131
|
readonly wNative: "0x4200000000000000000000000000000000000006";
|
|
129
132
|
readonly usdc: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
|
|
130
133
|
readonly verUsdc: "0x59aaF835D34b1E3dF2170e4872B785f11E2a964b";
|
|
@@ -141,6 +144,7 @@ export declare const addressesRegistry: {
|
|
|
141
144
|
readonly adaptiveCurveIrm: "0xe675A2161D4a6E2de2eeD70ac98EEBf257FBF0B0";
|
|
142
145
|
readonly publicAllocator: "0xfac15aff53ADd2ff80C2962127C434E8615Df0d3";
|
|
143
146
|
readonly metaMorphoFactory: "0xa9c87daB340631C34BB738625C70499e29ddDC98";
|
|
147
|
+
readonly chainlinkOracleFactory: "0x1ff7895Eb842794c5d07C4c547b6730e61295215";
|
|
144
148
|
readonly wNative: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270";
|
|
145
149
|
};
|
|
146
150
|
readonly 42161: {
|
|
@@ -154,6 +158,7 @@ export declare const addressesRegistry: {
|
|
|
154
158
|
readonly adaptiveCurveIrm: "0x66F30587FB8D4206918deb78ecA7d5eBbafD06DA";
|
|
155
159
|
readonly publicAllocator: "0x769583Af5e9D03589F159EbEC31Cc2c23E8C355E";
|
|
156
160
|
readonly metaMorphoFactory: "0x878988f5f561081deEa117717052164ea1Ef0c82";
|
|
161
|
+
readonly chainlinkOracleFactory: "0x98Ce5D183DC0c176f54D37162F87e7eD7f2E41b5";
|
|
157
162
|
readonly wNative: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1";
|
|
158
163
|
readonly usdc: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831";
|
|
159
164
|
};
|
|
@@ -168,6 +173,7 @@ export declare const addressesRegistry: {
|
|
|
168
173
|
readonly adaptiveCurveIrm: "0x8cD70A8F399428456b29546BC5dBe10ab6a06ef6";
|
|
169
174
|
readonly publicAllocator: "0x0d68a97324E602E02799CD83B42D337207B40658";
|
|
170
175
|
readonly metaMorphoFactory: "0x3Bb6A6A0Bc85b367EFE0A5bAc81c5E52C892839a";
|
|
176
|
+
readonly chainlinkOracleFactory: "0x1ec408D4131686f727F3Fd6245CF85Bc5c9DAD70";
|
|
171
177
|
readonly wNative: "0x4200000000000000000000000000000000000006";
|
|
172
178
|
readonly usdc: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85";
|
|
173
179
|
};
|
|
@@ -180,6 +186,7 @@ export declare const addressesRegistry: {
|
|
|
180
186
|
readonly adaptiveCurveIrm: "0x34E99D604751a72cF8d0CFDf87069292d82De472";
|
|
181
187
|
readonly publicAllocator: "0xef9889B4e443DEd35FA0Bd060f2104Cca94e6A43";
|
|
182
188
|
readonly metaMorphoFactory: "0x4DBB3a642a2146d5413750Cca3647086D9ba5F12";
|
|
189
|
+
readonly chainlinkOracleFactory: "0xd706690BA1Fe26b70c4AD89e60ff62cEB3A2eD02";
|
|
183
190
|
readonly wNative: "0x4200000000000000000000000000000000000006";
|
|
184
191
|
};
|
|
185
192
|
readonly 252: {
|
|
@@ -191,6 +198,7 @@ export declare const addressesRegistry: {
|
|
|
191
198
|
readonly adaptiveCurveIrm: "0xA0D4D77b5D9933073572E19C172BFE866312673b";
|
|
192
199
|
readonly publicAllocator: "0x37a888192165fC39884f87c64E2476BfD2C09675";
|
|
193
200
|
readonly metaMorphoFactory: "0x27D4Af0AC9E7FDfA6D0853236f249CC27AE79488";
|
|
201
|
+
readonly chainlinkOracleFactory: "0x39d8622C607A691D7705E8842fbB12E3c38dCD41";
|
|
194
202
|
readonly wNative: "0xfc00000000000000000000000000000000000006";
|
|
195
203
|
};
|
|
196
204
|
readonly 534352: {
|
|
@@ -202,6 +210,7 @@ export declare const addressesRegistry: {
|
|
|
202
210
|
readonly adaptiveCurveIrm: "0xa5EA7500A27C0079961D93366A6e93aafF18CB90";
|
|
203
211
|
readonly publicAllocator: "0x8a7f671E45E51dE245649Cf916cA0256FB8a9927";
|
|
204
212
|
readonly metaMorphoFactory: "0x56b65742ade55015e6480959808229Ad6dbc9295";
|
|
213
|
+
readonly chainlinkOracleFactory: "0xb5961902E60b188b1c665B7b72Ef616656A9e24E";
|
|
205
214
|
readonly wNative: "0x5300000000000000000000000000000000000004";
|
|
206
215
|
readonly usdc: "0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4";
|
|
207
216
|
};
|
|
@@ -214,9 +223,73 @@ export declare const addressesRegistry: {
|
|
|
214
223
|
readonly adaptiveCurveIrm: "0x9515407b1512F53388ffE699524100e7270Ee57B";
|
|
215
224
|
readonly publicAllocator: "0x85416891752a6B81106c1C2999AE1AF5d8Cd3357";
|
|
216
225
|
readonly metaMorphoFactory: "0xd3f39505d0c48AFED3549D625982FdC38Ea9904b";
|
|
226
|
+
readonly chainlinkOracleFactory: "0x3FFFE273ee348b9E1ef89533025C7f165B17B439";
|
|
217
227
|
readonly wNative: "0x4200000000000000000000000000000000000006";
|
|
218
228
|
readonly usdc: "0xF1815bd50389c46847f0Bda824eC8da914045D14";
|
|
219
229
|
};
|
|
230
|
+
readonly 130: {
|
|
231
|
+
readonly morpho: "0x8f5ae9CddB9f68de460C77730b018Ae7E04a140A";
|
|
232
|
+
readonly bundler3: {
|
|
233
|
+
readonly bundler3: "0x7DD85759182495AF7F6757DA75036d24A9B58bc3";
|
|
234
|
+
readonly generalAdapter1: "0xC11329d19C2275c9E759867e879ECFcEeD7e30A0";
|
|
235
|
+
};
|
|
236
|
+
readonly adaptiveCurveIrm: "0x9a6061d51743B31D2c3Be75D83781Fa423f53F0E";
|
|
237
|
+
readonly publicAllocator: "0xB0c9a107fA17c779B3378210A7a593e88938C7C9";
|
|
238
|
+
readonly metaMorphoFactory: "0xe9EdE3929F43a7062a007C3e8652e4ACa610Bdc0";
|
|
239
|
+
readonly chainlinkOracleFactory: "0x43269546e1D586a1f7200a0AC07e26f9631f7539";
|
|
240
|
+
readonly wNative: "0x4200000000000000000000000000000000000006";
|
|
241
|
+
readonly usdc: "0x078D782b760474a361dDA0AF3839290b0EF57AD6";
|
|
242
|
+
};
|
|
243
|
+
readonly 146: {
|
|
244
|
+
readonly morpho: "0xd6c916eB7542D0Ad3f18AEd0FCBD50C582cfa95f";
|
|
245
|
+
readonly bundler3: {
|
|
246
|
+
readonly bundler3: "0xB06F1Ad8c908b958E596c42973f67F2f1d9a9afF";
|
|
247
|
+
readonly generalAdapter1: "0x31D5aee8D75EEab548cfA0d11C4f9843a5201eaf";
|
|
248
|
+
};
|
|
249
|
+
readonly adaptiveCurveIrm: "0xDEfCf242226425f93d8DD0e314735C28517C473F";
|
|
250
|
+
readonly publicAllocator: "0x6Cef2EDC70D87E8f1623f3096efF05d066E59B36";
|
|
251
|
+
readonly metaMorphoFactory: "0x0cE9e3512CB4df8ae7e265e62Fb9258dc14f12e8";
|
|
252
|
+
readonly chainlinkOracleFactory: "0x7DA59Fa482F1F49fADc486d8e47BADc506fEb86d";
|
|
253
|
+
readonly wNative: "0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38";
|
|
254
|
+
};
|
|
255
|
+
readonly 43111: {
|
|
256
|
+
readonly morpho: "0xa4Ca2c2e25b97DA19879201bA49422bc6f181f42";
|
|
257
|
+
readonly bundler3: {
|
|
258
|
+
readonly bundler3: "0x8eDa6E01a20E3Cd90B3B2AF6F790cB8FADEf3Ea8";
|
|
259
|
+
readonly generalAdapter1: "0x9623090C3943ad63F7d794378273610Dd0deeFD4";
|
|
260
|
+
};
|
|
261
|
+
readonly adaptiveCurveIrm: "0xdEbdEa31624552DF904A065221cD14088ABDeD70";
|
|
262
|
+
readonly publicAllocator: "0x4107Ea1746909028d6212B315dE5fE9538F9eb39";
|
|
263
|
+
readonly metaMorphoFactory: "0x8e52179BeB18E882040b01632440d8Ca0f01da82";
|
|
264
|
+
readonly chainlinkOracleFactory: "0xB3cb32E6185446a6Bc7A047E4FfA138fA939e133";
|
|
265
|
+
readonly wNative: "0x4200000000000000000000000000000000000006";
|
|
266
|
+
readonly usdc: "0xad11a8BEb98bbf61dbb1aa0F6d6F2ECD87b35afA";
|
|
267
|
+
};
|
|
268
|
+
readonly 34443: {
|
|
269
|
+
readonly morpho: "0xd85cE6BD68487E0AaFb0858FDE1Cd18c76840564";
|
|
270
|
+
readonly bundler3: {
|
|
271
|
+
readonly bundler3: "0xFEA0edFa081C8D5960Ec9Bf6684981dB1834305d";
|
|
272
|
+
readonly generalAdapter1: "0xF53925b95Cc409447066cd5c1A7756084b2Ee0a4";
|
|
273
|
+
};
|
|
274
|
+
readonly adaptiveCurveIrm: "0xE3d46Ae190Cb39ccA3655E966DcEF96b4eAe1d1c";
|
|
275
|
+
readonly publicAllocator: "0xEE868Bf3359DA30c10ea472EAEBFC0a06E8F0120";
|
|
276
|
+
readonly metaMorphoFactory: "0xae5b0884bfff430493D6C844B9fd052Af7d79278";
|
|
277
|
+
readonly chainlinkOracleFactory: "0xf9380f7898423Bd7FDe3C9fDD1b2671A2471f39D";
|
|
278
|
+
readonly wNative: "0x4200000000000000000000000000000000000006";
|
|
279
|
+
};
|
|
280
|
+
readonly 21000000: {
|
|
281
|
+
readonly morpho: "0xc2B1E031540e3F3271C5F3819F0cC7479a8DdD90";
|
|
282
|
+
readonly bundler3: {
|
|
283
|
+
readonly bundler3: "0x086889F9bdE8349512dD77088A7114E6C1c42Af7";
|
|
284
|
+
readonly generalAdapter1: "0x464a402244bCDdc0c2091D5193E8ffdb2be54Ca9";
|
|
285
|
+
};
|
|
286
|
+
readonly adaptiveCurveIrm: "0x58a42117d753a0e69694545DfA19d64c2fB759fB";
|
|
287
|
+
readonly publicAllocator: "0xDFde06e2B2A2D718eE5560b73dA4F830E56A2f10";
|
|
288
|
+
readonly metaMorphoFactory: "0xe430821595602eA5DD0cD350f86987437c7362fA";
|
|
289
|
+
readonly chainlinkOracleFactory: "0x16278156D366fC91536b6b81482ffaC47EEa06D6";
|
|
290
|
+
readonly wNative: "0xda5dDd7270381A7C2717aD10D1c0ecB19e3CDFb2";
|
|
291
|
+
readonly usdc: "0xDF0B24095e15044538866576754F3C964e902Ee6";
|
|
292
|
+
};
|
|
220
293
|
};
|
|
221
294
|
export declare const addresses: Record<number, ChainAddresses>;
|
|
222
295
|
export type AddressLabel = DottedKeys<(typeof addressesRegistry)[ChainId]>;
|
package/lib/addresses.js
CHANGED
|
@@ -39,6 +39,7 @@ exports.addressesRegistry = {
|
|
|
39
39
|
adaptiveCurveIrm: "0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC",
|
|
40
40
|
publicAllocator: "0xfd32fA2ca22c76dD6E550706Ad913FC6CE91c75D",
|
|
41
41
|
metaMorphoFactory: "0x1897A8997241C1cD4bD0698647e4EB7213535c24",
|
|
42
|
+
chainlinkOracleFactory: "0x3A7bB36Ee3f3eE32A60e9f2b33c1e5f2E83ad766",
|
|
42
43
|
wNative: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
|
|
43
44
|
morphoToken: "0x9994E35Db50125E0DF82e4c2dde62496CE330999",
|
|
44
45
|
// Must implement DAI specific permit (otherwise breaks permit signatures).
|
|
@@ -94,6 +95,7 @@ exports.addressesRegistry = {
|
|
|
94
95
|
adaptiveCurveIrm: "0x46415998764C29aB2a25CbeA6254146D50D22687",
|
|
95
96
|
publicAllocator: "0xA090dD1a701408Df1d4d0B85b716c87565f90467",
|
|
96
97
|
metaMorphoFactory: "0xFf62A7c278C62eD665133147129245053Bbf5918",
|
|
98
|
+
chainlinkOracleFactory: "0x2DC205F24BCb6B311E5cdf0745B0741648Aebd3d",
|
|
97
99
|
wNative: "0x4200000000000000000000000000000000000006",
|
|
98
100
|
// Must implement USDC permit version 2 (otherwise breaks permit signatures).
|
|
99
101
|
usdc: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
|
|
@@ -111,6 +113,7 @@ exports.addressesRegistry = {
|
|
|
111
113
|
adaptiveCurveIrm: "0xe675A2161D4a6E2de2eeD70ac98EEBf257FBF0B0",
|
|
112
114
|
publicAllocator: "0xfac15aff53ADd2ff80C2962127C434E8615Df0d3",
|
|
113
115
|
metaMorphoFactory: "0xa9c87daB340631C34BB738625C70499e29ddDC98",
|
|
116
|
+
chainlinkOracleFactory: "0x1ff7895Eb842794c5d07C4c547b6730e61295215",
|
|
114
117
|
wNative: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
|
|
115
118
|
},
|
|
116
119
|
[chain_js_1.ChainId.ArbitrumMainnet]: {
|
|
@@ -124,6 +127,7 @@ exports.addressesRegistry = {
|
|
|
124
127
|
adaptiveCurveIrm: "0x66F30587FB8D4206918deb78ecA7d5eBbafD06DA",
|
|
125
128
|
publicAllocator: "0x769583Af5e9D03589F159EbEC31Cc2c23E8C355E",
|
|
126
129
|
metaMorphoFactory: "0x878988f5f561081deEa117717052164ea1Ef0c82",
|
|
130
|
+
chainlinkOracleFactory: "0x98Ce5D183DC0c176f54D37162F87e7eD7f2E41b5",
|
|
127
131
|
wNative: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
|
|
128
132
|
// Must implement USDC permit version 2 (otherwise breaks permit signatures).
|
|
129
133
|
usdc: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
|
|
@@ -139,6 +143,7 @@ exports.addressesRegistry = {
|
|
|
139
143
|
adaptiveCurveIrm: "0x8cD70A8F399428456b29546BC5dBe10ab6a06ef6",
|
|
140
144
|
publicAllocator: "0x0d68a97324E602E02799CD83B42D337207B40658",
|
|
141
145
|
metaMorphoFactory: "0x3Bb6A6A0Bc85b367EFE0A5bAc81c5E52C892839a",
|
|
146
|
+
chainlinkOracleFactory: "0x1ec408D4131686f727F3Fd6245CF85Bc5c9DAD70",
|
|
142
147
|
wNative: "0x4200000000000000000000000000000000000006",
|
|
143
148
|
// Must implement USDC permit version 2 (otherwise breaks permit signatures).
|
|
144
149
|
usdc: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
|
|
@@ -152,6 +157,7 @@ exports.addressesRegistry = {
|
|
|
152
157
|
adaptiveCurveIrm: "0x34E99D604751a72cF8d0CFDf87069292d82De472",
|
|
153
158
|
publicAllocator: "0xef9889B4e443DEd35FA0Bd060f2104Cca94e6A43",
|
|
154
159
|
metaMorphoFactory: "0x4DBB3a642a2146d5413750Cca3647086D9ba5F12",
|
|
160
|
+
chainlinkOracleFactory: "0xd706690BA1Fe26b70c4AD89e60ff62cEB3A2eD02",
|
|
155
161
|
wNative: "0x4200000000000000000000000000000000000006",
|
|
156
162
|
},
|
|
157
163
|
[chain_js_1.ChainId.FraxtalMainnet]: {
|
|
@@ -163,6 +169,7 @@ exports.addressesRegistry = {
|
|
|
163
169
|
adaptiveCurveIrm: "0xA0D4D77b5D9933073572E19C172BFE866312673b",
|
|
164
170
|
publicAllocator: "0x37a888192165fC39884f87c64E2476BfD2C09675",
|
|
165
171
|
metaMorphoFactory: "0x27D4Af0AC9E7FDfA6D0853236f249CC27AE79488",
|
|
172
|
+
chainlinkOracleFactory: "0x39d8622C607A691D7705E8842fbB12E3c38dCD41",
|
|
166
173
|
wNative: "0xfc00000000000000000000000000000000000006",
|
|
167
174
|
},
|
|
168
175
|
[chain_js_1.ChainId.ScrollMainnet]: {
|
|
@@ -174,6 +181,7 @@ exports.addressesRegistry = {
|
|
|
174
181
|
adaptiveCurveIrm: "0xa5EA7500A27C0079961D93366A6e93aafF18CB90",
|
|
175
182
|
publicAllocator: "0x8a7f671E45E51dE245649Cf916cA0256FB8a9927",
|
|
176
183
|
metaMorphoFactory: "0x56b65742ade55015e6480959808229Ad6dbc9295",
|
|
184
|
+
chainlinkOracleFactory: "0xb5961902E60b188b1c665B7b72Ef616656A9e24E",
|
|
177
185
|
wNative: "0x5300000000000000000000000000000000000004",
|
|
178
186
|
// Must implement USDC permit version 2 (otherwise breaks permit signatures).
|
|
179
187
|
usdc: "0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4",
|
|
@@ -187,10 +195,77 @@ exports.addressesRegistry = {
|
|
|
187
195
|
adaptiveCurveIrm: "0x9515407b1512F53388ffE699524100e7270Ee57B",
|
|
188
196
|
publicAllocator: "0x85416891752a6B81106c1C2999AE1AF5d8Cd3357",
|
|
189
197
|
metaMorphoFactory: "0xd3f39505d0c48AFED3549D625982FdC38Ea9904b",
|
|
198
|
+
chainlinkOracleFactory: "0x3FFFE273ee348b9E1ef89533025C7f165B17B439",
|
|
190
199
|
wNative: "0x4200000000000000000000000000000000000006",
|
|
191
200
|
// Must implement USDC permit version 2 (otherwise breaks permit signatures).
|
|
192
201
|
usdc: "0xF1815bd50389c46847f0Bda824eC8da914045D14",
|
|
193
202
|
},
|
|
203
|
+
[chain_js_1.ChainId.Unichain]: {
|
|
204
|
+
morpho: "0x8f5ae9CddB9f68de460C77730b018Ae7E04a140A",
|
|
205
|
+
bundler3: {
|
|
206
|
+
bundler3: "0x7DD85759182495AF7F6757DA75036d24A9B58bc3",
|
|
207
|
+
generalAdapter1: "0xC11329d19C2275c9E759867e879ECFcEeD7e30A0",
|
|
208
|
+
},
|
|
209
|
+
adaptiveCurveIrm: "0x9a6061d51743B31D2c3Be75D83781Fa423f53F0E",
|
|
210
|
+
publicAllocator: "0xB0c9a107fA17c779B3378210A7a593e88938C7C9",
|
|
211
|
+
metaMorphoFactory: "0xe9EdE3929F43a7062a007C3e8652e4ACa610Bdc0",
|
|
212
|
+
chainlinkOracleFactory: "0x43269546e1D586a1f7200a0AC07e26f9631f7539",
|
|
213
|
+
wNative: "0x4200000000000000000000000000000000000006",
|
|
214
|
+
// Must implement USDC permit version 2 (otherwise breaks permit signatures).
|
|
215
|
+
usdc: "0x078D782b760474a361dDA0AF3839290b0EF57AD6",
|
|
216
|
+
},
|
|
217
|
+
[chain_js_1.ChainId.SonicMainnet]: {
|
|
218
|
+
morpho: "0xd6c916eB7542D0Ad3f18AEd0FCBD50C582cfa95f",
|
|
219
|
+
bundler3: {
|
|
220
|
+
bundler3: "0xB06F1Ad8c908b958E596c42973f67F2f1d9a9afF",
|
|
221
|
+
generalAdapter1: "0x31D5aee8D75EEab548cfA0d11C4f9843a5201eaf",
|
|
222
|
+
},
|
|
223
|
+
adaptiveCurveIrm: "0xDEfCf242226425f93d8DD0e314735C28517C473F",
|
|
224
|
+
publicAllocator: "0x6Cef2EDC70D87E8f1623f3096efF05d066E59B36",
|
|
225
|
+
metaMorphoFactory: "0x0cE9e3512CB4df8ae7e265e62Fb9258dc14f12e8",
|
|
226
|
+
chainlinkOracleFactory: "0x7DA59Fa482F1F49fADc486d8e47BADc506fEb86d",
|
|
227
|
+
wNative: "0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38",
|
|
228
|
+
},
|
|
229
|
+
[chain_js_1.ChainId.HemiMainnet]: {
|
|
230
|
+
morpho: "0xa4Ca2c2e25b97DA19879201bA49422bc6f181f42",
|
|
231
|
+
bundler3: {
|
|
232
|
+
bundler3: "0x8eDa6E01a20E3Cd90B3B2AF6F790cB8FADEf3Ea8",
|
|
233
|
+
generalAdapter1: "0x9623090C3943ad63F7d794378273610Dd0deeFD4",
|
|
234
|
+
},
|
|
235
|
+
adaptiveCurveIrm: "0xdEbdEa31624552DF904A065221cD14088ABDeD70",
|
|
236
|
+
publicAllocator: "0x4107Ea1746909028d6212B315dE5fE9538F9eb39",
|
|
237
|
+
metaMorphoFactory: "0x8e52179BeB18E882040b01632440d8Ca0f01da82",
|
|
238
|
+
chainlinkOracleFactory: "0xB3cb32E6185446a6Bc7A047E4FfA138fA939e133",
|
|
239
|
+
wNative: "0x4200000000000000000000000000000000000006",
|
|
240
|
+
// Must implement USDC permit version 2 (otherwise breaks permit signatures).
|
|
241
|
+
usdc: "0xad11a8BEb98bbf61dbb1aa0F6d6F2ECD87b35afA",
|
|
242
|
+
},
|
|
243
|
+
[chain_js_1.ChainId.ModeMainnet]: {
|
|
244
|
+
morpho: "0xd85cE6BD68487E0AaFb0858FDE1Cd18c76840564",
|
|
245
|
+
bundler3: {
|
|
246
|
+
bundler3: "0xFEA0edFa081C8D5960Ec9Bf6684981dB1834305d",
|
|
247
|
+
generalAdapter1: "0xF53925b95Cc409447066cd5c1A7756084b2Ee0a4",
|
|
248
|
+
},
|
|
249
|
+
adaptiveCurveIrm: "0xE3d46Ae190Cb39ccA3655E966DcEF96b4eAe1d1c",
|
|
250
|
+
publicAllocator: "0xEE868Bf3359DA30c10ea472EAEBFC0a06E8F0120",
|
|
251
|
+
metaMorphoFactory: "0xae5b0884bfff430493D6C844B9fd052Af7d79278",
|
|
252
|
+
chainlinkOracleFactory: "0xf9380f7898423Bd7FDe3C9fDD1b2671A2471f39D",
|
|
253
|
+
wNative: "0x4200000000000000000000000000000000000006",
|
|
254
|
+
},
|
|
255
|
+
[chain_js_1.ChainId.CornMainnet]: {
|
|
256
|
+
morpho: "0xc2B1E031540e3F3271C5F3819F0cC7479a8DdD90",
|
|
257
|
+
bundler3: {
|
|
258
|
+
bundler3: "0x086889F9bdE8349512dD77088A7114E6C1c42Af7",
|
|
259
|
+
generalAdapter1: "0x464a402244bCDdc0c2091D5193E8ffdb2be54Ca9",
|
|
260
|
+
},
|
|
261
|
+
adaptiveCurveIrm: "0x58a42117d753a0e69694545DfA19d64c2fB759fB",
|
|
262
|
+
publicAllocator: "0xDFde06e2B2A2D718eE5560b73dA4F830E56A2f10",
|
|
263
|
+
metaMorphoFactory: "0xe430821595602eA5DD0cD350f86987437c7362fA",
|
|
264
|
+
chainlinkOracleFactory: "0x16278156D366fC91536b6b81482ffaC47EEa06D6",
|
|
265
|
+
wNative: "0xda5dDd7270381A7C2717aD10D1c0ecB19e3CDFb2",
|
|
266
|
+
// Must implement USDC permit version 2 (otherwise breaks permit signatures).
|
|
267
|
+
usdc: "0xDF0B24095e15044538866576754F3C964e902Ee6",
|
|
268
|
+
},
|
|
194
269
|
};
|
|
195
270
|
exports.addresses = exports.addressesRegistry;
|
|
196
271
|
const getChainAddresses = (chainId) => {
|
|
@@ -230,6 +305,11 @@ exports.unwrappedTokensMapping = {
|
|
|
230
305
|
[chain_js_1.ChainId.FraxtalMainnet]: {},
|
|
231
306
|
[chain_js_1.ChainId.ScrollMainnet]: {},
|
|
232
307
|
[chain_js_1.ChainId.InkMainnet]: {},
|
|
308
|
+
[chain_js_1.ChainId.Unichain]: {},
|
|
309
|
+
[chain_js_1.ChainId.SonicMainnet]: {},
|
|
310
|
+
[chain_js_1.ChainId.HemiMainnet]: {},
|
|
311
|
+
[chain_js_1.ChainId.ModeMainnet]: {},
|
|
312
|
+
[chain_js_1.ChainId.CornMainnet]: {},
|
|
233
313
|
};
|
|
234
314
|
function getUnwrappedToken(wrappedToken, chainId) {
|
|
235
315
|
return exports.unwrappedTokensMapping[chainId][wrappedToken];
|
package/lib/chain.d.ts
CHANGED
|
@@ -7,7 +7,12 @@ export declare enum ChainId {
|
|
|
7
7
|
WorldChainMainnet = 480,
|
|
8
8
|
FraxtalMainnet = 252,
|
|
9
9
|
ScrollMainnet = 534352,
|
|
10
|
-
InkMainnet = 57073
|
|
10
|
+
InkMainnet = 57073,
|
|
11
|
+
Unichain = 130,
|
|
12
|
+
SonicMainnet = 146,
|
|
13
|
+
HemiMainnet = 43111,
|
|
14
|
+
ModeMainnet = 34443,
|
|
15
|
+
CornMainnet = 21000000
|
|
11
16
|
}
|
|
12
17
|
export interface ChainMetadata {
|
|
13
18
|
readonly name: string;
|
package/lib/chain.js
CHANGED
|
@@ -12,6 +12,11 @@ var ChainId;
|
|
|
12
12
|
ChainId[ChainId["FraxtalMainnet"] = 252] = "FraxtalMainnet";
|
|
13
13
|
ChainId[ChainId["ScrollMainnet"] = 534352] = "ScrollMainnet";
|
|
14
14
|
ChainId[ChainId["InkMainnet"] = 57073] = "InkMainnet";
|
|
15
|
+
ChainId[ChainId["Unichain"] = 130] = "Unichain";
|
|
16
|
+
ChainId[ChainId["SonicMainnet"] = 146] = "SonicMainnet";
|
|
17
|
+
ChainId[ChainId["HemiMainnet"] = 43111] = "HemiMainnet";
|
|
18
|
+
ChainId[ChainId["ModeMainnet"] = 34443] = "ModeMainnet";
|
|
19
|
+
ChainId[ChainId["CornMainnet"] = 21000000] = "CornMainnet";
|
|
15
20
|
})(ChainId || (exports.ChainId = ChainId = {}));
|
|
16
21
|
var ChainUtils;
|
|
17
22
|
(function (ChainUtils) {
|
|
@@ -91,5 +96,40 @@ var ChainUtils;
|
|
|
91
96
|
explorerUrl: "https://explorer.inkonchain.com",
|
|
92
97
|
identifier: "ink",
|
|
93
98
|
},
|
|
99
|
+
[ChainId.Unichain]: {
|
|
100
|
+
name: "Unichain",
|
|
101
|
+
id: ChainId.Unichain,
|
|
102
|
+
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
103
|
+
explorerUrl: "https://uniscan.xyz",
|
|
104
|
+
identifier: "unichain",
|
|
105
|
+
},
|
|
106
|
+
[ChainId.SonicMainnet]: {
|
|
107
|
+
name: "Sonic",
|
|
108
|
+
id: ChainId.SonicMainnet,
|
|
109
|
+
nativeCurrency: { name: "Sonic", symbol: "S", decimals: 18 },
|
|
110
|
+
explorerUrl: "https://sonicscan.org",
|
|
111
|
+
identifier: "sonic",
|
|
112
|
+
},
|
|
113
|
+
[ChainId.HemiMainnet]: {
|
|
114
|
+
name: "Hemi",
|
|
115
|
+
id: ChainId.HemiMainnet,
|
|
116
|
+
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
117
|
+
explorerUrl: "https://explorer.hemi.xyz",
|
|
118
|
+
identifier: "hemi",
|
|
119
|
+
},
|
|
120
|
+
[ChainId.ModeMainnet]: {
|
|
121
|
+
name: "Mode",
|
|
122
|
+
id: ChainId.ModeMainnet,
|
|
123
|
+
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
124
|
+
explorerUrl: "https://modescan.io",
|
|
125
|
+
identifier: "mode",
|
|
126
|
+
},
|
|
127
|
+
[ChainId.CornMainnet]: {
|
|
128
|
+
name: "Corn",
|
|
129
|
+
id: ChainId.CornMainnet,
|
|
130
|
+
nativeCurrency: { name: "Bitcoin", symbol: "BTCN", decimals: 18 },
|
|
131
|
+
explorerUrl: "https://cornscan.io",
|
|
132
|
+
identifier: "corn",
|
|
133
|
+
},
|
|
94
134
|
};
|
|
95
135
|
})(ChainUtils || (exports.ChainUtils = ChainUtils = {}));
|