Skip to content

Generate Haskell->JS->GRPC bindings automatically #1030

@palas

Description

@palas

Currently, cardano-wasm's grpc module calls the automatically generated gRPC or gRPC-web JavaScript bindings. But when those bindings change, the calls from Haskell to the GRPC JS bindings may break, and that break will happen at runtime.

This issue proposes deriving the calls from Haskell to JS automatically from proto files, from the generate typescript of the bindings generated for gRPC, or from Haskell files that define the gRPC in the cardano-rpc project (which every is more feasible and simple).

This way, whenever the gRPC definitions change, the Haskell will change with it, and if something breaks it will be at the type level in Haskell and, thus, we'll find out very quickly thanks to the existing checks in the CI.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions