Skip to content

Type generation from v14 metadata with scale-info types #3687

@ascjones

Description

@ascjones

paritytech/substrate#8615 introduces a new version of substrate metadata which includes scale-info type information.

Here is an example of the json metadata generated from a polkadot dev instance from this branch paritytech/polkadot#3336.

There is already some code for contracts https://github.com/polkadot-js/api/blob/master/packages/api-contract/src/MetaRegistry.ts which generates types from this metadata so this could be a starting point.

It would be good to get some early feedback on the format/contents of this new metadata while it is still easy to change. The v14 metadata structure can be seen here: https://github.com/paritytech/frame-metadata/blob/main/frame-metadata/src/v14.rs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions