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

Document substrate extrinsic and event generics #201

Merged
merged 2 commits into from
Jul 28, 2022
Merged

Conversation

stwiname
Copy link
Contributor

@stwiname stwiname commented Jul 21, 2022

Dependent on subquery/subql#1194 being released

@@ -144,6 +144,17 @@ An AvalancheEvent encapsulates Event data and Transaction/Block information corr

A CosmosEvent/TerraEvent encapsulates Event data and TxLog corresponding to the event. It also contains CosmosMessage/TerraMessage data of the message connected to the event. Also, it includes the CosmosBlock/TerraBlock and CosmosTransaction/TerraTransaction data of the block and transaction from which the event was emitted.

::: info Note
From `@subql/types` version `X.X.X` onwards `SubstrateEvent` is now generic. This can give you better typesafety when developing your project.
Copy link
Collaborator

Choose a reason for hiding this comment

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

@stwiname Maybe, use such sentence (here and below):

This can provide you with higher type safety when developing your project.

@stwiname stwiname marked this pull request as ready for review July 28, 2022 23:36
@stwiname stwiname merged commit 0a69fca into master Jul 28, 2022
@jamesbayly jamesbayly deleted the substrate-generics branch August 23, 2022 02:55
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.

None yet

2 participants