Skip to content

[#308] Add tezos RPC's new bigmap endpoint to morley-client

Diogo Castro requested to merge diogo/#308-rpc-bigmap into master

Description

Problem: At the moment, morley-client supports retrieving the value for a big_map key through this endpoint:

POST ../<block_id>/context/contracts/<contract_id>/big_map_get

However, this endpoint has limitations, and has been deprecated:

In babylonnet this entrypoint finds big_map with relevant key type and seeks for key in it; if there are multiple big_maps with the same key type, only one of them is considered (which one - it seems better not to rely on this info).

Solution: Add support for the new RPC endpoint which supersedes the one above.

GET ../<block_id>/context/big_maps/<big_map_id>/<script_expr>

Related issue(s)

Resolves #308 (closed)

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 Diogo Castro

Merge request reports