@dynamic-labs/ethereum 0.17.15 → 0.17.16
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 +7 -0
- package/package.json +6 -6
- package/src/walletConnect/client/client.cjs +2 -1
- package/src/walletConnect/client/client.js +2 -1
- package/src/walletConnect/walletConnect.cjs +2 -0
- package/src/walletConnect/walletConnect.js +2 -0
- package/src/walletConnect/walletConnectV2.cjs +3 -1
- package/src/walletConnect/walletConnectV2.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
|
|
2
|
+
### [0.17.16](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.15...v0.17.16) (2023-06-28)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* flip native and universal on WC1 ([#2509](https://github.com/dynamic-labs/DynamicAuth/issues/2509)) ([fdc6728](https://github.com/dynamic-labs/DynamicAuth/commit/fdc672877ecfc44ee93d8e0e24e007de625c03a6))
|
|
8
|
+
|
|
2
9
|
### [0.17.15](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.14...v0.17.15) (2023-06-28)
|
|
3
10
|
|
|
4
11
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/ethereum",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.16",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"ethers": "5.7.2",
|
|
33
33
|
"eventemitter3": "5.0.1",
|
|
34
34
|
"buffer": "6.0.3",
|
|
35
|
-
"@dynamic-labs/rpc-providers": "0.17.
|
|
36
|
-
"@dynamic-labs/types": "0.17.
|
|
37
|
-
"@dynamic-labs/utils": "0.17.
|
|
38
|
-
"@dynamic-labs/wallet-book": "0.17.
|
|
39
|
-
"@dynamic-labs/wallet-connector-core": "0.17.
|
|
35
|
+
"@dynamic-labs/rpc-providers": "0.17.16",
|
|
36
|
+
"@dynamic-labs/types": "0.17.16",
|
|
37
|
+
"@dynamic-labs/utils": "0.17.16",
|
|
38
|
+
"@dynamic-labs/wallet-book": "0.17.16",
|
|
39
|
+
"@dynamic-labs/wallet-connector-core": "0.17.16"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {}
|
|
42
42
|
}
|
|
@@ -95,7 +95,7 @@ const fetchWalletConnectEVMPublicAddress = (metadata, wcClient, opts) => _tslib.
|
|
|
95
95
|
walletConnectorCore.performPlatformSpecificConnectionMethod(wcClient.uri, metadata, {
|
|
96
96
|
onDesktopUri: opts === null || opts === void 0 ? void 0 : opts.onDesktopUri,
|
|
97
97
|
onDisplayUri: opts === null || opts === void 0 ? void 0 : opts.onDisplayUri,
|
|
98
|
-
});
|
|
98
|
+
}, false);
|
|
99
99
|
const payload = yield createSession(wcClient);
|
|
100
100
|
(_a = opts === null || opts === void 0 ? void 0 : opts.onConnect) === null || _a === void 0 ? void 0 : _a.call(opts, payload);
|
|
101
101
|
const [accountPublicAddress] = payload.params[0].accounts;
|
|
@@ -111,6 +111,7 @@ const signWalletConnectPersonalMessage = (messageToSign, metadata, client, rpcPr
|
|
|
111
111
|
const [accountPublicAddress] = client.accounts;
|
|
112
112
|
if (utils.isMobile()) {
|
|
113
113
|
const deepLink = walletConnectorCore.getDeepLink({
|
|
114
|
+
isWC2: false,
|
|
114
115
|
metadata,
|
|
115
116
|
mode: 'regular',
|
|
116
117
|
uri: client.uri,
|
|
@@ -87,7 +87,7 @@ const fetchWalletConnectEVMPublicAddress = (metadata, wcClient, opts) => __await
|
|
|
87
87
|
performPlatformSpecificConnectionMethod(wcClient.uri, metadata, {
|
|
88
88
|
onDesktopUri: opts === null || opts === void 0 ? void 0 : opts.onDesktopUri,
|
|
89
89
|
onDisplayUri: opts === null || opts === void 0 ? void 0 : opts.onDisplayUri,
|
|
90
|
-
});
|
|
90
|
+
}, false);
|
|
91
91
|
const payload = yield createSession(wcClient);
|
|
92
92
|
(_a = opts === null || opts === void 0 ? void 0 : opts.onConnect) === null || _a === void 0 ? void 0 : _a.call(opts, payload);
|
|
93
93
|
const [accountPublicAddress] = payload.params[0].accounts;
|
|
@@ -103,6 +103,7 @@ const signWalletConnectPersonalMessage = (messageToSign, metadata, client, rpcPr
|
|
|
103
103
|
const [accountPublicAddress] = client.accounts;
|
|
104
104
|
if (isMobile()) {
|
|
105
105
|
const deepLink = getDeepLink({
|
|
106
|
+
isWC2: false,
|
|
106
107
|
metadata,
|
|
107
108
|
mode: 'regular',
|
|
108
109
|
uri: client.uri,
|
|
@@ -83,6 +83,7 @@ class WalletConnect extends EthWalletConnector.EthWalletConnector {
|
|
|
83
83
|
return undefined;
|
|
84
84
|
}
|
|
85
85
|
return walletConnectorCore.getDeepLink({
|
|
86
|
+
isWC2: false,
|
|
86
87
|
metadata: wallet,
|
|
87
88
|
mode: 'regular',
|
|
88
89
|
uri: this.getClient().uri,
|
|
@@ -122,6 +123,7 @@ class WalletConnect extends EthWalletConnector.EthWalletConnector {
|
|
|
122
123
|
}
|
|
123
124
|
if (utils.isMobile()) {
|
|
124
125
|
const deepLink = walletConnectorCore.getDeepLink({
|
|
126
|
+
isWC2: false,
|
|
125
127
|
metadata: walletBook.getWalletBookWallet(this.name),
|
|
126
128
|
mode: 'regular',
|
|
127
129
|
uri: client.uri,
|
|
@@ -75,6 +75,7 @@ class WalletConnect extends EthWalletConnector {
|
|
|
75
75
|
return undefined;
|
|
76
76
|
}
|
|
77
77
|
return getDeepLink({
|
|
78
|
+
isWC2: false,
|
|
78
79
|
metadata: wallet,
|
|
79
80
|
mode: 'regular',
|
|
80
81
|
uri: this.getClient().uri,
|
|
@@ -114,6 +115,7 @@ class WalletConnect extends EthWalletConnector {
|
|
|
114
115
|
}
|
|
115
116
|
if (isMobile()) {
|
|
116
117
|
const deepLink = getDeepLink({
|
|
118
|
+
isWC2: false,
|
|
117
119
|
metadata: getWalletBookWallet(this.name),
|
|
118
120
|
mode: 'regular',
|
|
119
121
|
uri: client.uri,
|
|
@@ -175,6 +175,7 @@ class WalletConnectV2 extends EthWalletConnector.EthWalletConnector {
|
|
|
175
175
|
return undefined;
|
|
176
176
|
}
|
|
177
177
|
return walletConnectorCore.getDeepLink({
|
|
178
|
+
isWC2: true,
|
|
178
179
|
metadata: wallet,
|
|
179
180
|
mode: 'regular',
|
|
180
181
|
uri: WalletConnectV2.provider.uri,
|
|
@@ -211,7 +212,7 @@ class WalletConnectV2 extends EthWalletConnector.EthWalletConnector {
|
|
|
211
212
|
walletConnectorCore.performPlatformSpecificConnectionMethod(WalletConnectV2.provider.uri, metadata, {
|
|
212
213
|
onDesktopUri: opts === null || opts === void 0 ? void 0 : opts.onDesktopUri,
|
|
213
214
|
onDisplayUri: opts === null || opts === void 0 ? void 0 : opts.onDisplayUri,
|
|
214
|
-
});
|
|
215
|
+
}, true);
|
|
215
216
|
return new Promise((resolve, reject) => {
|
|
216
217
|
if (!WalletConnectV2.provider) {
|
|
217
218
|
reject(new utils.DynamicError('No provider found'));
|
|
@@ -249,6 +250,7 @@ class WalletConnectV2 extends EthWalletConnector.EthWalletConnector {
|
|
|
249
250
|
// for sign message, no uri is needed because the uri encodes connection details,
|
|
250
251
|
// and at this point we are already connected
|
|
251
252
|
const deepLink = walletConnectorCore.getDeepLink({
|
|
253
|
+
isWC2: true,
|
|
252
254
|
metadata,
|
|
253
255
|
mode: 'regular',
|
|
254
256
|
uri: WalletConnectV2.provider.uri,
|
|
@@ -166,6 +166,7 @@ class WalletConnectV2 extends EthWalletConnector {
|
|
|
166
166
|
return undefined;
|
|
167
167
|
}
|
|
168
168
|
return getDeepLink({
|
|
169
|
+
isWC2: true,
|
|
169
170
|
metadata: wallet,
|
|
170
171
|
mode: 'regular',
|
|
171
172
|
uri: WalletConnectV2.provider.uri,
|
|
@@ -202,7 +203,7 @@ class WalletConnectV2 extends EthWalletConnector {
|
|
|
202
203
|
performPlatformSpecificConnectionMethod(WalletConnectV2.provider.uri, metadata, {
|
|
203
204
|
onDesktopUri: opts === null || opts === void 0 ? void 0 : opts.onDesktopUri,
|
|
204
205
|
onDisplayUri: opts === null || opts === void 0 ? void 0 : opts.onDisplayUri,
|
|
205
|
-
});
|
|
206
|
+
}, true);
|
|
206
207
|
return new Promise((resolve, reject) => {
|
|
207
208
|
if (!WalletConnectV2.provider) {
|
|
208
209
|
reject(new DynamicError('No provider found'));
|
|
@@ -240,6 +241,7 @@ class WalletConnectV2 extends EthWalletConnector {
|
|
|
240
241
|
// for sign message, no uri is needed because the uri encodes connection details,
|
|
241
242
|
// and at this point we are already connected
|
|
242
243
|
const deepLink = getDeepLink({
|
|
244
|
+
isWC2: true,
|
|
243
245
|
metadata,
|
|
244
246
|
mode: 'regular',
|
|
245
247
|
uri: WalletConnectV2.provider.uri,
|