-
Notifications
You must be signed in to change notification settings - Fork 19
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
Ethscriptions Example Added #63
Conversation
handlers: [ | ||
{ | ||
kind: EthereumHandlerKind.Call, | ||
handler: "handleTransaction", |
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 haven't tested this but if you filter the function this should greatly speed up indexing by being able to use dictionaries.
The function in this case is data:
encoded in hex
handler: "handleTransaction", | |
handler: "handleTransaction", | |
filter: { | |
function: "0x64617461" | |
} |
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.
Please test and include if working
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.
dataSources: [ | ||
{ | ||
kind: EthereumDatasourceKind.Runtime, | ||
startBlock: 18130011, |
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.
Why was this start block picked? Comment on any significance?
@@ -0,0 +1,6 @@ | |||
type Inscription @entity { |
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.
Can we add a created: Date!
to this
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.
block: tx.blockNumber, | ||
creator: tx.from, | ||
}); | ||
inscription.save(); |
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.
inscription.save(); | |
await inscription.save(); |
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.
if (!tx.input) { | ||
return; | ||
} | ||
let inscription: Inscription; |
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.
any reason why this is initialised outside of the below IF?
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.
solved c6d356e
No description provided.