@dynamic-labs/wallet-connector-core 0.17.10 → 0.17.12
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/CHANGELOG.md +14 -0
- package/package.json +5 -5
- package/src/lib/WalletConnector.cjs +13 -0
- package/src/lib/WalletConnector.d.ts +11 -0
- package/src/lib/WalletConnector.js +13 -0
- package/src/utils/walletConnectDeepLinks/walletConnectDeepLinks.cjs +1 -1
- package/src/utils/walletConnectDeepLinks/walletConnectDeepLinks.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
|
|
2
|
+
### [0.17.12](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.11...v0.17.12) (2023-06-26)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* more wc2 improvements ([#2484](https://github.com/dynamic-labs/DynamicAuth/issues/2484)) ([482ed5d](https://github.com/dynamic-labs/DynamicAuth/commit/482ed5d699985ff4a96f4af2ce2a3f7565a6cc1f))
|
|
8
|
+
|
|
9
|
+
### [0.17.11](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.10...v0.17.11) (2023-06-26)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* multiple improvements for WC2 ([#2465](https://github.com/dynamic-labs/DynamicAuth/issues/2465)) ([7d5d7bd](https://github.com/dynamic-labs/DynamicAuth/commit/7d5d7bdcf2dd01ef3810e2fddd46d56a40effa95)), closes [#2458](https://github.com/dynamic-labs/DynamicAuth/issues/2458)
|
|
15
|
+
|
|
2
16
|
### [0.17.10](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.9...v0.17.10) (2023-06-23)
|
|
3
17
|
|
|
4
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wallet-connector-core",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.12",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@dynamic-labs/logger": "0.17.
|
|
31
|
-
"@dynamic-labs/rpc-providers": "0.17.
|
|
32
|
-
"@dynamic-labs/utils": "0.17.
|
|
33
|
-
"@dynamic-labs/wallet-book": "0.17.
|
|
30
|
+
"@dynamic-labs/logger": "0.17.12",
|
|
31
|
+
"@dynamic-labs/rpc-providers": "0.17.12",
|
|
32
|
+
"@dynamic-labs/utils": "0.17.12",
|
|
33
|
+
"@dynamic-labs/wallet-book": "0.17.12"
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -76,6 +76,11 @@ class WalletConnectorBase {
|
|
|
76
76
|
* @default undefined
|
|
77
77
|
*/
|
|
78
78
|
this.switchNetworkOnlyFromWallet = undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Whether the connector has been initialized
|
|
81
|
+
* @default true
|
|
82
|
+
*/
|
|
83
|
+
this.isInitialized = true;
|
|
79
84
|
this.constructorProps = props;
|
|
80
85
|
}
|
|
81
86
|
connect() {
|
|
@@ -224,6 +229,14 @@ class WalletConnectorBase {
|
|
|
224
229
|
teardownEventListeners() {
|
|
225
230
|
return;
|
|
226
231
|
}
|
|
232
|
+
/**
|
|
233
|
+
* Sign a message
|
|
234
|
+
*
|
|
235
|
+
* @default Promise<undefined>
|
|
236
|
+
*/
|
|
237
|
+
getSupportedNetworks() {
|
|
238
|
+
return Promise.resolve(undefined);
|
|
239
|
+
}
|
|
227
240
|
}
|
|
228
241
|
|
|
229
242
|
exports.Chains = Chains;
|
|
@@ -235,4 +235,15 @@ export declare abstract class WalletConnectorBase {
|
|
|
235
235
|
* @default void
|
|
236
236
|
*/
|
|
237
237
|
teardownEventListeners(): void;
|
|
238
|
+
/**
|
|
239
|
+
* Sign a message
|
|
240
|
+
*
|
|
241
|
+
* @default Promise<undefined>
|
|
242
|
+
*/
|
|
243
|
+
getSupportedNetworks(): Promise<string[] | undefined>;
|
|
244
|
+
/**
|
|
245
|
+
* Whether the connector has been initialized
|
|
246
|
+
* @default true
|
|
247
|
+
*/
|
|
248
|
+
isInitialized: boolean;
|
|
238
249
|
}
|
|
@@ -72,6 +72,11 @@ class WalletConnectorBase {
|
|
|
72
72
|
* @default undefined
|
|
73
73
|
*/
|
|
74
74
|
this.switchNetworkOnlyFromWallet = undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Whether the connector has been initialized
|
|
77
|
+
* @default true
|
|
78
|
+
*/
|
|
79
|
+
this.isInitialized = true;
|
|
75
80
|
this.constructorProps = props;
|
|
76
81
|
}
|
|
77
82
|
connect() {
|
|
@@ -220,6 +225,14 @@ class WalletConnectorBase {
|
|
|
220
225
|
teardownEventListeners() {
|
|
221
226
|
return;
|
|
222
227
|
}
|
|
228
|
+
/**
|
|
229
|
+
* Sign a message
|
|
230
|
+
*
|
|
231
|
+
* @default Promise<undefined>
|
|
232
|
+
*/
|
|
233
|
+
getSupportedNetworks() {
|
|
234
|
+
return Promise.resolve(undefined);
|
|
235
|
+
}
|
|
223
236
|
}
|
|
224
237
|
|
|
225
238
|
export { Chains, WalletConnectorBase, socialProviders };
|
|
@@ -21,7 +21,7 @@ const getRegularDeepLink = (uri, metadata) => {
|
|
|
21
21
|
return uri.split('?')[0];
|
|
22
22
|
}
|
|
23
23
|
const index = utils.isMobile() ? 'mobile' : 'desktop';
|
|
24
|
-
const origin = ((_a = metadata[index]) === null || _a === void 0 ? void 0 : _a.
|
|
24
|
+
const origin = ((_a = metadata[index]) === null || _a === void 0 ? void 0 : _a.native) || ((_b = metadata[index]) === null || _b === void 0 ? void 0 : _b.universal);
|
|
25
25
|
return origin || '';
|
|
26
26
|
};
|
|
27
27
|
const getDeepLink = ({ mode, uri = '', metadata, }) => {
|
|
@@ -17,7 +17,7 @@ const getRegularDeepLink = (uri, metadata) => {
|
|
|
17
17
|
return uri.split('?')[0];
|
|
18
18
|
}
|
|
19
19
|
const index = isMobile() ? 'mobile' : 'desktop';
|
|
20
|
-
const origin = ((_a = metadata[index]) === null || _a === void 0 ? void 0 : _a.
|
|
20
|
+
const origin = ((_a = metadata[index]) === null || _a === void 0 ? void 0 : _a.native) || ((_b = metadata[index]) === null || _b === void 0 ? void 0 : _b.universal);
|
|
21
21
|
return origin || '';
|
|
22
22
|
};
|
|
23
23
|
const getDeepLink = ({ mode, uri = '', metadata, }) => {
|