Skip to content

chore: update subgraph map (boba)#1733

Merged
LeoSlrRf merged 1 commit into
masterfrom
chore/update-subgraph-map
Jun 5, 2026
Merged

chore: update subgraph map (boba)#1733
LeoSlrRf merged 1 commit into
masterfrom
chore/update-subgraph-map

Conversation

@LeoSlrRf
Copy link
Copy Markdown
Contributor

@LeoSlrRf LeoSlrRf commented Jun 5, 2026

Description of the changes

Update the subgraphId map for boba network

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented Jun 5, 2026

Greptile Summary

This PR adds a Boba network entry to the THE_GRAPH_EXPLORER_SUBGRAPH_ID map in the TheGraph client configuration, enabling payment detection on the Boba network via TheGraph's decentralized explorer when an API key is provided.

  • Adds boba: 'HKpAPWqjshp2LF1BFxKMJjnKMkmxAqMZ4xYgGdCc8PvT' to the subgraph ID map; boba is already a recognized ChainName in the types package and has full chain definitions in the currency package, so no other files need updating.
  • When no theGraphExplorerApiKey is set, the client falls back to the TheGraph Studio URL (request-payments-boba/version/latest), which is unchanged behavior.

Confidence Score: 5/5

Safe to merge — single-line config addition with no logic changes.

The change adds one entry to a static lookup map. The boba chain name is already defined in the types and currency packages, so no cascading changes are needed. The subgraph ID string follows the same 44-character base58 format as every other entry in the map, and the existing fallback logic handles the case where no API key is supplied.

No files require special attention.

Important Files Changed

Filename Overview
packages/payment-detection/src/thegraph/client.ts Adds a single boba subgraph ID entry to the TheGraph Explorer map; format and placement are consistent with all other entries.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[getTheGraphClientUrl called with 'boba'] --> B{options.url set?}
    B -- Yes --> C[Return custom URL]
    B -- No --> D{theGraphExplorerApiKey & subgraphId present?}
    D -- Yes --> E[Use TheGraph Explorer URL with HKpAPWqj...PvT]
    D -- No --> F[Fallback: TheGraph Studio URL request-payments-boba/version/latest]
Loading

Reviews (1): Last reviewed commit: "chore: update subgraph map" | Re-trigger Greptile

@LeoSlrRf LeoSlrRf merged commit ba2344f into master Jun 5, 2026
13 checks passed
@LeoSlrRf LeoSlrRf deleted the chore/update-subgraph-map branch June 5, 2026 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants