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

Deprecate JSON-RPC support and add support for using the gRPC client for Node API v2 #36

Closed bisgardo closed 1 year ago

bisgardo commented 1 year ago

Purpose

Add support for using the gRPC client for API version 2 and match BW deprecation of JSON-RPC.

Changes

Deprecated the existing method getJsonRpcClient on WalletConnection in wallet-connectors in favor of the new hook useGrpcClient in react-components.

Standard network configurations have been added to wallet-connectors for testnet and mainnet as constants that were extracted from the sample dApps. A field holding gRPC Web client options was added to Network with standard URLs https://grpc.testnet.concordium.com and https://grpc.mainnet.concordium.software for testnet and mainnet, respectively.

Resolves CBW-947.

bisgardo commented 1 year ago

LGTM, expect that I would expect the README's would need to be changed 🤔

Done

bisgardo commented 1 year ago

ping @orhoj