Skip to content

Commit 314be9a

Browse files
committed
feat: update hyperchains example config and docs
- add block explorer for L1 network - update docs for hyperchains config
1 parent 9a22a44 commit 314be9a

2 files changed

Lines changed: 15 additions & 6 deletions

File tree

hyperchains/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ Array<{
6262
rpcUrls: {
6363
default: { http: [ string ] },
6464
public: { http: [ string ] }
65-
}
65+
};
66+
blockExplorers?: {
67+
default: { name: string; url: string }
68+
};
6669
};
6770
},
6871
tokens: Array<{ // Must include the base token for the chain so the UI can label balances correctly
@@ -77,7 +80,7 @@ Array<{
7780
}>
7881
```
7982
80-
> ℹ️ **Heads up:** include `displaySettings` so your network appears in the selector, fill in `nativeCurrency` for accurate chain metadata, and list the chain's base token in `tokens` to avoid the generic `BASETOKEN` label in the UI.
83+
> ℹ️ **Heads up:** include `displaySettings` so your network appears in the selector, fill in `nativeCurrency` for accurate chain metadata, provide `blockExplorers.default.url` on both L2 and `l1Network` if you want explorer links in the UI, and list the chain's base token in `tokens` to avoid the generic `BASETOKEN` label.
8184
</details>
8285
8386
---

hyperchains/example.config.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,20 @@
2121
"id": 9,
2222
"name": "Localhost",
2323
"network": "localhost",
24-
"nativeCurrency": {
25-
"name": "Ether",
26-
"symbol": "ETH",
27-
"decimals": 18
24+
"nativeCurrency": {
25+
"name": "Ether",
26+
"symbol": "ETH",
27+
"decimals": 18
2828
},
2929
"rpcUrls": {
3030
"default": { "http": ["http://localhost:8545"] },
3131
"public": { "http": ["http://localhost:8545"] }
32+
},
33+
"blockExplorers": {
34+
"default": {
35+
"name": "Local Block Explorer",
36+
"url": "http://localhost:3010"
37+
}
3238
}
3339
}
3440
},

0 commit comments

Comments
 (0)