frequency
frequency copied to clipboard
Update `messages` and `stateful-storage` pallets to support Intents
Description
Both the messages and stateful-storage pallets will need to transition to using IntentId as the primary index for on-chain storage, instead of SchemaId. While the values will not change, as the schemas pallet migration ensures that there will initially be a 1:1 mapping between existing schemas and intents with the same numeric IDs, going forward there will be a 1:many mapping of IntentId:SchemaId, so that schema_id needs to be added to the stored payload.
A/C
- [ ] Existing
messagestorage can be read & the schema_id determined - [ ] Any new
messagesstored haveschema_idstored as part of the payload - [ ] Existing
stateful-storagepayloads can be read & the schema_id determined - [ ] Any new
stateful-storagepayloads written, whether Paginated or Itemized, includeschema_idas part of the item or page write, so that it can be read back.