Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Allow runtime to hold multiple version of metadata #8083

@gui1117

Description

@gui1117

When we want to improve metadata, it would be great to not break off chain tools which depend on some previous version.
Holding multiple version while letting the time for third parties to update is preferred.

Maybe this issue is as simple as adding a new method to sp_api::Metadata each time we bump the metadata, (like metadata_v2 and then metadata_v3) and deprecate old version by returning an empty one when after some time.

But this is a bit annoying for runtime declaration, another solution could be to have Metadata being a vec of (version, Metadata), allowing the runtime to return multiple version in the same api call.

Not sure what is best. and there can be better ideas.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A5-stalePull request did not receive any updates in a long time. No review needed at this stage. Close it.J0-enhancementAn additional feature request.Z2-mediumCan be fixed by a coder with good Rust knowledge but little knowledge of the codebase.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions