All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Update peer depedency for
@concordium/web-sdk
to support any version above7
- Dependency on
@concordium/wallet-connectors
bumped to v0.6.0+.
- Hook
useModuleSchemaRpc
for fetching the schema of a smart contract module from the chain.
- Dependency on
@concordium/wallet-connectors
bumped to v0.5.1+.
useConnect
(breaking): Letconnection
function beundefined
ifconnector
is. This prevents the function from being called beforeWalletConnectionProps.activeConnector
is ready which would fail anyway. The expectation before was that the button/function invokingconnect
would check this itself, but making it explicit in the type seems less prone to errors. To migrate, replaceconnect()
withconnect && connect()
orconnect?.()
and optionally replace any guarding usingactiveConnector
by the truthiness value ofconnect
itself.
- Dependency on
@concordium/wallet-connectors
bumped to v0.5.0+.
- Build as ES module to facilitate tree-shaking.
- (breaking) Make compatible with
@concordium/web-sdk@^7
, which is now a peer dependency. useContractSelector
(breaking): Support for supplyingJsonRpcClient
has been removed.
useContractSelector
: Fix docstring ofrpc
parameter.
- Hook
useGrpcClient
for obtaining a gRPC Web clientConcordiumGRPCClient
that connects to the appropriate network.
- Dependency on
@concordium/wallet-connectors
bumped to v0.3.1+.
- Bump and unpin dependency to
wallet-connectors
.
- Hooks
useConnection
anduseConnect
for managing connections.
WithWalletConnector
: Decouple component from concrete connector implementations by constructing instances from the application. This also introduces the ability for applications to control the activation/deactivation lifecycle of the connectors.WithWalletConnector
: Removed methodconnectActive
(and child propisConnecting
). Use theconnect
method directly onWalletConnector
instead.WithWalletConnector
: Removed the exposed fieldsactiveConnection
,activeConnectedAccount
,activeConnectionGenesisHash
, andsetActiveConnection
(use the new hookuseConnection
instead). This gives applications much tighter control on how connections are managed, including the ability to have multiple active connections.WithWalletConnector
: The fieldconnectedAccounts
now maps connections to the empty string if they don't have an associated account. This means that the key set of this field matches the set of live connections exactly.
- Initial implementation.