@morpho-org/blue-sdk 3.0.0-next.0 → 3.0.0-next.10

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.
@@ -1,3 +1,4 @@
1
+ import { type DottedKeys } from "@morpho-org/morpho-ts";
1
2
  import { ChainId } from "./chain.js";
2
3
  import type { Address } from "./types.js";
3
4
  /** Address used to replicate an erc20-behaviour for native token.
@@ -5,11 +6,70 @@ import type { Address } from "./types.js";
5
6
  * NB: data might differ from expected onchain native token data
6
7
  */
7
8
  export declare const NATIVE_ADDRESS = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
8
- export declare const addresses: {
9
+ export interface ChainAddresses {
10
+ morpho: Address;
11
+ permit2?: Address;
12
+ /**
13
+ * @deprecated All bundles should use Bundler3 instead.
14
+ */
15
+ bundler?: Address;
16
+ aaveV3OptimizerBundler?: Address;
17
+ aaveV2Bundler?: Address;
18
+ aaveV3Bundler?: Address;
19
+ compoundV3Bundler?: Address;
20
+ compoundV2Bundler?: Address;
21
+ bundler3: {
22
+ bundler3: Address;
23
+ generalAdapter1: Address;
24
+ paraswapAdapter?: Address;
25
+ erc20WrapperAdapter?: Address;
26
+ compoundV2MigrationAdapter?: Address;
27
+ compoundV3MigrationAdapter?: Address;
28
+ aaveV2MigrationAdapter?: Address;
29
+ aaveV3CoreMigrationAdapter?: Address;
30
+ aaveV3PrimeMigrationAdapter?: Address;
31
+ aaveV3EtherFiMigrationAdapter?: Address;
32
+ aaveV3OptimizerMigrationAdapter?: Address;
33
+ };
34
+ adaptiveCurveIrm: Address;
35
+ publicAllocator?: Address;
36
+ metaMorphoFactory?: Address;
37
+ chainlinkOracleFactory?: Address;
38
+ preLiquidationFactory?: Address;
39
+ wNative?: Address;
40
+ morphoToken?: Address;
41
+ /**
42
+ * Must implement DAI specific permit (otherwise breaks permit signatures).
43
+ */
44
+ dai?: Address;
45
+ /**
46
+ * Must implement USDC permit version 2 (otherwise breaks permit signatures).
47
+ */
48
+ usdc?: Address;
49
+ stEth?: Address;
50
+ wstEth?: Address;
51
+ }
52
+ export declare const addressesRegistry: {
9
53
  readonly 1: {
10
54
  readonly morpho: "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb";
11
55
  readonly permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3";
56
+ /**
57
+ * @deprecated All bundles should use Bundler3 instead.
58
+ */
12
59
  readonly bundler: "0x4095F064B8d3c3548A3bebfd0Bbfd04750E30077";
60
+ readonly bundler3: {
61
+ readonly bundler3: "0x6566194141eefa99Af43Bb5Aa71460Ca2Dc90245";
62
+ readonly generalAdapter1: "0x4A6c312ec70E8747a587EE860a0353cd42Be0aE0";
63
+ readonly paraswapAdapter: "0x03b5259Bd204BfD4A616E5B79b0B786d90c6C38f";
64
+ readonly erc20WrapperAdapter: "0xf83D17dFE160597b19e4FdD8ea61A23e9a87F962";
65
+ readonly compoundV2MigrationAdapter: "0x9B89c07f480Df1945279031b5fC6fF241b8f1101";
66
+ readonly compoundV3MigrationAdapter: "0xdBa5bdE29eA030Bfa6A608592dFcA1D02CB26773";
67
+ readonly aaveV2MigrationAdapter: "0x40288815C399709dFC0875A384B637fFe387961B";
68
+ readonly aaveV3CoreMigrationAdapter: "0xb09e40EbE31b738fbf20289270a397118707D475";
69
+ readonly aaveV3PrimeMigrationAdapter: "0x2CC8d502a65824B4cF9A58DB03490bA024BDB806";
70
+ readonly aaveV3EtherFiMigrationAdapter: "0x4011dc6581fA05F9B0c7A12AdCd676e2b1a59ca3";
71
+ readonly aaveV3OptimizerMigrationAdapter: "0x9e2ea2d5785598a163D569D795f286F5C55ad972";
72
+ };
13
73
  readonly aaveV3OptimizerBundler: "0x16F38d2E764E7BeBF625a8E995b34968226D2F9c";
14
74
  readonly aaveV2Bundler: "0xb3dCc75DB379925edFd3007511A8CE0cB4aa8e76";
15
75
  readonly aaveV3Bundler: "0x98ccB155E86bb478d514a827d16f58c6912f9BDC";
@@ -17,7 +77,9 @@ export declare const addresses: {
17
77
  readonly compoundV2Bundler: "0x26bF52a84360Ad3d01d7CDc28FC2dDC04d8c8647";
18
78
  readonly adaptiveCurveIrm: "0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC";
19
79
  readonly publicAllocator: "0xfd32fA2ca22c76dD6E550706Ad913FC6CE91c75D";
20
- readonly metaMorphoFactory: "0xA9c3D3a366466Fa809d1Ae982Fb2c46E5fC41101";
80
+ readonly metaMorphoFactory: "0x1897A8997241C1cD4bD0698647e4EB7213535c24";
81
+ readonly chainlinkOracleFactory: "0x3A7bB36Ee3f3eE32A60e9f2b33c1e5f2E83ad766";
82
+ readonly preLiquidationFactory: "0x6FF33615e792E35ed1026ea7cACCf42D9BF83476";
21
83
  readonly wNative: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2";
22
84
  readonly morphoToken: "0x9994E35Db50125E0DF82e4c2dde62496CE330999";
23
85
  readonly dai: "0x6B175474E89094C44Da98b954EedeAC495271d0F";
@@ -49,42 +111,206 @@ export declare const addresses: {
49
111
  readonly 8453: {
50
112
  readonly morpho: "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb";
51
113
  readonly permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3";
114
+ /**
115
+ * @deprecated All bundles should use Bundler3 instead.
116
+ */
52
117
  readonly bundler: "0x23055618898e202386e6c13955a58D3C68200BFB";
118
+ readonly bundler3: {
119
+ readonly bundler3: "0x6BFd8137e702540E7A42B74178A4a49Ba43920C4";
120
+ readonly generalAdapter1: "0xb98c948CFA24072e58935BC004a8A7b376AE746A";
121
+ readonly paraswapAdapter: "0x6abE8ABd0275E5564ed1336F0243A52C32562F71";
122
+ readonly erc20WrapperAdapter: "0xdeEf55F0A7366cC3Baf5E04313269389Fe17E9AE";
123
+ readonly compoundV3MigrationAdapter: "0x85D4812Ef92c040d4270eD8547b6835e41FbbB70";
124
+ readonly aaveV3CoreMigrationAdapter: "0xb27Aa2a964eAd5ed661D86974b37e4fB995b36f5";
125
+ };
53
126
  readonly compoundV2Bundler: "0x123f3167a416cA19365dE03a65e0AF3532af7223";
54
127
  readonly aaveV3Bundler: "0xcAe2929baBc60Be34818EaA5F40bF69265677108";
55
128
  readonly compoundV3Bundler: "0x1f8076e2EB6f10b12e6886f30D4909A91969F7dA";
56
129
  readonly adaptiveCurveIrm: "0x46415998764C29aB2a25CbeA6254146D50D22687";
57
130
  readonly publicAllocator: "0xA090dD1a701408Df1d4d0B85b716c87565f90467";
58
- readonly metaMorphoFactory: "0xA9c3D3a366466Fa809d1Ae982Fb2c46E5fC41101";
131
+ readonly metaMorphoFactory: "0xFf62A7c278C62eD665133147129245053Bbf5918";
132
+ readonly chainlinkOracleFactory: "0x2DC205F24BCb6B311E5cdf0745B0741648Aebd3d";
133
+ readonly preLiquidationFactory: "0x8cd16b62E170Ee0bA83D80e1F80E6085367e2aef";
59
134
  readonly wNative: "0x4200000000000000000000000000000000000006";
60
135
  readonly usdc: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913";
61
136
  readonly verUsdc: "0x59aaF835D34b1E3dF2170e4872B785f11E2a964b";
62
137
  readonly testUsdc: "0xBC77067f829979812d795d516E523C4033b66409";
63
138
  };
139
+ readonly 137: {
140
+ readonly morpho: "0x1bF0c2541F820E775182832f06c0B7Fc27A25f67";
141
+ readonly bundler3: {
142
+ readonly bundler3: "0x2d9C3A9E67c966C711208cc78b34fB9E9f8db589";
143
+ readonly generalAdapter1: "0xB261B51938A9767406ef83bbFbaAFE16691b7047";
144
+ readonly paraswapAdapter: "0x5F2617F12D1fDd1e43e72Cb80C92dFcE8124Db8d";
145
+ readonly compoundV3MigrationAdapter: "0xB34D2f54139bA12defC315C0822aDf9A5eB9A9b7";
146
+ readonly aaveV2MigrationAdapter: "0x43980Ae597f12Ff64690506b2AEEFFb4D8BeAF2a";
147
+ readonly aaveV3CoreMigrationAdapter: "0xEcB1662a1dff5C20650CF98c3334d2fddcD50742";
148
+ };
149
+ readonly permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3";
150
+ readonly adaptiveCurveIrm: "0xe675A2161D4a6E2de2eeD70ac98EEBf257FBF0B0";
151
+ readonly publicAllocator: "0xfac15aff53ADd2ff80C2962127C434E8615Df0d3";
152
+ readonly metaMorphoFactory: "0xa9c87daB340631C34BB738625C70499e29ddDC98";
153
+ readonly chainlinkOracleFactory: "0x1ff7895Eb842794c5d07C4c547b6730e61295215";
154
+ readonly preLiquidationFactory: "0xeDadDe37D76c72b98725614d0b41C20Fe612d304";
155
+ readonly wNative: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270";
156
+ };
157
+ readonly 42161: {
158
+ readonly morpho: "0x6c247b1F6182318877311737BaC0844bAa518F5e";
159
+ readonly bundler3: {
160
+ readonly bundler3: "0x1FA4431bC113D308beE1d46B0e98Cb805FB48C13";
161
+ readonly generalAdapter1: "0x9954aFB60BB5A222714c478ac86990F221788B88";
162
+ readonly paraswapAdapter: "0xAA5c30C1482c189cA0d56057D3ac4dD7Af1e4726";
163
+ };
164
+ readonly permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3";
165
+ readonly adaptiveCurveIrm: "0x66F30587FB8D4206918deb78ecA7d5eBbafD06DA";
166
+ readonly publicAllocator: "0x769583Af5e9D03589F159EbEC31Cc2c23E8C355E";
167
+ readonly metaMorphoFactory: "0x878988f5f561081deEa117717052164ea1Ef0c82";
168
+ readonly chainlinkOracleFactory: "0x98Ce5D183DC0c176f54D37162F87e7eD7f2E41b5";
169
+ readonly preLiquidationFactory: "0x635c31B5DF1F7EFbCbC07E302335Ef4230758e3d";
170
+ readonly wNative: "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1";
171
+ readonly usdc: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831";
172
+ };
173
+ readonly 10: {
174
+ readonly morpho: "0xce95AfbB8EA029495c66020883F87aaE8864AF92";
175
+ readonly bundler3: {
176
+ readonly bundler3: "0xFBCd3C258feB131D8E038F2A3a670A7bE0507C05";
177
+ readonly generalAdapter1: "0x79481C87f24A3C4332442A2E9faaf675e5F141f0";
178
+ readonly paraswapAdapter: "0x31F539f4Ed14fA1fd18781e93f6739249692aDC5";
179
+ };
180
+ readonly permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3";
181
+ readonly adaptiveCurveIrm: "0x8cD70A8F399428456b29546BC5dBe10ab6a06ef6";
182
+ readonly publicAllocator: "0x0d68a97324E602E02799CD83B42D337207B40658";
183
+ readonly metaMorphoFactory: "0x3Bb6A6A0Bc85b367EFE0A5bAc81c5E52C892839a";
184
+ readonly chainlinkOracleFactory: "0x1ec408D4131686f727F3Fd6245CF85Bc5c9DAD70";
185
+ readonly preLiquidationFactory: "0x3d05C01EE8e97361b9E19D172128255eaE5F98B9";
186
+ readonly wNative: "0x4200000000000000000000000000000000000006";
187
+ readonly usdc: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85";
188
+ };
189
+ readonly 480: {
190
+ readonly morpho: "0xE741BC7c34758b4caE05062794E8Ae24978AF432";
191
+ readonly bundler3: {
192
+ readonly bundler3: "0x3D07BF2FFb23248034bF704F3a4786F1ffE2a448";
193
+ readonly generalAdapter1: "0x30fa9A3cF56931ACEea42E28D35519a97D90aA67";
194
+ };
195
+ readonly adaptiveCurveIrm: "0x34E99D604751a72cF8d0CFDf87069292d82De472";
196
+ readonly publicAllocator: "0xef9889B4e443DEd35FA0Bd060f2104Cca94e6A43";
197
+ readonly metaMorphoFactory: "0x4DBB3a642a2146d5413750Cca3647086D9ba5F12";
198
+ readonly chainlinkOracleFactory: "0xd706690BA1Fe26b70c4AD89e60ff62cEB3A2eD02";
199
+ readonly preLiquidationFactory: "0xe3cE2051a24e58DBFC0eFBe4c2d9e89c5eAe4695";
200
+ readonly wNative: "0x4200000000000000000000000000000000000006";
201
+ };
202
+ readonly 252: {
203
+ readonly morpho: "0xa6030627d724bA78a59aCf43Be7550b4C5a0653b";
204
+ readonly bundler3: {
205
+ readonly bundler3: "0xA7a414823Ef0F8CFb2c4f67f2F445DA940641d91";
206
+ readonly generalAdapter1: "0x228dDF333DDf6D1895dA1dE8a846EDD27F1284eD";
207
+ };
208
+ readonly adaptiveCurveIrm: "0xA0D4D77b5D9933073572E19C172BFE866312673b";
209
+ readonly publicAllocator: "0x37a888192165fC39884f87c64E2476BfD2C09675";
210
+ readonly metaMorphoFactory: "0x27D4Af0AC9E7FDfA6D0853236f249CC27AE79488";
211
+ readonly chainlinkOracleFactory: "0x39d8622C607A691D7705E8842fbB12E3c38dCD41";
212
+ readonly preLiquidationFactory: "0xe3cE2051a24e58DBFC0eFBe4c2d9e89c5eAe4695";
213
+ readonly wNative: "0xfc00000000000000000000000000000000000006";
214
+ };
215
+ readonly 534352: {
216
+ readonly morpho: "0x2d012EdbAdc37eDc2BC62791B666f9193FDF5a55";
217
+ readonly bundler3: {
218
+ readonly bundler3: "0x60F9159d4dCd724e743212416FD57d8aC0B60768";
219
+ readonly generalAdapter1: "0xD2780fae0869cDc06EE202152304A39653361525";
220
+ };
221
+ readonly adaptiveCurveIrm: "0xa5EA7500A27C0079961D93366A6e93aafF18CB90";
222
+ readonly publicAllocator: "0x8a7f671E45E51dE245649Cf916cA0256FB8a9927";
223
+ readonly metaMorphoFactory: "0x56b65742ade55015e6480959808229Ad6dbc9295";
224
+ readonly chainlinkOracleFactory: "0xb5961902E60b188b1c665B7b72Ef616656A9e24E";
225
+ readonly preLiquidationFactory: "0xeD960178e4aDA0296786Fa79D84e8FDF7bd44B25";
226
+ readonly wNative: "0x5300000000000000000000000000000000000004";
227
+ readonly usdc: "0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4";
228
+ };
229
+ readonly 57073: {
230
+ readonly morpho: "0x857f3EefE8cbda3Bc49367C996cd664A880d3042";
231
+ readonly bundler3: {
232
+ readonly bundler3: "0x7db0F1E2bf1f47ec82220090F388d75D8B9BB6BC";
233
+ readonly generalAdapter1: "0xB8B2aDdCDe1cdC94AaE18a0F8A19df03D8683610";
234
+ };
235
+ readonly adaptiveCurveIrm: "0x9515407b1512F53388ffE699524100e7270Ee57B";
236
+ readonly publicAllocator: "0x85416891752a6B81106c1C2999AE1AF5d8Cd3357";
237
+ readonly metaMorphoFactory: "0xd3f39505d0c48AFED3549D625982FdC38Ea9904b";
238
+ readonly chainlinkOracleFactory: "0x3FFFE273ee348b9E1ef89533025C7f165B17B439";
239
+ readonly preLiquidationFactory: "0x30607fEa77168d2c0401B6f60F0B40E32F9339E3";
240
+ readonly wNative: "0x4200000000000000000000000000000000000006";
241
+ readonly usdc: "0xF1815bd50389c46847f0Bda824eC8da914045D14";
242
+ };
243
+ readonly 130: {
244
+ readonly morpho: "0x8f5ae9CddB9f68de460C77730b018Ae7E04a140A";
245
+ readonly bundler3: {
246
+ readonly bundler3: "0x7DD85759182495AF7F6757DA75036d24A9B58bc3";
247
+ readonly generalAdapter1: "0xC11329d19C2275c9E759867e879ECFcEeD7e30A0";
248
+ };
249
+ readonly adaptiveCurveIrm: "0x9a6061d51743B31D2c3Be75D83781Fa423f53F0E";
250
+ readonly publicAllocator: "0xB0c9a107fA17c779B3378210A7a593e88938C7C9";
251
+ readonly metaMorphoFactory: "0xe9EdE3929F43a7062a007C3e8652e4ACa610Bdc0";
252
+ readonly chainlinkOracleFactory: "0x43269546e1D586a1f7200a0AC07e26f9631f7539";
253
+ readonly preLiquidationFactory: "0xb04e4D3D59Ee47Ca9BA192707AF13A7D02969911";
254
+ readonly wNative: "0x4200000000000000000000000000000000000006";
255
+ readonly usdc: "0x078D782b760474a361dDA0AF3839290b0EF57AD6";
256
+ };
257
+ readonly 146: {
258
+ readonly morpho: "0xd6c916eB7542D0Ad3f18AEd0FCBD50C582cfa95f";
259
+ readonly bundler3: {
260
+ readonly bundler3: "0xB06F1Ad8c908b958E596c42973f67F2f1d9a9afF";
261
+ readonly generalAdapter1: "0x31D5aee8D75EEab548cfA0d11C4f9843a5201eaf";
262
+ };
263
+ readonly adaptiveCurveIrm: "0xDEfCf242226425f93d8DD0e314735C28517C473F";
264
+ readonly publicAllocator: "0x6Cef2EDC70D87E8f1623f3096efF05d066E59B36";
265
+ readonly metaMorphoFactory: "0x0cE9e3512CB4df8ae7e265e62Fb9258dc14f12e8";
266
+ readonly chainlinkOracleFactory: "0x7DA59Fa482F1F49fADc486d8e47BADc506fEb86d";
267
+ readonly preLiquidationFactory: "0xc72129DA4CC808e955699111b8c22B22Ca8A10b8";
268
+ readonly wNative: "0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38";
269
+ };
270
+ readonly 43111: {
271
+ readonly morpho: "0xa4Ca2c2e25b97DA19879201bA49422bc6f181f42";
272
+ readonly bundler3: {
273
+ readonly bundler3: "0x8eDa6E01a20E3Cd90B3B2AF6F790cB8FADEf3Ea8";
274
+ readonly generalAdapter1: "0x9623090C3943ad63F7d794378273610Dd0deeFD4";
275
+ };
276
+ readonly adaptiveCurveIrm: "0xdEbdEa31624552DF904A065221cD14088ABDeD70";
277
+ readonly publicAllocator: "0x4107Ea1746909028d6212B315dE5fE9538F9eb39";
278
+ readonly metaMorphoFactory: "0x8e52179BeB18E882040b01632440d8Ca0f01da82";
279
+ readonly chainlinkOracleFactory: "0xB3cb32E6185446a6Bc7A047E4FfA138fA939e133";
280
+ readonly preLiquidationFactory: "0x40F2896C551194e364F7C846046C34d8a9FE97e4";
281
+ readonly wNative: "0x4200000000000000000000000000000000000006";
282
+ readonly usdc: "0xad11a8BEb98bbf61dbb1aa0F6d6F2ECD87b35afA";
283
+ };
284
+ readonly 34443: {
285
+ readonly morpho: "0xd85cE6BD68487E0AaFb0858FDE1Cd18c76840564";
286
+ readonly bundler3: {
287
+ readonly bundler3: "0xFEA0edFa081C8D5960Ec9Bf6684981dB1834305d";
288
+ readonly generalAdapter1: "0xF53925b95Cc409447066cd5c1A7756084b2Ee0a4";
289
+ };
290
+ readonly adaptiveCurveIrm: "0xE3d46Ae190Cb39ccA3655E966DcEF96b4eAe1d1c";
291
+ readonly publicAllocator: "0xEE868Bf3359DA30c10ea472EAEBFC0a06E8F0120";
292
+ readonly metaMorphoFactory: "0xae5b0884bfff430493D6C844B9fd052Af7d79278";
293
+ readonly chainlinkOracleFactory: "0xf9380f7898423Bd7FDe3C9fDD1b2671A2471f39D";
294
+ readonly preLiquidationFactory: "0x249E4808264c545861e43728186a731dE7c7D745";
295
+ readonly wNative: "0x4200000000000000000000000000000000000006";
296
+ };
297
+ readonly 21000000: {
298
+ readonly morpho: "0xc2B1E031540e3F3271C5F3819F0cC7479a8DdD90";
299
+ readonly bundler3: {
300
+ readonly bundler3: "0x086889F9bdE8349512dD77088A7114E6C1c42Af7";
301
+ readonly generalAdapter1: "0x464a402244bCDdc0c2091D5193E8ffdb2be54Ca9";
302
+ };
303
+ readonly adaptiveCurveIrm: "0x58a42117d753a0e69694545DfA19d64c2fB759fB";
304
+ readonly publicAllocator: "0xDFde06e2B2A2D718eE5560b73dA4F830E56A2f10";
305
+ readonly metaMorphoFactory: "0xe430821595602eA5DD0cD350f86987437c7362fA";
306
+ readonly chainlinkOracleFactory: "0x16278156D366fC91536b6b81482ffaC47EEa06D6";
307
+ readonly preLiquidationFactory: "0xb9065AC18d3EBdb3263B77B587f9c5CD570545D1";
308
+ readonly wNative: "0xda5dDd7270381A7C2717aD10D1c0ecB19e3CDFb2";
309
+ readonly usdc: "0xDF0B24095e15044538866576754F3C964e902Ee6";
310
+ };
64
311
  };
65
- export interface ChainAddresses {
66
- morpho: Address;
67
- permit2: Address;
68
- bundler: Address;
69
- aaveV3OptimizerBundler?: Address;
70
- aaveV2Bundler?: Address;
71
- aaveV3Bundler?: Address;
72
- compoundV3Bundler?: Address;
73
- compoundV2Bundler?: Address;
74
- adaptiveCurveIrm: Address;
75
- publicAllocator: Address;
76
- metaMorphoFactory: Address;
77
- wNative: Address;
78
- morphoToken?: Address;
79
- dai?: Address;
80
- mkr?: Address;
81
- usdc?: Address;
82
- stEth?: Address;
83
- wstEth?: Address;
84
- }
85
- export type AddressLabel = keyof (typeof addresses)[ChainId];
86
- declare const _default: { [n in ChainId]: ChainAddresses; };
87
- export default _default;
312
+ export declare const addresses: Record<number, ChainAddresses>;
313
+ export type AddressLabel = DottedKeys<(typeof addressesRegistry)[ChainId]>;
88
314
  export declare const getChainAddresses: (chainId: number) => ChainAddresses;
89
315
  /**
90
316
  * Assumptions:
@@ -95,23 +321,24 @@ export declare function getUnwrappedToken(wrappedToken: Address, chainId: ChainI
95
321
  /**
96
322
  * The registry of all known ERC20Wrapper tokens.
97
323
  */
98
- export declare const erc20WrapperTokens: Record<ChainId, Set<Address>>;
324
+ export declare const erc20WrapperTokens: Record<number, Set<Address>>;
99
325
  /**
100
326
  * The registry of all known PermissionedERC20Wrapper with a `hasPermission` getter.
101
327
  * All permissioned wrapper tokens are considered ERC20Wrapper and automatically added to the erc20WrapperTokens registry.
102
328
  */
103
- export declare const permissionedWrapperTokens: Record<ChainId, Set<Address>>;
329
+ export declare const permissionedWrapperTokens: Record<number, Set<Address>>;
104
330
  /**
105
331
  * The registry of all known permissioned wrapped Backed tokens.
106
332
  * All permissioned Backed tokens are considered ERC20Wrapper and automatically added to the erc20WrapperTokens registry.
107
333
  */
108
- export declare const permissionedBackedTokens: Record<ChainId, Set<Address>>;
334
+ export declare const permissionedBackedTokens: Record<number, Set<Address>>;
109
335
  /**
110
336
  * The registry of all known permissioned wrapped tokens that require a Coinbase attestation.
111
337
  * All permissioned Coinbase tokens are considered PermissionedERC20Wrapper and automatically added to the permissionedWrapperTokens registry.
112
338
  */
113
- export declare const permissionedCoinbaseTokens: Record<ChainId, Set<Address>>;
339
+ export declare const permissionedCoinbaseTokens: Record<number, Set<Address>>;
340
+ export declare const getPermissionedCoinbaseTokens: (chainId: number) => Set<`0x${string}`>;
114
341
  /** /!\ These tokens can not be listed in `erc20WrapperTokens` because the following specs are different:
115
342
  * - calling `depositFor` supplies on blue instead of minting wrapped token to the user
116
343
  */
117
- export declare const convexWrapperTokens: Record<ChainId, Set<Address>>;
344
+ export declare const convexWrapperTokens: Record<number, Set<Address>>;