Skip to content

Commit

Permalink
fix: update urls to SX api (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e authored Dec 16, 2024
1 parent 8b8d0e5 commit e8a1838
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
17 changes: 12 additions & 5 deletions src/resolvers/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,18 @@ import { isStarknetAddress } from '../addressResolvers/utils';
const API_URLS = {
s: `${process.env.HUB_URL ?? 'https://hub.snapshot.org'}/graphql`,
's-tn': `${process.env.HUB_URL_TN ?? 'https://testnet.hub.snapshot.org'}/graphql`,
eth: 'https://api.studio.thegraph.com/query/23545/sx/version/latest',
sep: 'https://api.studio.thegraph.com/query/23545/sx-sepolia/version/latest',
matic: 'https://api.studio.thegraph.com/query/23545/sx-polygon/version/latest',
arb1: 'https://api.studio.thegraph.com/query/23545/sx-arbitrum/version/latest',
oeth: 'https://api.studio.thegraph.com/query/23545/sx-optimism/version/latest',
eth:
'https://subgrapher.snapshot.org/subgraph/arbitrum/GerdwbJnTbEz45K7S3D2MLET6VFiY8VqwrqWZg52x2vx',
sep:
'https://subgrapher.snapshot.org/subgraph/arbitrum/3682UpSJVQ89v6BMSzxDSiQWZKa3Hbn6RKucpT8jZ5nT',
matic:
'https://subgrapher.snapshot.org/subgraph/arbitrum/5DzKWssJUVKA1imXGyExrycUjdz7t5t7gzTsE9GQhBUn',
arb1:
'https://subgrapher.snapshot.org/subgraph/arbitrum/4QovVxoK3TBLwZKPD1YPHHko5Zz87HvdjpEDBvitCWcH',
oeth:
'https://subgrapher.snapshot.org/subgraph/arbitrum/4zXNNp5B34DUNACzonVsHivNJRUHnFBqhvBPYJVaNyks',
base:
'https://subgrapher.snapshot.org/subgraph/arbitrum/BmcnmDYyCcN7NmQuWXyx3p1xLEiq3sYmvFct8uvBQfum',
sn: 'https://api.snapshot.box',
'sn-sep': 'https://testnet-api.snapshot.box'
};
Expand Down
12 changes: 6 additions & 6 deletions src/resolvers/space-sx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import { fetchHttpImage } from './utils';
import { isStarknetAddress } from '../addressResolvers/utils';

const SUBGRAPH_URLS = [
'https://api.studio.thegraph.com/query/23545/sx/version/latest',
'https://api.studio.thegraph.com/query/23545/sx-sepolia/version/latest',
'https://api.studio.thegraph.com/query/23545/sx-polygon/version/latest',
'https://api.studio.thegraph.com/query/23545/sx-arbitrum/version/latest',
'https://api.studio.thegraph.com/query/23545/sx-optimism/version/latest',
'https://api.studio.thegraph.com/query/23545/sx-base/version/latest',
'https://subgrapher.snapshot.org/subgraph/arbitrum/GerdwbJnTbEz45K7S3D2MLET6VFiY8VqwrqWZg52x2vx',
'https://subgrapher.snapshot.org/subgraph/arbitrum/3682UpSJVQ89v6BMSzxDSiQWZKa3Hbn6RKucpT8jZ5nT',
'https://subgrapher.snapshot.org/subgraph/arbitrum/5DzKWssJUVKA1imXGyExrycUjdz7t5t7gzTsE9GQhBUn',
'https://subgrapher.snapshot.org/subgraph/arbitrum/4QovVxoK3TBLwZKPD1YPHHko5Zz87HvdjpEDBvitCWcH',
'https://subgrapher.snapshot.org/subgraph/arbitrum/4zXNNp5B34DUNACzonVsHivNJRUHnFBqhvBPYJVaNyks',
'https://subgrapher.snapshot.org/subgraph/arbitrum/BmcnmDYyCcN7NmQuWXyx3p1xLEiq3sYmvFct8uvBQfum',
'https://api.snapshot.box',
'https://testnet-api.snapshot.box'
];
Expand Down

0 comments on commit e8a1838

Please sign in to comment.