Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/etherlink-shadownet-chain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"thirdweb": patch
---

Add Etherlink Shadownet testnet chain (chain ID 127823)
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { defineChain } from "../utils.js";

/**
* @chain
*/
export const etherlinkShadownet = /* @__PURE__ */ defineChain({
blockExplorers: [
{
name: "Etherlink Shadownet Explorer",
url: "https://shadownet.explorer.etherlink.com/",
},
],
id: 127823,
name: "Etherlink Shadownet",
nativeCurrency: {
decimals: 18,
name: "Etherlink",
symbol: "XTZ",
},
testnet: true,
});
Comment on lines +6 to +21
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

cat -n packages/thirdweb/src/chains/chain-definitions/etherlink-shadownet.ts

Repository: thirdweb-dev/js

Length of output: 620


🌐 Web query:

Etherlink Shadownet testnet chain ID RPC explorer official documentation

💡 Result:

Here are the official details for the Etherlink Shadownet Testnet:

Sources: Etherlink docs — “Migrating to Etherlink Shadownet Testnet” and “Network information.” [1] [2]


Rename variable from etherlinkShadownet to etherlinkShadownet.

The variable name contains a typo (missing 'o' in "Shadownet"). All configuration details are accurate: chain ID 127823, explorer URL https://shadownet.explorer.etherlink.com, and native currency XTZ are verified correct for Etherlink Shadownet testnet.

🤖 Prompt for AI Agents
In @packages/thirdweb/src/chains/chain-definitions/etherlink-shadownet.ts around
lines 6 - 21, The exported variable name has a typo—rename the exported const
symbol from etherlinkShadownet to etherlinkShadownet (update the declaration
export const etherlinkShadownet = /* @__PURE__ */ defineChain({...}) to export
const etherlinkShadownet = /* @__PURE__ */ defineChain({...})) and update any
references/imports across the codebase to use etherlinkShadownet so the
identifier matches the correct "Shadownet" spelling.

1 change: 1 addition & 0 deletions packages/thirdweb/src/exports/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export { degen } from "../chains/chain-definitions/degen.js";
// mainnet = alias for ethereum
export { ethereum, mainnet } from "../chains/chain-definitions/ethereum.js";
export { etherlink } from "../chains/chain-definitions/etherlink.js";
export { etherlinkShadownet } from "../chains/chain-definitions/etherlink-shadownet.js";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

# Find and examine the etherlink-shadownet definition file
find . -name "*etherlink-shadownet*" -type f

Repository: thirdweb-dev/js

Length of output: 172


🏁 Script executed:

# Search for the actual variable name definition in chain definitions
rg "etherlinkShadow" --type ts --type tsx

Repository: thirdweb-dev/js

Length of output: 86


🏁 Script executed:

# Also search for any references to this chain
rg "shadownet|Shadownet" --type ts --type tsx -i

Repository: thirdweb-dev/js

Length of output: 86


🏁 Script executed:

cat -n ./packages/thirdweb/src/chains/chain-definitions/etherlink-shadownet.ts

Repository: thirdweb-dev/js

Length of output: 620


🏁 Script executed:

# Also check the exports file to see the actual export
cat -n ./packages/thirdweb/src/exports/chains.ts | grep -A 2 -B 2 "etherlink"

Repository: thirdweb-dev/js

Length of output: 603


Fix variable naming inconsistency: rename etherlinkShadownet to etherlinkShadownet.

The variable name etherlinkShadownet contains a typo—it's missing the 'o' in "Shadow". This creates an inconsistency with the official chain name ("Etherlink Shadownet" on line 14) and the file name (etherlink-shadownet.ts). Rename the variable to etherlinkShadownet to match the official naming across the chain definition, file naming, and exported symbol.

🤖 Prompt for AI Agents
In @packages/thirdweb/src/exports/chains.ts at line 35, The exported symbol name
is misspelled; change the export from the incorrect identifier to the correct
one (rename the exported variable to etherlinkShadownet) in the file that
currently does export { etherlinkShadownet } and ensure the corresponding symbol
inside the chain definition module (the export from
"../chains/chain-definitions/etherlink-shadownet.js") is renamed to match; also
update any other references/imports that use the old identifier so all usages of
etherlinkShadownet are consistent.

export { etherlinkTestnet } from "../chains/chain-definitions/etherlink-testnet.js";
export { fantom } from "../chains/chain-definitions/fantom.js";
export { fantomTestnet } from "../chains/chain-definitions/fantom-testnet.js";
Expand Down
Loading