Skip to content

Commit

Permalink
feat: support v2 id and key registry contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjayprabhu committed Oct 16, 2023
1 parent 44aa4f4 commit 7b73576
Show file tree
Hide file tree
Showing 14 changed files with 210 additions and 1,971 deletions.
4 changes: 4 additions & 0 deletions apps/hubble/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ app
.option("-l, --l2-rpc-url <url>", "RPC URL of a mainnet Optimism Node (or comma separated list of URLs)")
.option("--l2-id-registry-address <address>", "The address of the L2 Farcaster ID Registry contract")
.option("--l2-key-registry-address <address>", "The address of the L2 Farcaster Key Registry contract")
.option("--l2-id-registry-v2-address <address>", "The address of the L2 Farcaster ID Registry V2 contract")
.option("--l2-key-registry-v2-address <address>", "The address of the L2 Farcaster Key Registry V2 contract")
.option("--l2-storage-registry-address <address>", "The address of the L2 Farcaster Storage Registry contract")
.option("--l2-resync-events", "Resync events from the L2 Farcaster contracts before starting (default: disabled)")
.option("--l2-clear-events", "Deletes all events from the L2 Farcaster contracts before starting (default: disabled)")
Expand Down Expand Up @@ -486,6 +488,8 @@ app
l2RpcUrl: cliOptions.l2RpcUrl ?? hubConfig.l2RpcUrl,
l2IdRegistryAddress: cliOptions.l2IdRegistryAddress ?? hubConfig.l2IdRegistryAddress,
l2KeyRegistryAddress: cliOptions.l2KeyRegistryAddress ?? hubConfig.l2KeyRegistryAddress,
l2IdRegistryV2Address: cliOptions.l2IdRegistryV2Address ?? hubConfig.l2IdRegistryV2Address,
l2KeyRegistryV2Address: cliOptions.l2KeyRegistryV2Address ?? hubConfig.l2KeyRegistryV2Address,
l2StorageRegistryAddress: cliOptions.l2StorageRegistryAddress ?? hubConfig.l2StorageRegistryAddress,
l2FirstBlock: cliOptions.l2FirstBlock ?? hubConfig.l2FirstBlock,
l2ChunkSize: cliOptions.l2ChunkSize ?? hubConfig.l2ChunkSize,
Expand Down
Loading

0 comments on commit 7b73576

Please sign in to comment.