Skip to content

Commit

Permalink
sw: patch and bump
Browse files Browse the repository at this point in the history
  • Loading branch information
shanefontaine committed Sep 19, 2024
1 parent 9b933a4 commit 44e5f3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/stats-worker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hop-protocol/stats-worker",
"version": "0.0.15",
"version": "0.0.16",
"description": "Hop Protocol Stats Worker",
"author": "Authereum Labs, Inc.",
"license": "MIT",
Expand Down
6 changes: 4 additions & 2 deletions packages/stats-worker/src/utils/getSubgraphUrl.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getChain } from '@hop-protocol/sdk/chains'
import { type NetworkSlug, type ChainSlug, getChain } from '@hop-protocol/sdk/chains'

export function getSubgraphUrl (
chain: string,
Expand All @@ -8,7 +8,9 @@ export function getSubgraphUrl (
return `http://localhost:8000/subgraphs/name/hop-protocol/hop-${chain}`
}

const url = getChain(chain)?.subgraphUrl
const networkSlug = 'mainnet' as NetworkSlug
const chainSlug = chain as ChainSlug
const url = getChain(networkSlug, chainSlug)?.subgraphUrl
if (!url) {
throw new Error(`subgraph url not found for chain ${chain}`)
}
Expand Down

0 comments on commit 44e5f3a

Please sign in to comment.