@depay/web3-wallets-evm 16.0.5 → 16.0.6

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.
@@ -42135,7 +42135,7 @@ lib.u8;
42135
42135
  lib.vec;
42136
42136
  lib.vecU8;
42137
42137
 
42138
- 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; }
42138
+ 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; }
42139
42139
  class Transaction {
42140
42140
 
42141
42141
  constructor({
@@ -42160,7 +42160,7 @@ class Transaction {
42160
42160
  this.to = (to && to.match('0x')) ? ethers.utils.getAddress(to) : to;
42161
42161
 
42162
42162
  // optional
42163
- this.value = _optionalChain$m([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
42163
+ this.value = _optionalChain$n([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
42164
42164
  this.api = api;
42165
42165
  this.method = method;
42166
42166
  this.params = params;
@@ -42200,7 +42200,7 @@ class Transaction {
42200
42200
  }
42201
42201
 
42202
42202
  getParamType(param) {
42203
- if(_optionalChain$m([param, 'optionalAccess', _5 => _5.components, 'optionalAccess', _6 => _6.length])) {
42203
+ if(_optionalChain$n([param, 'optionalAccess', _5 => _5.components, 'optionalAccess', _6 => _6.length])) {
42204
42204
  return `(${param.components.map((param)=>this.getParamType(param)).join(',')})`
42205
42205
  } else {
42206
42206
  return param.type
@@ -42273,7 +42273,7 @@ class Transaction {
42273
42273
  }
42274
42274
  }
42275
42275
 
42276
- 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; }
42276
+ 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; }
42277
42277
 
42278
42278
  const POLL_SPEED = 500; // 0.5 seconds
42279
42279
  const MAX_POLLS = 240; // 120 seconds
@@ -42294,14 +42294,14 @@ const sendTransaction$5 = async ({ transaction, wallet })=> {
42294
42294
 
42295
42295
  const provider = await getProvider$3(transaction.blockchain);
42296
42296
  const { value } = await provider.getSignatureStatus(signature);
42297
- const confirmationStatus = _optionalChain$l([value, 'optionalAccess', _ => _.confirmationStatus]);
42297
+ const confirmationStatus = _optionalChain$m([value, 'optionalAccess', _ => _.confirmationStatus]);
42298
42298
  if(confirmationStatus) {
42299
42299
  const hasReachedSufficientCommitment = confirmationStatus === 'confirmed' || confirmationStatus === 'finalized';
42300
42300
  if (hasReachedSufficientCommitment) {
42301
42301
  if(value.err) {
42302
42302
  transaction._failed = true;
42303
42303
  const confirmedTransaction = await provider.getConfirmedTransaction(signature);
42304
- const failedReason = _optionalChain$l([confirmedTransaction, 'optionalAccess', _2 => _2.meta, 'optionalAccess', _3 => _3.logMessages]) ? confirmedTransaction.meta.logMessages[confirmedTransaction.meta.logMessages.length - 1] : null;
42304
+ const failedReason = _optionalChain$m([confirmedTransaction, 'optionalAccess', _2 => _2.meta, 'optionalAccess', _3 => _3.logMessages]) ? confirmedTransaction.meta.logMessages[confirmedTransaction.meta.logMessages.length - 1] : null;
42305
42305
  if(transaction.failed) transaction.failed(transaction, failedReason);
42306
42306
  } else {
42307
42307
  transaction._succeeded = true;
@@ -42392,7 +42392,7 @@ let supported$2 = ['ethereum', 'bsc', 'polygon', 'fantom', 'arbitrum', 'avalanch
42392
42392
  supported$2.evm = ['ethereum', 'bsc', 'polygon', 'fantom', 'arbitrum', 'avalanche', 'gnosis', 'optimism'];
42393
42393
  supported$2.solana = [];
42394
42394
 
42395
- 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; }
42395
+ 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; }
42396
42396
  class WindowSolana {
42397
42397
 
42398
42398
  static __initStatic() {this.info = {
@@ -42403,9 +42403,12 @@ class WindowSolana {
42403
42403
 
42404
42404
  static __initStatic2() {this.isAvailable = async()=>{
42405
42405
  return (
42406
- _optionalChain$k([window, 'optionalAccess', _2 => _2.solana]) &&
42407
- !(window.phantom && !window.glow && !window.solana.isGlow) &&
42406
+ _optionalChain$l([window, 'optionalAccess', _2 => _2.solana]) &&
42407
+ // not Phantom
42408
+ !(window.phantom && !window.glow && !window.solana.isGlow && !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])) &&
42409
+ // not Coin98
42408
42410
  !window.coin98 &&
42411
+ // not Glow
42409
42412
  !window.solana.isGlow
42410
42413
  )
42411
42414
  };}
@@ -42453,7 +42456,7 @@ class WindowSolana {
42453
42456
  let internalCallback;
42454
42457
  switch (event) {
42455
42458
  case 'account':
42456
- internalCallback = (publicKey) => callback(_optionalChain$k([publicKey, 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]));
42459
+ internalCallback = (publicKey) => callback(_optionalChain$l([publicKey, 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]));
42457
42460
  this.getProvider().on('accountChanged', internalCallback);
42458
42461
  break
42459
42462
  }
@@ -43342,7 +43345,7 @@ const request = async function (url, options) {
43342
43345
  })
43343
43346
  };
43344
43347
 
43345
- 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; }
43348
+ 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; }
43346
43349
  class Backpack extends WindowSolana {
43347
43350
 
43348
43351
  static __initStatic() {this.info = {
@@ -43353,7 +43356,7 @@ class Backpack extends WindowSolana {
43353
43356
 
43354
43357
  static __initStatic2() {this.isAvailable = async()=>{
43355
43358
  return (
43356
- _optionalChain$j([window, 'optionalAccess', _2 => _2.backpack]) &&
43359
+ _optionalChain$k([window, 'optionalAccess', _2 => _2.backpack]) &&
43357
43360
  window.backpack.isBackpack
43358
43361
  )
43359
43362
  };}
@@ -43448,7 +43451,7 @@ const submitSimpleTransfer$3 = ({ transaction, signer })=>{
43448
43451
  })
43449
43452
  };
43450
43453
 
43451
- 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; }
43454
+ 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; }
43452
43455
  class WindowEthereum {
43453
43456
 
43454
43457
  static __initStatic() {this.info = {
@@ -43459,18 +43462,27 @@ class WindowEthereum {
43459
43462
 
43460
43463
  static __initStatic2() {this.isAvailable = async()=>{
43461
43464
  return (
43462
- _optionalChain$i([window, 'optionalAccess', _25 => _25.ethereum]) &&
43463
- Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length != 1 && // MetaMask
43464
- !_optionalChain$i([window, 'optionalAccess', _26 => _26.coin98]) && // Coin98
43465
- !(_optionalChain$i([window, 'optionalAccess', _27 => _27.ethereum, 'optionalAccess', _28 => _28.isTrust]) || _optionalChain$i([window, 'optionalAccess', _29 => _29.ethereum, 'optionalAccess', _30 => _30.isTrustWallet])) && // Trust Wallet
43466
- !_optionalChain$i([window, 'optionalAccess', _31 => _31.ethereum, 'optionalAccess', _32 => _32.isDeficonnectProvider]) && // crypto.com
43467
- !_optionalChain$i([window, 'optionalAccess', _33 => _33.ethereum, 'optionalAccess', _34 => _34.isHyperPay]) && // isHyperPay
43468
- !_optionalChain$i([window, 'optionalAccess', _35 => _35.ethereum, 'optionalAccess', _36 => _36.isPhantom]) && // Phantom
43469
- !_optionalChain$i([window, 'optionalAccess', _37 => _37.solana, 'optionalAccess', _38 => _38.isPhantom]) && // Phantom
43470
- !_optionalChain$i([window, 'optionalAccess', _39 => _39.ethereum, 'optionalAccess', _40 => _40.isRabby]) && // Rabby
43471
- !_optionalChain$i([window, 'optionalAccess', _41 => _41.backpack, 'optionalAccess', _42 => _42.isBackpack]) && // Backpack
43472
- !_optionalChain$i([window, 'optionalAccess', _43 => _43.ethereum, 'optionalAccess', _44 => _44.isTokenPocket]) && // TokenPocket
43473
- !(_optionalChain$i([window, 'optionalAccess', _45 => _45.ethereum, 'optionalAccess', _46 => _46.isCoinbaseWallet]) || _optionalChain$i([window, 'optionalAccess', _47 => _47.ethereum, 'optionalAccess', _48 => _48.isWalletLink]))
43465
+ _optionalChain$j([window, 'optionalAccess', _25 => _25.ethereum]) &&
43466
+ // not MetaMask
43467
+ !(_optionalChain$j([window, 'optionalAccess', _26 => _26.ethereum, 'optionalAccess', _27 => _27.isMetaMask]) && Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1) &&
43468
+ // not Coin98
43469
+ !_optionalChain$j([window, 'optionalAccess', _28 => _28.coin98]) &&
43470
+ // not Trust Wallet
43471
+ !(_optionalChain$j([window, 'optionalAccess', _29 => _29.ethereum, 'optionalAccess', _30 => _30.isTrust]) || _optionalChain$j([window, 'optionalAccess', _31 => _31.ethereum, 'optionalAccess', _32 => _32.isTrustWallet])) &&
43472
+ // not crypto.com
43473
+ !_optionalChain$j([window, 'optionalAccess', _33 => _33.ethereum, 'optionalAccess', _34 => _34.isDeficonnectProvider]) &&
43474
+ // not HyperPay
43475
+ !_optionalChain$j([window, 'optionalAccess', _35 => _35.ethereum, 'optionalAccess', _36 => _36.isHyperPay]) &&
43476
+ // not Phantom
43477
+ !(window.phantom && !window.glow && !_optionalChain$j([window, 'optionalAccess', _37 => _37.solana, 'optionalAccess', _38 => _38.isGlow]) && !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])) &&
43478
+ // not Rabby
43479
+ !_optionalChain$j([window, 'optionalAccess', _39 => _39.ethereum, 'optionalAccess', _40 => _40.isRabby]) &&
43480
+ // not Backpack
43481
+ !_optionalChain$j([window, 'optionalAccess', _41 => _41.backpack, 'optionalAccess', _42 => _42.isBackpack]) &&
43482
+ // not TokenPocket
43483
+ !_optionalChain$j([window, 'optionalAccess', _43 => _43.ethereum, 'optionalAccess', _44 => _44.isTokenPocket]) &&
43484
+ // not Coinbase
43485
+ !(_optionalChain$j([window, 'optionalAccess', _45 => _45.ethereum, 'optionalAccess', _46 => _46.isCoinbaseWallet]) || _optionalChain$j([window, 'optionalAccess', _47 => _47.ethereum, 'optionalAccess', _48 => _48.isWalletLink]))
43474
43486
  )
43475
43487
  };}
43476
43488
 
@@ -43596,7 +43608,7 @@ class WindowEthereum {
43596
43608
  }
43597
43609
  } WindowEthereum.__initStatic(); WindowEthereum.__initStatic2();
43598
43610
 
43599
- 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; }
43611
+ 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; }
43600
43612
  class Binance extends WindowEthereum {
43601
43613
 
43602
43614
  static __initStatic() {this.info = {
@@ -43606,7 +43618,7 @@ class Binance extends WindowEthereum {
43606
43618
  };}
43607
43619
 
43608
43620
  static __initStatic2() {this.isAvailable = async()=>{
43609
- return _optionalChain$h([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
43621
+ return _optionalChain$i([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
43610
43622
  !window.coin98
43611
43623
  };}
43612
43624
 
@@ -43614,7 +43626,7 @@ class Binance extends WindowEthereum {
43614
43626
 
43615
43627
  } Binance.__initStatic(); Binance.__initStatic2();
43616
43628
 
43617
- 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; }
43629
+ 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; }
43618
43630
  class Brave extends WindowEthereum {
43619
43631
 
43620
43632
  static __initStatic() {this.info = {
@@ -43623,10 +43635,10 @@ class Brave extends WindowEthereum {
43623
43635
  blockchains: supported$2.evm
43624
43636
  };}
43625
43637
 
43626
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$g([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
43638
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$h([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
43627
43639
  } Brave.__initStatic(); Brave.__initStatic2();
43628
43640
 
43629
- 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; }
43641
+ 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; }
43630
43642
  class Coin98 extends WindowEthereum {
43631
43643
 
43632
43644
  static __initStatic() {this.info = {
@@ -43635,10 +43647,10 @@ class Coin98 extends WindowEthereum {
43635
43647
  blockchains: supported$2.evm
43636
43648
  };}
43637
43649
 
43638
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$f([window, 'optionalAccess', _2 => _2.coin98]) };}
43650
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$g([window, 'optionalAccess', _2 => _2.coin98]) };}
43639
43651
  } Coin98.__initStatic(); Coin98.__initStatic2();
43640
43652
 
43641
- 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; }
43653
+ 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; }
43642
43654
  class Coinbase extends WindowEthereum {
43643
43655
 
43644
43656
  static __initStatic() {this.info = {
@@ -43647,10 +43659,10 @@ class Coinbase extends WindowEthereum {
43647
43659
  blockchains: supported$2.evm
43648
43660
  };}
43649
43661
 
43650
- 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])) };}
43662
+ 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])) };}
43651
43663
  } Coinbase.__initStatic(); Coinbase.__initStatic2();
43652
43664
 
43653
- 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; }
43665
+ 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; }
43654
43666
  class CryptoCom extends WindowEthereum {
43655
43667
 
43656
43668
  static __initStatic() {this.info = {
@@ -43659,7 +43671,7 @@ class CryptoCom extends WindowEthereum {
43659
43671
  blockchains: supported$2.evm
43660
43672
  };}
43661
43673
 
43662
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$d([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
43674
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$e([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
43663
43675
  } CryptoCom.__initStatic(); CryptoCom.__initStatic2();
43664
43676
 
43665
43677
  class Glow extends WindowSolana {
@@ -43678,7 +43690,7 @@ class Glow extends WindowSolana {
43678
43690
  };}
43679
43691
  } Glow.__initStatic(); Glow.__initStatic2();
43680
43692
 
43681
- 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; }
43693
+ 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; }
43682
43694
  class HyperPay extends WindowEthereum {
43683
43695
 
43684
43696
  static __initStatic() {this.info = {
@@ -43687,10 +43699,10 @@ class HyperPay extends WindowEthereum {
43687
43699
  blockchains: supported$2.evm
43688
43700
  };}
43689
43701
 
43690
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$c([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
43702
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$d([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
43691
43703
  } HyperPay.__initStatic(); HyperPay.__initStatic2();
43692
43704
 
43693
- 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; }
43705
+ 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; }
43694
43706
  class MetaMask extends WindowEthereum {
43695
43707
 
43696
43708
  static __initStatic() {this.info = {
@@ -43701,13 +43713,13 @@ class MetaMask extends WindowEthereum {
43701
43713
 
43702
43714
  static __initStatic2() {this.isAvailable = async()=>{
43703
43715
  return(
43704
- _optionalChain$b([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) &&
43716
+ _optionalChain$c([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) &&
43705
43717
  Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1
43706
43718
  )
43707
43719
  };}
43708
43720
  } MetaMask.__initStatic(); MetaMask.__initStatic2();
43709
43721
 
43710
- 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; }
43722
+ 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; }
43711
43723
  class Opera extends WindowEthereum {
43712
43724
 
43713
43725
  static __initStatic() {this.info = {
@@ -43716,9 +43728,10 @@ class Opera extends WindowEthereum {
43716
43728
  blockchains: supported$2.evm
43717
43729
  };}
43718
43730
 
43719
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$a([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
43731
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$b([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
43720
43732
  } Opera.__initStatic(); Opera.__initStatic2();
43721
43733
 
43734
+ 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; }
43722
43735
  class Phantom extends WindowSolana {
43723
43736
 
43724
43737
  static __initStatic() {this.info = {
@@ -43729,7 +43742,10 @@ class Phantom extends WindowSolana {
43729
43742
 
43730
43743
  static __initStatic2() {this.isAvailable = async()=>{
43731
43744
  return (
43732
- window.phantom && !window.glow && !window.solana.isGlow
43745
+ window.phantom &&
43746
+ !window.glow &&
43747
+ !_optionalChain$a([window, 'optionalAccess', _3 => _3.solana, 'optionalAccess', _4 => _4.isGlow]) &&
43748
+ !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])
43733
43749
  )
43734
43750
  };}
43735
43751
  } Phantom.__initStatic(); Phantom.__initStatic2();
package/dist/esm/index.js CHANGED
@@ -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(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$1 = ['ethereum', 'bsc', 'polygon', 'solana', 'fantom', 'arbitrum',
263
263
  supported$1.evm = ['ethereum', 'bsc', 'polygon', 'fantom', 'arbitrum', 'avalanche', 'gnosis', 'optimism'];
264
264
  supported$1.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,12 @@ 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', _2 => _2.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 Glow
280
283
  !window.solana.isGlow
281
284
  )
282
285
  };}
@@ -324,7 +327,7 @@ class WindowSolana {
324
327
  let internalCallback;
325
328
  switch (event) {
326
329
  case 'account':
327
- internalCallback = (publicKey) => callback(_optionalChain$k([publicKey, 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]));
330
+ internalCallback = (publicKey) => callback(_optionalChain$l([publicKey, 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]));
328
331
  this.getProvider().on('accountChanged', internalCallback);
329
332
  break
330
333
  }
@@ -377,7 +380,7 @@ class WindowSolana {
377
380
  }
378
381
  } WindowSolana.__initStatic(); WindowSolana.__initStatic2();
379
382
 
380
- 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; }
383
+ 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; }
381
384
  class Backpack extends WindowSolana {
382
385
 
383
386
  static __initStatic() {this.info = {
@@ -388,7 +391,7 @@ class Backpack extends WindowSolana {
388
391
 
389
392
  static __initStatic2() {this.isAvailable = async()=>{
390
393
  return (
391
- _optionalChain$j([window, 'optionalAccess', _2 => _2.backpack]) &&
394
+ _optionalChain$k([window, 'optionalAccess', _2 => _2.backpack]) &&
392
395
  window.backpack.isBackpack
393
396
  )
394
397
  };}
@@ -483,7 +486,7 @@ const submitSimpleTransfer$3 = ({ transaction, signer })=>{
483
486
  })
484
487
  };
485
488
 
486
- 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; }
489
+ 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; }
487
490
  class WindowEthereum {
488
491
 
489
492
  static __initStatic() {this.info = {
@@ -494,18 +497,27 @@ class WindowEthereum {
494
497
 
495
498
  static __initStatic2() {this.isAvailable = async()=>{
496
499
  return (
497
- _optionalChain$i([window, 'optionalAccess', _25 => _25.ethereum]) &&
498
- Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length != 1 && // MetaMask
499
- !_optionalChain$i([window, 'optionalAccess', _26 => _26.coin98]) && // Coin98
500
- !(_optionalChain$i([window, 'optionalAccess', _27 => _27.ethereum, 'optionalAccess', _28 => _28.isTrust]) || _optionalChain$i([window, 'optionalAccess', _29 => _29.ethereum, 'optionalAccess', _30 => _30.isTrustWallet])) && // Trust Wallet
501
- !_optionalChain$i([window, 'optionalAccess', _31 => _31.ethereum, 'optionalAccess', _32 => _32.isDeficonnectProvider]) && // crypto.com
502
- !_optionalChain$i([window, 'optionalAccess', _33 => _33.ethereum, 'optionalAccess', _34 => _34.isHyperPay]) && // isHyperPay
503
- !_optionalChain$i([window, 'optionalAccess', _35 => _35.ethereum, 'optionalAccess', _36 => _36.isPhantom]) && // Phantom
504
- !_optionalChain$i([window, 'optionalAccess', _37 => _37.solana, 'optionalAccess', _38 => _38.isPhantom]) && // Phantom
505
- !_optionalChain$i([window, 'optionalAccess', _39 => _39.ethereum, 'optionalAccess', _40 => _40.isRabby]) && // Rabby
506
- !_optionalChain$i([window, 'optionalAccess', _41 => _41.backpack, 'optionalAccess', _42 => _42.isBackpack]) && // Backpack
507
- !_optionalChain$i([window, 'optionalAccess', _43 => _43.ethereum, 'optionalAccess', _44 => _44.isTokenPocket]) && // TokenPocket
508
- !(_optionalChain$i([window, 'optionalAccess', _45 => _45.ethereum, 'optionalAccess', _46 => _46.isCoinbaseWallet]) || _optionalChain$i([window, 'optionalAccess', _47 => _47.ethereum, 'optionalAccess', _48 => _48.isWalletLink]))
500
+ _optionalChain$j([window, 'optionalAccess', _25 => _25.ethereum]) &&
501
+ // not MetaMask
502
+ !(_optionalChain$j([window, 'optionalAccess', _26 => _26.ethereum, 'optionalAccess', _27 => _27.isMetaMask]) && Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1) &&
503
+ // not Coin98
504
+ !_optionalChain$j([window, 'optionalAccess', _28 => _28.coin98]) &&
505
+ // not Trust Wallet
506
+ !(_optionalChain$j([window, 'optionalAccess', _29 => _29.ethereum, 'optionalAccess', _30 => _30.isTrust]) || _optionalChain$j([window, 'optionalAccess', _31 => _31.ethereum, 'optionalAccess', _32 => _32.isTrustWallet])) &&
507
+ // not crypto.com
508
+ !_optionalChain$j([window, 'optionalAccess', _33 => _33.ethereum, 'optionalAccess', _34 => _34.isDeficonnectProvider]) &&
509
+ // not HyperPay
510
+ !_optionalChain$j([window, 'optionalAccess', _35 => _35.ethereum, 'optionalAccess', _36 => _36.isHyperPay]) &&
511
+ // not Phantom
512
+ !(window.phantom && !window.glow && !_optionalChain$j([window, 'optionalAccess', _37 => _37.solana, 'optionalAccess', _38 => _38.isGlow]) && !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])) &&
513
+ // not Rabby
514
+ !_optionalChain$j([window, 'optionalAccess', _39 => _39.ethereum, 'optionalAccess', _40 => _40.isRabby]) &&
515
+ // not Backpack
516
+ !_optionalChain$j([window, 'optionalAccess', _41 => _41.backpack, 'optionalAccess', _42 => _42.isBackpack]) &&
517
+ // not TokenPocket
518
+ !_optionalChain$j([window, 'optionalAccess', _43 => _43.ethereum, 'optionalAccess', _44 => _44.isTokenPocket]) &&
519
+ // not Coinbase
520
+ !(_optionalChain$j([window, 'optionalAccess', _45 => _45.ethereum, 'optionalAccess', _46 => _46.isCoinbaseWallet]) || _optionalChain$j([window, 'optionalAccess', _47 => _47.ethereum, 'optionalAccess', _48 => _48.isWalletLink]))
509
521
  )
510
522
  };}
511
523
 
@@ -631,7 +643,7 @@ class WindowEthereum {
631
643
  }
632
644
  } WindowEthereum.__initStatic(); WindowEthereum.__initStatic2();
633
645
 
634
- 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; }
646
+ 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; }
635
647
  class Binance extends WindowEthereum {
636
648
 
637
649
  static __initStatic() {this.info = {
@@ -641,7 +653,7 @@ class Binance extends WindowEthereum {
641
653
  };}
642
654
 
643
655
  static __initStatic2() {this.isAvailable = async()=>{
644
- return _optionalChain$h([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
656
+ return _optionalChain$i([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
645
657
  !window.coin98
646
658
  };}
647
659
 
@@ -649,7 +661,7 @@ class Binance extends WindowEthereum {
649
661
 
650
662
  } Binance.__initStatic(); Binance.__initStatic2();
651
663
 
652
- 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; }
664
+ 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; }
653
665
  class Brave extends WindowEthereum {
654
666
 
655
667
  static __initStatic() {this.info = {
@@ -658,10 +670,10 @@ class Brave extends WindowEthereum {
658
670
  blockchains: supported$1.evm
659
671
  };}
660
672
 
661
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$g([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
673
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$h([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
662
674
  } Brave.__initStatic(); Brave.__initStatic2();
663
675
 
664
- 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; }
676
+ 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; }
665
677
  class Coin98 extends WindowEthereum {
666
678
 
667
679
  static __initStatic() {this.info = {
@@ -670,10 +682,10 @@ class Coin98 extends WindowEthereum {
670
682
  blockchains: supported$1.evm
671
683
  };}
672
684
 
673
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$f([window, 'optionalAccess', _2 => _2.coin98]) };}
685
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$g([window, 'optionalAccess', _2 => _2.coin98]) };}
674
686
  } Coin98.__initStatic(); Coin98.__initStatic2();
675
687
 
676
- 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; }
688
+ 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; }
677
689
  class Coinbase extends WindowEthereum {
678
690
 
679
691
  static __initStatic() {this.info = {
@@ -682,10 +694,10 @@ class Coinbase extends WindowEthereum {
682
694
  blockchains: supported$1.evm
683
695
  };}
684
696
 
685
- 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])) };}
697
+ 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])) };}
686
698
  } Coinbase.__initStatic(); Coinbase.__initStatic2();
687
699
 
688
- 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; }
700
+ 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; }
689
701
  class CryptoCom extends WindowEthereum {
690
702
 
691
703
  static __initStatic() {this.info = {
@@ -694,7 +706,7 @@ class CryptoCom extends WindowEthereum {
694
706
  blockchains: supported$1.evm
695
707
  };}
696
708
 
697
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$d([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
709
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$e([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
698
710
  } CryptoCom.__initStatic(); CryptoCom.__initStatic2();
699
711
 
700
712
  class Glow extends WindowSolana {
@@ -713,7 +725,7 @@ class Glow extends WindowSolana {
713
725
  };}
714
726
  } Glow.__initStatic(); Glow.__initStatic2();
715
727
 
716
- 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; }
728
+ 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; }
717
729
  class HyperPay extends WindowEthereum {
718
730
 
719
731
  static __initStatic() {this.info = {
@@ -722,10 +734,10 @@ class HyperPay extends WindowEthereum {
722
734
  blockchains: supported$1.evm
723
735
  };}
724
736
 
725
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$c([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
737
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$d([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
726
738
  } HyperPay.__initStatic(); HyperPay.__initStatic2();
727
739
 
728
- 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; }
740
+ 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; }
729
741
  class MetaMask extends WindowEthereum {
730
742
 
731
743
  static __initStatic() {this.info = {
@@ -736,13 +748,13 @@ class MetaMask extends WindowEthereum {
736
748
 
737
749
  static __initStatic2() {this.isAvailable = async()=>{
738
750
  return(
739
- _optionalChain$b([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) &&
751
+ _optionalChain$c([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) &&
740
752
  Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1
741
753
  )
742
754
  };}
743
755
  } MetaMask.__initStatic(); MetaMask.__initStatic2();
744
756
 
745
- 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; }
757
+ 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; }
746
758
  class Opera extends WindowEthereum {
747
759
 
748
760
  static __initStatic() {this.info = {
@@ -751,9 +763,10 @@ class Opera extends WindowEthereum {
751
763
  blockchains: supported$1.evm
752
764
  };}
753
765
 
754
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$a([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
766
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$b([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
755
767
  } Opera.__initStatic(); Opera.__initStatic2();
756
768
 
769
+ 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; }
757
770
  class Phantom extends WindowSolana {
758
771
 
759
772
  static __initStatic() {this.info = {
@@ -764,7 +777,10 @@ class Phantom extends WindowSolana {
764
777
 
765
778
  static __initStatic2() {this.isAvailable = async()=>{
766
779
  return (
767
- window.phantom && !window.glow && !window.solana.isGlow
780
+ window.phantom &&
781
+ !window.glow &&
782
+ !_optionalChain$a([window, 'optionalAccess', _3 => _3.solana, 'optionalAccess', _4 => _4.isGlow]) &&
783
+ !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])
768
784
  )
769
785
  };}
770
786
  } Phantom.__initStatic(); Phantom.__initStatic2();