Skip to content

Add StoreSubmapOps drivers for working with new ManagedLedger

Konstantin Ivanov requested to merge martoon/submap-zoom into master

Description

Problem: recently we changed ManagedLedger implementation so that instead of one big_map with all the related values grouped it now has several separate big_maps, each containing only one value. In one of the projects, we would like to use the new implementation without changing the storage format because big_map migrations are difficult.

Solution: add implementations for StoreHasSubmap that handles the mentioned scenario.

This MR also brings several other changes that seem sweet to have.

Note: here I perform some changes over files that have been recently moved, will rebase on master once one another MR is merged.

Checklist for your Merge Request

Related changes (conditional)

  • Tests (see short guidelines)

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:
    • I updated changelog files of all affected packages released to Hackage if my changes are externally visible.

Stylistic guide (mandatory)

Edited by Konstantin Ivanov

Merge request reports