-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
@@ -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}` |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
src/handlers/NameWrapper.ts
Outdated
node: Hex; | ||
fuses: number; | ||
}; | ||
export const makeRegistryHandlers = (ownedName: `${string}eth`) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makeRegistrarHandlers
*
There was a problem hiding this 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,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM nice work
This PR builds on top of
and needs to be only merged afterwards.
The PR introduces the
linea.eth
plugin for Ponder indexer. Thelinea.eth
plugin is very similar to theeth
plugin. We can say it extends it (with minor naming alterations in some interfaces).