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

feat: update to studio subgraphs #6326

Merged
merged 4 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
10 changes: 5 additions & 5 deletions packages/adapters/subgraph/.graphclientrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sources:
- name: Connext_Sepolia
handler:
graphql:
endpoint: https://api.thegraph.com/subgraphs/name/connext/runtime-v1-sepolia
endpoint: https://gateway-arbitrum.network.thegraph.com/api/{env.GRAPH_API_KEY}/subgraphs/id/EyVDzPp6mHAZpu2T5uDHYc6ThM4DcrRQFiC4Ecv8gzwX
retry: 5
timeout: 30000 # 30 seconds
transforms:
Expand All @@ -19,7 +19,7 @@ sources:
- name: Hub_Sepolia
handler:
graphql:
endpoint: https://api.thegraph.com/subgraphs/name/connext/hub-v1-sepolia
endpoint: https://gateway-arbitrum.network.thegraph.com/api/{env.GRAPH_API_KEY}/subgraphs/id/8ayCViZnpSRKnDefakqVyPD8YB2nax9QpbgVKHoVt7JH
retry: 5
timeout: 30000 # 30 seconds
transforms:
Expand Down Expand Up @@ -49,7 +49,7 @@ sources:
- name: Connext_ArbitrumSepolia
handler:
graphql:
endpoint: https://api.thegraph.com/subgraphs/name/connext/runtime-v1-arb-sepolia
endpoint: https://gateway-arbitrum.network.thegraph.com/api/{env.GRAPH_API_KEY}/subgraphs/id/UHkcp9QNhzbYZgNiZb8PiQNJTfEjgf7z4QKCn2Ky5py
retry: 5
timeout: 30000 # 30 seconds
transforms:
Expand All @@ -65,7 +65,7 @@ sources:
- name: StableSwap_Sepolia
handler:
graphql:
endpoint: https://api.thegraph.com/subgraphs/name/connext/stableswap-v1-sepolia
endpoint: https://gateway-arbitrum.network.thegraph.com/api/{env.GRAPH_API_KEY}/subgraphs/id/66PVrHjcb8hT54J264xKrhHNvbzA9st71SJ8fBPZH8gE
retry: 5
timeout: 30000 # 30 seconds
transforms:
Expand Down Expand Up @@ -95,7 +95,7 @@ sources:
- name: StableSwap_ArbitrumSepolia
handler:
graphql:
endpoint: https://api.thegraph.com/subgraphs/name/connext/stableswap-v1-arb-sepolia
endpoint: https://gateway-arbitrum.network.thegraph.com/api/{env.GRAPH_API_KEY}/subgraphs/id/3252LvxQqBeo5bnkBUwWUYMMRseFwLHq9Ek5RcZy8KqM
retry: 5
timeout: 30000 # 30 seconds
transforms:
Expand Down
7 changes: 5 additions & 2 deletions packages/utils/src/maticjs/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ use(Web3ClientPlugin);

// get matic and maticPoS clients from maticjs
export const initMatic = async (isMainnet: boolean, maticRPC: string, ethereumRPC: string): Promise<POSClient> => {
const _network = isMainnet ? "mainnet" : "testnet";
const _version = isMainnet ? "v1" : "mumbai";
// const _network = isMainnet ? "mainnet" : "testnet";
// const _version = isMainnet ? "v1" : "mumbai";

const _network = "mainnet";
const _version = "v1";

const maticConfig = {
network: _network,
Expand Down
10 changes: 2 additions & 8 deletions packages/utils/test/maticjs/client.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ describe("maticjs:client", () => {
type InitMaticTestCase = {
title: string;
isMainnet: boolean;
expectedNetwork: "mainnet" | "testnet";
expectedVersion: "v1" | "mumbai";
expectedNetwork: "mainnet";
expectedVersion: "v1";
};

const testCases: InitMaticTestCase[] = [
Expand All @@ -18,12 +18,6 @@ describe("maticjs:client", () => {
expectedNetwork: "mainnet",
expectedVersion: "v1",
},
{
title: "should work for testnet",
isMainnet: false,
expectedNetwork: "testnet",
expectedVersion: "mumbai",
},
];
for (const { isMainnet, expectedNetwork, expectedVersion, title } of testCases) {
it(title, async () => {
Expand Down
Loading