Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
apexearth committed Dec 9, 2024
1 parent 75f7ebc commit 853f37c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions squid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ deploy:
- base.http
secrets:
- RPC_ENDPOINT
- RPC_BASE_ALCHEMY
- RPC_ENV
- RPC_BASE_ENV
processor:
Expand Down
6 changes: 3 additions & 3 deletions src/processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dayjs.extend(utc)

export const createEvmBatchProcessor = (config: ChainConfig) => {
const url = config.endpoints[0] || 'http://localhost:8545'

console.log('rpc url', url)
const processor = new EvmBatchProcessor()
.setRpcEndpoint({
url,
Expand Down Expand Up @@ -133,8 +133,8 @@ export const run = ({ chainId = 1, stateSchema, processors, postProcessors, vali

const config = chainConfigs[chainId]
if (!config) throw new Error('No chain configuration found.')
console.log('env', JSON.stringify(process.env, null, 2))
console.log('config', JSON.stringify(config, null, 2))
// console.log('env', JSON.stringify(process.env, null, 2))
// console.log('config', JSON.stringify(config, null, 2))
const evmBatchProcessor = createEvmBatchProcessor(config)

evmBatchProcessor.setBlockRange({
Expand Down

0 comments on commit 853f37c

Please sign in to comment.