@shapeshiftoss/hdwallet-walletconnectv2 1.55.2 → 1.55.3
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/adapter.js +25 -40
- package/dist/adapter.js.map +1 -1
- package/dist/ethereum.js +60 -86
- package/dist/ethereum.js.map +1 -1
- package/dist/index.js +2 -18
- package/dist/index.js.map +1 -1
- package/dist/walletconnectV2.js +133 -219
- package/dist/walletconnectV2.js.map +1 -1
- package/package.json +3 -3
- package/tsconfig.tsbuildinfo +1 -1
package/dist/walletconnectV2.js
CHANGED
|
@@ -1,25 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.WalletConnectV2HDWallet = exports.WalletConnectV2WalletInfo = exports.isWalletConnectV2 = void 0;
|
|
16
|
-
const hdwallet_core_1 = require("@shapeshiftoss/hdwallet-core");
|
|
17
|
-
const isObject_1 = __importDefault(require("lodash/isObject"));
|
|
18
|
-
const ethereum_1 = require("./ethereum");
|
|
19
|
-
function isWalletConnectV2(wallet) {
|
|
20
|
-
return (0, isObject_1.default)(wallet) && wallet._isWalletConnectV2;
|
|
1
|
+
import { slip44ByCoin } from "@shapeshiftoss/hdwallet-core";
|
|
2
|
+
import isObject from "lodash/isObject";
|
|
3
|
+
import { describeETHPath, ethGetAddress, ethSendTx, ethSignMessage, ethSignTx, ethSignTypedData, ethVerifyMessage, } from "./ethereum";
|
|
4
|
+
export function isWalletConnectV2(wallet) {
|
|
5
|
+
return isObject(wallet) && wallet._isWalletConnectV2;
|
|
21
6
|
}
|
|
22
|
-
exports.isWalletConnectV2 = isWalletConnectV2;
|
|
23
7
|
/**
|
|
24
8
|
* WalletConnect Wallet Info
|
|
25
9
|
*
|
|
@@ -32,11 +16,9 @@ exports.isWalletConnectV2 = isWalletConnectV2;
|
|
|
32
16
|
* - eth_sendRawTransaction
|
|
33
17
|
* @see https://specs.walletconnect.com/2.0/blockchain-rpc/ethereum-rpc
|
|
34
18
|
*/
|
|
35
|
-
class WalletConnectV2WalletInfo {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
this._supportsBTCInfo = false;
|
|
39
|
-
}
|
|
19
|
+
export class WalletConnectV2WalletInfo {
|
|
20
|
+
_supportsETHInfo = true;
|
|
21
|
+
_supportsBTCInfo = false;
|
|
40
22
|
getVendor() {
|
|
41
23
|
return "WalletConnectV2";
|
|
42
24
|
}
|
|
@@ -67,7 +49,7 @@ class WalletConnectV2WalletInfo {
|
|
|
67
49
|
describePath(msg) {
|
|
68
50
|
switch (msg.coin) {
|
|
69
51
|
case "Ethereum":
|
|
70
|
-
return
|
|
52
|
+
return describeETHPath(msg.path);
|
|
71
53
|
default:
|
|
72
54
|
throw new Error("Unsupported path");
|
|
73
55
|
}
|
|
@@ -75,26 +57,20 @@ class WalletConnectV2WalletInfo {
|
|
|
75
57
|
ethNextAccountPath() {
|
|
76
58
|
return undefined;
|
|
77
59
|
}
|
|
78
|
-
ethSupportsNetwork(chainId) {
|
|
79
|
-
return
|
|
80
|
-
return [1, 10, 56, 100, 137, 43114].includes(chainId);
|
|
81
|
-
});
|
|
60
|
+
async ethSupportsNetwork(chainId) {
|
|
61
|
+
return [1, 10, 56, 100, 137, 43114].includes(chainId);
|
|
82
62
|
}
|
|
83
|
-
ethSupportsSecureTransfer() {
|
|
84
|
-
return
|
|
85
|
-
return false;
|
|
86
|
-
});
|
|
63
|
+
async ethSupportsSecureTransfer() {
|
|
64
|
+
return false;
|
|
87
65
|
}
|
|
88
66
|
ethSupportsNativeShapeShift() {
|
|
89
67
|
return false;
|
|
90
68
|
}
|
|
91
|
-
ethSupportsEIP1559() {
|
|
92
|
-
return
|
|
93
|
-
return true;
|
|
94
|
-
});
|
|
69
|
+
async ethSupportsEIP1559() {
|
|
70
|
+
return true;
|
|
95
71
|
}
|
|
96
72
|
ethGetAccountPaths(msg) {
|
|
97
|
-
const slip44 =
|
|
73
|
+
const slip44 = slip44ByCoin(msg.coin);
|
|
98
74
|
if (slip44 === undefined)
|
|
99
75
|
return [];
|
|
100
76
|
return [
|
|
@@ -107,56 +83,49 @@ class WalletConnectV2WalletInfo {
|
|
|
107
83
|
];
|
|
108
84
|
}
|
|
109
85
|
}
|
|
110
|
-
|
|
111
|
-
|
|
86
|
+
export class WalletConnectV2HDWallet {
|
|
87
|
+
_supportsETH = true;
|
|
88
|
+
_supportsETHInfo = true;
|
|
89
|
+
_supportsBTCInfo = false;
|
|
90
|
+
_supportsBTC = false;
|
|
91
|
+
_isWalletConnectV2 = true;
|
|
92
|
+
_supportsEthSwitchChain = true;
|
|
93
|
+
_supportsAvalanche = true;
|
|
94
|
+
_supportsOptimism = true;
|
|
95
|
+
_supportsBSC = true;
|
|
96
|
+
_supportsPolygon = true;
|
|
97
|
+
_supportsGnosis = true;
|
|
98
|
+
_supportsArbitrum = true;
|
|
99
|
+
_supportsArbitrumNova = true;
|
|
100
|
+
_supportsBase = true;
|
|
101
|
+
info;
|
|
102
|
+
provider;
|
|
103
|
+
connected = false;
|
|
104
|
+
chainId;
|
|
105
|
+
accounts = [];
|
|
106
|
+
ethAddress;
|
|
112
107
|
constructor(provider) {
|
|
113
|
-
this._supportsETH = true;
|
|
114
|
-
this._supportsETHInfo = true;
|
|
115
|
-
this._supportsBTCInfo = false;
|
|
116
|
-
this._supportsBTC = false;
|
|
117
|
-
this._isWalletConnectV2 = true;
|
|
118
|
-
this._supportsEthSwitchChain = true;
|
|
119
|
-
this._supportsAvalanche = true;
|
|
120
|
-
this._supportsOptimism = true;
|
|
121
|
-
this._supportsBSC = true;
|
|
122
|
-
this._supportsPolygon = true;
|
|
123
|
-
this._supportsGnosis = true;
|
|
124
|
-
this._supportsArbitrum = true;
|
|
125
|
-
this._supportsArbitrumNova = true;
|
|
126
|
-
this._supportsBase = true;
|
|
127
|
-
this.connected = false;
|
|
128
|
-
this.accounts = [];
|
|
129
108
|
this.provider = provider;
|
|
130
109
|
this.info = new WalletConnectV2WalletInfo();
|
|
131
110
|
}
|
|
132
|
-
getFeatures() {
|
|
133
|
-
return
|
|
134
|
-
return {};
|
|
135
|
-
});
|
|
111
|
+
async getFeatures() {
|
|
112
|
+
return {};
|
|
136
113
|
}
|
|
137
|
-
isLocked() {
|
|
138
|
-
return
|
|
139
|
-
return false;
|
|
140
|
-
});
|
|
114
|
+
async isLocked() {
|
|
115
|
+
return false;
|
|
141
116
|
}
|
|
142
117
|
getVendor() {
|
|
143
118
|
return "WalletConnectV2";
|
|
144
119
|
}
|
|
145
|
-
getModel() {
|
|
146
|
-
return
|
|
147
|
-
return "WalletConnectV2";
|
|
148
|
-
});
|
|
120
|
+
async getModel() {
|
|
121
|
+
return "WalletConnectV2";
|
|
149
122
|
}
|
|
150
|
-
getLabel() {
|
|
151
|
-
return
|
|
152
|
-
return "WalletConnectV2";
|
|
153
|
-
});
|
|
123
|
+
async getLabel() {
|
|
124
|
+
return "WalletConnectV2";
|
|
154
125
|
}
|
|
155
|
-
initialize() {
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
yield this.provider.enable();
|
|
159
|
-
});
|
|
126
|
+
async initialize() {
|
|
127
|
+
/** Display QR modal to connect */
|
|
128
|
+
await this.provider.enable();
|
|
160
129
|
}
|
|
161
130
|
hasOnDevicePinEntry() {
|
|
162
131
|
return this.info.hasOnDevicePinEntry();
|
|
@@ -189,97 +158,63 @@ class WalletConnectV2HDWallet {
|
|
|
189
158
|
supportsBroadcast() {
|
|
190
159
|
return this.info.supportsBroadcast();
|
|
191
160
|
}
|
|
192
|
-
clearSession() {
|
|
193
|
-
|
|
194
|
-
yield this.disconnect();
|
|
195
|
-
});
|
|
161
|
+
async clearSession() {
|
|
162
|
+
await this.disconnect();
|
|
196
163
|
}
|
|
197
|
-
ping(msg) {
|
|
198
|
-
return
|
|
199
|
-
return { msg: msg.msg };
|
|
200
|
-
});
|
|
164
|
+
async ping(msg) {
|
|
165
|
+
return { msg: msg.msg };
|
|
201
166
|
}
|
|
202
|
-
sendPin() {
|
|
203
|
-
return
|
|
204
|
-
return;
|
|
205
|
-
});
|
|
167
|
+
async sendPin() {
|
|
168
|
+
return;
|
|
206
169
|
}
|
|
207
|
-
sendPassphrase() {
|
|
208
|
-
return
|
|
209
|
-
return;
|
|
210
|
-
});
|
|
170
|
+
async sendPassphrase() {
|
|
171
|
+
return;
|
|
211
172
|
}
|
|
212
|
-
sendCharacter() {
|
|
213
|
-
return
|
|
214
|
-
return;
|
|
215
|
-
});
|
|
173
|
+
async sendCharacter() {
|
|
174
|
+
return;
|
|
216
175
|
}
|
|
217
|
-
sendWord() {
|
|
218
|
-
return
|
|
219
|
-
return;
|
|
220
|
-
});
|
|
176
|
+
async sendWord() {
|
|
177
|
+
return;
|
|
221
178
|
}
|
|
222
|
-
cancel() {
|
|
223
|
-
return
|
|
224
|
-
return;
|
|
225
|
-
});
|
|
179
|
+
async cancel() {
|
|
180
|
+
return;
|
|
226
181
|
}
|
|
227
|
-
wipe() {
|
|
228
|
-
return
|
|
229
|
-
return;
|
|
230
|
-
});
|
|
182
|
+
async wipe() {
|
|
183
|
+
return;
|
|
231
184
|
}
|
|
232
|
-
reset() {
|
|
233
|
-
return
|
|
234
|
-
return;
|
|
235
|
-
});
|
|
185
|
+
async reset() {
|
|
186
|
+
return;
|
|
236
187
|
}
|
|
237
|
-
recover() {
|
|
238
|
-
return
|
|
239
|
-
return;
|
|
240
|
-
});
|
|
188
|
+
async recover() {
|
|
189
|
+
return;
|
|
241
190
|
}
|
|
242
|
-
loadDevice() {
|
|
243
|
-
return
|
|
244
|
-
return;
|
|
245
|
-
});
|
|
191
|
+
async loadDevice() {
|
|
192
|
+
return;
|
|
246
193
|
}
|
|
247
194
|
describePath(msg) {
|
|
248
195
|
return this.info.describePath(msg);
|
|
249
196
|
}
|
|
250
|
-
getPublicKeys() {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
return [];
|
|
254
|
-
});
|
|
197
|
+
async getPublicKeys() {
|
|
198
|
+
// Ethereum public keys are not exposed by the RPC API
|
|
199
|
+
return [];
|
|
255
200
|
}
|
|
256
|
-
isInitialized() {
|
|
257
|
-
return
|
|
258
|
-
return true;
|
|
259
|
-
});
|
|
201
|
+
async isInitialized() {
|
|
202
|
+
return true;
|
|
260
203
|
}
|
|
261
|
-
disconnect() {
|
|
262
|
-
|
|
263
|
-
yield this.provider.disconnect();
|
|
264
|
-
});
|
|
204
|
+
async disconnect() {
|
|
205
|
+
await this.provider.disconnect();
|
|
265
206
|
}
|
|
266
|
-
ethSupportsNetwork(chainId = 1) {
|
|
267
|
-
return
|
|
268
|
-
return this.info.ethSupportsNetwork(chainId);
|
|
269
|
-
});
|
|
207
|
+
async ethSupportsNetwork(chainId = 1) {
|
|
208
|
+
return this.info.ethSupportsNetwork(chainId);
|
|
270
209
|
}
|
|
271
|
-
ethSupportsSecureTransfer() {
|
|
272
|
-
return
|
|
273
|
-
return this.info.ethSupportsSecureTransfer();
|
|
274
|
-
});
|
|
210
|
+
async ethSupportsSecureTransfer() {
|
|
211
|
+
return this.info.ethSupportsSecureTransfer();
|
|
275
212
|
}
|
|
276
213
|
ethSupportsNativeShapeShift() {
|
|
277
214
|
return this.info.ethSupportsNativeShapeShift();
|
|
278
215
|
}
|
|
279
|
-
ethSupportsEIP1559() {
|
|
280
|
-
return
|
|
281
|
-
return this.info.ethSupportsEIP1559();
|
|
282
|
-
});
|
|
216
|
+
async ethSupportsEIP1559() {
|
|
217
|
+
return this.info.ethSupportsEIP1559();
|
|
283
218
|
}
|
|
284
219
|
ethGetAccountPaths(msg) {
|
|
285
220
|
return this.info.ethGetAccountPaths(msg);
|
|
@@ -287,107 +222,86 @@ class WalletConnectV2HDWallet {
|
|
|
287
222
|
ethNextAccountPath() {
|
|
288
223
|
return this.info.ethNextAccountPath();
|
|
289
224
|
}
|
|
290
|
-
ethGetAddress() {
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
}
|
|
304
|
-
});
|
|
225
|
+
async ethGetAddress() {
|
|
226
|
+
if (this.ethAddress) {
|
|
227
|
+
return this.ethAddress;
|
|
228
|
+
}
|
|
229
|
+
const address = await ethGetAddress(this.provider);
|
|
230
|
+
if (address) {
|
|
231
|
+
this.ethAddress = address;
|
|
232
|
+
return address;
|
|
233
|
+
}
|
|
234
|
+
else {
|
|
235
|
+
this.ethAddress = undefined;
|
|
236
|
+
return null;
|
|
237
|
+
}
|
|
305
238
|
}
|
|
306
239
|
/**
|
|
307
240
|
* Ethereum Signed Transaction
|
|
308
241
|
*
|
|
309
242
|
* @see https://docs.walletconnect.com/client-api#sign-transaction-eth_signtransaction
|
|
310
243
|
*/
|
|
311
|
-
ethSignTx(msg) {
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
return (0, ethereum_1.ethSignTx)(Object.assign(Object.assign({}, msg), { from: this.ethAddress }), this.provider);
|
|
317
|
-
});
|
|
244
|
+
async ethSignTx(msg) {
|
|
245
|
+
if (!this.ethAddress) {
|
|
246
|
+
throw new Error("No eth address");
|
|
247
|
+
}
|
|
248
|
+
return ethSignTx({ ...msg, from: this.ethAddress }, this.provider);
|
|
318
249
|
}
|
|
319
250
|
/**
|
|
320
251
|
* Ethereum Send Transaction
|
|
321
252
|
*
|
|
322
253
|
* @see https://docs.walletconnect.com/client-api#send-transaction-eth_sendtransaction
|
|
323
254
|
*/
|
|
324
|
-
ethSendTx(msg) {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
return (0, ethereum_1.ethSendTx)(Object.assign(Object.assign({}, msg), { from: this.ethAddress }), this.provider);
|
|
330
|
-
});
|
|
255
|
+
async ethSendTx(msg) {
|
|
256
|
+
if (!this.ethAddress) {
|
|
257
|
+
throw new Error("No eth address");
|
|
258
|
+
}
|
|
259
|
+
return ethSendTx({ ...msg, from: this.ethAddress }, this.provider);
|
|
331
260
|
}
|
|
332
261
|
/**
|
|
333
262
|
* Ethereum Sign Message
|
|
334
263
|
*
|
|
335
264
|
* @see https://docs.walletconnect.com/advanced/multichain/rpc-reference/ethereum-rpc#eth_sign
|
|
336
265
|
* */
|
|
337
|
-
ethSignMessage(msg) {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
return (0, ethereum_1.ethSignMessage)({ data: msg.message, fromAddress: this.ethAddress }, this.provider);
|
|
343
|
-
});
|
|
266
|
+
async ethSignMessage(msg) {
|
|
267
|
+
if (!this.ethAddress) {
|
|
268
|
+
throw new Error("No eth address");
|
|
269
|
+
}
|
|
270
|
+
return ethSignMessage({ data: msg.message, fromAddress: this.ethAddress }, this.provider);
|
|
344
271
|
}
|
|
345
272
|
/**
|
|
346
273
|
* Ethereum Sign Typed Data
|
|
347
274
|
*
|
|
348
275
|
* @see https://docs.walletconnect.com/advanced/multichain/rpc-reference/ethereum-rpc#eth_signtypeddata
|
|
349
276
|
*/
|
|
350
|
-
ethSignTypedData(msg) {
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
return (0, ethereum_1.ethSignTypedData)({ msg, fromAddress: this.ethAddress }, this.provider);
|
|
356
|
-
});
|
|
277
|
+
async ethSignTypedData(msg) {
|
|
278
|
+
if (!this.ethAddress) {
|
|
279
|
+
throw new Error("No eth address");
|
|
280
|
+
}
|
|
281
|
+
return ethSignTypedData({ msg, fromAddress: this.ethAddress }, this.provider);
|
|
357
282
|
}
|
|
358
|
-
ethVerifyMessage(msg) {
|
|
359
|
-
return
|
|
360
|
-
return (0, ethereum_1.ethVerifyMessage)(this.provider, msg);
|
|
361
|
-
});
|
|
283
|
+
async ethVerifyMessage(msg) {
|
|
284
|
+
return ethVerifyMessage(this.provider, msg);
|
|
362
285
|
}
|
|
363
|
-
getDeviceID() {
|
|
364
|
-
return
|
|
365
|
-
return "wc:" + (yield this.ethGetAddress());
|
|
366
|
-
});
|
|
286
|
+
async getDeviceID() {
|
|
287
|
+
return "wc:" + (await this.ethGetAddress());
|
|
367
288
|
}
|
|
368
|
-
getFirmwareVersion() {
|
|
369
|
-
return
|
|
370
|
-
return "WalletConnectV2";
|
|
371
|
-
});
|
|
289
|
+
async getFirmwareVersion() {
|
|
290
|
+
return "WalletConnectV2";
|
|
372
291
|
}
|
|
373
|
-
ethGetChainId() {
|
|
374
|
-
return
|
|
375
|
-
return this.provider.chainId;
|
|
376
|
-
});
|
|
292
|
+
async ethGetChainId() {
|
|
293
|
+
return this.provider.chainId;
|
|
377
294
|
}
|
|
378
|
-
ethSwitchChain({ chainId }) {
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
params: [{ chainId }],
|
|
387
|
-
});
|
|
388
|
-
this.chainId = parsedChainId;
|
|
295
|
+
async ethSwitchChain({ chainId }) {
|
|
296
|
+
const parsedChainId = parseInt(chainId, 16);
|
|
297
|
+
if (isNaN(parsedChainId) || this.chainId === parsedChainId) {
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
await this.provider.request({
|
|
301
|
+
method: "wallet_switchEthereumChain",
|
|
302
|
+
params: [{ chainId }],
|
|
389
303
|
});
|
|
304
|
+
this.chainId = parsedChainId;
|
|
390
305
|
}
|
|
391
306
|
}
|
|
392
|
-
exports.WalletConnectV2HDWallet = WalletConnectV2HDWallet;
|
|
393
307
|
//# sourceMappingURL=walletconnectV2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"walletconnectV2.js","sourceRoot":"","sources":["../src/walletconnectV2.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"walletconnectV2.js","sourceRoot":"","sources":["../src/walletconnectV2.ts"],"names":[],"mappings":"AAqBA,OAAO,EAA6B,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAEvF,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AAEvC,OAAO,EACL,eAAe,EACf,aAAa,EACb,SAAS,EACT,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,YAAY,CAAC;AAEpB,MAAM,UAAU,iBAAiB,CAAC,MAAgB;IAChD,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAK,MAAc,CAAC,kBAAkB,CAAC;AAChE,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,yBAAyB;IAC3B,gBAAgB,GAAG,IAAI,CAAC;IACxB,gBAAgB,GAAG,KAAK,CAAC;IAC3B,SAAS;QACd,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAEM,mBAAmB;QACxB,OAAO,KAAK,CAAC;IACf,CAAC;IAEM,qBAAqB;QAC1B,OAAO,KAAK,CAAC;IACf,CAAC;IAEM,kBAAkB;QACvB,OAAO,KAAK,CAAC;IACf,CAAC;IAEM,mBAAmB;QACxB,OAAO,KAAK,CAAC;IACf,CAAC;IAEM,mBAAmB;QACxB,OAAO,KAAK,CAAC;IACf,CAAC;IAEM,qBAAqB;QAC1B,OAAO,KAAK,CAAC;IACf,CAAC;IAEM,sBAAsB;QAC3B,OAAO,KAAK,CAAC;IACf,CAAC;IAEM,iBAAiB;QACtB,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,YAAY,CAAC,GAAiB;QACnC,QAAQ,GAAG,CAAC,I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O,gBAAgB,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IAC9C,CAAC;IAEM,KAAK,CAAC,WAAW;QACtB,OAAO,KAAK,GAAG,CAAC,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC;IAC9C,CAAC;IAEM,KAAK,CAAC,kBAAkB;QAC7B,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAEM,KAAK,CAAC,aAAa;QACxB,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;IAC/B,CAAC;IAEM,KAAK,CAAC,cAAc,CAAC,EAAE,OAAO,EAA6B;QAChE,MAAM,aAAa,GAAG,QAAQ,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QAC5C,IAAI,KAAK,CAAC,aAAa,CAAC,IAAI,IAAI,CAAC,OAAO,KAAK,aAAa,EAAE,CAAC;YAC3D,OAAO;QACT,CAAC;QAED,MAAM,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;YAC1B,MAAM,EAAE,4BAA4B;YACpC,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC;SACtB,CAAC,CAAC;QAEH,IAAI,CAAC,OAAO,GAAG,aAAa,CAAC;IAC/B,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapeshiftoss/hdwallet-walletconnectv2",
|
|
3
|
-
"version": "1.55.
|
|
3
|
+
"version": "1.55.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"prepublishOnly": "yarn clean && yarn build"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@shapeshiftoss/hdwallet-core": "1.55.
|
|
18
|
+
"@shapeshiftoss/hdwallet-core": "1.55.3",
|
|
19
19
|
"@walletconnect/ethereum-provider": "^2.10.1",
|
|
20
20
|
"@walletconnect/modal": "^2.6.2",
|
|
21
21
|
"ethers": "^5.6.5"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "139e31e9d61b2d8d63488101c6227a50f4fad061"
|
|
24
24
|
}
|