@depay/web3-wallets-evm 16.0.5 → 16.0.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.
@@ -8,7 +8,7 @@
8
8
 
9
9
  var Blockchains__default = /*#__PURE__*/_interopDefaultLegacy(Blockchains);
10
10
 
11
- function _optionalChain$m(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
11
+ function _optionalChain$n(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
12
12
  class Transaction {
13
13
 
14
14
  constructor({
@@ -33,7 +33,7 @@
33
33
  this.to = (to && to.match('0x')) ? ethers.ethers.utils.getAddress(to) : to;
34
34
 
35
35
  // optional
36
- this.value = _optionalChain$m([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
36
+ this.value = _optionalChain$n([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
37
37
  this.api = api;
38
38
  this.method = method;
39
39
  this.params = params;
@@ -73,7 +73,7 @@
73
73
  }
74
74
 
75
75
  getParamType(param) {
76
- if(_optionalChain$m([param, 'optionalAccess', _5 => _5.components, 'optionalAccess', _6 => _6.length])) {
76
+ if(_optionalChain$n([param, 'optionalAccess', _5 => _5.components, 'optionalAccess', _6 => _6.length])) {
77
77
  return `(${param.components.map((param)=>this.getParamType(param)).join(',')})`
78
78
  } else {
79
79
  return param.type
@@ -146,7 +146,7 @@
146
146
  }
147
147
  }
148
148
 
149
- function _optionalChain$l(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
149
+ function _optionalChain$m(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
150
150
 
151
151
  const POLL_SPEED = 500; // 0.5 seconds
152
152
  const MAX_POLLS = 240; // 120 seconds
@@ -167,14 +167,14 @@
167
167
 
168
168
  const provider = await web3ClientSolana.getProvider(transaction.blockchain);
169
169
  const { value } = await provider.getSignatureStatus(signature);
170
- const confirmationStatus = _optionalChain$l([value, 'optionalAccess', _ => _.confirmationStatus]);
170
+ const confirmationStatus = _optionalChain$m([value, 'optionalAccess', _ => _.confirmationStatus]);
171
171
  if(confirmationStatus) {
172
172
  const hasReachedSufficientCommitment = confirmationStatus === 'confirmed' || confirmationStatus === 'finalized';
173
173
  if (hasReachedSufficientCommitment) {
174
174
  if(value.err) {
175
175
  transaction._failed = true;
176
176
  const confirmedTransaction = await provider.getConfirmedTransaction(signature);
177
- const failedReason = _optionalChain$l([confirmedTransaction, 'optionalAccess', _2 => _2.meta, 'optionalAccess', _3 => _3.logMessages]) ? confirmedTransaction.meta.logMessages[confirmedTransaction.meta.logMessages.length - 1] : null;
177
+ const failedReason = _optionalChain$m([confirmedTransaction, 'optionalAccess', _2 => _2.meta, 'optionalAccess', _3 => _3.logMessages]) ? confirmedTransaction.meta.logMessages[confirmedTransaction.meta.logMessages.length - 1] : null;
178
178
  if(transaction.failed) transaction.failed(transaction, failedReason);
179
179
  } else {
180
180
  transaction._succeeded = true;
@@ -265,7 +265,7 @@
265
265
  supported$2.evm = [];
266
266
  supported$2.solana = ['solana'];
267
267
 
268
- function _optionalChain$k(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
268
+ function _optionalChain$l(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
269
269
  class WindowSolana {
270
270
 
271
271
  static __initStatic() {this.info = {
@@ -276,9 +276,14 @@
276
276
 
277
277
  static __initStatic2() {this.isAvailable = async()=>{
278
278
  return (
279
- _optionalChain$k([window, 'optionalAccess', _2 => _2.solana]) &&
280
- !(window.phantom && !window.glow && !window.solana.isGlow) &&
279
+ _optionalChain$l([window, 'optionalAccess', _5 => _5.solana]) &&
280
+ // not Phantom
281
+ !(window.phantom && !window.glow && !window.solana.isGlow && !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])) &&
282
+ // not Coin98
281
283
  !window.coin98 &&
284
+ // not BitKeep
285
+ !(_optionalChain$l([window, 'optionalAccess', _6 => _6.solana]) && _optionalChain$l([window, 'optionalAccess', _7 => _7.solana, 'access', _8 => _8.isBitKeep])) &&
286
+ // not Glow
282
287
  !window.solana.isGlow
283
288
  )
284
289
  };}
@@ -326,7 +331,7 @@
326
331
  let internalCallback;
327
332
  switch (event) {
328
333
  case 'account':
329
- internalCallback = (publicKey) => callback(_optionalChain$k([publicKey, 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]));
334
+ internalCallback = (publicKey) => callback(_optionalChain$l([publicKey, 'optionalAccess', _9 => _9.toString, 'call', _10 => _10()]));
330
335
  this.getProvider().on('accountChanged', internalCallback);
331
336
  break
332
337
  }
@@ -1215,7 +1220,7 @@
1215
1220
  })
1216
1221
  };
1217
1222
 
1218
- function _optionalChain$j(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1223
+ function _optionalChain$k(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1219
1224
  class Backpack extends WindowSolana {
1220
1225
 
1221
1226
  static __initStatic() {this.info = {
@@ -1226,7 +1231,7 @@
1226
1231
 
1227
1232
  static __initStatic2() {this.isAvailable = async()=>{
1228
1233
  return (
1229
- _optionalChain$j([window, 'optionalAccess', _2 => _2.backpack]) &&
1234
+ _optionalChain$k([window, 'optionalAccess', _2 => _2.backpack]) &&
1230
1235
  window.backpack.isBackpack
1231
1236
  )
1232
1237
  };}
@@ -1321,7 +1326,7 @@
1321
1326
  })
1322
1327
  };
1323
1328
 
1324
- function _optionalChain$i(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1329
+ function _optionalChain$j(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1325
1330
  class WindowEthereum {
1326
1331
 
1327
1332
  static __initStatic() {this.info = {
@@ -1332,18 +1337,29 @@
1332
1337
 
1333
1338
  static __initStatic2() {this.isAvailable = async()=>{
1334
1339
  return (
1335
- _optionalChain$i([window, 'optionalAccess', _25 => _25.ethereum]) &&
1336
- Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length != 1 && // MetaMask
1337
- !_optionalChain$i([window, 'optionalAccess', _26 => _26.coin98]) && // Coin98
1338
- !(_optionalChain$i([window, 'optionalAccess', _27 => _27.ethereum, 'optionalAccess', _28 => _28.isTrust]) || _optionalChain$i([window, 'optionalAccess', _29 => _29.ethereum, 'optionalAccess', _30 => _30.isTrustWallet])) && // Trust Wallet
1339
- !_optionalChain$i([window, 'optionalAccess', _31 => _31.ethereum, 'optionalAccess', _32 => _32.isDeficonnectProvider]) && // crypto.com
1340
- !_optionalChain$i([window, 'optionalAccess', _33 => _33.ethereum, 'optionalAccess', _34 => _34.isHyperPay]) && // isHyperPay
1341
- !_optionalChain$i([window, 'optionalAccess', _35 => _35.ethereum, 'optionalAccess', _36 => _36.isPhantom]) && // Phantom
1342
- !_optionalChain$i([window, 'optionalAccess', _37 => _37.solana, 'optionalAccess', _38 => _38.isPhantom]) && // Phantom
1343
- !_optionalChain$i([window, 'optionalAccess', _39 => _39.ethereum, 'optionalAccess', _40 => _40.isRabby]) && // Rabby
1344
- !_optionalChain$i([window, 'optionalAccess', _41 => _41.backpack, 'optionalAccess', _42 => _42.isBackpack]) && // Backpack
1345
- !_optionalChain$i([window, 'optionalAccess', _43 => _43.ethereum, 'optionalAccess', _44 => _44.isTokenPocket]) && // TokenPocket
1346
- !(_optionalChain$i([window, 'optionalAccess', _45 => _45.ethereum, 'optionalAccess', _46 => _46.isCoinbaseWallet]) || _optionalChain$i([window, 'optionalAccess', _47 => _47.ethereum, 'optionalAccess', _48 => _48.isWalletLink]))
1340
+ _optionalChain$j([window, 'optionalAccess', _27 => _27.ethereum]) &&
1341
+ // not MetaMask
1342
+ !(_optionalChain$j([window, 'optionalAccess', _28 => _28.ethereum, 'optionalAccess', _29 => _29.isMetaMask]) && Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1) &&
1343
+ // not Coin98
1344
+ !_optionalChain$j([window, 'optionalAccess', _30 => _30.coin98]) &&
1345
+ // not Trust Wallet
1346
+ !(_optionalChain$j([window, 'optionalAccess', _31 => _31.ethereum, 'optionalAccess', _32 => _32.isTrust]) || _optionalChain$j([window, 'optionalAccess', _33 => _33.ethereum, 'optionalAccess', _34 => _34.isTrustWallet])) &&
1347
+ // not crypto.com
1348
+ !_optionalChain$j([window, 'optionalAccess', _35 => _35.ethereum, 'optionalAccess', _36 => _36.isDeficonnectProvider]) &&
1349
+ // not HyperPay
1350
+ !_optionalChain$j([window, 'optionalAccess', _37 => _37.ethereum, 'optionalAccess', _38 => _38.isHyperPay]) &&
1351
+ // not Phantom
1352
+ !(window.phantom && !window.glow && !_optionalChain$j([window, 'optionalAccess', _39 => _39.solana, 'optionalAccess', _40 => _40.isGlow]) && !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])) &&
1353
+ // not Rabby
1354
+ !_optionalChain$j([window, 'optionalAccess', _41 => _41.ethereum, 'optionalAccess', _42 => _42.isRabby]) &&
1355
+ // not Backpack
1356
+ !_optionalChain$j([window, 'optionalAccess', _43 => _43.backpack, 'optionalAccess', _44 => _44.isBackpack]) &&
1357
+ // not TokenPocket
1358
+ !_optionalChain$j([window, 'optionalAccess', _45 => _45.ethereum, 'optionalAccess', _46 => _46.isTokenPocket]) &&
1359
+ // not BitKeep
1360
+ !_optionalChain$j([window, 'optionalAccess', _47 => _47.ethereum, 'optionalAccess', _48 => _48.isBitKeep]) &&
1361
+ // not Coinbase
1362
+ !(_optionalChain$j([window, 'optionalAccess', _49 => _49.ethereum, 'optionalAccess', _50 => _50.isCoinbaseWallet]) || _optionalChain$j([window, 'optionalAccess', _51 => _51.ethereum, 'optionalAccess', _52 => _52.isWalletLink]))
1347
1363
  )
1348
1364
  };}
1349
1365
 
@@ -1469,7 +1485,7 @@
1469
1485
  }
1470
1486
  } WindowEthereum.__initStatic(); WindowEthereum.__initStatic2();
1471
1487
 
1472
- function _optionalChain$h(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1488
+ function _optionalChain$i(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1473
1489
  class Binance extends WindowEthereum {
1474
1490
 
1475
1491
  static __initStatic() {this.info = {
@@ -1479,7 +1495,7 @@
1479
1495
  };}
1480
1496
 
1481
1497
  static __initStatic2() {this.isAvailable = async()=>{
1482
- return _optionalChain$h([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
1498
+ return _optionalChain$i([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
1483
1499
  !window.coin98
1484
1500
  };}
1485
1501
 
@@ -1487,7 +1503,7 @@
1487
1503
 
1488
1504
  } Binance.__initStatic(); Binance.__initStatic2();
1489
1505
 
1490
- function _optionalChain$g(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1506
+ function _optionalChain$h(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1491
1507
  class Brave extends WindowEthereum {
1492
1508
 
1493
1509
  static __initStatic() {this.info = {
@@ -1496,10 +1512,10 @@
1496
1512
  blockchains: supported$2.evm
1497
1513
  };}
1498
1514
 
1499
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$g([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
1515
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$h([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
1500
1516
  } Brave.__initStatic(); Brave.__initStatic2();
1501
1517
 
1502
- function _optionalChain$f(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1518
+ function _optionalChain$g(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1503
1519
  class Coin98 extends WindowEthereum {
1504
1520
 
1505
1521
  static __initStatic() {this.info = {
@@ -1508,10 +1524,10 @@
1508
1524
  blockchains: supported$2.evm
1509
1525
  };}
1510
1526
 
1511
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$f([window, 'optionalAccess', _2 => _2.coin98]) };}
1527
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$g([window, 'optionalAccess', _2 => _2.coin98]) };}
1512
1528
  } Coin98.__initStatic(); Coin98.__initStatic2();
1513
1529
 
1514
- function _optionalChain$e(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1530
+ function _optionalChain$f(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1515
1531
  class Coinbase extends WindowEthereum {
1516
1532
 
1517
1533
  static __initStatic() {this.info = {
@@ -1520,10 +1536,10 @@
1520
1536
  blockchains: supported$2.evm
1521
1537
  };}
1522
1538
 
1523
- static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$e([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isCoinbaseWallet]) || _optionalChain$e([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isWalletLink])) };}
1539
+ static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$f([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isCoinbaseWallet]) || _optionalChain$f([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isWalletLink])) };}
1524
1540
  } Coinbase.__initStatic(); Coinbase.__initStatic2();
1525
1541
 
1526
- function _optionalChain$d(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1542
+ function _optionalChain$e(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1527
1543
  class CryptoCom extends WindowEthereum {
1528
1544
 
1529
1545
  static __initStatic() {this.info = {
@@ -1532,7 +1548,7 @@
1532
1548
  blockchains: supported$2.evm
1533
1549
  };}
1534
1550
 
1535
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$d([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
1551
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$e([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
1536
1552
  } CryptoCom.__initStatic(); CryptoCom.__initStatic2();
1537
1553
 
1538
1554
  class Glow extends WindowSolana {
@@ -1551,7 +1567,7 @@
1551
1567
  };}
1552
1568
  } Glow.__initStatic(); Glow.__initStatic2();
1553
1569
 
1554
- function _optionalChain$c(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1570
+ function _optionalChain$d(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1555
1571
  class HyperPay extends WindowEthereum {
1556
1572
 
1557
1573
  static __initStatic() {this.info = {
@@ -1560,10 +1576,10 @@
1560
1576
  blockchains: supported$2.evm
1561
1577
  };}
1562
1578
 
1563
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$c([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
1579
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$d([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
1564
1580
  } HyperPay.__initStatic(); HyperPay.__initStatic2();
1565
1581
 
1566
- function _optionalChain$b(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1582
+ function _optionalChain$c(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1567
1583
  class MetaMask extends WindowEthereum {
1568
1584
 
1569
1585
  static __initStatic() {this.info = {
@@ -1574,13 +1590,13 @@
1574
1590
 
1575
1591
  static __initStatic2() {this.isAvailable = async()=>{
1576
1592
  return(
1577
- _optionalChain$b([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) &&
1593
+ _optionalChain$c([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) &&
1578
1594
  Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1
1579
1595
  )
1580
1596
  };}
1581
1597
  } MetaMask.__initStatic(); MetaMask.__initStatic2();
1582
1598
 
1583
- function _optionalChain$a(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1599
+ function _optionalChain$b(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1584
1600
  class Opera extends WindowEthereum {
1585
1601
 
1586
1602
  static __initStatic() {this.info = {
@@ -1589,9 +1605,10 @@
1589
1605
  blockchains: supported$2.evm
1590
1606
  };}
1591
1607
 
1592
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$a([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
1608
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$b([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
1593
1609
  } Opera.__initStatic(); Opera.__initStatic2();
1594
1610
 
1611
+ function _optionalChain$a(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1595
1612
  class Phantom extends WindowSolana {
1596
1613
 
1597
1614
  static __initStatic() {this.info = {
@@ -1602,7 +1619,10 @@
1602
1619
 
1603
1620
  static __initStatic2() {this.isAvailable = async()=>{
1604
1621
  return (
1605
- window.phantom && !window.glow && !window.solana.isGlow
1622
+ window.phantom &&
1623
+ !window.glow &&
1624
+ !_optionalChain$a([window, 'optionalAccess', _3 => _3.solana, 'optionalAccess', _4 => _4.isGlow]) &&
1625
+ !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])
1606
1626
  )
1607
1627
  };}
1608
1628
  } Phantom.__initStatic(); Phantom.__initStatic2();
@@ -2460,6 +2480,36 @@
2460
2480
  ]
2461
2481
  },
2462
2482
 
2483
+ "BitGet (BitKeep)": {
2484
+ methods: [
2485
+ "eth_sendTransaction",
2486
+ "personal_sign",
2487
+ "eth_signTypedData",
2488
+ "eth_signTypedData_v4",
2489
+ ],
2490
+ requiredNamespaces: {
2491
+ eip155: {
2492
+ chains: ['ethereum', 'bsc', 'polygon', 'arbitrum', 'optimism'].map((blockchainName)=>`eip155:${Blockchains__default['default'][blockchainName].networkId}`)
2493
+ }
2494
+ },
2495
+ optionalNamespaces: {},
2496
+ },
2497
+
2498
+ "BitGet": {
2499
+ methods: [
2500
+ "eth_sendTransaction",
2501
+ "personal_sign",
2502
+ "eth_signTypedData",
2503
+ "eth_signTypedData_v4",
2504
+ ],
2505
+ requiredNamespaces: {
2506
+ eip155: {
2507
+ chains: ['ethereum', 'bsc', 'polygon', 'arbitrum', 'optimism'].map((blockchainName)=>`eip155:${Blockchains__default['default'][blockchainName].networkId}`)
2508
+ }
2509
+ },
2510
+ optionalNamespaces: {},
2511
+ },
2512
+
2463
2513
  "Uniswap Wallet": {
2464
2514
  methods: [
2465
2515
  "eth_sendTransaction",
@@ -2594,6 +2644,7 @@
2594
2644
  }
2595
2645
 
2596
2646
  async setSessionBlockchains() {
2647
+ if(!this.session) { return }
2597
2648
  if(_optionalChain$1([CONFIGURATIONS, 'access', _27 => _27[this.walletName], 'optionalAccess', _28 => _28.methods, 'optionalAccess', _29 => _29.includes, 'call', _30 => _30('wallet_switchEthereumChain')])) {
2598
2649
  this.blockchains = [this.session.namespaces.eip155.chains[this.session.namespaces.eip155.chains.length-1]].map((chainIdentifier)=>_optionalChain$1([Blockchains__default['default'], 'access', _31 => _31.findByNetworkId, 'call', _32 => _32(chainIdentifier.split(':')[1]), 'optionalAccess', _33 => _33.name])).filter(Boolean);
2599
2650
  } else if(this.session.namespaces.eip155.chains) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@depay/web3-wallets-evm",
3
3
  "moduleName": "Web3Wallets",
4
- "version": "16.0.5",
4
+ "version": "16.0.7",
5
5
  "description": "One-Stop-Shop JavaScript library to integrate various web3 crypto wallets and multiple blockchains at once with a single interface.",
6
6
  "main": "dist/umd/index.evm.js",
7
7
  "module": "dist/esm/index.evm.js",