@depay/web3-wallets-evm 15.12.0 → 15.12.2

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.
@@ -42134,7 +42134,7 @@ lib.u8;
42134
42134
  lib.vec;
42135
42135
  lib.vecU8;
42136
42136
 
42137
- 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; }
42137
+ 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; }
42138
42138
  class Transaction {
42139
42139
 
42140
42140
  constructor({
@@ -42159,7 +42159,7 @@ class Transaction {
42159
42159
  this.to = (to && to.match('0x')) ? ethers.utils.getAddress(to) : to;
42160
42160
 
42161
42161
  // optional
42162
- this.value = _optionalChain$g([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
42162
+ this.value = _optionalChain$h([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
42163
42163
  this.api = api;
42164
42164
  this.method = method;
42165
42165
  this.params = params;
@@ -42248,7 +42248,7 @@ class Transaction {
42248
42248
  }
42249
42249
  }
42250
42250
 
42251
- 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; }
42251
+ 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; }
42252
42252
 
42253
42253
  const POLL_SPEED = 500; // 0.5 seconds
42254
42254
  const MAX_POLLS = 240; // 120 seconds
@@ -42269,14 +42269,14 @@ const sendTransaction$4 = async ({ transaction, wallet })=> {
42269
42269
 
42270
42270
  const provider = await getProvider(transaction.blockchain);
42271
42271
  const { value } = await provider.getSignatureStatus(signature);
42272
- const confirmationStatus = _optionalChain$f([value, 'optionalAccess', _ => _.confirmationStatus]);
42272
+ const confirmationStatus = _optionalChain$g([value, 'optionalAccess', _ => _.confirmationStatus]);
42273
42273
  if(confirmationStatus) {
42274
42274
  const hasReachedSufficientCommitment = confirmationStatus === 'confirmed' || confirmationStatus === 'finalized';
42275
42275
  if (hasReachedSufficientCommitment) {
42276
42276
  if(value.err) {
42277
42277
  transaction._failed = true;
42278
42278
  const confirmedTransaction = await provider.getConfirmedTransaction(signature);
42279
- const failedReason = _optionalChain$f([confirmedTransaction, 'optionalAccess', _2 => _2.meta, 'optionalAccess', _3 => _3.logMessages]) ? confirmedTransaction.meta.logMessages[confirmedTransaction.meta.logMessages.length - 1] : null;
42279
+ const failedReason = _optionalChain$g([confirmedTransaction, 'optionalAccess', _2 => _2.meta, 'optionalAccess', _3 => _3.logMessages]) ? confirmedTransaction.meta.logMessages[confirmedTransaction.meta.logMessages.length - 1] : null;
42280
42280
  if(transaction.failed) transaction.failed(transaction, failedReason);
42281
42281
  } else {
42282
42282
  transaction._succeeded = true;
@@ -42367,7 +42367,7 @@ let supported$2 = ['ethereum', 'bsc', 'polygon', 'fantom', 'velas'];
42367
42367
  supported$2.evm = ['ethereum', 'bsc', 'polygon', 'fantom', 'velas'];
42368
42368
  supported$2.solana = [];
42369
42369
 
42370
- 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; }
42370
+ 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; }
42371
42371
  class WindowSolana {
42372
42372
 
42373
42373
  static __initStatic() {this.info = {
@@ -42378,7 +42378,7 @@ class WindowSolana {
42378
42378
 
42379
42379
  static __initStatic2() {this.isAvailable = async()=>{
42380
42380
  return (
42381
- _optionalChain$e([window, 'optionalAccess', _2 => _2.solana]) &&
42381
+ _optionalChain$f([window, 'optionalAccess', _2 => _2.solana]) &&
42382
42382
  !(window.phantom && !window.glow && !window.solana.isGlow) &&
42383
42383
  !window.coin98 &&
42384
42384
  !window.solana.isGlow
@@ -42428,7 +42428,7 @@ class WindowSolana {
42428
42428
  let internalCallback;
42429
42429
  switch (event) {
42430
42430
  case 'account':
42431
- internalCallback = (publicKey) => callback(_optionalChain$e([publicKey, 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]));
42431
+ internalCallback = (publicKey) => callback(_optionalChain$f([publicKey, 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]));
42432
42432
  this.getProvider().on('accountChanged', internalCallback);
42433
42433
  break
42434
42434
  }
@@ -43222,7 +43222,7 @@ const request = async function (url, options) {
43222
43222
  })
43223
43223
  };
43224
43224
 
43225
- 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; }
43225
+ 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; }
43226
43226
  class Backpack extends WindowSolana {
43227
43227
 
43228
43228
  static __initStatic() {this.info = {
@@ -43233,7 +43233,7 @@ class Backpack extends WindowSolana {
43233
43233
 
43234
43234
  static __initStatic2() {this.isAvailable = async()=>{
43235
43235
  return (
43236
- _optionalChain$d([window, 'optionalAccess', _2 => _2.backpack]) &&
43236
+ _optionalChain$e([window, 'optionalAccess', _2 => _2.backpack]) &&
43237
43237
  window.backpack.isBackpack
43238
43238
  )
43239
43239
  };}
@@ -43328,7 +43328,7 @@ const submitSimpleTransfer$2 = ({ transaction, signer })=>{
43328
43328
  })
43329
43329
  };
43330
43330
 
43331
- 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; }
43331
+ 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; }
43332
43332
  class WindowEthereum {
43333
43333
 
43334
43334
  static __initStatic() {this.info = {
@@ -43339,17 +43339,17 @@ class WindowEthereum {
43339
43339
 
43340
43340
  static __initStatic2() {this.isAvailable = async()=>{
43341
43341
  return (
43342
- _optionalChain$c([window, 'optionalAccess', _23 => _23.ethereum]) &&
43342
+ _optionalChain$d([window, 'optionalAccess', _23 => _23.ethereum]) &&
43343
43343
  Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length != 1 && // MetaMask
43344
- !_optionalChain$c([window, 'optionalAccess', _24 => _24.coin98]) && // Coin98
43345
- !(_optionalChain$c([window, 'optionalAccess', _25 => _25.ethereum, 'optionalAccess', _26 => _26.isTrust]) || _optionalChain$c([window, 'optionalAccess', _27 => _27.ethereum, 'optionalAccess', _28 => _28.isTrustWallet])) && // Trust Wallet
43346
- !_optionalChain$c([window, 'optionalAccess', _29 => _29.ethereum, 'optionalAccess', _30 => _30.isDeficonnectProvider]) && // crypto.com
43347
- !_optionalChain$c([window, 'optionalAccess', _31 => _31.ethereum, 'optionalAccess', _32 => _32.isHyperPay]) && // isHyperPay
43348
- !_optionalChain$c([window, 'optionalAccess', _33 => _33.ethereum, 'optionalAccess', _34 => _34.isPhantom]) && // Phantom
43349
- !_optionalChain$c([window, 'optionalAccess', _35 => _35.solana, 'optionalAccess', _36 => _36.isPhantom]) && // Phantom
43350
- !_optionalChain$c([window, 'optionalAccess', _37 => _37.ethereum, 'optionalAccess', _38 => _38.isRabby]) && // Rabby
43351
- !_optionalChain$c([window, 'optionalAccess', _39 => _39.backpack, 'optionalAccess', _40 => _40.isBackpack]) && // Backpack
43352
- !(_optionalChain$c([window, 'optionalAccess', _41 => _41.ethereum, 'optionalAccess', _42 => _42.isCoinbaseWallet]) || _optionalChain$c([window, 'optionalAccess', _43 => _43.ethereum, 'optionalAccess', _44 => _44.isWalletLink]))
43344
+ !_optionalChain$d([window, 'optionalAccess', _24 => _24.coin98]) && // Coin98
43345
+ !(_optionalChain$d([window, 'optionalAccess', _25 => _25.ethereum, 'optionalAccess', _26 => _26.isTrust]) || _optionalChain$d([window, 'optionalAccess', _27 => _27.ethereum, 'optionalAccess', _28 => _28.isTrustWallet])) && // Trust Wallet
43346
+ !_optionalChain$d([window, 'optionalAccess', _29 => _29.ethereum, 'optionalAccess', _30 => _30.isDeficonnectProvider]) && // crypto.com
43347
+ !_optionalChain$d([window, 'optionalAccess', _31 => _31.ethereum, 'optionalAccess', _32 => _32.isHyperPay]) && // isHyperPay
43348
+ !_optionalChain$d([window, 'optionalAccess', _33 => _33.ethereum, 'optionalAccess', _34 => _34.isPhantom]) && // Phantom
43349
+ !_optionalChain$d([window, 'optionalAccess', _35 => _35.solana, 'optionalAccess', _36 => _36.isPhantom]) && // Phantom
43350
+ !_optionalChain$d([window, 'optionalAccess', _37 => _37.ethereum, 'optionalAccess', _38 => _38.isRabby]) && // Rabby
43351
+ !_optionalChain$d([window, 'optionalAccess', _39 => _39.backpack, 'optionalAccess', _40 => _40.isBackpack]) && // Backpack
43352
+ !(_optionalChain$d([window, 'optionalAccess', _41 => _41.ethereum, 'optionalAccess', _42 => _42.isCoinbaseWallet]) || _optionalChain$d([window, 'optionalAccess', _43 => _43.ethereum, 'optionalAccess', _44 => _44.isWalletLink]))
43353
43353
  )
43354
43354
  };}
43355
43355
 
@@ -43460,7 +43460,7 @@ class WindowEthereum {
43460
43460
  }
43461
43461
  } WindowEthereum.__initStatic(); WindowEthereum.__initStatic2();
43462
43462
 
43463
- 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; }
43463
+ 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; }
43464
43464
  class Binance extends WindowEthereum {
43465
43465
 
43466
43466
  static __initStatic() {this.info = {
@@ -43470,7 +43470,7 @@ class Binance extends WindowEthereum {
43470
43470
  };}
43471
43471
 
43472
43472
  static __initStatic2() {this.isAvailable = async()=>{
43473
- return _optionalChain$b([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
43473
+ return _optionalChain$c([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
43474
43474
  !window.coin98
43475
43475
  };}
43476
43476
 
@@ -43478,7 +43478,7 @@ class Binance extends WindowEthereum {
43478
43478
 
43479
43479
  } Binance.__initStatic(); Binance.__initStatic2();
43480
43480
 
43481
- 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; }
43481
+ 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; }
43482
43482
  class Brave extends WindowEthereum {
43483
43483
 
43484
43484
  static __initStatic() {this.info = {
@@ -43487,10 +43487,10 @@ class Brave extends WindowEthereum {
43487
43487
  blockchains: supported$2.evm
43488
43488
  };}
43489
43489
 
43490
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$a([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
43490
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$b([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
43491
43491
  } Brave.__initStatic(); Brave.__initStatic2();
43492
43492
 
43493
- function _optionalChain$9(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; }
43493
+ 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; }
43494
43494
  class Coin98 extends WindowEthereum {
43495
43495
 
43496
43496
  static __initStatic() {this.info = {
@@ -43499,10 +43499,10 @@ class Coin98 extends WindowEthereum {
43499
43499
  blockchains: supported$2.evm
43500
43500
  };}
43501
43501
 
43502
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$9([window, 'optionalAccess', _2 => _2.coin98]) };}
43502
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$a([window, 'optionalAccess', _2 => _2.coin98]) };}
43503
43503
  } Coin98.__initStatic(); Coin98.__initStatic2();
43504
43504
 
43505
- function _optionalChain$8(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; }
43505
+ function _optionalChain$9(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; }
43506
43506
  class Coinbase extends WindowEthereum {
43507
43507
 
43508
43508
  static __initStatic() {this.info = {
@@ -43511,10 +43511,10 @@ class Coinbase extends WindowEthereum {
43511
43511
  blockchains: supported$2.evm
43512
43512
  };}
43513
43513
 
43514
- static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$8([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isCoinbaseWallet]) || _optionalChain$8([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isWalletLink])) };}
43514
+ static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$9([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isCoinbaseWallet]) || _optionalChain$9([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isWalletLink])) };}
43515
43515
  } Coinbase.__initStatic(); Coinbase.__initStatic2();
43516
43516
 
43517
- function _optionalChain$7(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; }
43517
+ function _optionalChain$8(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; }
43518
43518
  class CryptoCom extends WindowEthereum {
43519
43519
 
43520
43520
  static __initStatic() {this.info = {
@@ -43523,7 +43523,7 @@ class CryptoCom extends WindowEthereum {
43523
43523
  blockchains: supported$2.evm
43524
43524
  };}
43525
43525
 
43526
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$7([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
43526
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$8([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
43527
43527
  } CryptoCom.__initStatic(); CryptoCom.__initStatic2();
43528
43528
 
43529
43529
  class Glow extends WindowSolana {
@@ -43542,7 +43542,7 @@ class Glow extends WindowSolana {
43542
43542
  };}
43543
43543
  } Glow.__initStatic(); Glow.__initStatic2();
43544
43544
 
43545
- function _optionalChain$6(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; }
43545
+ function _optionalChain$7(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; }
43546
43546
  class HyperPay extends WindowEthereum {
43547
43547
 
43548
43548
  static __initStatic() {this.info = {
@@ -43551,10 +43551,10 @@ class HyperPay extends WindowEthereum {
43551
43551
  blockchains: supported$2.evm
43552
43552
  };}
43553
43553
 
43554
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$6([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
43554
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$7([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
43555
43555
  } HyperPay.__initStatic(); HyperPay.__initStatic2();
43556
43556
 
43557
- function _optionalChain$5(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; }
43557
+ function _optionalChain$6(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; }
43558
43558
  class MetaMask extends WindowEthereum {
43559
43559
 
43560
43560
  static __initStatic() {this.info = {
@@ -43565,13 +43565,13 @@ class MetaMask extends WindowEthereum {
43565
43565
 
43566
43566
  static __initStatic2() {this.isAvailable = async()=>{
43567
43567
  return(
43568
- _optionalChain$5([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) &&
43568
+ _optionalChain$6([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) &&
43569
43569
  Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1
43570
43570
  )
43571
43571
  };}
43572
43572
  } MetaMask.__initStatic(); MetaMask.__initStatic2();
43573
43573
 
43574
- function _optionalChain$4(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; }
43574
+ function _optionalChain$5(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; }
43575
43575
  class Opera extends WindowEthereum {
43576
43576
 
43577
43577
  static __initStatic() {this.info = {
@@ -43580,7 +43580,7 @@ class Opera extends WindowEthereum {
43580
43580
  blockchains: supported$2.evm
43581
43581
  };}
43582
43582
 
43583
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$4([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
43583
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$5([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
43584
43584
  } Opera.__initStatic(); Opera.__initStatic2();
43585
43585
 
43586
43586
  class Phantom extends WindowSolana {
@@ -43598,7 +43598,7 @@ class Phantom extends WindowSolana {
43598
43598
  };}
43599
43599
  } Phantom.__initStatic(); Phantom.__initStatic2();
43600
43600
 
43601
- function _optionalChain$3(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; }
43601
+ function _optionalChain$4(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; }
43602
43602
  class Rabby extends WindowEthereum {
43603
43603
 
43604
43604
  static __initStatic() {this.info = {
@@ -43609,11 +43609,12 @@ class Rabby extends WindowEthereum {
43609
43609
 
43610
43610
  static __initStatic2() {this.isAvailable = async()=>{
43611
43611
  return(
43612
- _optionalChain$3([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isRabby])
43612
+ _optionalChain$4([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isRabby])
43613
43613
  )
43614
43614
  };}
43615
43615
  } Rabby.__initStatic(); Rabby.__initStatic2();
43616
43616
 
43617
+ function _optionalChain$3(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; }
43617
43618
  const KEY$1 = '_DePayWeb3WalletsConnectedSolanaMobileWalletInstance';
43618
43619
 
43619
43620
  const base64StringToPublicKey = (base64String)=> {
@@ -43648,6 +43649,8 @@ var getFavicon = function(){
43648
43649
  return explodedPath[explodedPath.length-1]
43649
43650
  };
43650
43651
 
43652
+ let authToken;
43653
+
43651
43654
  class SolanaMobileWalletAdapter {
43652
43655
 
43653
43656
  static __initStatic() {this.info = {
@@ -43674,7 +43677,7 @@ class SolanaMobileWalletAdapter {
43674
43677
  identity: getIdentity(),
43675
43678
  });
43676
43679
  if(!authorization || !authorization.auth_token || !authorization.accounts || authorization.accounts.length === 0) { return }
43677
- this._authToken = authorization.auth_token;
43680
+ authToken = authorization.auth_token;
43678
43681
  this._account = base64StringToPublicKey(authorization.accounts[0].address).toString();
43679
43682
  return authorization
43680
43683
  }
@@ -43685,7 +43688,7 @@ class SolanaMobileWalletAdapter {
43685
43688
  identity: getIdentity()
43686
43689
  });
43687
43690
  if(!authorization || !authorization.auth_token || !authorization.accounts || authorization.accounts.length === 0) { return }
43688
- this._authToken = authorization.auth_token;
43691
+ authToken = authorization.auth_token;
43689
43692
  this._account = base64StringToPublicKey(authorization.accounts[0].address).toString();
43690
43693
  return authorization
43691
43694
  }
@@ -43698,13 +43701,17 @@ class SolanaMobileWalletAdapter {
43698
43701
 
43699
43702
  async connect(options) {
43700
43703
  await transact(
43701
- async (wallet) => this.authorize(wallet)
43704
+ async (wallet) => {
43705
+ await this.authorize(wallet);
43706
+ if(_optionalChain$3([options, 'optionalAccess', _ => _.name])) { localStorage[KEY$1+'_name'] = this.name = options.name; }
43707
+ if(_optionalChain$3([options, 'optionalAccess', _2 => _2.logo])) { localStorage[KEY$1+'_logo'] = this.logo = options.logo; }
43708
+ }
43702
43709
  );
43703
43710
  return this._account
43704
43711
  }
43705
43712
 
43706
43713
  static __initStatic2() {this.isAvailable = async()=>{
43707
- return !!this._authToken
43714
+ return authToken
43708
43715
  };}
43709
43716
 
43710
43717
  async connectedTo(input) {
@@ -43734,7 +43741,7 @@ class SolanaMobileWalletAdapter {
43734
43741
  async sign(message) {
43735
43742
  const encodedMessage = new TextEncoder().encode(message);
43736
43743
  const signedMessage = await transact(async (wallet) => {
43737
- const authorization = await this.reauthorize(wallet, this._authToken);
43744
+ const authorization = await this.reauthorize(wallet, authToken);
43738
43745
  const signedMessages = await wallet.signMessages({
43739
43746
  addresses: [authorization.accounts[0].address],
43740
43747
  payloads: [encodedMessage],
@@ -43746,7 +43753,7 @@ class SolanaMobileWalletAdapter {
43746
43753
 
43747
43754
  async _sendTransaction(transaction) {
43748
43755
  const signature = await transact(async (wallet) => {
43749
- await this.reauthorize(wallet, this._authToken);
43756
+ await this.reauthorize(wallet, authToken);
43750
43757
  const transactionSignatures = await wallet.signAndSendTransactions({
43751
43758
  transactions: [transaction]
43752
43759
  });