@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.
@@ -6,7 +6,7 @@ import { WalletConnectClient } from '@depay/walletconnect-v1';
6
6
  import { SignClient } from '@depay/walletconnect-v2';
7
7
  import { CoinbaseWalletSDK } from '@depay/coinbase-wallet-sdk';
8
8
 
9
- 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; }
9
+ 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; }
10
10
  class Transaction {
11
11
 
12
12
  constructor({
@@ -31,7 +31,7 @@ class Transaction {
31
31
  this.to = (to && to.match('0x')) ? ethers.utils.getAddress(to) : to;
32
32
 
33
33
  // optional
34
- this.value = _optionalChain$m([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
34
+ this.value = _optionalChain$n([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
35
35
  this.api = api;
36
36
  this.method = method;
37
37
  this.params = params;
@@ -71,7 +71,7 @@ class Transaction {
71
71
  }
72
72
 
73
73
  getParamType(param) {
74
- if(_optionalChain$m([param, 'optionalAccess', _5 => _5.components, 'optionalAccess', _6 => _6.length])) {
74
+ if(_optionalChain$n([param, 'optionalAccess', _5 => _5.components, 'optionalAccess', _6 => _6.length])) {
75
75
  return `(${param.components.map((param)=>this.getParamType(param)).join(',')})`
76
76
  } else {
77
77
  return param.type
@@ -144,7 +144,7 @@ class Transaction {
144
144
  }
145
145
  }
146
146
 
147
- 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; }
147
+ 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; }
148
148
 
149
149
  const POLL_SPEED = 500; // 0.5 seconds
150
150
  const MAX_POLLS = 240; // 120 seconds
@@ -165,14 +165,14 @@ const sendTransaction$4 = async ({ transaction, wallet })=> {
165
165
 
166
166
  const provider = await getProvider$3(transaction.blockchain);
167
167
  const { value } = await provider.getSignatureStatus(signature);
168
- const confirmationStatus = _optionalChain$l([value, 'optionalAccess', _ => _.confirmationStatus]);
168
+ const confirmationStatus = _optionalChain$m([value, 'optionalAccess', _ => _.confirmationStatus]);
169
169
  if(confirmationStatus) {
170
170
  const hasReachedSufficientCommitment = confirmationStatus === 'confirmed' || confirmationStatus === 'finalized';
171
171
  if (hasReachedSufficientCommitment) {
172
172
  if(value.err) {
173
173
  transaction._failed = true;
174
174
  const confirmedTransaction = await provider.getConfirmedTransaction(signature);
175
- const failedReason = _optionalChain$l([confirmedTransaction, 'optionalAccess', _2 => _2.meta, 'optionalAccess', _3 => _3.logMessages]) ? confirmedTransaction.meta.logMessages[confirmedTransaction.meta.logMessages.length - 1] : null;
175
+ const failedReason = _optionalChain$m([confirmedTransaction, 'optionalAccess', _2 => _2.meta, 'optionalAccess', _3 => _3.logMessages]) ? confirmedTransaction.meta.logMessages[confirmedTransaction.meta.logMessages.length - 1] : null;
176
176
  if(transaction.failed) transaction.failed(transaction, failedReason);
177
177
  } else {
178
178
  transaction._succeeded = true;
@@ -263,7 +263,7 @@ let supported$2 = ['solana'];
263
263
  supported$2.evm = [];
264
264
  supported$2.solana = ['solana'];
265
265
 
266
- 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; }
266
+ 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; }
267
267
  class WindowSolana {
268
268
 
269
269
  static __initStatic() {this.info = {
@@ -274,9 +274,14 @@ class WindowSolana {
274
274
 
275
275
  static __initStatic2() {this.isAvailable = async()=>{
276
276
  return (
277
- _optionalChain$k([window, 'optionalAccess', _2 => _2.solana]) &&
278
- !(window.phantom && !window.glow && !window.solana.isGlow) &&
277
+ _optionalChain$l([window, 'optionalAccess', _5 => _5.solana]) &&
278
+ // not Phantom
279
+ !(window.phantom && !window.glow && !window.solana.isGlow && !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])) &&
280
+ // not Coin98
279
281
  !window.coin98 &&
282
+ // not BitKeep
283
+ !(_optionalChain$l([window, 'optionalAccess', _6 => _6.solana]) && _optionalChain$l([window, 'optionalAccess', _7 => _7.solana, 'access', _8 => _8.isBitKeep])) &&
284
+ // not Glow
280
285
  !window.solana.isGlow
281
286
  )
282
287
  };}
@@ -324,7 +329,7 @@ class WindowSolana {
324
329
  let internalCallback;
325
330
  switch (event) {
326
331
  case 'account':
327
- internalCallback = (publicKey) => callback(_optionalChain$k([publicKey, 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]));
332
+ internalCallback = (publicKey) => callback(_optionalChain$l([publicKey, 'optionalAccess', _9 => _9.toString, 'call', _10 => _10()]));
328
333
  this.getProvider().on('accountChanged', internalCallback);
329
334
  break
330
335
  }
@@ -1213,7 +1218,7 @@ const request = async function (url, options) {
1213
1218
  })
1214
1219
  };
1215
1220
 
1216
- 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; }
1221
+ 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; }
1217
1222
  class Backpack extends WindowSolana {
1218
1223
 
1219
1224
  static __initStatic() {this.info = {
@@ -1224,7 +1229,7 @@ class Backpack extends WindowSolana {
1224
1229
 
1225
1230
  static __initStatic2() {this.isAvailable = async()=>{
1226
1231
  return (
1227
- _optionalChain$j([window, 'optionalAccess', _2 => _2.backpack]) &&
1232
+ _optionalChain$k([window, 'optionalAccess', _2 => _2.backpack]) &&
1228
1233
  window.backpack.isBackpack
1229
1234
  )
1230
1235
  };}
@@ -1319,7 +1324,7 @@ const submitSimpleTransfer$3 = ({ transaction, signer })=>{
1319
1324
  })
1320
1325
  };
1321
1326
 
1322
- 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; }
1327
+ 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; }
1323
1328
  class WindowEthereum {
1324
1329
 
1325
1330
  static __initStatic() {this.info = {
@@ -1330,18 +1335,29 @@ class WindowEthereum {
1330
1335
 
1331
1336
  static __initStatic2() {this.isAvailable = async()=>{
1332
1337
  return (
1333
- _optionalChain$i([window, 'optionalAccess', _25 => _25.ethereum]) &&
1334
- Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length != 1 && // MetaMask
1335
- !_optionalChain$i([window, 'optionalAccess', _26 => _26.coin98]) && // Coin98
1336
- !(_optionalChain$i([window, 'optionalAccess', _27 => _27.ethereum, 'optionalAccess', _28 => _28.isTrust]) || _optionalChain$i([window, 'optionalAccess', _29 => _29.ethereum, 'optionalAccess', _30 => _30.isTrustWallet])) && // Trust Wallet
1337
- !_optionalChain$i([window, 'optionalAccess', _31 => _31.ethereum, 'optionalAccess', _32 => _32.isDeficonnectProvider]) && // crypto.com
1338
- !_optionalChain$i([window, 'optionalAccess', _33 => _33.ethereum, 'optionalAccess', _34 => _34.isHyperPay]) && // isHyperPay
1339
- !_optionalChain$i([window, 'optionalAccess', _35 => _35.ethereum, 'optionalAccess', _36 => _36.isPhantom]) && // Phantom
1340
- !_optionalChain$i([window, 'optionalAccess', _37 => _37.solana, 'optionalAccess', _38 => _38.isPhantom]) && // Phantom
1341
- !_optionalChain$i([window, 'optionalAccess', _39 => _39.ethereum, 'optionalAccess', _40 => _40.isRabby]) && // Rabby
1342
- !_optionalChain$i([window, 'optionalAccess', _41 => _41.backpack, 'optionalAccess', _42 => _42.isBackpack]) && // Backpack
1343
- !_optionalChain$i([window, 'optionalAccess', _43 => _43.ethereum, 'optionalAccess', _44 => _44.isTokenPocket]) && // TokenPocket
1344
- !(_optionalChain$i([window, 'optionalAccess', _45 => _45.ethereum, 'optionalAccess', _46 => _46.isCoinbaseWallet]) || _optionalChain$i([window, 'optionalAccess', _47 => _47.ethereum, 'optionalAccess', _48 => _48.isWalletLink]))
1338
+ _optionalChain$j([window, 'optionalAccess', _27 => _27.ethereum]) &&
1339
+ // not MetaMask
1340
+ !(_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) &&
1341
+ // not Coin98
1342
+ !_optionalChain$j([window, 'optionalAccess', _30 => _30.coin98]) &&
1343
+ // not Trust Wallet
1344
+ !(_optionalChain$j([window, 'optionalAccess', _31 => _31.ethereum, 'optionalAccess', _32 => _32.isTrust]) || _optionalChain$j([window, 'optionalAccess', _33 => _33.ethereum, 'optionalAccess', _34 => _34.isTrustWallet])) &&
1345
+ // not crypto.com
1346
+ !_optionalChain$j([window, 'optionalAccess', _35 => _35.ethereum, 'optionalAccess', _36 => _36.isDeficonnectProvider]) &&
1347
+ // not HyperPay
1348
+ !_optionalChain$j([window, 'optionalAccess', _37 => _37.ethereum, 'optionalAccess', _38 => _38.isHyperPay]) &&
1349
+ // not Phantom
1350
+ !(window.phantom && !window.glow && !_optionalChain$j([window, 'optionalAccess', _39 => _39.solana, 'optionalAccess', _40 => _40.isGlow]) && !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])) &&
1351
+ // not Rabby
1352
+ !_optionalChain$j([window, 'optionalAccess', _41 => _41.ethereum, 'optionalAccess', _42 => _42.isRabby]) &&
1353
+ // not Backpack
1354
+ !_optionalChain$j([window, 'optionalAccess', _43 => _43.backpack, 'optionalAccess', _44 => _44.isBackpack]) &&
1355
+ // not TokenPocket
1356
+ !_optionalChain$j([window, 'optionalAccess', _45 => _45.ethereum, 'optionalAccess', _46 => _46.isTokenPocket]) &&
1357
+ // not BitKeep
1358
+ !_optionalChain$j([window, 'optionalAccess', _47 => _47.ethereum, 'optionalAccess', _48 => _48.isBitKeep]) &&
1359
+ // not Coinbase
1360
+ !(_optionalChain$j([window, 'optionalAccess', _49 => _49.ethereum, 'optionalAccess', _50 => _50.isCoinbaseWallet]) || _optionalChain$j([window, 'optionalAccess', _51 => _51.ethereum, 'optionalAccess', _52 => _52.isWalletLink]))
1345
1361
  )
1346
1362
  };}
1347
1363
 
@@ -1467,7 +1483,7 @@ class WindowEthereum {
1467
1483
  }
1468
1484
  } WindowEthereum.__initStatic(); WindowEthereum.__initStatic2();
1469
1485
 
1470
- 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; }
1486
+ 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; }
1471
1487
  class Binance extends WindowEthereum {
1472
1488
 
1473
1489
  static __initStatic() {this.info = {
@@ -1477,7 +1493,7 @@ class Binance extends WindowEthereum {
1477
1493
  };}
1478
1494
 
1479
1495
  static __initStatic2() {this.isAvailable = async()=>{
1480
- return _optionalChain$h([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
1496
+ return _optionalChain$i([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
1481
1497
  !window.coin98
1482
1498
  };}
1483
1499
 
@@ -1485,7 +1501,7 @@ class Binance extends WindowEthereum {
1485
1501
 
1486
1502
  } Binance.__initStatic(); Binance.__initStatic2();
1487
1503
 
1488
- 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; }
1504
+ 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; }
1489
1505
  class Brave extends WindowEthereum {
1490
1506
 
1491
1507
  static __initStatic() {this.info = {
@@ -1494,10 +1510,10 @@ class Brave extends WindowEthereum {
1494
1510
  blockchains: supported$2.evm
1495
1511
  };}
1496
1512
 
1497
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$g([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
1513
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$h([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
1498
1514
  } Brave.__initStatic(); Brave.__initStatic2();
1499
1515
 
1500
- 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; }
1516
+ 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; }
1501
1517
  class Coin98 extends WindowEthereum {
1502
1518
 
1503
1519
  static __initStatic() {this.info = {
@@ -1506,10 +1522,10 @@ class Coin98 extends WindowEthereum {
1506
1522
  blockchains: supported$2.evm
1507
1523
  };}
1508
1524
 
1509
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$f([window, 'optionalAccess', _2 => _2.coin98]) };}
1525
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$g([window, 'optionalAccess', _2 => _2.coin98]) };}
1510
1526
  } Coin98.__initStatic(); Coin98.__initStatic2();
1511
1527
 
1512
- 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; }
1528
+ 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; }
1513
1529
  class Coinbase extends WindowEthereum {
1514
1530
 
1515
1531
  static __initStatic() {this.info = {
@@ -1518,10 +1534,10 @@ class Coinbase extends WindowEthereum {
1518
1534
  blockchains: supported$2.evm
1519
1535
  };}
1520
1536
 
1521
- 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])) };}
1537
+ 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])) };}
1522
1538
  } Coinbase.__initStatic(); Coinbase.__initStatic2();
1523
1539
 
1524
- 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; }
1540
+ 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; }
1525
1541
  class CryptoCom extends WindowEthereum {
1526
1542
 
1527
1543
  static __initStatic() {this.info = {
@@ -1530,7 +1546,7 @@ class CryptoCom extends WindowEthereum {
1530
1546
  blockchains: supported$2.evm
1531
1547
  };}
1532
1548
 
1533
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$d([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
1549
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$e([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
1534
1550
  } CryptoCom.__initStatic(); CryptoCom.__initStatic2();
1535
1551
 
1536
1552
  class Glow extends WindowSolana {
@@ -1549,7 +1565,7 @@ class Glow extends WindowSolana {
1549
1565
  };}
1550
1566
  } Glow.__initStatic(); Glow.__initStatic2();
1551
1567
 
1552
- 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; }
1568
+ 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; }
1553
1569
  class HyperPay extends WindowEthereum {
1554
1570
 
1555
1571
  static __initStatic() {this.info = {
@@ -1558,10 +1574,10 @@ class HyperPay extends WindowEthereum {
1558
1574
  blockchains: supported$2.evm
1559
1575
  };}
1560
1576
 
1561
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$c([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
1577
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$d([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
1562
1578
  } HyperPay.__initStatic(); HyperPay.__initStatic2();
1563
1579
 
1564
- 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; }
1580
+ 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; }
1565
1581
  class MetaMask extends WindowEthereum {
1566
1582
 
1567
1583
  static __initStatic() {this.info = {
@@ -1572,13 +1588,13 @@ class MetaMask extends WindowEthereum {
1572
1588
 
1573
1589
  static __initStatic2() {this.isAvailable = async()=>{
1574
1590
  return(
1575
- _optionalChain$b([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) &&
1591
+ _optionalChain$c([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) &&
1576
1592
  Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1
1577
1593
  )
1578
1594
  };}
1579
1595
  } MetaMask.__initStatic(); MetaMask.__initStatic2();
1580
1596
 
1581
- 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; }
1597
+ 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
1598
  class Opera extends WindowEthereum {
1583
1599
 
1584
1600
  static __initStatic() {this.info = {
@@ -1587,9 +1603,10 @@ class Opera extends WindowEthereum {
1587
1603
  blockchains: supported$2.evm
1588
1604
  };}
1589
1605
 
1590
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$a([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
1606
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$b([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
1591
1607
  } Opera.__initStatic(); Opera.__initStatic2();
1592
1608
 
1609
+ 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; }
1593
1610
  class Phantom extends WindowSolana {
1594
1611
 
1595
1612
  static __initStatic() {this.info = {
@@ -1600,7 +1617,10 @@ class Phantom extends WindowSolana {
1600
1617
 
1601
1618
  static __initStatic2() {this.isAvailable = async()=>{
1602
1619
  return (
1603
- window.phantom && !window.glow && !window.solana.isGlow
1620
+ window.phantom &&
1621
+ !window.glow &&
1622
+ !_optionalChain$a([window, 'optionalAccess', _3 => _3.solana, 'optionalAccess', _4 => _4.isGlow]) &&
1623
+ !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])
1604
1624
  )
1605
1625
  };}
1606
1626
  } Phantom.__initStatic(); Phantom.__initStatic2();
@@ -2458,6 +2478,36 @@ const CONFIGURATIONS = {
2458
2478
  ]
2459
2479
  },
2460
2480
 
2481
+ "BitGet (BitKeep)": {
2482
+ methods: [
2483
+ "eth_sendTransaction",
2484
+ "personal_sign",
2485
+ "eth_signTypedData",
2486
+ "eth_signTypedData_v4",
2487
+ ],
2488
+ requiredNamespaces: {
2489
+ eip155: {
2490
+ chains: ['ethereum', 'bsc', 'polygon', 'arbitrum', 'optimism'].map((blockchainName)=>`eip155:${Blockchains[blockchainName].networkId}`)
2491
+ }
2492
+ },
2493
+ optionalNamespaces: {},
2494
+ },
2495
+
2496
+ "BitGet": {
2497
+ methods: [
2498
+ "eth_sendTransaction",
2499
+ "personal_sign",
2500
+ "eth_signTypedData",
2501
+ "eth_signTypedData_v4",
2502
+ ],
2503
+ requiredNamespaces: {
2504
+ eip155: {
2505
+ chains: ['ethereum', 'bsc', 'polygon', 'arbitrum', 'optimism'].map((blockchainName)=>`eip155:${Blockchains[blockchainName].networkId}`)
2506
+ }
2507
+ },
2508
+ optionalNamespaces: {},
2509
+ },
2510
+
2461
2511
  "Uniswap Wallet": {
2462
2512
  methods: [
2463
2513
  "eth_sendTransaction",
@@ -2592,6 +2642,7 @@ class WalletConnectV2 {
2592
2642
  }
2593
2643
 
2594
2644
  async setSessionBlockchains() {
2645
+ if(!this.session) { return }
2595
2646
  if(_optionalChain$1([CONFIGURATIONS, 'access', _27 => _27[this.walletName], 'optionalAccess', _28 => _28.methods, 'optionalAccess', _29 => _29.includes, 'call', _30 => _30('wallet_switchEthereumChain')])) {
2596
2647
  this.blockchains = [this.session.namespaces.eip155.chains[this.session.namespaces.eip155.chains.length-1]].map((chainIdentifier)=>_optionalChain$1([Blockchains, 'access', _31 => _31.findByNetworkId, 'call', _32 => _32(chainIdentifier.split(':')[1]), 'optionalAccess', _33 => _33.name])).filter(Boolean);
2597
2648
  } else if(this.session.namespaces.eip155.chains) {