-
Notifications
You must be signed in to change notification settings - Fork 559
Added Somnia Testnet #7474
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
Added Somnia Testnet #7474
Conversation
🦋 Changeset detectedLatest commit: 836e068 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
WalkthroughA new chain definition for the Somnia Testnet was introduced, including its configuration details and block explorer. Additionally, a changeset was added to mark this as a patch update for the 'thirdweb' package. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant SDK
participant SomniaTestnet
User ->> SDK: Selects Somnia Testnet
SDK ->> SomniaTestnet: Interacts using defined chain configuration
SomniaTestnet -->> SDK: Returns responses (e.g., block data, transactions)
SDK -->> User: Provides blockchain interaction results
Suggested labels
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (2)
⏰ Context from checks skipped due to timeout of 90000ms (8)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@emmaodia is attempting to deploy a commit to the thirdweb Team on Vercel. A member of the Team first needs to authorize it. |
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.
Actionable comments posted: 3
🧹 Nitpick comments (1)
.changeset/fresh-words-learn.md (1)
5-5
: Consider adding user-facing context in the changeset bodyA one-liner changelog entry like “Add Somnia Testnet” is terse. Mention key details (chain ID, explorer, RPC) to help downstream consumers scanning CHANGELOGs.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.changeset/fresh-words-learn.md
(1 hunks)packages/thirdweb/src/chains/chain-definitions/somniaTestnet.ts
(1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-06-25T02:13:08.257Z
Learning: Use FORKED_ETHEREUM_CHAIN for mainnet interactions and ANVIL_CHAIN for isolated tests.
Learnt from: MananTank
PR: thirdweb-dev/js#7298
File: apps/dashboard/src/app/nebula-app/move-funds/move-funds.tsx:424-424
Timestamp: 2025-06-06T23:46:08.795Z
Learning: The thirdweb project has an ESLint rule that restricts direct usage of `defineChain`. When it's necessary to use `defineChain` directly, it's acceptable to disable the rule with `// eslint-disable-next-line no-restricted-syntax`.
packages/thirdweb/src/chains/chain-definitions/somniaTestnet.ts (2)
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-06-25T02:13:08.257Z
Learning: Use FORKED_ETHEREUM_CHAIN for mainnet interactions and ANVIL_CHAIN for isolated tests.
Learnt from: MananTank
PR: thirdweb-dev/js#7298
File: apps/dashboard/src/app/nebula-app/move-funds/move-funds.tsx:424-424
Timestamp: 2025-06-06T23:46:08.795Z
Learning: The thirdweb project has an ESLint rule that restricts direct usage of `defineChain`. When it's necessary to use `defineChain` directly, it's acceptable to disable the rule with `// eslint-disable-next-line no-restricted-syntax`.
🔇 Additional comments (1)
packages/thirdweb/src/chains/chain-definitions/somniaTestnet.ts (1)
14-14
: No duplicate chain ID detected for 50312
- A search across
packages/thirdweb/src/chains/chain-definitions
returned only one occurrence ofid: 50312
insomniaTestnet.ts:14
.- No collisions found; the chain ID is unique.
packages/thirdweb/src/chains/chain-definitions/somniaTestnet.ts
Outdated
Show resolved
Hide resolved
packages/thirdweb/src/chains/chain-definitions/somniaTestnet.ts
Outdated
Show resolved
Hide resolved
packages/thirdweb/src/chains/chain-definitions/somniaTestnet.ts
Outdated
Show resolved
Hide resolved
.changeset/fresh-words-learn.md
Outdated
@@ -0,0 +1,5 @@ | |||
--- | |||
'thirdweb': minor |
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.
this should be a 'patch' change, not 'minor'. i'll fix it for you
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7474 +/- ##
===========================================
- Coverage 51.92% 33.38% -18.55%
===========================================
Files 949 944 -5
Lines 64149 63678 -471
Branches 4228 2377 -1851
===========================================
- Hits 33312 21260 -12052
- Misses 30731 42342 +11611
+ Partials 106 76 -30
🚀 New features to boost your workflow:
|
PR-Codex overview
This PR introduces support for the
Somnia Testnet
in thethirdweb
package, including its definition and export.Detailed summary
somniaTestnet.ts
defining theSomnia Testnet
with its properties.Somnia Testnet Explorer
block explorer details.somniaTestnet
fromchains.ts
for integration.Summary by CodeRabbit