Skip to content

Commit 26a9153

Browse files
committed
Etherlink shadownet chain (#8611)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" --> [SDK] Feature: Add Etherlink Shadownet Testnet chain ## Notes for the reviewer Adds the Etherlink Shadownet testnet chain (ID 127823) to the predefined chains in the SDK. This includes its native currency (XTZ) and block explorer URL. ## How to test - Verify the `etherlinkShadownet` chain can be imported from `thirdweb/chains`. - Check that the chain object contains the correct `id`, `name`, `nativeCurrency`, and `blockExplorers` properties. - Run `pnpm build` and `pnpm lint` to ensure no new issues are introduced. --- [Slack Thread](https://thirdwebdev.slack.com/archives/C09DS2CKGP2/p1767789368607579?thread_ts=1767789368.607579&cid=C09DS2CKGP2) <a href="https://cursor.com/background-agent?bcId=bc-a0f088a7-057b-46f0-b6a6-3ba957d1e261"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-cursor-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-cursor-light.svg"><img alt="Open in Cursor" src="https://cursor.com/open-in-cursor.svg"></picture></a>&nbsp;<a href="https://cursor.com/agents?id=bc-a0f088a7-057b-46f0-b6a6-3ba957d1e261"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-web-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-web-light.svg"><img alt="Open in Web" src="https://cursor.com/open-in-web.svg"></picture></a> <!-- start pr-codex --> --- ## PR-Codex overview This PR introduces the `Etherlink Shadownet` testnet chain to the project, defining its properties and adding it to the exports. ### Detailed summary - Added a new chain definition for `etherlinkShadownet` in `etherlink-shadownet.ts`. - Defined properties such as `id`, `name`, `nativeCurrency`, and `blockExplorers`. - Exported `etherlinkShadownet` in `chains.ts` for use in the application. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added support for Etherlink Shadownet testnet chain, enabling development and testing on this network with proper block explorer integration and native currency configuration (XTZ). <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent a3ff757 commit 26a9153

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Add Etherlink Shadownet testnet chain (chain ID 127823)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { defineChain } from "../utils.js";
2+
3+
/**
4+
* @chain
5+
*/
6+
export const etherlinkShadownet = /* @__PURE__ */ defineChain({
7+
blockExplorers: [
8+
{
9+
name: "Etherlink Shadownet Explorer",
10+
url: "https://shadownet.explorer.etherlink.com/",
11+
},
12+
],
13+
id: 127823,
14+
name: "Etherlink Shadownet",
15+
nativeCurrency: {
16+
decimals: 18,
17+
name: "Etherlink",
18+
symbol: "XTZ",
19+
},
20+
testnet: true,
21+
});

packages/thirdweb/src/exports/chains.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export { degen } from "../chains/chain-definitions/degen.js";
3232
// mainnet = alias for ethereum
3333
export { ethereum, mainnet } from "../chains/chain-definitions/ethereum.js";
3434
export { etherlink } from "../chains/chain-definitions/etherlink.js";
35+
export { etherlinkShadownet } from "../chains/chain-definitions/etherlink-shadownet.js";
3536
export { etherlinkTestnet } from "../chains/chain-definitions/etherlink-testnet.js";
3637
export { fantom } from "../chains/chain-definitions/fantom.js";
3738
export { fantomTestnet } from "../chains/chain-definitions/fantom-testnet.js";

0 commit comments

Comments
 (0)