@txnlab/use-wallet 0.1.13 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/cjs/index.js +55 -1840
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +43 -1828
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +7 -7
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ yarn add @txnlab/use-wallet
|
|
|
30
30
|
Install peer dependencies (if needed)
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
yarn add algosdk @blockshake/defly-connect @perawallet/connect @randlabs/myalgo-connect @walletconnect/client algorand-walletconnect-qrcode-modal
|
|
33
|
+
yarn add algosdk @blockshake/defly-connect @perawallet/connect @randlabs/myalgo-connect @walletconnect/client algorand-walletconnect-qrcode-modal @json-rpc-tools/utils
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
### NPM
|
|
@@ -42,7 +42,7 @@ npm install @txnlab/use-wallet
|
|
|
42
42
|
Install peer dependencies (if needed)
|
|
43
43
|
|
|
44
44
|
```bash
|
|
45
|
-
npm install algosdk @blockshake/defly-connect @perawallet/connect @randlabs/myalgo-connect @walletconnect/client algorand-walletconnect-qrcode-modal
|
|
45
|
+
npm install algosdk @blockshake/defly-connect @perawallet/connect @randlabs/myalgo-connect @walletconnect/client algorand-walletconnect-qrcode-modal @json-rpc-tools/utils
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
### Set up the wallet providers
|
|
@@ -66,8 +66,8 @@ function App() {
|
|
|
66
66
|
console.log("active account", activeAccount);
|
|
67
67
|
});
|
|
68
68
|
|
|
69
|
-
// Map through the providers
|
|
70
|
-
//
|
|
69
|
+
// Map through the providers.
|
|
70
|
+
// Render account information and "connect", "set active", and "disconnect" buttons.
|
|
71
71
|
// Finally, map through the `accounts` property to render a dropdown for each connected account.
|
|
72
72
|
return (
|
|
73
73
|
<div>
|