Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/batch-poster-monitor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const options: BatchPosterMonitorOptions = yargs(process.argv.slice(2))
.options({
configPath: { type: 'string', default: DEFAULT_CONFIG_PATH },
enableAlerting: { type: 'boolean', default: false },
writeToNotion: { type: 'boolean', default: false },
})
.strict()
.parseSync() as BatchPosterMonitorOptions
Expand Down
10 changes: 9 additions & 1 deletion packages/retryable-monitor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import * as fs from 'fs'
import yargs from 'yargs'
import winston from 'winston'
import { providers } from 'ethers'
import { getArbitrumNetwork } from '@arbitrum/sdk'
import {
getArbitrumNetwork,
registerCustomArbitrumNetwork,
} from '@arbitrum/sdk'
import { FindRetryablesOptions } from './core/types'
import { ChildNetwork, DEFAULT_CONFIG_PATH, getConfig } from '../utils'
import {
Expand Down Expand Up @@ -137,12 +140,17 @@ const processOrbitChainsConcurrently = async () => {

const promises = config.childChains.map(async (childChain: ChildNetwork) => {
try {
if (!networkIsRegistered(childChain.chainId)) {
registerCustomArbitrumNetwork(childChain)
}

const parentChainProvider = new providers.JsonRpcProvider(
String(childChain.parentRpcUrl)
)
const childChainProvider = new providers.JsonRpcProvider(
String(childChain.orbitRpcUrl)
)

return await processChildChain(
parentChainProvider,
childChainProvider,
Expand Down