paritytech / capi

[WIP] A framework for crafting interactions with Substrate chains
https://docs.capi.dev
Apache License 2.0
104 stars 9 forks source link

breaking metadata changes always require a new release of capi #1052

Closed ryanleecode closed 1 year ago

ryanleecode commented 1 year ago

Whenever there is a breaking metadata change -- transactions usually result in ServerError: Invalid Transaction ... Transaction has a bad signature. This is a problem because we need to re-release capi with the updated metadata and force uses to update. Users on existing versions of capi will see their applications immediately broken... Not ideal for DX especially if you were building a capi app at a hackathon and then went to demo only to see it stop working at no fault of your own.

See https://github.com/paritytech/capi/issues/961 for previous occurences

tjjfvi commented 1 year ago

No one should be depending on the metadata capi uses, so when there is a breaking metadata change, users should only have to rerun capi sync.

I'm not sure we have an issue for this, but it might be worthwhile to rename capi's codegen dependencies to avoid it being easy for users to accidentally depend on our codegen.