-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
add Events docs file = docs/src/pages/docs/events.md #2008
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Hey, thanks for putting this together! I did a pass over it, LMK what you think of any of my comments/concerns.
Note that the event is declared with the `#[event]` macro, and defined using a `struct`. To supply the values, | ||
the pattern `emit!(MyEvent {...});` is used. The code above is a basic stamp that can be used for creating and consuming events within your program. |
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.
could you speak to the #[index]
in the event?
I'm relatively new to Anchor, so I could easily be missing something here. But I think if I'm confused, another reader could be as well.
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 honestly don't know what that macro does. I googled it and came up empty-handed. Maybe someone can make a suggestion here, if they think it's very important.
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.
looks like index will add metadata to the IDL
for off chain indexers
perhaps related to: #1110 although that issue is dated, there is |
Hi @nheingit, thanks for the input! Generally, agree with all of your suggestions, and it's fine if you want to change them yourself. I'm traveling tomorrow, but will review more closely when I'm back to my desk. |
Co-authored-by: nheingit <[email protected]>
@ashpoolin is attempting to deploy a commit to the 200ms Team on Vercel. A member of the Team first needs to authorize it. |
Co-authored-by: nheingit <[email protected]>
Co-authored-by: nheingit <[email protected]>
Co-authored-by: nheingit <[email protected]>
Co-authored-by: nheingit <[email protected]>
Co-authored-by: nheingit <[email protected]>
Co-authored-by: nheingit <[email protected]>
Co-authored-by: nheingit <[email protected]>
@ashpoolin, can you check the page title? Something seems off |
@italoacasas sorry for the very slow response--I hadn't checked here in awhile. Are you sure there's an issue? I couldn't reproduce, but also I think that I've addressed it: Let me know. Thanks! |
Closing as stale. |
Create new section of docs for Events (path: docs/src/pages/docs/events.md).
Update docs/src/pages/_app.jsx to include Events in table of contents.