-
Notifications
You must be signed in to change notification settings - Fork 0
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
Remove temporary mainnet RPC and subgraph environment variables #722
base: dev
Are you sure you want to change the base?
Conversation
WalkthroughThe pull request removes temporary environment variables ( Changes
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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 (
|
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
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (5)
.env.template
(0 hunks)apps/earn-protocol/app/api/rpcGateway/route.ts
(2 hunks)apps/earn-protocol/app/server-handlers/position-history/index.ts
(1 hunks)apps/earn-protocol/docker/Dockerfile
(0 hunks)turbo.json
(0 hunks)
💤 Files with no reviewable changes (3)
- .env.template
- apps/earn-protocol/docker/Dockerfile
- turbo.json
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: Build and Integration Test
- GitHub Check: Build and Unit Test
🔇 Additional comments (1)
apps/earn-protocol/app/api/rpcGateway/route.ts (1)
20-20
: Verify RPC gateway URL securityDirect RPC URL usage needs security review.
✅ Verification successful
RPC gateway URL implementation is secure
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Check RPC gateway URL generation and validation ast-grep --pattern 'function getRpcGatewayUrl($_) { $$$ }'Length of output: 1114
Script:
#!/bin/bash # Check related RPC gateway functions ast-grep --pattern 'function getRemoteConfigWithCache($_) { $$$ }' ast-grep --pattern 'function getRpcGatewayBaseUrl() { $$$ }' ast-grep --pattern 'function resolveRpcGatewayUrl($_) { $$$ }'Length of output: 810
Script:
#!/bin/bash # Search for remote config and URL resolution rg -A 5 "getRemoteConfigWithCache|resolveRpcGatewayUrl" --type tsLength of output: 1781
apps/earn-protocol/app/server-handlers/position-history/index.ts
Outdated
Show resolved
Hide resolved
apps/earn-protocol/app/server-handlers/position-history/index.ts
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #722 +/- ##
==========================================
+ Coverage 66.85% 70.08% +3.23%
==========================================
Files 20 129 +109
Lines 178 1344 +1166
Branches 4 78 +74
==========================================
+ Hits 119 942 +823
- Misses 59 402 +343 ☔ View full report in Codecov by Sentry. |
…ion and improve network validation
Eliminate the use of temporary mainnet RPC and subgraph environment variables to streamline configuration and improve code clarity.
Summary by CodeRabbit
Configuration Changes
Code Refactoring