@taquito/wallet-connect 24.3.0-beta.3 → 24.3.0-beta.7
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 +15 -1
- package/dist/lib/version.js +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -26,7 +26,11 @@ Create a wallet instance with defined option parameters and set the wallet provi
|
|
|
26
26
|
|
|
27
27
|
```ts
|
|
28
28
|
import { TezosToolkit } from '@taquito/taquito';
|
|
29
|
-
import {
|
|
29
|
+
import {
|
|
30
|
+
NetworkType,
|
|
31
|
+
PermissionScopeMethods,
|
|
32
|
+
WalletConnect,
|
|
33
|
+
} from '@taquito/wallet-connect';
|
|
30
34
|
|
|
31
35
|
const wallet = await WalletConnect.init({
|
|
32
36
|
projectId: "YOUR_PROJECT_ID", // can get YOUR_PROJECT_ID from [Reown Cloud](https://cloud.reown.com)
|
|
@@ -56,6 +60,16 @@ Tezos.setWalletProvider(wallet);
|
|
|
56
60
|
|
|
57
61
|
Existing sessions can be restored with `configureWithExistingSessionKey()`. Restored sessions are validated before activation, so invalid or stale non-Tezos session data may be rejected during restore.
|
|
58
62
|
|
|
63
|
+
```ts
|
|
64
|
+
const existingSessionKey = wallet.getAllExistingSessionKeys()[0];
|
|
65
|
+
|
|
66
|
+
if (existingSessionKey) {
|
|
67
|
+
wallet.configureWithExistingSessionKey(existingSessionKey);
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Both session restore helpers are synchronous.
|
|
72
|
+
|
|
59
73
|
## Additional Info
|
|
60
74
|
|
|
61
75
|
See the top-level [https://github.com/ecadlabs/taquito](https://github.com/ecadlabs/taquito) file for details on reporting issues, contributing and versioning.
|
package/dist/lib/version.js
CHANGED
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
4
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
|
|
5
5
|
exports.VERSION = {
|
|
6
|
-
"commitHash": "
|
|
7
|
-
"version": "24.3.0-beta.
|
|
6
|
+
"commitHash": "e5181715f96fc1a8e79c0c3a89b5130abe1a3434",
|
|
7
|
+
"version": "24.3.0-beta.7"
|
|
8
8
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taquito/wallet-connect",
|
|
3
|
-
"version": "24.3.0-beta.
|
|
3
|
+
"version": "24.3.0-beta.7",
|
|
4
4
|
"description": "WalletConnect integration for Taquito applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"taquito",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
]
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@taquito/taquito": "^24.3.0-beta.
|
|
58
|
+
"@taquito/taquito": "^24.3.0-beta.7",
|
|
59
59
|
"@walletconnect/modal": "^2.7.0",
|
|
60
60
|
"@walletconnect/sign-client": "^2.23.9",
|
|
61
61
|
"@walletconnect/types": "^2.23.9",
|