@depay/web3-wallets-evm 15.15.0 → 15.15.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.
@@ -42135,7 +42135,7 @@ lib.u8;
42135
42135
  lib.vec;
42136
42136
  lib.vecU8;
42137
42137
 
42138
- 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; }
42138
+ 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; }
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$j([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
42163
+ this.value = _optionalChain$k([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;
@@ -42256,7 +42256,7 @@ class Transaction {
42256
42256
  }
42257
42257
  }
42258
42258
 
42259
- 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; }
42259
+ 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; }
42260
42260
 
42261
42261
  const POLL_SPEED = 500; // 0.5 seconds
42262
42262
  const MAX_POLLS = 240; // 120 seconds
@@ -42277,14 +42277,14 @@ const sendTransaction$5 = async ({ transaction, wallet })=> {
42277
42277
 
42278
42278
  const provider = await getProvider$3(transaction.blockchain);
42279
42279
  const { value } = await provider.getSignatureStatus(signature);
42280
- const confirmationStatus = _optionalChain$i([value, 'optionalAccess', _ => _.confirmationStatus]);
42280
+ const confirmationStatus = _optionalChain$j([value, 'optionalAccess', _ => _.confirmationStatus]);
42281
42281
  if(confirmationStatus) {
42282
42282
  const hasReachedSufficientCommitment = confirmationStatus === 'confirmed' || confirmationStatus === 'finalized';
42283
42283
  if (hasReachedSufficientCommitment) {
42284
42284
  if(value.err) {
42285
42285
  transaction._failed = true;
42286
42286
  const confirmedTransaction = await provider.getConfirmedTransaction(signature);
42287
- const failedReason = _optionalChain$i([confirmedTransaction, 'optionalAccess', _2 => _2.meta, 'optionalAccess', _3 => _3.logMessages]) ? confirmedTransaction.meta.logMessages[confirmedTransaction.meta.logMessages.length - 1] : null;
42287
+ const failedReason = _optionalChain$j([confirmedTransaction, 'optionalAccess', _2 => _2.meta, 'optionalAccess', _3 => _3.logMessages]) ? confirmedTransaction.meta.logMessages[confirmedTransaction.meta.logMessages.length - 1] : null;
42288
42288
  if(transaction.failed) transaction.failed(transaction, failedReason);
42289
42289
  } else {
42290
42290
  transaction._succeeded = true;
@@ -42375,7 +42375,7 @@ let supported$2 = ['ethereum', 'bsc', 'polygon', 'fantom', 'arbitrum', 'avalanch
42375
42375
  supported$2.evm = ['ethereum', 'bsc', 'polygon', 'fantom', 'arbitrum', 'avalanche', 'gnosis', 'optimism'];
42376
42376
  supported$2.solana = [];
42377
42377
 
42378
- 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; }
42378
+ 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; }
42379
42379
  class WindowSolana {
42380
42380
 
42381
42381
  static __initStatic() {this.info = {
@@ -42386,7 +42386,7 @@ class WindowSolana {
42386
42386
 
42387
42387
  static __initStatic2() {this.isAvailable = async()=>{
42388
42388
  return (
42389
- _optionalChain$h([window, 'optionalAccess', _2 => _2.solana]) &&
42389
+ _optionalChain$i([window, 'optionalAccess', _2 => _2.solana]) &&
42390
42390
  !(window.phantom && !window.glow && !window.solana.isGlow) &&
42391
42391
  !window.coin98 &&
42392
42392
  !window.solana.isGlow
@@ -42436,7 +42436,7 @@ class WindowSolana {
42436
42436
  let internalCallback;
42437
42437
  switch (event) {
42438
42438
  case 'account':
42439
- internalCallback = (publicKey) => callback(_optionalChain$h([publicKey, 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]));
42439
+ internalCallback = (publicKey) => callback(_optionalChain$i([publicKey, 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]));
42440
42440
  this.getProvider().on('accountChanged', internalCallback);
42441
42441
  break
42442
42442
  }
@@ -43325,7 +43325,7 @@ const request = async function (url, options) {
43325
43325
  })
43326
43326
  };
43327
43327
 
43328
- 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; }
43328
+ 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; }
43329
43329
  class Backpack extends WindowSolana {
43330
43330
 
43331
43331
  static __initStatic() {this.info = {
@@ -43336,7 +43336,7 @@ class Backpack extends WindowSolana {
43336
43336
 
43337
43337
  static __initStatic2() {this.isAvailable = async()=>{
43338
43338
  return (
43339
- _optionalChain$g([window, 'optionalAccess', _2 => _2.backpack]) &&
43339
+ _optionalChain$h([window, 'optionalAccess', _2 => _2.backpack]) &&
43340
43340
  window.backpack.isBackpack
43341
43341
  )
43342
43342
  };}
@@ -43438,7 +43438,7 @@ const submitSimpleTransfer$3 = ({ transaction, signer })=>{
43438
43438
  })
43439
43439
  };
43440
43440
 
43441
- 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; }
43441
+ 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; }
43442
43442
  class WindowEthereum {
43443
43443
 
43444
43444
  static __initStatic() {this.info = {
@@ -43449,17 +43449,17 @@ class WindowEthereum {
43449
43449
 
43450
43450
  static __initStatic2() {this.isAvailable = async()=>{
43451
43451
  return (
43452
- _optionalChain$f([window, 'optionalAccess', _23 => _23.ethereum]) &&
43452
+ _optionalChain$g([window, 'optionalAccess', _23 => _23.ethereum]) &&
43453
43453
  Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length != 1 && // MetaMask
43454
- !_optionalChain$f([window, 'optionalAccess', _24 => _24.coin98]) && // Coin98
43455
- !(_optionalChain$f([window, 'optionalAccess', _25 => _25.ethereum, 'optionalAccess', _26 => _26.isTrust]) || _optionalChain$f([window, 'optionalAccess', _27 => _27.ethereum, 'optionalAccess', _28 => _28.isTrustWallet])) && // Trust Wallet
43456
- !_optionalChain$f([window, 'optionalAccess', _29 => _29.ethereum, 'optionalAccess', _30 => _30.isDeficonnectProvider]) && // crypto.com
43457
- !_optionalChain$f([window, 'optionalAccess', _31 => _31.ethereum, 'optionalAccess', _32 => _32.isHyperPay]) && // isHyperPay
43458
- !_optionalChain$f([window, 'optionalAccess', _33 => _33.ethereum, 'optionalAccess', _34 => _34.isPhantom]) && // Phantom
43459
- !_optionalChain$f([window, 'optionalAccess', _35 => _35.solana, 'optionalAccess', _36 => _36.isPhantom]) && // Phantom
43460
- !_optionalChain$f([window, 'optionalAccess', _37 => _37.ethereum, 'optionalAccess', _38 => _38.isRabby]) && // Rabby
43461
- !_optionalChain$f([window, 'optionalAccess', _39 => _39.backpack, 'optionalAccess', _40 => _40.isBackpack]) && // Backpack
43462
- !(_optionalChain$f([window, 'optionalAccess', _41 => _41.ethereum, 'optionalAccess', _42 => _42.isCoinbaseWallet]) || _optionalChain$f([window, 'optionalAccess', _43 => _43.ethereum, 'optionalAccess', _44 => _44.isWalletLink]))
43454
+ !_optionalChain$g([window, 'optionalAccess', _24 => _24.coin98]) && // Coin98
43455
+ !(_optionalChain$g([window, 'optionalAccess', _25 => _25.ethereum, 'optionalAccess', _26 => _26.isTrust]) || _optionalChain$g([window, 'optionalAccess', _27 => _27.ethereum, 'optionalAccess', _28 => _28.isTrustWallet])) && // Trust Wallet
43456
+ !_optionalChain$g([window, 'optionalAccess', _29 => _29.ethereum, 'optionalAccess', _30 => _30.isDeficonnectProvider]) && // crypto.com
43457
+ !_optionalChain$g([window, 'optionalAccess', _31 => _31.ethereum, 'optionalAccess', _32 => _32.isHyperPay]) && // isHyperPay
43458
+ !_optionalChain$g([window, 'optionalAccess', _33 => _33.ethereum, 'optionalAccess', _34 => _34.isPhantom]) && // Phantom
43459
+ !_optionalChain$g([window, 'optionalAccess', _35 => _35.solana, 'optionalAccess', _36 => _36.isPhantom]) && // Phantom
43460
+ !_optionalChain$g([window, 'optionalAccess', _37 => _37.ethereum, 'optionalAccess', _38 => _38.isRabby]) && // Rabby
43461
+ !_optionalChain$g([window, 'optionalAccess', _39 => _39.backpack, 'optionalAccess', _40 => _40.isBackpack]) && // Backpack
43462
+ !(_optionalChain$g([window, 'optionalAccess', _41 => _41.ethereum, 'optionalAccess', _42 => _42.isCoinbaseWallet]) || _optionalChain$g([window, 'optionalAccess', _43 => _43.ethereum, 'optionalAccess', _44 => _44.isWalletLink]))
43463
43463
  )
43464
43464
  };}
43465
43465
 
@@ -43571,7 +43571,7 @@ class WindowEthereum {
43571
43571
  }
43572
43572
  } WindowEthereum.__initStatic(); WindowEthereum.__initStatic2();
43573
43573
 
43574
- 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; }
43574
+ 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; }
43575
43575
  class Binance extends WindowEthereum {
43576
43576
 
43577
43577
  static __initStatic() {this.info = {
@@ -43581,7 +43581,7 @@ class Binance extends WindowEthereum {
43581
43581
  };}
43582
43582
 
43583
43583
  static __initStatic2() {this.isAvailable = async()=>{
43584
- return _optionalChain$e([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
43584
+ return _optionalChain$f([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
43585
43585
  !window.coin98
43586
43586
  };}
43587
43587
 
@@ -43589,7 +43589,7 @@ class Binance extends WindowEthereum {
43589
43589
 
43590
43590
  } Binance.__initStatic(); Binance.__initStatic2();
43591
43591
 
43592
- 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; }
43592
+ 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; }
43593
43593
  class Brave extends WindowEthereum {
43594
43594
 
43595
43595
  static __initStatic() {this.info = {
@@ -43598,10 +43598,10 @@ class Brave extends WindowEthereum {
43598
43598
  blockchains: supported$2.evm
43599
43599
  };}
43600
43600
 
43601
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$d([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
43601
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$e([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
43602
43602
  } Brave.__initStatic(); Brave.__initStatic2();
43603
43603
 
43604
- 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; }
43604
+ 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; }
43605
43605
  class Coin98 extends WindowEthereum {
43606
43606
 
43607
43607
  static __initStatic() {this.info = {
@@ -43610,10 +43610,10 @@ class Coin98 extends WindowEthereum {
43610
43610
  blockchains: supported$2.evm
43611
43611
  };}
43612
43612
 
43613
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$c([window, 'optionalAccess', _2 => _2.coin98]) };}
43613
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$d([window, 'optionalAccess', _2 => _2.coin98]) };}
43614
43614
  } Coin98.__initStatic(); Coin98.__initStatic2();
43615
43615
 
43616
- 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; }
43616
+ 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; }
43617
43617
  class Coinbase extends WindowEthereum {
43618
43618
 
43619
43619
  static __initStatic() {this.info = {
@@ -43622,10 +43622,10 @@ class Coinbase extends WindowEthereum {
43622
43622
  blockchains: supported$2.evm
43623
43623
  };}
43624
43624
 
43625
- static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$b([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isCoinbaseWallet]) || _optionalChain$b([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isWalletLink])) };}
43625
+ static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$c([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isCoinbaseWallet]) || _optionalChain$c([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isWalletLink])) };}
43626
43626
  } Coinbase.__initStatic(); Coinbase.__initStatic2();
43627
43627
 
43628
- 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; }
43628
+ 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; }
43629
43629
  class CryptoCom extends WindowEthereum {
43630
43630
 
43631
43631
  static __initStatic() {this.info = {
@@ -43634,7 +43634,7 @@ class CryptoCom extends WindowEthereum {
43634
43634
  blockchains: supported$2.evm
43635
43635
  };}
43636
43636
 
43637
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$a([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
43637
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$b([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
43638
43638
  } CryptoCom.__initStatic(); CryptoCom.__initStatic2();
43639
43639
 
43640
43640
  class Glow extends WindowSolana {
@@ -43653,7 +43653,7 @@ class Glow extends WindowSolana {
43653
43653
  };}
43654
43654
  } Glow.__initStatic(); Glow.__initStatic2();
43655
43655
 
43656
- 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; }
43656
+ 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; }
43657
43657
  class HyperPay extends WindowEthereum {
43658
43658
 
43659
43659
  static __initStatic() {this.info = {
@@ -43662,10 +43662,10 @@ class HyperPay extends WindowEthereum {
43662
43662
  blockchains: supported$2.evm
43663
43663
  };}
43664
43664
 
43665
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$9([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
43665
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$a([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
43666
43666
  } HyperPay.__initStatic(); HyperPay.__initStatic2();
43667
43667
 
43668
- 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; }
43668
+ 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; }
43669
43669
  class MetaMask extends WindowEthereum {
43670
43670
 
43671
43671
  static __initStatic() {this.info = {
@@ -43676,13 +43676,13 @@ class MetaMask extends WindowEthereum {
43676
43676
 
43677
43677
  static __initStatic2() {this.isAvailable = async()=>{
43678
43678
  return(
43679
- _optionalChain$8([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) &&
43679
+ _optionalChain$9([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) &&
43680
43680
  Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1
43681
43681
  )
43682
43682
  };}
43683
43683
  } MetaMask.__initStatic(); MetaMask.__initStatic2();
43684
43684
 
43685
- 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; }
43685
+ 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; }
43686
43686
  class Opera extends WindowEthereum {
43687
43687
 
43688
43688
  static __initStatic() {this.info = {
@@ -43691,7 +43691,7 @@ class Opera extends WindowEthereum {
43691
43691
  blockchains: supported$2.evm
43692
43692
  };}
43693
43693
 
43694
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$7([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
43694
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$8([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
43695
43695
  } Opera.__initStatic(); Opera.__initStatic2();
43696
43696
 
43697
43697
  class Phantom extends WindowSolana {
@@ -43709,7 +43709,7 @@ class Phantom extends WindowSolana {
43709
43709
  };}
43710
43710
  } Phantom.__initStatic(); Phantom.__initStatic2();
43711
43711
 
43712
- 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; }
43712
+ 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; }
43713
43713
  class Rabby extends WindowEthereum {
43714
43714
 
43715
43715
  static __initStatic() {this.info = {
@@ -43720,12 +43720,12 @@ class Rabby extends WindowEthereum {
43720
43720
 
43721
43721
  static __initStatic2() {this.isAvailable = async()=>{
43722
43722
  return(
43723
- _optionalChain$6([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isRabby])
43723
+ _optionalChain$7([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isRabby])
43724
43724
  )
43725
43725
  };}
43726
43726
  } Rabby.__initStatic(); Rabby.__initStatic2();
43727
43727
 
43728
- 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; }
43728
+ 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; }
43729
43729
  const KEY$2 = '_DePayWeb3WalletsConnectedSolanaMobileWalletInstance';
43730
43730
 
43731
43731
  const base64StringToPublicKey = (base64String)=> {
@@ -43814,8 +43814,8 @@ class SolanaMobileWalletAdapter {
43814
43814
  await transact(
43815
43815
  async (wallet) => {
43816
43816
  await this.authorize(wallet);
43817
- if(_optionalChain$5([options, 'optionalAccess', _ => _.name])) { localStorage[KEY$2+'_name'] = this.name = options.name; }
43818
- if(_optionalChain$5([options, 'optionalAccess', _2 => _2.logo])) { localStorage[KEY$2+'_logo'] = this.logo = options.logo; }
43817
+ if(_optionalChain$6([options, 'optionalAccess', _ => _.name])) { localStorage[KEY$2+'_name'] = this.name = options.name; }
43818
+ if(_optionalChain$6([options, 'optionalAccess', _2 => _2.logo])) { localStorage[KEY$2+'_logo'] = this.logo = options.logo; }
43819
43819
  }
43820
43820
  );
43821
43821
  return this._account
@@ -43874,7 +43874,7 @@ class SolanaMobileWalletAdapter {
43874
43874
  }
43875
43875
  } SolanaMobileWalletAdapter.__initStatic(); SolanaMobileWalletAdapter.__initStatic2();
43876
43876
 
43877
- 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; }
43877
+ 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; }
43878
43878
  class Solflare extends WindowSolana {
43879
43879
 
43880
43880
  static __initStatic() {this.info = {
@@ -43885,7 +43885,7 @@ class Solflare extends WindowSolana {
43885
43885
 
43886
43886
  static __initStatic2() {this.isAvailable = async()=>{
43887
43887
  return (
43888
- _optionalChain$4([window, 'optionalAccess', _2 => _2.solflare]) &&
43888
+ _optionalChain$5([window, 'optionalAccess', _2 => _2.solflare]) &&
43889
43889
  window.solflare.isSolflare
43890
43890
  )
43891
43891
  };}
@@ -43895,7 +43895,7 @@ class Solflare extends WindowSolana {
43895
43895
  _sendTransaction(transaction) { return this.getProvider().signTransaction(transaction) }
43896
43896
  } Solflare.__initStatic(); Solflare.__initStatic2();
43897
43897
 
43898
- 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; }
43898
+ 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; }
43899
43899
  class Trust extends WindowEthereum {
43900
43900
 
43901
43901
  static __initStatic() {this.info = {
@@ -43904,7 +43904,7 @@ class Trust extends WindowEthereum {
43904
43904
  blockchains: supported$2.evm
43905
43905
  };}
43906
43906
 
43907
- static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$3([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isTrust]) || _optionalChain$3([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isTrustWallet])) };}
43907
+ static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$4([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isTrust]) || _optionalChain$4([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isTrustWallet])) };}
43908
43908
  } Trust.__initStatic(); Trust.__initStatic2();
43909
43909
 
43910
43910
  const transactionApiBlockchainNames = {
@@ -43996,6 +43996,8 @@ const getSmartContractWallet = async(blockchain, address)=> {
43996
43996
  }
43997
43997
  };
43998
43998
 
43999
+ 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; }
44000
+
43999
44001
  const sendTransaction$3 = async ({ transaction, wallet })=> {
44000
44002
  transaction = new Transaction(transaction);
44001
44003
  if((await wallet.connectedTo(transaction.blockchain)) == false) {
@@ -44073,7 +44075,12 @@ const submit$2 = ({ transaction, wallet }) => {
44073
44075
 
44074
44076
  const submitContractInteraction$2 = async ({ transaction, wallet })=>{
44075
44077
  const provider = await getProvider$3(transaction.blockchain);
44076
- const gasPrice = await provider.getGasPrice();
44078
+ let gasPrice = await provider.getGasPrice();
44079
+ if(_optionalChain$3([wallet, 'access', _ => _.session, 'optionalAccess', _2 => _2.peerMeta, 'optionalAccess', _3 => _3.name]) === 'Uniswap Wallet') {
44080
+ gasPrice = undefined;
44081
+ } else {
44082
+ gasPrice = gasPrice.toHexString();
44083
+ }
44077
44084
  let gas = await estimate$1(transaction);
44078
44085
  const data = await transaction.getData();
44079
44086
  const value = transaction.value ? ethers.utils.hexlify(ethers.BigNumber.from(transaction.value)) : undefined;
@@ -44085,14 +44092,19 @@ const submitContractInteraction$2 = async ({ transaction, wallet })=>{
44085
44092
  value,
44086
44093
  data,
44087
44094
  gas: gas.toHexString(),
44088
- gasPrice: gasPrice.toHexString(),
44095
+ gasPrice,
44089
44096
  nonce,
44090
44097
  })
44091
44098
  };
44092
44099
 
44093
44100
  const submitSimpleTransfer$2 = async ({ transaction, wallet })=>{
44094
44101
  const provider = await getProvider$3(transaction.blockchain);
44095
- const gasPrice = await provider.getGasPrice();
44102
+ let gasPrice = await provider.getGasPrice();
44103
+ if(_optionalChain$3([wallet, 'access', _4 => _4.session, 'optionalAccess', _5 => _5.peerMeta, 'optionalAccess', _6 => _6.name]) === 'Uniswap Wallet') {
44104
+ gasPrice = undefined;
44105
+ } else {
44106
+ gasPrice = gasPrice.toHexString();
44107
+ }
44096
44108
  const gas = await estimate$1(transaction);
44097
44109
  const value = ethers.utils.hexlify(ethers.BigNumber.from(transaction.value));
44098
44110
  const nonce = ethers.utils.hexlify(transaction.nonce);
@@ -44102,7 +44114,7 @@ const submitSimpleTransfer$2 = async ({ transaction, wallet })=>{
44102
44114
  value,
44103
44115
  data: '0x',
44104
44116
  gas: gas.toHexString(),
44105
- gasPrice: gasPrice.toHexString(),
44117
+ gasPrice,
44106
44118
  nonce,
44107
44119
  })
44108
44120
  };
@@ -44199,6 +44211,7 @@ class WalletConnectV1 {
44199
44211
  localStorage[KEY$1+'_name'] = undefined;
44200
44212
  localStorage[KEY$1+'_logo'] = undefined;
44201
44213
  currentPlainInstance = undefined;
44214
+ this.session = undefined;
44202
44215
  }
44203
44216
 
44204
44217
  newWalletConnectInstance(connect) {
@@ -44212,6 +44225,7 @@ class WalletConnectV1 {
44212
44225
  instance.on("modal_closed", ()=>{
44213
44226
  setConnectedInstance$2(undefined);
44214
44227
  this.connector = undefined;
44228
+ this.session = undefined;
44215
44229
  });
44216
44230
 
44217
44231
  return instance
@@ -44245,16 +44259,15 @@ class WalletConnectV1 {
44245
44259
  return await this.account()
44246
44260
  } else {
44247
44261
 
44248
- let { accounts, chainId } = await this.connector.connect();
44262
+ let session = await this.connector.connect();
44263
+ this.session = session;
44249
44264
 
44250
44265
  if(_optionalChain$2([options, 'optionalAccess', _ => _.name])) { localStorage[KEY$1+'_name'] = this.name = options.name; }
44251
44266
  if(_optionalChain$2([options, 'optionalAccess', _2 => _2.logo])) { localStorage[KEY$1+'_logo'] = this.logo = options.logo; }
44252
44267
 
44253
- if(accounts instanceof Array && accounts.length) {
44268
+ if(session.accounts instanceof Array && session.accounts.length) {
44254
44269
  setConnectedInstance$2(this);
44255
- accounts = accounts.map((account)=>ethers.utils.getAddress(account));
44256
-
44257
- return accounts[0]
44270
+ return ethers.utils.getAddress(session.accounts[0])
44258
44271
  } else {
44259
44272
  return
44260
44273
  }
@@ -45053,10 +45066,10 @@ const getWallets = async(args)=>{
45053
45066
 
45054
45067
  if(wallet.getConnectedInstance) {
45055
45068
  instance = await wallet.getConnectedInstance();
45056
- if(drip) { drip(instance); }
45069
+ if(drip && instance) { drip(instance); }
45057
45070
  return instance
45058
45071
  } else {
45059
- if(drip) { drip(wallet); }
45072
+ if(drip && wallet) { drip(wallet); }
45060
45073
  return new wallet
45061
45074
  }
45062
45075
  }