Skip to content

Commit

Permalink
fix: migrate unichain sepolia rpc from qn to alchemy (#968)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsy1218 authored Jan 17, 2025
1 parent 512d6d9 commit 85f68df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/config/rpcProviderProdConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@
"useMultiProviderProb": 1,
"latencyEvaluationSampleProb": 0,
"healthCheckSampleProb": 0,
"providerInitialWeights": [1],
"providerUrls": ["QUICKNODE_1301"],
"providerNames": ["QUICKNODE"]
"providerInitialWeights": [0, 1],
"providerUrls": ["QUICKNODE_1301", "ALCHEMY_1301"],
"providerNames": ["QUICKNODE", "ALCHEMY"]
},
{
"chainId": 10143,
Expand Down
3 changes: 3 additions & 0 deletions lib/rpc/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ export function generateProviderUrl(key: string, value: string, chainId: number)
case 'ALCHEMY_324': {
return `https://zksync-mainnet.g.alchemy.com/v2/${tokens[0]}`
}
case 'ALCHEMY_1301': {
return `https://unichain-sepolia.g.alchemy.com/v2/${tokens[0]}`
}
}
throw new Error(`Unknown provider-chainId pair: ${key}`)
}
Expand Down

0 comments on commit 85f68df

Please sign in to comment.