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

Decoding custom events #269

Closed
kylezs opened this issue Apr 23, 2021 · 6 comments
Closed

Decoding custom events #269

kylezs opened this issue Apr 23, 2021 · 6 comments

Comments

@kylezs
Copy link
Contributor

kylezs commented Apr 23, 2021

In the example here, the Event is decoded into a Wrapper struct, TransferEvent which is packaged with subxt in balances.rs, not from pallet-balances itself.

In that case, when using custom events, is the pattern you're going for to have a wrapper for each custom pallet, containing a wrapper like what is done for balances in the example? Or am I missing something?

Also noted that there is an open issue here which potentially makes what I've written above irrelevant. Is there any progress on that front?

@ascjones
Copy link
Contributor

Currently I'm working on paritytech/substrate#8615 which will provide full type metadata for all pallet events. Once this in in we will likely overhaul the subxt API so that it can fully generate all the necessary types from the metadat for interacting with pallets. This new API is TBC, but you should be able to subscribe to custom events.

@kylezs
Copy link
Contributor Author

kylezs commented Apr 26, 2021

@ascjones
Thanks. Do you have an estimate on when this work will be done?

@ascjones
Copy link
Contributor

Most likely a month of two away.

@Gauthamastro
Copy link

Most likely a month of two away.

Any further updates on this?

@ascjones
Copy link
Contributor

The substrate PR mentioned is merged, and the subxt side of things is in progress in #294

@ascjones
Copy link
Contributor

ascjones commented Nov 8, 2021

Closed by #294

@ascjones ascjones closed this as completed Nov 8, 2021
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

No branches or pull requests

3 participants