Skip to content

Support passing a specific block in morley-client along with some additional improvements

Ivan Gromakovskii requested to merge gromak/sdao-extend-rpc into master

Description

Problem: we need to access some data at specific blocks, but currently morley-client always assumes head block.

Solution:

  • Add BlockId type.
  • Generalize some methods to have BlockId argument.
  • Keep versions that pass head with their existing names to avoid breaking something.

Also I added a couple of other things (see commit messages) and removed an old workaround.

Related issue(s)

None, I need it for another project.

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 Ivan Gromakovskii

Merge request reports