@@ -75,7 +75,9 @@ async function updatePayloadsEvents(
7575) {
7676 const client = createViemClient ( {
7777 chain : ChainList [ chainId as SupportedChainIds ] ,
78- rpcUrl : getRPCUrl ( chainId as SupportedChainIds ) ,
78+ rpcUrl : getRPCUrl ( chainId as SupportedChainIds , {
79+ alchemyKey : process . env . ALCHEMY_API_KEY ,
80+ } ) ,
7981 } ) ;
8082 const payloadsPath = `${ chainId } /payloads` ;
8183
@@ -128,7 +130,9 @@ async function updatePayloadsData(
128130
129131 const client = createViemClient ( {
130132 chain : ChainList [ chainId as SupportedChainIds ] ,
131- rpcUrl : getRPCUrl ( chainId as SupportedChainIds ) ,
133+ rpcUrl : getRPCUrl ( chainId as SupportedChainIds , {
134+ alchemyKey : process . env . ALCHEMY_API_KEY ,
135+ } ) ,
132136 } ) ;
133137 const contract = getContract ( {
134138 abi : IPayloadsControllerCore_ABI ,
@@ -178,7 +182,9 @@ async function updateGovCoreEvents(
178182
179183 const client = createViemClient ( {
180184 chain : ChainList [ govCoreChainId as SupportedChainIds ] ,
181- rpcUrl : getRPCUrl ( govCoreChainId as SupportedChainIds ) ,
185+ rpcUrl : getRPCUrl ( govCoreChainId as SupportedChainIds , {
186+ alchemyKey : process . env . ALCHEMY_API_KEY ,
187+ } ) ,
182188 } ) ;
183189 const currentBlockOnGovernanceChain = await getBlockNumber ( client ) ;
184190 const contract = getContract ( {
@@ -250,7 +256,9 @@ async function updateVMEvents(
250256 const address = machine ;
251257 const client = createViemClient ( {
252258 chain : ChainList [ chainId as SupportedChainIds ] ,
253- rpcUrl : getRPCUrl ( chainId as SupportedChainIds ) ,
259+ rpcUrl : getRPCUrl ( chainId as SupportedChainIds , {
260+ alchemyKey : process . env . ALCHEMY_API_KEY ,
261+ } ) ,
254262 } ) ;
255263 const currentBlockOnVotingMachineChain = await getBlockNumber ( client ) ;
256264 const votesCache =
@@ -309,7 +317,9 @@ export async function updateCache({
309317 // initialize contracts
310318 const govCoreClient = createViemClient ( {
311319 chain : ChainList [ govCoreChainId as SupportedChainIds ] ,
312- rpcUrl : getRPCUrl ( govCoreChainId as SupportedChainIds ) ,
320+ rpcUrl : getRPCUrl ( govCoreChainId as SupportedChainIds , {
321+ alchemyKey : process . env . ALCHEMY_API_KEY ,
322+ } ) ,
313323 } ) ;
314324 const govCore = getContract ( {
315325 address : govCoreContractAddress ,
0 commit comments