Concordium / concordium-dapp-libraries

A coherent set of building blocks for making it as easy as possible for developers to build web-based dApps.
Apache License 2.0
7 stars 5 forks source link

useContractSchemaRpc: Parse schema based on module version #45

Closed bisgardo closed 1 year ago

bisgardo commented 1 year ago

Purpose

Make fetching/parsing of contract schema more precise based on the module version information that is now exposed by the gRPC client.

This in turn also documents the relationship between module and schema versions.

Changes

Use module version to determine what custom sections to look for and add comments explaining the expected results.

bisgardo commented 1 year ago

Keeping as draft until https://github.com/Concordium/concordium-dapp-libraries/pull/42 is merged.