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

Feat/typegen #77

Closed
wants to merge 18 commits into from
Closed

Feat/typegen #77

wants to merge 18 commits into from

Conversation

n3op2
Copy link
Contributor

@n3op2 n3op2 commented Apr 27, 2023

What

An attempt to use generated types for polkadot. Currently quite a few conflict the main one is. To be fair I would say that it's a poor implementation of Polkadot/Rust types. Updating one was in quite a few cases causing multiple things to break.

    // TODO need help here with .map / codec - could not figure out
    return processRanEventIndexes.map(([, index]: [unknown, EventIndex]) => {
      const event: FrameSystemEventRecord = events[index]
      const extrinsicIndex: u32 = event.phase.asApplyExtrinsic
      const process = event.event.data[1] as unknown as DscpPalletTraitsProcessFullyQualifiedId

@n3op2 n3op2 marked this pull request as ready for review April 27, 2023 08:14
Copy link
Contributor Author

@n3op2 n3op2 left a comment

Choose a reason for hiding this comment

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

This still should be a draft.

metadata.json Outdated Show resolved Hide resolved
@jonmattgray jonmattgray marked this pull request as draft May 2, 2023 10:53
@jonmattgray
Copy link
Contributor

Closing because we can't get the TS config required to use @polkadot/typegen to work alongside the repo's TS config

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.

3 participants