@taquito/wallet-connect 21.0.5 → 22.0.0-RC.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/dist/lib/taquito-wallet-connect.js +3 -8
- package/dist/lib/version.js +2 -2
- package/dist/taquito-wallet-connect.es6.js +3 -8
- package/dist/taquito-wallet-connect.es6.js.map +1 -1
- package/dist/taquito-wallet-connect.umd.js +3 -8
- package/dist/taquito-wallet-connect.umd.js.map +1 -1
- package/package.json +3 -3
|
@@ -37,8 +37,6 @@ const errors_1 = require("./errors");
|
|
|
37
37
|
__exportStar(require("./errors"), exports);
|
|
38
38
|
__exportStar(require("./types"), exports);
|
|
39
39
|
const TEZOS_PLACEHOLDER = 'tezos';
|
|
40
|
-
const MAINNET_CHAINID = 'mainnet';
|
|
41
|
-
const GHOSTNET_CHAINID = 'ghostnet';
|
|
42
40
|
/**
|
|
43
41
|
* @description The `WalletConnect` class implements the `WalletProvider` interface, providing an alternative to `BeaconWallet`.
|
|
44
42
|
* This package enables dapps built with Taquito to connect to wallets via the WalletConnect/Reown protocol.
|
|
@@ -97,7 +95,6 @@ class WalletConnect {
|
|
|
97
95
|
const client = yield sign_client_1.default.init(initParams);
|
|
98
96
|
const walletConnectModal = new modal_1.WalletConnectModal({
|
|
99
97
|
projectId: initParams.projectId,
|
|
100
|
-
chains: [MAINNET_CHAINID, GHOSTNET_CHAINID],
|
|
101
98
|
});
|
|
102
99
|
return new WalletConnect(client, walletConnectModal);
|
|
103
100
|
});
|
|
@@ -115,10 +112,11 @@ class WalletConnect {
|
|
|
115
112
|
var _a;
|
|
116
113
|
// TODO when Tezos wallets will officially support wallet connect, we need to provide a default value for registryUrl
|
|
117
114
|
try {
|
|
115
|
+
const chains = connectParams.permissionScope.networks.map((network) => `${TEZOS_PLACEHOLDER}:${network}`);
|
|
118
116
|
const { uri, approval } = yield this.signClient.connect({
|
|
119
117
|
requiredNamespaces: {
|
|
120
118
|
[TEZOS_PLACEHOLDER]: {
|
|
121
|
-
chains
|
|
119
|
+
chains,
|
|
122
120
|
methods: connectParams.permissionScope.methods,
|
|
123
121
|
events: (_a = connectParams.permissionScope.events) !== null && _a !== void 0 ? _a : [],
|
|
124
122
|
},
|
|
@@ -128,10 +126,7 @@ class WalletConnect {
|
|
|
128
126
|
if (uri) {
|
|
129
127
|
this.walletConnectModal.openModal({
|
|
130
128
|
uri,
|
|
131
|
-
chains
|
|
132
|
-
`${TEZOS_PLACEHOLDER}:${MAINNET_CHAINID}`,
|
|
133
|
-
`${TEZOS_PLACEHOLDER}:${GHOSTNET_CHAINID}`,
|
|
134
|
-
],
|
|
129
|
+
chains,
|
|
135
130
|
});
|
|
136
131
|
}
|
|
137
132
|
this.session = yield approval();
|
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 OR CHECKIN!
|
|
5
5
|
exports.VERSION = {
|
|
6
|
-
"commitHash": "
|
|
7
|
-
"version": "
|
|
6
|
+
"commitHash": "6936d6bc71e6a805f6d5568b60b1a0f6595a375d",
|
|
7
|
+
"version": "22.0.0-RC.0"
|
|
8
8
|
};
|
|
@@ -200,8 +200,6 @@ class PublicKeyRetrievalError extends Error {
|
|
|
200
200
|
* @module @taquito/wallet-connect
|
|
201
201
|
*/
|
|
202
202
|
const TEZOS_PLACEHOLDER = 'tezos';
|
|
203
|
-
const MAINNET_CHAINID = 'mainnet';
|
|
204
|
-
const GHOSTNET_CHAINID = 'ghostnet';
|
|
205
203
|
/**
|
|
206
204
|
* @description The `WalletConnect` class implements the `WalletProvider` interface, providing an alternative to `BeaconWallet`.
|
|
207
205
|
* This package enables dapps built with Taquito to connect to wallets via the WalletConnect/Reown protocol.
|
|
@@ -260,7 +258,6 @@ class WalletConnect {
|
|
|
260
258
|
const client = yield Client.init(initParams);
|
|
261
259
|
const walletConnectModal = new WalletConnectModal({
|
|
262
260
|
projectId: initParams.projectId,
|
|
263
|
-
chains: [MAINNET_CHAINID, GHOSTNET_CHAINID],
|
|
264
261
|
});
|
|
265
262
|
return new WalletConnect(client, walletConnectModal);
|
|
266
263
|
});
|
|
@@ -278,10 +275,11 @@ class WalletConnect {
|
|
|
278
275
|
var _a;
|
|
279
276
|
// TODO when Tezos wallets will officially support wallet connect, we need to provide a default value for registryUrl
|
|
280
277
|
try {
|
|
278
|
+
const chains = connectParams.permissionScope.networks.map((network) => `${TEZOS_PLACEHOLDER}:${network}`);
|
|
281
279
|
const { uri, approval } = yield this.signClient.connect({
|
|
282
280
|
requiredNamespaces: {
|
|
283
281
|
[TEZOS_PLACEHOLDER]: {
|
|
284
|
-
chains
|
|
282
|
+
chains,
|
|
285
283
|
methods: connectParams.permissionScope.methods,
|
|
286
284
|
events: (_a = connectParams.permissionScope.events) !== null && _a !== void 0 ? _a : [],
|
|
287
285
|
},
|
|
@@ -291,10 +289,7 @@ class WalletConnect {
|
|
|
291
289
|
if (uri) {
|
|
292
290
|
this.walletConnectModal.openModal({
|
|
293
291
|
uri,
|
|
294
|
-
chains
|
|
295
|
-
`${TEZOS_PLACEHOLDER}:${MAINNET_CHAINID}`,
|
|
296
|
-
`${TEZOS_PLACEHOLDER}:${GHOSTNET_CHAINID}`,
|
|
297
|
-
],
|
|
292
|
+
chains,
|
|
298
293
|
});
|
|
299
294
|
}
|
|
300
295
|
this.session = yield approval();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taquito-wallet-connect.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"taquito-wallet-connect.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -201,8 +201,6 @@
|
|
|
201
201
|
* @module @taquito/wallet-connect
|
|
202
202
|
*/
|
|
203
203
|
const TEZOS_PLACEHOLDER = 'tezos';
|
|
204
|
-
const MAINNET_CHAINID = 'mainnet';
|
|
205
|
-
const GHOSTNET_CHAINID = 'ghostnet';
|
|
206
204
|
/**
|
|
207
205
|
* @description The `WalletConnect` class implements the `WalletProvider` interface, providing an alternative to `BeaconWallet`.
|
|
208
206
|
* This package enables dapps built with Taquito to connect to wallets via the WalletConnect/Reown protocol.
|
|
@@ -261,7 +259,6 @@
|
|
|
261
259
|
const client = yield Client.init(initParams);
|
|
262
260
|
const walletConnectModal = new modal.WalletConnectModal({
|
|
263
261
|
projectId: initParams.projectId,
|
|
264
|
-
chains: [MAINNET_CHAINID, GHOSTNET_CHAINID],
|
|
265
262
|
});
|
|
266
263
|
return new WalletConnect(client, walletConnectModal);
|
|
267
264
|
});
|
|
@@ -279,10 +276,11 @@
|
|
|
279
276
|
var _a;
|
|
280
277
|
// TODO when Tezos wallets will officially support wallet connect, we need to provide a default value for registryUrl
|
|
281
278
|
try {
|
|
279
|
+
const chains = connectParams.permissionScope.networks.map((network) => `${TEZOS_PLACEHOLDER}:${network}`);
|
|
282
280
|
const { uri, approval } = yield this.signClient.connect({
|
|
283
281
|
requiredNamespaces: {
|
|
284
282
|
[TEZOS_PLACEHOLDER]: {
|
|
285
|
-
chains
|
|
283
|
+
chains,
|
|
286
284
|
methods: connectParams.permissionScope.methods,
|
|
287
285
|
events: (_a = connectParams.permissionScope.events) !== null && _a !== void 0 ? _a : [],
|
|
288
286
|
},
|
|
@@ -292,10 +290,7 @@
|
|
|
292
290
|
if (uri) {
|
|
293
291
|
this.walletConnectModal.openModal({
|
|
294
292
|
uri,
|
|
295
|
-
chains
|
|
296
|
-
`${TEZOS_PLACEHOLDER}:${MAINNET_CHAINID}`,
|
|
297
|
-
`${TEZOS_PLACEHOLDER}:${GHOSTNET_CHAINID}`,
|
|
298
|
-
],
|
|
293
|
+
chains,
|
|
299
294
|
});
|
|
300
295
|
}
|
|
301
296
|
this.session = yield approval();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taquito-wallet-connect.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"taquito-wallet-connect.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taquito/wallet-connect",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "22.0.0-RC.0",
|
|
4
4
|
"description": "Walletconnect provider",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tezos",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@taquito/taquito": "^
|
|
69
|
+
"@taquito/taquito": "^22.0.0-RC.0",
|
|
70
70
|
"@walletconnect/modal": "^2.7.0",
|
|
71
71
|
"@walletconnect/sign-client": "^2.16.2",
|
|
72
72
|
"@walletconnect/types": "^2.16.2",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"ts-toolbelt": "^9.6.0",
|
|
103
103
|
"typescript": "~5.5.4"
|
|
104
104
|
},
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "a5501829190e16f53bb3ce8f8b8143d8c0f01834"
|
|
106
106
|
}
|