Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/payment-detection/src/thegraph/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const THE_GRAPH_URL_MANTLE_TESTNET =
'https://graph.testnet.mantle.xyz/subgraphs/name/requestnetwork/request-payments-mantle-testnet';

const THE_GRAPH_URL_MANTLE =
'https://graph.fusionx.finance/subgraphs/name/requestnetwork/request-payments-mantle';
'https://subgraph-api.mantle.xyz/api/public/query_deployment?subgraph_id=QmfZ1KQXzpj3VgKv9qFEjXJEyiJzV6EtxFeWYLaM34sHQ5';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tip

Codebase Verification

Critical Issue: New URL Endpoint Returns 404 Error

The updated URL for THE_GRAPH_URL_MANTLE is currently returning a "404 page not found" error. This indicates that the endpoint is incorrect or the subgraph ID is invalid. Please verify the correct URL or subgraph ID to ensure the application can interact with the Mantle subgraph as intended.

  • Location: packages/payment-detection/src/thegraph/client.ts, line 19
Analysis chain

URL Update Approved; Verify Endpoint Functionality

The update to THE_GRAPH_URL_MANTLE is approved as it points to a potentially more structured and reliable API endpoint. However, it's crucial to verify that the new URL is functional and returns the expected data.

Run the following script to verify the new endpoint's functionality:

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the new URL endpoint for the Mantle subgraph.

# Test: Perform a simple query to the new URL. Expect: Successful response and correct data format.
curl -X POST -H "Content-Type: application/json" \
     -d '{"query":"{ subgraphs { id } }"}' \
     "https://subgraph-api.mantle.xyz/api/public/query_deployment?subgraph_id=QmfZ1KQXzpj3VgKv9qFEjXJEyiJzV6EtxFeWYLaM34sHQ5"

Length of output: 624


const THE_GRAPH_URL_CORE =
'https://thegraph.coredao.org/subgraphs/name/requestnetwork/request-payments-core';
Expand Down