@txnlab/use-wallet 2.4.0 → 2.5.0
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 +23 -6
- package/dist/cjs/index.js +395 -31
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/clients/index.d.ts +3 -2
- package/dist/cjs/src/clients/kibisis/client.d.ts +73 -0
- package/dist/cjs/src/clients/kibisis/constants.d.ts +37 -0
- package/dist/cjs/src/clients/kibisis/index.d.ts +2 -0
- package/dist/cjs/src/clients/kibisis/types.d.ts +86 -0
- package/dist/cjs/src/constants/constants.d.ts +1 -0
- package/dist/cjs/src/store/state/walletStore.d.ts +2 -2
- package/dist/cjs/src/testUtils/mockClients.d.ts +3 -0
- package/dist/cjs/src/types/providers.d.ts +6 -1
- package/dist/esm/index.js +395 -32
- package/dist/esm/src/clients/index.d.ts +3 -2
- package/dist/esm/src/clients/kibisis/client.d.ts +73 -0
- package/dist/esm/src/clients/kibisis/constants.d.ts +37 -0
- package/dist/esm/src/clients/kibisis/index.d.ts +2 -0
- package/dist/esm/src/clients/kibisis/types.d.ts +86 -0
- package/dist/esm/src/constants/constants.d.ts +1 -0
- package/dist/esm/src/store/state/walletStore.d.ts +2 -2
- package/dist/esm/src/testUtils/mockClients.d.ts +3 -0
- package/dist/esm/src/types/providers.d.ts +6 -1
- package/dist/index.d.ts +98 -3
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -23,6 +23,10 @@ UseWallet supports most Algorand wallet providers, including Defly, Pera, Daffi,
|
|
|
23
23
|
|
|
24
24
|
Version 2.x introduces [WalletConnect 2.0 support](#walletconnect-20-support).
|
|
25
25
|
|
|
26
|
+
## Disclaimer
|
|
27
|
+
|
|
28
|
+
TxnLab provides `@txnlab/use-wallet` as a wallet integration tool and does not endorse or assume responsibility for any external wallet providers' functionality or security.
|
|
29
|
+
|
|
26
30
|
## Table of Contents
|
|
27
31
|
|
|
28
32
|
- [Live Examples](#live-examples)
|
|
@@ -58,7 +62,7 @@ Version 2.x introduces [WalletConnect 2.0 support](#walletconnect-20-support).
|
|
|
58
62
|
|
|
59
63
|
## Live Examples
|
|
60
64
|
|
|
61
|
-
**Storybook demo** - https://txnlab.github.io/use-wallet
|
|
65
|
+
<!-- **Storybook demo** - https://txnlab.github.io/use-wallet -->
|
|
62
66
|
|
|
63
67
|
**Next.js example**
|
|
64
68
|
|
|
@@ -97,7 +101,7 @@ npm install @blockshake/defly-connect @perawallet/connect @daffiwallet/connect
|
|
|
97
101
|
|
|
98
102
|
In the root of your app, initialize the `WalletProvider` with the `useInitializeProviders` hook.
|
|
99
103
|
|
|
100
|
-
This example initializes Defly, Pera, Daffi, Exodus, and
|
|
104
|
+
This example initializes Defly, Pera, Daffi, Exodus, Lute and Kibisis wallet providers. The default node configuration (mainnet via [AlgoNode](https://algonode.io/api/)) is used. See [Provider Configuration](#provider-configuration) for more options.
|
|
101
105
|
|
|
102
106
|
You can initialize your providers in two ways:
|
|
103
107
|
|
|
@@ -130,7 +134,8 @@ export default function App() {
|
|
|
130
134
|
id: PROVIDER_ID.LUTE,
|
|
131
135
|
clientStatic: LuteConnect,
|
|
132
136
|
clientOptions: { siteName: 'YourSiteName' }
|
|
133
|
-
}
|
|
137
|
+
},
|
|
138
|
+
{ id: PROVIDER_ID.KIBISIS }
|
|
134
139
|
]
|
|
135
140
|
})
|
|
136
141
|
|
|
@@ -179,7 +184,8 @@ export default function App() {
|
|
|
179
184
|
id: PROVIDER_ID.LUTE,
|
|
180
185
|
getDynamicClient: getDynamicLuteConnect,
|
|
181
186
|
clientOptions: { siteName: 'YourSiteName' }
|
|
182
|
-
}
|
|
187
|
+
},
|
|
188
|
+
{ id: PROVIDER_ID.KIBISIS }
|
|
183
189
|
]
|
|
184
190
|
})
|
|
185
191
|
|
|
@@ -498,6 +504,15 @@ useEffect(() => {
|
|
|
498
504
|
- Website - https://lute.app/
|
|
499
505
|
- Install dependency - `npm install lute-connect`
|
|
500
506
|
|
|
507
|
+
|
|
508
|
+
### Kibisis Wallet
|
|
509
|
+
|
|
510
|
+
***NOTE:** Kibisis is in active development and currently only supports betanet and testnet.*
|
|
511
|
+
|
|
512
|
+
- Website - https://kibis.is
|
|
513
|
+
- Download - https://kibis.is/#download
|
|
514
|
+
- Support/Issues - https://discord.com/channels/1055863853633785857/1181252381816655952
|
|
515
|
+
|
|
501
516
|
### KMD (Algorand Key Management Daemon)
|
|
502
517
|
|
|
503
518
|
- Documentation - https://developer.algorand.org/docs/rest-apis/kmd
|
|
@@ -515,8 +530,9 @@ Support for these wallets will be removed in a future release.
|
|
|
515
530
|
- GitHub - https://github.com/PureStake/algosigner
|
|
516
531
|
- EOL Press Release - https://www.algorand.foundation/news/algosigner-support-ending
|
|
517
532
|
|
|
518
|
-
### MyAlgo
|
|
533
|
+
### MyAlgo (deprecation pending: January 30, 2024)
|
|
519
534
|
|
|
535
|
+
- **DEPRECATION NOTICE** - https://wallet.myalgo.com/access
|
|
520
536
|
- Website - https://wallet.myalgo.com/home
|
|
521
537
|
- FAQ - https://wallet.myalgo.com/home#faq
|
|
522
538
|
- Install dependency - `npm install @randlabs/myalgo-connect`
|
|
@@ -667,7 +683,8 @@ export default function App() {
|
|
|
667
683
|
id: PROVIDER_ID.LUTE,
|
|
668
684
|
clientStatic: LuteConnect,
|
|
669
685
|
clientOptions: { siteName: 'YourSiteName' }
|
|
670
|
-
}
|
|
686
|
+
},
|
|
687
|
+
{ id: PROVIDER_ID.KIBISIS }
|
|
671
688
|
],
|
|
672
689
|
nodeConfig: {
|
|
673
690
|
network: 'mainnet',
|