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.
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
onWalletConnection
inwallet-connectors
in favor of the new hookuseGrpcClient
inreact-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 toNetwork
with standard URLshttps://grpc.testnet.concordium.com
andhttps://grpc.mainnet.concordium.software
for testnet and mainnet, respectively.Resolves CBW-947.