-
Notifications
You must be signed in to change notification settings - Fork 637
Etherlink shadownet chain #8611
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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, | ||
| }); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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"; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # Find and examine the etherlink-shadownet definition file
find . -name "*etherlink-shadownet*" -type fRepository: thirdweb-dev/js Length of output: 172 🏁 Script executed: # Search for the actual variable name definition in chain definitions
rg "etherlinkShadow" --type ts --type tsxRepository: thirdweb-dev/js Length of output: 86 🏁 Script executed: # Also search for any references to this chain
rg "shadownet|Shadownet" --type ts --type tsx -iRepository: thirdweb-dev/js Length of output: 86 🏁 Script executed: cat -n ./packages/thirdweb/src/chains/chain-definitions/etherlink-shadownet.tsRepository: 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 The variable name 🤖 Prompt for AI Agents |
||
| 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"; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
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
etherlinkShadownettoetherlinkShadownet.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