-
Notifications
You must be signed in to change notification settings - Fork 543
[Dashboard] Add Sophon testnet to custom claim amounts #7280
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
[Dashboard] Add Sophon testnet to custom claim amounts #7280
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
WalkthroughA new entry for the Sophon testnet, identified by chain ID 531050104 and a claim amount of 5, was added to the custom claim amounts mapping in the testnet faucet claim logic. The function for retrieving claim amounts remains unchanged and now supports this new testnet. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant FaucetAPI
User->>FaucetAPI: Request claim amount (provide chain ID)
FaucetAPI->>FaucetAPI: Lookup chain ID in customClaimAmounts
alt Chain ID is 531050104 (Sophon)
FaucetAPI-->>User: Return claim amount 5
else Other chain ID
FaucetAPI-->>User: Return corresponding or default claim amount
end
Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
✨ Finishing Touches
🪧 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 (
|
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. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7280 +/- ##
=======================================
Coverage 55.57% 55.57%
=======================================
Files 909 909
Lines 58667 58667
Branches 4158 4158
=======================================
Hits 32606 32606
Misses 25954 25954
Partials 107 107
🚀 New features to boost your workflow:
|
size-limit report 📦
|
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: 0
🧹 Nitpick comments (1)
apps/dashboard/src/app/(app)/api/testnet-faucet/claim/claim-amount.ts (1)
6-7
: Add unit test for new mapping
Please include a unit test to verify thatgetFaucetClaimAmount(531050104)
returns5
.Do you want me to generate the test snippet?
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
apps/dashboard/src/app/(app)/api/testnet-faucet/claim/claim-amount.ts
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Size
🔇 Additional comments (1)
apps/dashboard/src/app/(app)/api/testnet-faucet/claim/claim-amount.ts (1)
6-7
: Approve Sophon testnet entry
The addition of chain ID531050104
with a claim amount of5
is correct and aligns with the new Sophon testnet support.
PR-Codex overview
This PR introduces a new claim amount for the Sophon testnet in the
claim-amount.ts
file while retaining the existing claim amount for Aleph Zero.Detailed summary
531050104: 5
.0.1
.0.01
.Summary by CodeRabbit