@rhinestone/shared-configs 1.11.1 → 1.12.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/dist/configs/chains.json +47 -0
- package/dist/scripts/__tests__/validation.test.js +145 -0
- package/dist/scripts/generate.js +19 -1
- package/dist/scripts/validation.d.ts +51 -0
- package/dist/scripts/validation.js +194 -0
- package/dist/src/chains.d.ts +8 -0
- package/dist/src/chains.js +47 -0
- package/dist/src/generated/abis.d.ts +1 -0
- package/dist/src/generated/abis.js +17 -0
- package/dist/src/generated/contracts.js +44 -22
- package/dist/src/generated/packageVersion.d.ts +1 -1
- package/dist/src/generated/packageVersion.js +1 -1
- package/dist/src/types.d.ts +40 -0
- package/package.json +1 -1
|
@@ -20,7 +20,8 @@ const contractAddresses = {
|
|
|
20
20
|
"feeCollector": "0xfeebabe17996b3346cf80f04a1f072102a90cf09",
|
|
21
21
|
"appFeeCollector": "0xdcc703c0E500B653Ca82273B7BFAd8045D85a470",
|
|
22
22
|
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c",
|
|
23
|
-
"oftProxy": "0x7cbcf2E2B6e29e539326bf5730353D6106D6DA0a"
|
|
23
|
+
"oftProxy": "0x7cbcf2E2B6e29e539326bf5730353D6106D6DA0a",
|
|
24
|
+
"tokenTransferProxy": "0x5afce415b4370e5efd8b9be784d21c331beab965"
|
|
24
25
|
},
|
|
25
26
|
"10": {
|
|
26
27
|
"acrossHandler": "0x505549590d0F107C65a61FD9f71f8dd3f92C393E",
|
|
@@ -40,7 +41,8 @@ const contractAddresses = {
|
|
|
40
41
|
"feeCollector": "0xfeebabe17996b3346cf80f04a1f072102a90cf09",
|
|
41
42
|
"appFeeCollector": "0xdcc703c0E500B653Ca82273B7BFAd8045D85a470",
|
|
42
43
|
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c",
|
|
43
|
-
"oftProxy": "0x4a16B761367f8545cbF0dcFb90c6a190D53d5A4B"
|
|
44
|
+
"oftProxy": "0x4a16B761367f8545cbF0dcFb90c6a190D53d5A4B",
|
|
45
|
+
"tokenTransferProxy": "0x5afce415b4370e5efd8b9be784d21c331beab965"
|
|
44
46
|
},
|
|
45
47
|
"56": {
|
|
46
48
|
"acrossHandler": "0x505549590d0F107C65a61FD9f71f8dd3f92C393E",
|
|
@@ -59,7 +61,8 @@ const contractAddresses = {
|
|
|
59
61
|
"permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
60
62
|
"feeCollector": "0xfeebabe17996b3346cf80f04a1f072102a90cf09",
|
|
61
63
|
"appFeeCollector": "0xdcc703c0E500B653Ca82273B7BFAd8045D85a470",
|
|
62
|
-
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c"
|
|
64
|
+
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c",
|
|
65
|
+
"tokenTransferProxy": "0x5afce415b4370e5efd8b9be784d21c331beab965"
|
|
63
66
|
},
|
|
64
67
|
"100": {
|
|
65
68
|
"relayArbiter": "0xad549C787B8C00B4E880e327c3Ad3965275cEdfd",
|
|
@@ -69,7 +72,8 @@ const contractAddresses = {
|
|
|
69
72
|
"permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
70
73
|
"feeCollector": "0xfeebabe17996b3346cf80f04a1f072102a90cf09",
|
|
71
74
|
"appFeeCollector": "0xdcc703c0E500B653Ca82273B7BFAd8045D85a470",
|
|
72
|
-
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c"
|
|
75
|
+
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c",
|
|
76
|
+
"tokenTransferProxy": "0x5afce415b4370e5efd8b9be784d21c331beab965"
|
|
73
77
|
},
|
|
74
78
|
"130": {
|
|
75
79
|
"acrossHandler": "0x505549590d0F107C65a61FD9f71f8dd3f92C393E",
|
|
@@ -89,7 +93,8 @@ const contractAddresses = {
|
|
|
89
93
|
"feeCollector": "0xfeebabe17996b3346cf80f04a1f072102a90cf09",
|
|
90
94
|
"appFeeCollector": "0xdcc703c0E500B653Ca82273B7BFAd8045D85a470",
|
|
91
95
|
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c",
|
|
92
|
-
"oftProxy": "0xB3bAE89d1F4FbDD56708c3aDc92d54F3e5B2C47e"
|
|
96
|
+
"oftProxy": "0xB3bAE89d1F4FbDD56708c3aDc92d54F3e5B2C47e",
|
|
97
|
+
"tokenTransferProxy": "0x5afce415b4370e5efd8b9be784d21c331beab965"
|
|
93
98
|
},
|
|
94
99
|
"137": {
|
|
95
100
|
"acrossHandler": "0x505549590d0F107C65a61FD9f71f8dd3f92C393E",
|
|
@@ -109,7 +114,8 @@ const contractAddresses = {
|
|
|
109
114
|
"feeCollector": "0xfeebabe17996b3346cf80f04a1f072102a90cf09",
|
|
110
115
|
"appFeeCollector": "0xdcc703c0E500B653Ca82273B7BFAd8045D85a470",
|
|
111
116
|
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c",
|
|
112
|
-
"oftProxy": "0xcaee1Bf3C17B128985C808ed4055Fd83C32EcC71"
|
|
117
|
+
"oftProxy": "0xcaee1Bf3C17B128985C808ed4055Fd83C32EcC71",
|
|
118
|
+
"tokenTransferProxy": "0x5afce415b4370e5efd8b9be784d21c331beab965"
|
|
113
119
|
},
|
|
114
120
|
"143": {
|
|
115
121
|
"acrossHandler": "0x505549590d0F107C65a61FD9f71f8dd3f92C393E",
|
|
@@ -124,7 +130,8 @@ const contractAddresses = {
|
|
|
124
130
|
"permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
125
131
|
"feeCollector": "0xfeebabe17996b3346cf80f04a1f072102a90cf09",
|
|
126
132
|
"appFeeCollector": "0xdcc703c0E500B653Ca82273B7BFAd8045D85a470",
|
|
127
|
-
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c"
|
|
133
|
+
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c",
|
|
134
|
+
"tokenTransferProxy": "0x5afce415b4370e5efd8b9be784d21c331beab965"
|
|
128
135
|
},
|
|
129
136
|
"146": {
|
|
130
137
|
"ecoArbiter": "0x2e7627CCfAe4eDb336eEb5a70f08415B0F1a2b8C",
|
|
@@ -138,7 +145,8 @@ const contractAddresses = {
|
|
|
138
145
|
"permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
139
146
|
"feeCollector": "0xfeebabe17996b3346cf80f04a1f072102a90cf09",
|
|
140
147
|
"appFeeCollector": "0xdcc703c0E500B653Ca82273B7BFAd8045D85a470",
|
|
141
|
-
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c"
|
|
148
|
+
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c",
|
|
149
|
+
"tokenTransferProxy": "0x5afce415b4370e5efd8b9be784d21c331beab965"
|
|
142
150
|
},
|
|
143
151
|
"999": {
|
|
144
152
|
"acrossHandler": "0x505549590d0F107C65a61FD9f71f8dd3f92C393E",
|
|
@@ -157,7 +165,8 @@ const contractAddresses = {
|
|
|
157
165
|
"permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
158
166
|
"feeCollector": "0xfeebabe17996b3346cf80f04a1f072102a90cf09",
|
|
159
167
|
"appFeeCollector": "0xdcc703c0E500B653Ca82273B7BFAd8045D85a470",
|
|
160
|
-
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c"
|
|
168
|
+
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c",
|
|
169
|
+
"tokenTransferProxy": "0x5afce415b4370e5efd8b9be784d21c331beab965"
|
|
161
170
|
},
|
|
162
171
|
"1868": {
|
|
163
172
|
"acrossHandler": "0x505549590d0F107C65a61FD9f71f8dd3f92C393E",
|
|
@@ -172,7 +181,8 @@ const contractAddresses = {
|
|
|
172
181
|
"permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
173
182
|
"feeCollector": "0xfeebabe17996b3346cf80f04a1f072102a90cf09",
|
|
174
183
|
"appFeeCollector": "0xdcc703c0E500B653Ca82273B7BFAd8045D85a470",
|
|
175
|
-
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c"
|
|
184
|
+
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c",
|
|
185
|
+
"tokenTransferProxy": "0x5afce415b4370e5efd8b9be784d21c331beab965"
|
|
176
186
|
},
|
|
177
187
|
"4663": {
|
|
178
188
|
"acrossHandler": "0x505549590d0F107C65a61FD9f71f8dd3f92C393E",
|
|
@@ -187,7 +197,8 @@ const contractAddresses = {
|
|
|
187
197
|
"permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
188
198
|
"feeCollector": "0xfeebabe17996b3346cf80f04a1f072102a90cf09",
|
|
189
199
|
"appFeeCollector": "0xdcc703c0E500B653Ca82273B7BFAd8045D85a470",
|
|
190
|
-
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c"
|
|
200
|
+
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c",
|
|
201
|
+
"tokenTransferProxy": "0x5afce415b4370e5efd8b9be784d21c331beab965"
|
|
191
202
|
},
|
|
192
203
|
"8453": {
|
|
193
204
|
"acrossHandler": "0x505549590d0F107C65a61FD9f71f8dd3f92C393E",
|
|
@@ -206,7 +217,8 @@ const contractAddresses = {
|
|
|
206
217
|
"permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
207
218
|
"feeCollector": "0xfeebabe17996b3346cf80f04a1f072102a90cf09",
|
|
208
219
|
"appFeeCollector": "0xdcc703c0E500B653Ca82273B7BFAd8045D85a470",
|
|
209
|
-
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c"
|
|
220
|
+
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c",
|
|
221
|
+
"tokenTransferProxy": "0x5afce415b4370e5efd8b9be784d21c331beab965"
|
|
210
222
|
},
|
|
211
223
|
"9745": {
|
|
212
224
|
"acrossHandler": "0x505549590d0F107C65a61FD9f71f8dd3f92C393E",
|
|
@@ -226,7 +238,8 @@ const contractAddresses = {
|
|
|
226
238
|
"feeCollector": "0xfeebabe17996b3346cf80f04a1f072102a90cf09",
|
|
227
239
|
"appFeeCollector": "0xdcc703c0E500B653Ca82273B7BFAd8045D85a470",
|
|
228
240
|
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c",
|
|
229
|
-
"oftProxy": "0x2C8d441698332996C754402c35273b6566C8701d"
|
|
241
|
+
"oftProxy": "0x2C8d441698332996C754402c35273b6566C8701d",
|
|
242
|
+
"tokenTransferProxy": "0x5afce415b4370e5efd8b9be784d21c331beab965"
|
|
230
243
|
},
|
|
231
244
|
"9746": {
|
|
232
245
|
"ecoArbiter": "0xA212A6ACCC8db0e4cdf4394D0A851c70Fc27A8F0",
|
|
@@ -237,7 +250,8 @@ const contractAddresses = {
|
|
|
237
250
|
"permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
238
251
|
"feeCollector": "0xfeebabe17996b3346cf80f04a1f072102a90cf09",
|
|
239
252
|
"appFeeCollector": "0xdcc703c0E500B653Ca82273B7BFAd8045D85a470",
|
|
240
|
-
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c"
|
|
253
|
+
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c",
|
|
254
|
+
"tokenTransferProxy": "0x5afce415b4370e5efd8b9be784d21c331beab965"
|
|
241
255
|
},
|
|
242
256
|
"42161": {
|
|
243
257
|
"acrossHandler": "0x505549590d0F107C65a61FD9f71f8dd3f92C393E",
|
|
@@ -257,7 +271,8 @@ const contractAddresses = {
|
|
|
257
271
|
"feeCollector": "0xfeebabe17996b3346cf80f04a1f072102a90cf09",
|
|
258
272
|
"appFeeCollector": "0xdcc703c0E500B653Ca82273B7BFAd8045D85a470",
|
|
259
273
|
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c",
|
|
260
|
-
"oftProxy": "0x4a263e771D73489e15a62e56FD49Dee6A26885A1"
|
|
274
|
+
"oftProxy": "0x4a263e771D73489e15a62e56FD49Dee6A26885A1",
|
|
275
|
+
"tokenTransferProxy": "0x5afce415b4370e5efd8b9be784d21c331beab965"
|
|
261
276
|
},
|
|
262
277
|
"43114": {
|
|
263
278
|
"acrossHandler": "0x505549590d0F107C65a61FD9f71f8dd3f92C393E",
|
|
@@ -272,7 +287,8 @@ const contractAddresses = {
|
|
|
272
287
|
"permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
273
288
|
"feeCollector": "0xfeebabe17996b3346cf80f04a1f072102a90cf09",
|
|
274
289
|
"appFeeCollector": "0xdcc703c0E500B653Ca82273B7BFAd8045D85a470",
|
|
275
|
-
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c"
|
|
290
|
+
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c",
|
|
291
|
+
"tokenTransferProxy": "0x5afce415b4370e5efd8b9be784d21c331beab965"
|
|
276
292
|
},
|
|
277
293
|
"84532": {
|
|
278
294
|
"acrossHandler": "0x505549590d0F107C65a61FD9f71f8dd3f92C393E",
|
|
@@ -288,7 +304,8 @@ const contractAddresses = {
|
|
|
288
304
|
"permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
289
305
|
"feeCollector": "0xfeebabe17996b3346cf80f04a1f072102a90cf09",
|
|
290
306
|
"appFeeCollector": "0xdcc703c0E500B653Ca82273B7BFAd8045D85a470",
|
|
291
|
-
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c"
|
|
307
|
+
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c",
|
|
308
|
+
"tokenTransferProxy": "0x5afce415b4370e5efd8b9be784d21c331beab965"
|
|
292
309
|
},
|
|
293
310
|
"421614": {
|
|
294
311
|
"acrossHandler": "0x505549590d0F107C65a61FD9f71f8dd3f92C393E",
|
|
@@ -304,7 +321,8 @@ const contractAddresses = {
|
|
|
304
321
|
"permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
305
322
|
"feeCollector": "0xfeebabe17996b3346cf80f04a1f072102a90cf09",
|
|
306
323
|
"appFeeCollector": "0xdcc703c0E500B653Ca82273B7BFAd8045D85a470",
|
|
307
|
-
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c"
|
|
324
|
+
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c",
|
|
325
|
+
"tokenTransferProxy": "0x5afce415b4370e5efd8b9be784d21c331beab965"
|
|
308
326
|
},
|
|
309
327
|
"747474": {
|
|
310
328
|
"relayArbiter": "0xad549C787B8C00B4E880e327c3Ad3965275cEdfd",
|
|
@@ -314,7 +332,8 @@ const contractAddresses = {
|
|
|
314
332
|
"permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
315
333
|
"feeCollector": "0xfeebabe17996b3346cf80f04a1f072102a90cf09",
|
|
316
334
|
"appFeeCollector": "0xdcc703c0E500B653Ca82273B7BFAd8045D85a470",
|
|
317
|
-
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c"
|
|
335
|
+
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c",
|
|
336
|
+
"tokenTransferProxy": "0x5afce415b4370e5efd8b9be784d21c331beab965"
|
|
318
337
|
},
|
|
319
338
|
"11155111": {
|
|
320
339
|
"acrossHandler": "0x505549590d0F107C65a61FD9f71f8dd3f92C393E",
|
|
@@ -330,7 +349,8 @@ const contractAddresses = {
|
|
|
330
349
|
"permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
331
350
|
"feeCollector": "0xfeebabe17996b3346cf80f04a1f072102a90cf09",
|
|
332
351
|
"appFeeCollector": "0xdcc703c0E500B653Ca82273B7BFAd8045D85a470",
|
|
333
|
-
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c"
|
|
352
|
+
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c",
|
|
353
|
+
"tokenTransferProxy": "0x5afce415b4370e5efd8b9be784d21c331beab965"
|
|
334
354
|
},
|
|
335
355
|
"11155420": {
|
|
336
356
|
"acrossHandler": "0x505549590d0F107C65a61FD9f71f8dd3f92C393E",
|
|
@@ -346,7 +366,8 @@ const contractAddresses = {
|
|
|
346
366
|
"permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
347
367
|
"feeCollector": "0xfeebabe17996b3346cf80f04a1f072102a90cf09",
|
|
348
368
|
"appFeeCollector": "0xdcc703c0E500B653Ca82273B7BFAd8045D85a470",
|
|
349
|
-
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c"
|
|
369
|
+
"appFeePot": "0x134760a4cC835c4031d772B10D639004443D2A1c",
|
|
370
|
+
"tokenTransferProxy": "0x5afce415b4370e5efd8b9be784d21c331beab965"
|
|
350
371
|
},
|
|
351
372
|
"*": {
|
|
352
373
|
"addressBook": "0x4b9e821f89F0952efe6A60719dcA953eCF980D4D",
|
|
@@ -372,7 +393,8 @@ const contractAddresses = {
|
|
|
372
393
|
"samechainArbiter": "0x000000000006e2569CaF8Ff021810790e0A0D740",
|
|
373
394
|
"samechainAdapter": "0x63ff8Da121e51BC4f4f67df9c37eD2587A119Aeb",
|
|
374
395
|
"smartSessionEmissary": "0xad568B3F825A8d5FFc06DD3253526B64D810Ae89",
|
|
375
|
-
"smartSessionLens": "0xE1B629162B08b8Baefa2B30Ee34D6cAB63580320"
|
|
396
|
+
"smartSessionLens": "0xE1B629162B08b8Baefa2B30Ee34D6cAB63580320",
|
|
397
|
+
"swapper": "0x40CE38e0cbB8ec54a601256E4FacfED5679bccD0"
|
|
376
398
|
}
|
|
377
399
|
};
|
|
378
400
|
exports.contractAddresses = contractAddresses;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const PACKAGE_VERSION = "1.
|
|
1
|
+
declare const PACKAGE_VERSION = "1.12.0";
|
|
2
2
|
export { PACKAGE_VERSION };
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PACKAGE_VERSION = void 0;
|
|
4
4
|
// Auto-generated by scripts/generate.ts. Do not edit manually.
|
|
5
|
-
const PACKAGE_VERSION = "1.
|
|
5
|
+
const PACKAGE_VERSION = "1.12.0";
|
|
6
6
|
exports.PACKAGE_VERSION = PACKAGE_VERSION;
|
package/dist/src/types.d.ts
CHANGED
|
@@ -128,6 +128,46 @@ interface ChainEntry {
|
|
|
128
128
|
* jsonnet where it does not — see `classifyChainExplorers`.
|
|
129
129
|
*/
|
|
130
130
|
explorer: ChainExplorer | null;
|
|
131
|
+
/**
|
|
132
|
+
* Filename stem of this chain's mark in the `chains/` directory of
|
|
133
|
+
* rhinestonewtf/s3-public — today `https://s3.rhinestone.dev/chains/<slug>.svg`.
|
|
134
|
+
*
|
|
135
|
+
* The other half of the same problem `publicRpcUrl` solves: a frontend can
|
|
136
|
+
* already name, link and connect to a chain it was never compiled against,
|
|
137
|
+
* but it could not draw it. Every consumer instead carried a hand-maintained
|
|
138
|
+
* chain-id → asset table, which is the kind of table that is always one chain
|
|
139
|
+
* behind the registry.
|
|
140
|
+
*
|
|
141
|
+
* Deliberately a SLUG, not a URL. This artifact describes chain identity; the
|
|
142
|
+
* CDN it happens to be served from is deployment, and it is the consumer (the
|
|
143
|
+
* deposit-processor) that composes the URL. Publishing full URLs would put the
|
|
144
|
+
* host in a signed artifact read by every service, so moving the CDN would
|
|
145
|
+
* mean re-publishing facts and rolling the fleet rather than changing one
|
|
146
|
+
* template string.
|
|
147
|
+
*
|
|
148
|
+
* Optional, and absence is a normal answer — a chain with no mark renders as a
|
|
149
|
+
* coloured initial chip. A consumer must never treat it as an error. Which
|
|
150
|
+
* chains may be absent is decided at build time, not here: see
|
|
151
|
+
* `validateChainIconSlugs`.
|
|
152
|
+
*/
|
|
153
|
+
iconSlug?: string;
|
|
154
|
+
/**
|
|
155
|
+
* A public, unauthenticated JSON-RPC endpoint over HTTPS, when one is known.
|
|
156
|
+
*
|
|
157
|
+
* The one thing a browser consumer cannot get from anywhere else in this
|
|
158
|
+
* artifact. Building a viem `Chain` with `defineChain` — which the deposit
|
|
159
|
+
* modal does at runtime for chains it was never compiled against — needs the
|
|
160
|
+
* id, name, native currency, explorer and stack, all of which are above, plus
|
|
161
|
+
* an RPC endpoint. That single field is what decides whether a newly added
|
|
162
|
+
* chain is a first-class wallet-connect target or display-only.
|
|
163
|
+
*
|
|
164
|
+
* Deliberately the PUBLIC endpoint, never the rpc-proxy/eRPC one: that path
|
|
165
|
+
* requires an API key, and a browser cannot hold one.
|
|
166
|
+
*
|
|
167
|
+
* Optional. A chain without one degrades to display-only, which is not an
|
|
168
|
+
* error — non-EVM chains are never built as viem chains and never carry it.
|
|
169
|
+
*/
|
|
170
|
+
publicRpcUrl?: string;
|
|
131
171
|
/**
|
|
132
172
|
* True for virtual chains (e.g. HyperCore, chain id 1337) that are addressed
|
|
133
173
|
* as a distinct destination but have no RPC / providers / contracts / gas
|