Skip to content

fix(payment-detection): mantle subgraph URL - #1750

Merged
alexandre-abrioux-rf merged 2 commits into
masterfrom
fix-mantle-sugraph-url
Aug 5, 2026
Merged

fix(payment-detection): mantle subgraph URL#1750
alexandre-abrioux-rf merged 2 commits into
masterfrom
fix-mantle-sugraph-url

Conversation

@alexandre-abrioux-rf

@alexandre-abrioux-rf alexandre-abrioux-rf commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Description

This PR changes the Mantle subgraph URL, which currently returns an error when called.

Tests

Calling the current URL

curl 'https://subgraph-api.mantle.xyz/api/public/555176e7-c1f4-49f9-9180-f2f03538b039/subgraphs/requestnetwork/request-payments-mantle/v0.1.0/gn' \
  -X POST \
  --data-raw '{"query":"{\n  _meta {\n    block {\n      hash\n      timestamp\n    }\n  }\n}"}'

--> gives failure:

{
  "errors": [
    {
      "message": "deployment `requestnetwork/request-payments-mantle_67eb19c6-a23c-4b88-8517-593d8e5bac34` does not exist"
    }
  ]
}

Calling the fixed URL

curl 'https://subgraph-api.mantle.xyz/api/public/555176e7-c1f4-49f9-9180-f2f03538b039/subgraphs/requestnetwork/request-payments-mantle/541f68f/gn' \
  -X POST \
  --data-raw '{"query":"{\n  _meta {\n    block {\n      hash\n      timestamp\n    }\n  }\n}"}'

--> results in:

{
  "data": {
    "_meta": {
      "block": {
        "hash": "0x69fe6384dff4d2e70cddb80e44c2a1a53909e7890ffe8e47a29e2cd5097a1c18",
        "timestamp": 1785919632
      }
    }
  }
}

Why the URL change?

The hash 541f68f corresponds to the following commit: RequestNetwork/payments-subgraph@541f68f ; but I'm not sure how it was deployed, as the deployment CI still refers to an old URL graph.fusionx.finance: https://github.com/RequestNetwork/payments-subgraph/blob/c176246e16061c10ca794f0ebba318ec7b70fc52/.github/workflows/deploy.yaml#L67

@greptile-apps

greptile-apps Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR replaces the broken Mantle payment subgraph endpoint with the working 541f68f deployment.

  • Updates the Mantle URL used by payment detection.
  • Updates the corresponding URL assertion to match the implementation.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains; the implementation and its Mantle URL assertion now use the same endpoint.

Important Files Changed

Filename Overview
packages/payment-detection/src/thegraph/client.ts Replaces the obsolete Mantle deployment URL with the endpoint documented as working in the PR.
packages/payment-detection/test/thegraph/client.test.ts Updates the Mantle URL expectation, resolving the previously reported stale assertion.

Reviews (2): Last reviewed commit: "fix test" | Re-trigger Greptile

Comment thread packages/payment-detection/src/thegraph/client.ts
@alexandre-abrioux-rf
alexandre-abrioux-rf enabled auto-merge (squash) August 5, 2026 14:30
@alexandre-abrioux-rf
alexandre-abrioux-rf merged commit b1b30e1 into master Aug 5, 2026
10 checks passed
@alexandre-abrioux-rf
alexandre-abrioux-rf deleted the fix-mantle-sugraph-url branch August 5, 2026 15:22
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.

3 participants