@rhinestone/shared-configs 2.43.0 → 2.43.1
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 +6 -1
- package/dist/scripts/__tests__/validation.test.js +16 -8
- package/dist/src/__tests__/solanaDevnet.test.js +7 -1
- package/dist/src/chains.js +6 -1
- package/dist/src/generated/packageVersion.d.ts +1 -1
- package/dist/src/generated/packageVersion.js +1 -1
- package/package.json +1 -1
package/dist/configs/chains.json
CHANGED
|
@@ -3807,7 +3807,12 @@
|
|
|
3807
3807
|
},
|
|
3808
3808
|
"792703810": {
|
|
3809
3809
|
"caip2": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
|
|
3810
|
-
"explorer":
|
|
3810
|
+
"explorer": {
|
|
3811
|
+
"addressPath": "/account/",
|
|
3812
|
+
"query": "cluster=devnet",
|
|
3813
|
+
"txPath": "/tx/",
|
|
3814
|
+
"url": "https://solscan.io"
|
|
3815
|
+
},
|
|
3811
3816
|
"iconSlug": "solana",
|
|
3812
3817
|
"name": "Solana Devnet",
|
|
3813
3818
|
"nativeToken": {
|
|
@@ -1212,24 +1212,32 @@ function validIndexerEntry(overrides = {}) {
|
|
|
1212
1212
|
const withoutExplorer = Object.entries(index_1.chainRegistry)
|
|
1213
1213
|
.filter(([, e]) => e.explorer == null)
|
|
1214
1214
|
.map(([id]) => id);
|
|
1215
|
-
// Solana Devnet
|
|
1216
|
-
|
|
1217
|
-
// registry edit.
|
|
1218
|
-
(0, bun_test_1.expect)(withoutExplorer).toEqual(["792703810"]);
|
|
1215
|
+
// Every chain links; Solana Devnet's cluster is selected by `query`.
|
|
1216
|
+
(0, bun_test_1.expect)(withoutExplorer).toEqual([]);
|
|
1219
1217
|
for (const venueId of ["1337001", "1337002"]) {
|
|
1220
1218
|
(0, bun_test_1.expect)(index_1.chainRegistry[venueId].explorer.url, venueId).toBe("https://app.hyperliquid.xyz");
|
|
1221
1219
|
}
|
|
1222
1220
|
for (const [id, entry] of Object.entries(index_1.chainRegistry)) {
|
|
1223
1221
|
const explorer = entry.explorer;
|
|
1224
|
-
if (explorer === null)
|
|
1225
|
-
continue;
|
|
1226
1222
|
(0, bun_test_1.expect)(explorer.url, id).toMatch(/^https:\/\/[^/]+$/);
|
|
1227
1223
|
(0, bun_test_1.expect)(explorer.addressPath, id).toMatch(/^\/.*\/$/);
|
|
1228
1224
|
(0, bun_test_1.expect)(explorer.txPath, id).toMatch(/^\/.*\/$/);
|
|
1229
1225
|
(0, bun_test_1.expect)((0, validation_1.chainExplorerProblems)(explorer), id).toEqual([]);
|
|
1230
|
-
// The first shipped query is that same activation step.
|
|
1231
|
-
(0, bun_test_1.expect)("query" in explorer, id).toBe(false);
|
|
1232
1226
|
}
|
|
1227
|
+
// A query reaches only consumers that append it, so it stays confined to
|
|
1228
|
+
// the one chain that needs it.
|
|
1229
|
+
const withQuery = Object.entries(index_1.chainRegistry)
|
|
1230
|
+
.filter(([, e]) => "query" in e.explorer)
|
|
1231
|
+
.map(([id]) => id);
|
|
1232
|
+
(0, bun_test_1.expect)(withQuery).toEqual(["792703810"]);
|
|
1233
|
+
(0, bun_test_1.expect)(index_1.chainRegistry["792703810"].explorer).toEqual(solscanDevnet);
|
|
1234
|
+
// Same host as Devnet, but mainnet is the default cluster and keeps its
|
|
1235
|
+
// route.
|
|
1236
|
+
(0, bun_test_1.expect)(index_1.chainRegistry["792703809"].explorer).toEqual({
|
|
1237
|
+
url: "https://solscan.io",
|
|
1238
|
+
addressPath: "/address/",
|
|
1239
|
+
txPath: "/tx/",
|
|
1240
|
+
});
|
|
1233
1241
|
});
|
|
1234
1242
|
});
|
|
1235
1243
|
(0, bun_test_1.describe)("classifyChainPublicRpcUrls", () => {
|
|
@@ -21,11 +21,17 @@ const SOLANA_ID = 792_703_809;
|
|
|
21
21
|
vmType: 'svm',
|
|
22
22
|
network: 'testnet',
|
|
23
23
|
stack: 'vanilla',
|
|
24
|
-
explorer: null,
|
|
25
24
|
iconSlug: 'solana',
|
|
26
25
|
providerIds: { alchemy: null, zerion: null },
|
|
27
26
|
sessionCapable: false,
|
|
28
27
|
});
|
|
28
|
+
// Exact, not a subset: Solscan opens mainnet without the cluster query.
|
|
29
|
+
(0, bun_test_1.expect)(entry.explorer).toEqual({
|
|
30
|
+
url: 'https://solscan.io',
|
|
31
|
+
addressPath: '/account/',
|
|
32
|
+
txPath: '/tx/',
|
|
33
|
+
query: 'cluster=devnet',
|
|
34
|
+
});
|
|
29
35
|
(0, bun_test_1.expect)(index_1.testnetChainList[String(DEVNET_ID)]).toEqual({ providers: [] });
|
|
30
36
|
(0, bun_test_1.expect)(index_1.mainnetChainList[String(DEVNET_ID)]).toBeUndefined();
|
|
31
37
|
for (const viemChains of [index_1.mainnetChains, index_1.testnetChains, index_1.chains]) {
|
package/dist/src/chains.js
CHANGED
|
@@ -3928,7 +3928,12 @@ const chains = {
|
|
|
3928
3928
|
},
|
|
3929
3929
|
"792703810": {
|
|
3930
3930
|
"caip2": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
|
|
3931
|
-
"explorer":
|
|
3931
|
+
"explorer": {
|
|
3932
|
+
"addressPath": "/account/",
|
|
3933
|
+
"query": "cluster=devnet",
|
|
3934
|
+
"txPath": "/tx/",
|
|
3935
|
+
"url": "https://solscan.io"
|
|
3936
|
+
},
|
|
3932
3937
|
"iconSlug": "solana",
|
|
3933
3938
|
"name": "Solana Devnet",
|
|
3934
3939
|
"nativeToken": {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const PACKAGE_VERSION = "2.43.
|
|
1
|
+
declare const PACKAGE_VERSION = "2.43.1";
|
|
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 = "2.43.
|
|
5
|
+
const PACKAGE_VERSION = "2.43.1";
|
|
6
6
|
exports.PACKAGE_VERSION = PACKAGE_VERSION;
|