Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const config = {
"lcov"
],
testTimeout: 60000,
setupFiles: ['<rootDir>/jest.setup.js']
};

export default config;
1 change: 1 addition & 0 deletions jest.setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require('dotenv').config();
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"@apollo/client": "3.5.10",
"@ethersproject/providers": "^5.7.2",
"@types/jest": "^29.5.12",
"dotenv": "^16.4.5",
"ethers": "^5.5.4",
"graphql": "^16.8.2",
"node-fetch": "^2.6.1",
Expand All @@ -36,6 +35,7 @@
"devDependencies": {
"@types/node": "^16.18.62",
"@types/node-fetch": "^2.6.11",
"dotenv": "^16.4.5",
"jest": "^29.7.0",
"jest-config": "^29.7.0",
"jest-coverage-badges": "^1.1.2",
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 7 additions & 8 deletions src/graphql.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if (!fetchLib) {
export class GraphQLService {
private readonly apikey = process.env.REACT_APP_THE_GRAPH_API_KEY

private readonly uri = `https://gateway-arbitrum.network.thegraph.com/api/${this.apikey}/subgraphs/id`
private readonly uri = `https://gateway.thegraph.com/api/${this.apikey}/subgraphs/id`

private withSubgraphId(subgraphId: string) {
return `${this.uri}/${subgraphId}`
Expand Down Expand Up @@ -67,11 +67,10 @@ export class GraphQLService {
// Boba BNB
56288: {
[EGraphQLService.LightBridge]: {
gql: 'https://graphql.bnb.boba.network/subgraphs/name/boba-bnb-l2/',
local: '',
gql: this.withSubgraphId('C3ShFVy1GV81GUb9u3Zw1rSQ7oJjegSF3LswvvYa3XgD'),
},
[EGraphQLService.AnchorageBridge]: {
gql: 'https://graphql.bnb.boba.network/subgraphs/name/anchorage-bridging-boba-bnb',
gql: this.withSubgraphId('BmJU8RagxZSKoxwYFVScC7TaJZj9PHGvukXiJhES882a'),
},
},
// BSC
Expand All @@ -94,11 +93,11 @@ export class GraphQLService {
// Boba BNB testnet
9728: {
[EGraphQLService.LightBridge]: {
gql: 'https://graphql.testnet.bnb.boba.network/subgraphs/name/boba-bnb-l2-testnet/',
gql: this.withSubgraphId('HnbxKbpVhKeAWQ6jGUZ64wsjcsnEtyyVqU6QMiAsyPR7'),
local: 'http://127.0.0.1:8002/subgraphs/name/boba/Bridges',
},
[EGraphQLService.AnchorageBridge]: {
gql: 'https://graphql.testnet.bnb.boba.network/subgraphs/name/anchorage-bridging-boba-bnb-testnet/',
gql: this.withSubgraphId('46zszHi762PDutPntNcsLSDvms4eufEugwb26DkVCyzW'),
},
},
// Arbitrum Sepolia
Expand Down Expand Up @@ -131,10 +130,10 @@ export class GraphQLService {
// Boba Sepolia
28882: {
[EGraphQLService.AnchorageBridge]: {
gql: 'https://graphql.sepolia.boba.network/subgraphs/name/anchorage-bridging-sepolia',
gql: this.withSubgraphId('AKb9A3KPkMtwm9TPMtUxKH75yZXHyrY5PCwwCcmzQpMj'),
},
[EGraphQLService.LightBridge]: {
gql: 'https://graphql.sepolia.boba.network/subgraphs/name/light-bridge-boba-sepolia',
gql: this.withSubgraphId('CdmAWxs3LDCnm4jekfcdPxaLsFynuZ3XgeuM7AcdU3xr'),
local: '',
},
},
Expand Down
Loading
Loading