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

feat(plugin): index linea.eth #13

Merged
merged 19 commits into from
Jan 9, 2025
Merged

feat(plugin): index linea.eth #13

merged 19 commits into from
Jan 9, 2025

Conversation

tk-o
Copy link
Contributor

@tk-o tk-o commented Jan 9, 2025

This PR builds on top of

The PR introduces the linea.eth plugin for Ponder indexer. The linea.eth plugin is very similar to the eth plugin. We can say it extends it (with minor naming alterations in some interfaces).

@tk-o tk-o changed the base branch from main to feat/namewrapper January 9, 2025 06:21
@@ -48,7 +48,7 @@ export function createPluginNamespace<Subname extends string>(subname: Subname)
}

type TransformNameIntoPath<Name extends string> = Name extends `${infer Sub}.${infer Rest}`
? `/${TransformNameIntoPath<Rest>}/${Sub}`
? `${TransformNameIntoPath<Rest>}/${Sub}`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a bugfix, as without it, the type would always start with a double slash. We need a single slash.

Copy link
Member

Choose a reason for hiding this comment

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

@tk-o Nice, thanks for catching this 👍

What do you think about creating an issue for us to action in a future PR? The issue would be to add vitest to the project and to define some initial unit tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Recorded your request here:

- name: Install dependencies
run: pnpm install

- name: Run Biome CI
run: pnpm biome ci

- name: Run TypeScript type checking
run: pnpm run typecheck
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I accidentally broke the eth plugin while making changes to handlers files to enable linea.eth integration. This CI step will notify me if I do a similar mistake in the future.

node: Hex;
fuses: number;
};
export const makeRegistryHandlers = (ownedName: `${string}eth`) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

makeRegistrarHandlers*

Copy link
Contributor

@shrugs shrugs left a comment

Choose a reason for hiding this comment

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

only renaming factory function, otherwise LGTM,

Base automatically changed from feat/namewrapper to main January 9, 2025 17:50
Copy link
Contributor

@shrugs shrugs left a comment

Choose a reason for hiding this comment

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

LGTM nice work

@tk-o tk-o merged commit 7a9838f into main Jan 9, 2025
1 check passed
@tk-o tk-o deleted the feat/linea.eth branch January 9, 2025 18:06
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.

3 participants