-
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
WIP: Polymorphic Config + Resolution #80
Conversation
…p so typechecking fallthrough uses same tsconfig
}, | ||
}, | ||
}), | ||
); |
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.
👍
// NOTE: this actually produces a bug in the subgraph's graphql layer — `resolver` is not nullable | ||
// but there is never a resolver record created for the zeroAddress. so if you query the | ||
// `resolver { id }` of a NewResolver event that set the resolver to zeroAddress | ||
// ex: newResolver(id: "3745840-2") { id resolver {id} } | ||
// you will receive a GraphQL type error. for subgraph compatibility we re-implement this | ||
// behavior here, but it should be entirely avoided in a v2 restructuring of the schema. | ||
resolverId: resolverAddress === zeroAddress ? zeroAddress : resolverId, |
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.
👍
// simplifies generating the shared event column values from the ponder Event object | ||
export function sharedEventValues(event: Omit<Event, "args">) { | ||
return { | ||
id: makeEventId(event.block.number, event.log.logIndex), |
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.
Nice one
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.
@shrugs Amazing work here 🚀 Looks good 👍
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.
@shrugs Hahah, this is nuts 😅 Amazing work 💪
const id = makeResolverId(event.log.address, node); | ||
const resolver = await upsertResolver(context, { | ||
|
||
// upsert resolveer |
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.
// upsert resolveer | |
// upsert resolver |
closes #64 and #65
executePluralQuery
to support subquery selectiontodo
4_000_000
hardcodeensnode
subproject using its more strict tsconfig against the code inponder-subgraph-api
.