Skip to content
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

chore(thegraph): fix mainnet subgraph URL #1404

Merged
merged 1 commit into from
May 28, 2024
Merged
Changes from all commits
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
11 changes: 0 additions & 11 deletions packages/payment-detection/src/thegraph/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ import { RequestConfig } from 'graphql-request/src/types';
const THE_GRAPH_STUDIO_URL =
'https://api.studio.thegraph.com/query/67444/request-payments-$NETWORK/version/latest';

const THE_GRAPH_STUDIO_URL_RF =
'https://api.studio.thegraph.com/query/35843/request-payments-$NETWORK/version/latest';

const THE_GRAPH_URL_MANTLE_TESTNET =
'https://graph.testnet.mantle.xyz/subgraphs/name/requestnetwork/request-payments-mantle-testnet';

Expand Down Expand Up @@ -107,13 +104,5 @@ export const defaultGetTheGraphClient = (
? getTheGraphEvmClient(THE_GRAPH_URL_MANTLE_TESTNET, options)
: network === 'core'
? getTheGraphEvmClient(THE_GRAPH_URL_CORE, options)
: /**
* This subgraph could not be transferred from the RF Studio account to the RN Studio account,
* because of an issue with TheGraph Studio and the fact that it was created before the
* migration to TheGraph decentralized network based on Arbitrum.
* FIXME: transfer this subgraph to the RN Studio account
*/
network === 'mainnet'
? getTheGraphEvmClient(`${THE_GRAPH_STUDIO_URL_RF.replace('$NETWORK', network)}`, options)
: getTheGraphEvmClient(`${THE_GRAPH_STUDIO_URL.replace('$NETWORK', network)}`, options);
};
Loading