encointer / encointer-wallet-flutter

Encointer mobile wallet flutter implementation

Home Page:https://encointer.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Upgrade reputation enum

brenzi opened this issue · comments

For encointer pallets >= 6.1.0 the enum for reputation has changed
See: encointer/pallets#373

As deployed on gesell runtime v31 already: currently rep fetching fails

app must support both storage versions for smooth transition

hmm, ok, this needs a little bit of conceptual work to ensure that the app can handle both, the pre- and post 6.1.0, types. I would probably suggest something along the line:

  1. We migrate the store to the new reputation version V1
  2. based on the spec_version, we either fetch reputation v0 or V1. If it is V0, we will transform the type on the app site to V1 and put the V1 version into the store.

This will ensure that we have a consistent app store state, before and after the runtime has actually migrated.