Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modularize discovery #17

Merged
merged 9 commits into from
Sep 26, 2023
Merged

Modularize discovery #17

merged 9 commits into from
Sep 26, 2023

Conversation

sdlyy
Copy link
Member

@sdlyy sdlyy commented Sep 26, 2023

Resolves L2B-2528

What's changed

Now to support new EVM-compatbile chain monitoring you have to create backend config within discovery.modules. Key must match valid chain names. Also, discovery config must be present for the given chain.

Abstraction is straightforward as long as we only work on similar Ethereum-like configs. In the future we will probably plan to refactor it a bit to support more sophisticated configurations and chains

Also added optimism using new modular way - easy as hell

@linear
Copy link

linear bot commented Sep 26, 2023

L2B-2528 Create abstraction to define modules

Make a factory method that depends on chain-specific config.

@vercel
Copy link

vercel bot commented Sep 26, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
lz-monitoring-frontend ✅ Ready (Inspect) Visit Preview Sep 26, 2023 3:17pm

Copy link
Contributor

@michalsidzej michalsidzej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lookin good


export class ClockIndexer extends RootIndexer {
constructor(
logger: Logger,
// Just for pretty logging purposes
chainId: ChainId,

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

@sdlyy sdlyy enabled auto-merge (squash) September 26, 2023 14:35
@sdlyy sdlyy merged commit 3d67ac5 into main Sep 26, 2023
4 of 5 checks passed
@sdlyy sdlyy deleted the feat/module-factory branch September 26, 2023 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants