@depay/web3-wallets-evm 16.5.4 → 17.1.0

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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@depay/web3-client-evm'), require('@depay/web3-blockchains'), require('ethers'), require('@depay/walletconnect-v1'), require('@depay/walletconnect-v2'), require('@depay/coinbase-wallet-sdk')) :
3
- typeof define === 'function' && define.amd ? define(['exports', '@depay/web3-client-evm', '@depay/web3-blockchains', 'ethers', '@depay/walletconnect-v1', '@depay/walletconnect-v2', '@depay/coinbase-wallet-sdk'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Web3Wallets = {}, global.Web3Client, global.Web3Blockchains, global.ethers, global.WalletConnect, global.WalletConnectV2, global.CoinbaseWalletSdk));
5
- }(this, (function (exports, web3ClientEvm, Blockchains, ethers, walletconnectV1, walletconnectV2, coinbaseWalletSdk) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@depay/web3-client-evm'), require('@depay/web3-blockchains'), require('ethers'), require('@depay/walletconnect-v2'), require('@depay/coinbase-wallet-sdk')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@depay/web3-client-evm', '@depay/web3-blockchains', 'ethers', '@depay/walletconnect-v2', '@depay/coinbase-wallet-sdk'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Web3Wallets = {}, global.Web3Client, global.Web3Blockchains, global.ethers, global.WalletConnectV2, global.CoinbaseWalletSdk));
5
+ }(this, (function (exports, web3ClientEvm, Blockchains, ethers, walletconnectV2, coinbaseWalletSdk) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -12,7 +12,7 @@
12
12
  supported$1.evm = ['ethereum', 'bsc', 'polygon', 'fantom', 'arbitrum', 'avalanche', 'gnosis', 'optimism', 'base'];
13
13
  supported$1.solana = [];
14
14
 
15
- 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; }
15
+ 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; }
16
16
  class Transaction {
17
17
 
18
18
  constructor({
@@ -37,7 +37,7 @@
37
37
  this.to = (to && to.match('0x')) ? ethers.ethers.utils.getAddress(to) : to;
38
38
 
39
39
  // optional
40
- this.value = _optionalChain$n([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
40
+ this.value = _optionalChain$m([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
41
41
  this.api = api;
42
42
  this.method = method;
43
43
  this.params = params;
@@ -77,7 +77,7 @@
77
77
  }
78
78
 
79
79
  getParamType(param) {
80
- if(_optionalChain$n([param, 'optionalAccess', _5 => _5.components, 'optionalAccess', _6 => _6.length])) {
80
+ if(_optionalChain$m([param, 'optionalAccess', _5 => _5.components, 'optionalAccess', _6 => _6.length])) {
81
81
  return `(${param.components.map((param)=>this.getParamType(param)).join(',')})`
82
82
  } else {
83
83
  return param.type
@@ -150,9 +150,9 @@
150
150
  }
151
151
  }
152
152
 
153
- 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; }
153
+ 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; }
154
154
 
155
- const sendTransaction$3 = async ({ transaction, wallet })=> {
155
+ const sendTransaction$2 = async ({ transaction, wallet })=> {
156
156
  transaction = new Transaction(transaction);
157
157
  if((await wallet.connectedTo(transaction.blockchain)) == false) {
158
158
  await wallet.switchTo(transaction.blockchain);
@@ -165,13 +165,13 @@
165
165
  transaction.nonce = transactionCount;
166
166
  let provider = new ethers.ethers.providers.Web3Provider(wallet.getProvider(), 'any');
167
167
  let signer = provider.getSigner(0);
168
- await submit$3({ transaction, provider, signer }).then((sentTransaction)=>{
168
+ await submit$2({ transaction, provider, signer }).then((sentTransaction)=>{
169
169
  if (sentTransaction) {
170
170
  transaction.id = sentTransaction.hash;
171
171
  transaction.nonce = sentTransaction.nonce || transactionCount;
172
172
  transaction.url = Blockchains__default['default'].findByName(transaction.blockchain).explorerUrlFor({ transaction });
173
173
  if (transaction.sent) transaction.sent(transaction);
174
- retrieveConfirmedTransaction$3(sentTransaction).then(() => {
174
+ retrieveConfirmedTransaction$2(sentTransaction).then(() => {
175
175
  transaction._succeeded = true;
176
176
  if (transaction.succeeded) transaction.succeeded(transaction);
177
177
  }).catch((error)=>{
@@ -199,17 +199,17 @@
199
199
  return transaction
200
200
  };
201
201
 
202
- const retrieveConfirmedTransaction$3 = (sentTransaction)=>{
202
+ const retrieveConfirmedTransaction$2 = (sentTransaction)=>{
203
203
  return new Promise((resolve, reject)=>{
204
204
  try {
205
205
 
206
206
  sentTransaction.wait(1).then(resolve).catch((error)=>{
207
207
  if(
208
- (error && _optionalChain$m([error, 'optionalAccess', _ => _.stack, 'optionalAccess', _2 => _2.match, 'call', _3 => _3('JSON-RPC error')])) ||
208
+ (error && _optionalChain$l([error, 'optionalAccess', _ => _.stack, 'optionalAccess', _2 => _2.match, 'call', _3 => _3('JSON-RPC error')])) ||
209
209
  (error && error.toString().match('undefined'))
210
210
  ) {
211
211
  setTimeout(()=>{
212
- retrieveConfirmedTransaction$3(sentTransaction)
212
+ retrieveConfirmedTransaction$2(sentTransaction)
213
213
  .then(resolve)
214
214
  .catch(reject);
215
215
  }, 500);
@@ -219,11 +219,11 @@
219
219
  });
220
220
  } catch(error) {
221
221
  if(
222
- (error && _optionalChain$m([error, 'optionalAccess', _4 => _4.stack, 'optionalAccess', _5 => _5.match, 'call', _6 => _6('JSON-RPC error')])) ||
222
+ (error && _optionalChain$l([error, 'optionalAccess', _4 => _4.stack, 'optionalAccess', _5 => _5.match, 'call', _6 => _6('JSON-RPC error')])) ||
223
223
  (error && error.toString().match('undefined'))
224
224
  ) {
225
225
  setTimeout(()=>{
226
- retrieveConfirmedTransaction$3(sentTransaction)
226
+ retrieveConfirmedTransaction$2(sentTransaction)
227
227
  .then(resolve)
228
228
  .catch(reject);
229
229
  }, 500);
@@ -234,15 +234,15 @@
234
234
  })
235
235
  };
236
236
 
237
- const submit$3 = ({ transaction, provider, signer }) => {
237
+ const submit$2 = ({ transaction, provider, signer }) => {
238
238
  if(transaction.method) {
239
- return submitContractInteraction$3({ transaction, signer, provider })
239
+ return submitContractInteraction$2({ transaction, signer, provider })
240
240
  } else {
241
- return submitSimpleTransfer$3({ transaction, signer })
241
+ return submitSimpleTransfer$2({ transaction, signer })
242
242
  }
243
243
  };
244
244
 
245
- const submitContractInteraction$3 = async ({ transaction, signer, provider })=>{
245
+ const submitContractInteraction$2 = async ({ transaction, signer, provider })=>{
246
246
  let contract = new ethers.ethers.Contract(transaction.to, transaction.api, provider);
247
247
  let contractArguments = transaction.getContractArguments({ contract });
248
248
  let method = contract.connect(signer)[transaction.getMethodNameWithSignature()];
@@ -254,24 +254,24 @@
254
254
  if(contractArguments) {
255
255
  return await method(...contractArguments, {
256
256
  value: Transaction.bigNumberify(transaction.value, transaction.blockchain),
257
- gasLimit: _optionalChain$m([gas, 'optionalAccess', _7 => _7.toHexString, 'call', _8 => _8()])
257
+ gasLimit: _optionalChain$l([gas, 'optionalAccess', _7 => _7.toHexString, 'call', _8 => _8()])
258
258
  })
259
259
  } else {
260
260
  return await method({
261
261
  value: Transaction.bigNumberify(transaction.value, transaction.blockchain),
262
- gasLimit: _optionalChain$m([gas, 'optionalAccess', _9 => _9.toHexString, 'call', _10 => _10()])
262
+ gasLimit: _optionalChain$l([gas, 'optionalAccess', _9 => _9.toHexString, 'call', _10 => _10()])
263
263
  })
264
264
  }
265
265
  };
266
266
 
267
- const submitSimpleTransfer$3 = ({ transaction, signer })=>{
267
+ const submitSimpleTransfer$2 = ({ transaction, signer })=>{
268
268
  return signer.sendTransaction({
269
269
  to: transaction.to,
270
270
  value: Transaction.bigNumberify(transaction.value, transaction.blockchain)
271
271
  })
272
272
  };
273
273
 
274
- 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; }
274
+ 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; }
275
275
 
276
276
  class WindowEthereum {
277
277
 
@@ -283,35 +283,37 @@
283
283
 
284
284
  static __initStatic2() {this.isAvailable = async()=>{
285
285
  return (
286
- _optionalChain$l([window, 'optionalAccess', _34 => _34.ethereum]) &&
286
+ _optionalChain$k([window, 'optionalAccess', _36 => _36.ethereum]) &&
287
287
  // not MetaMask
288
- !(_optionalChain$l([window, 'optionalAccess', _35 => _35.ethereum, 'optionalAccess', _36 => _36.isMetaMask]) && Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1) &&
288
+ !(_optionalChain$k([window, 'optionalAccess', _37 => _37.ethereum, 'optionalAccess', _38 => _38.isMetaMask]) && Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1) &&
289
289
  // not Coin98
290
- !_optionalChain$l([window, 'optionalAccess', _37 => _37.coin98]) &&
290
+ !_optionalChain$k([window, 'optionalAccess', _39 => _39.coin98]) &&
291
291
  // not Trust Wallet
292
- !(_optionalChain$l([window, 'optionalAccess', _38 => _38.ethereum, 'optionalAccess', _39 => _39.isTrust]) || _optionalChain$l([window, 'optionalAccess', _40 => _40.ethereum, 'optionalAccess', _41 => _41.isTrustWallet])) &&
292
+ !(_optionalChain$k([window, 'optionalAccess', _40 => _40.ethereum, 'optionalAccess', _41 => _41.isTrust]) || _optionalChain$k([window, 'optionalAccess', _42 => _42.ethereum, 'optionalAccess', _43 => _43.isTrustWallet])) &&
293
293
  // not crypto.com
294
- !_optionalChain$l([window, 'optionalAccess', _42 => _42.ethereum, 'optionalAccess', _43 => _43.isDeficonnectProvider]) &&
294
+ !_optionalChain$k([window, 'optionalAccess', _44 => _44.ethereum, 'optionalAccess', _45 => _45.isDeficonnectProvider]) &&
295
295
  // not HyperPay
296
- !_optionalChain$l([window, 'optionalAccess', _44 => _44.ethereum, 'optionalAccess', _45 => _45.isHyperPay]) &&
296
+ !_optionalChain$k([window, 'optionalAccess', _46 => _46.ethereum, 'optionalAccess', _47 => _47.isHyperPay]) &&
297
297
  // not Phantom
298
- !(window.phantom && !window.glow && !_optionalChain$l([window, 'optionalAccess', _46 => _46.solana, 'optionalAccess', _47 => _47.isGlow]) && !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])) &&
298
+ !(window.phantom && !window.glow && !_optionalChain$k([window, 'optionalAccess', _48 => _48.solana, 'optionalAccess', _49 => _49.isGlow]) && !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])) &&
299
299
  // not Rabby
300
- !_optionalChain$l([window, 'optionalAccess', _48 => _48.ethereum, 'optionalAccess', _49 => _49.isRabby]) &&
300
+ !_optionalChain$k([window, 'optionalAccess', _50 => _50.ethereum, 'optionalAccess', _51 => _51.isRabby]) &&
301
301
  // not Backpack
302
- !_optionalChain$l([window, 'optionalAccess', _50 => _50.backpack, 'optionalAccess', _51 => _51.isBackpack]) &&
302
+ !_optionalChain$k([window, 'optionalAccess', _52 => _52.backpack, 'optionalAccess', _53 => _53.isBackpack]) &&
303
303
  // not TokenPocket
304
- !_optionalChain$l([window, 'optionalAccess', _52 => _52.ethereum, 'optionalAccess', _53 => _53.isTokenPocket]) &&
304
+ !_optionalChain$k([window, 'optionalAccess', _54 => _54.ethereum, 'optionalAccess', _55 => _55.isTokenPocket]) &&
305
305
  // not BitKeep
306
- !_optionalChain$l([window, 'optionalAccess', _54 => _54.ethereum, 'optionalAccess', _55 => _55.isBitKeep]) &&
306
+ !_optionalChain$k([window, 'optionalAccess', _56 => _56.ethereum, 'optionalAccess', _57 => _57.isBitKeep]) &&
307
307
  // not Coinbase
308
- !(_optionalChain$l([window, 'optionalAccess', _56 => _56.ethereum, 'optionalAccess', _57 => _57.isCoinbaseWallet]) || _optionalChain$l([window, 'optionalAccess', _58 => _58.ethereum, 'optionalAccess', _59 => _59.isWalletLink])) &&
308
+ !(_optionalChain$k([window, 'optionalAccess', _58 => _58.ethereum, 'optionalAccess', _59 => _59.isCoinbaseWallet]) || _optionalChain$k([window, 'optionalAccess', _60 => _60.ethereum, 'optionalAccess', _61 => _61.isWalletLink])) &&
309
309
  // MetaMask through ProviderMap
310
- !_optionalChain$l([window, 'optionalAccess', _60 => _60.ethereum, 'optionalAccess', _61 => _61.providerMap, 'optionalAccess', _62 => _62.has, 'call', _63 => _63('MetaMask')]) &&
310
+ !_optionalChain$k([window, 'optionalAccess', _62 => _62.ethereum, 'optionalAccess', _63 => _63.providerMap, 'optionalAccess', _64 => _64.has, 'call', _65 => _65('MetaMask')]) &&
311
311
  // Brave Wallet
312
- !_optionalChain$l([window, 'optionalAccess', _64 => _64.ethereum, 'optionalAccess', _65 => _65.isBraveWallet]) &&
312
+ !_optionalChain$k([window, 'optionalAccess', _66 => _66.ethereum, 'optionalAccess', _67 => _67.isBraveWallet]) &&
313
+ // Uniswap Wallet
314
+ !_optionalChain$k([window, 'optionalAccess', _68 => _68.ethereum, 'optionalAccess', _69 => _69.isUniswapWallet]) &&
313
315
  // OKX Wallet
314
- !_optionalChain$l([window, 'optionalAccess', _66 => _66.okxwallet])
316
+ !_optionalChain$k([window, 'optionalAccess', _70 => _70.okxwallet])
315
317
  )
316
318
  };}
317
319
 
@@ -320,7 +322,7 @@
320
322
  this.logo = this.constructor.info.logo;
321
323
  this.blockchains = this.constructor.info.blockchains;
322
324
  this.sendTransaction = (transaction)=>{
323
- return sendTransaction$3({
325
+ return sendTransaction$2({
324
326
  wallet: this,
325
327
  transaction
326
328
  })
@@ -437,7 +439,7 @@
437
439
  }
438
440
  } WindowEthereum.__initStatic(); WindowEthereum.__initStatic2();
439
441
 
440
- 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; }
442
+ 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; }
441
443
  class Binance extends WindowEthereum {
442
444
 
443
445
  static __initStatic() {this.info = {
@@ -447,7 +449,7 @@
447
449
  };}
448
450
 
449
451
  static __initStatic2() {this.isAvailable = async()=>{
450
- return _optionalChain$k([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
452
+ return _optionalChain$j([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
451
453
  !window.coin98 &&
452
454
  !window.trustwallet
453
455
  };}
@@ -467,7 +469,7 @@
467
469
  okx: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI4LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8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0MCIgZD0iTTEyOS44LDIwNS40SDY1LjFjLTIuNywwLTUsMi4yLTUsNXY2NC43YzAsMi43LDIuMiw1LDUsNWg2NC43YzIuOCwwLDUtMi4yLDUtNXYtNjQuNwoJQzEzNC44LDIwNy42LDEzMi41LDIwNS40LDEyOS44LDIwNS40eiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMjc5LjEsMjA1LjRoLTY0LjdjLTIuNywwLTUsMi4yLTUsNXY2NC43YzAsMi43LDIuMiw1LDUsNWg2NC43YzIuNywwLDUtMi4yLDUtNXYtNjQuNwoJQzI4NC4xLDIwNy42LDI4MS45LDIwNS40LDI3OS4xLDIwNS40eiIvPgo8L3N2Zz4K",
468
470
  };
469
471
 
470
- 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; }
472
+ 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; }
471
473
  class BraveEVM extends WindowEthereum {
472
474
 
473
475
  static __initStatic() {this.info = {
@@ -477,14 +479,14 @@
477
479
  platform: 'evm',
478
480
  };}
479
481
 
480
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$j([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
482
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$i([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
481
483
 
482
484
  getProvider() {
483
485
  return window.ethereum
484
486
  }
485
487
  } BraveEVM.__initStatic(); BraveEVM.__initStatic2();
486
488
 
487
- 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$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; }
488
490
  class Coin98EVM extends WindowEthereum {
489
491
 
490
492
  static __initStatic() {this.info = {
@@ -494,13 +496,13 @@
494
496
  platform: 'evm',
495
497
  };}
496
498
 
497
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$i([window, 'optionalAccess', _2 => _2.coin98]) };}
499
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$h([window, 'optionalAccess', _2 => _2.coin98]) };}
498
500
 
499
501
  getProvider() { return window.coin98.provider }
500
502
 
501
503
  } Coin98EVM.__initStatic(); Coin98EVM.__initStatic2();
502
504
 
503
- 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; }
505
+ 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; }
504
506
  class CoinbaseEVM extends WindowEthereum {
505
507
 
506
508
  static __initStatic() {this.info = {
@@ -511,8 +513,8 @@
511
513
  };}
512
514
 
513
515
  getProvider() {
514
- if(_optionalChain$h([window, 'optionalAccess', _9 => _9.ethereum, 'optionalAccess', _10 => _10.providerMap, 'optionalAccess', _11 => _11.has, 'call', _12 => _12('CoinbaseWallet')])) {
515
- return _optionalChain$h([window, 'optionalAccess', _13 => _13.ethereum, 'optionalAccess', _14 => _14.providerMap, 'optionalAccess', _15 => _15.get, 'call', _16 => _16('CoinbaseWallet')])
516
+ if(_optionalChain$g([window, 'optionalAccess', _9 => _9.ethereum, 'optionalAccess', _10 => _10.providerMap, 'optionalAccess', _11 => _11.has, 'call', _12 => _12('CoinbaseWallet')])) {
517
+ return _optionalChain$g([window, 'optionalAccess', _13 => _13.ethereum, 'optionalAccess', _14 => _14.providerMap, 'optionalAccess', _15 => _15.get, 'call', _16 => _16('CoinbaseWallet')])
516
518
  } else {
517
519
  return window.ethereum
518
520
  }
@@ -521,15 +523,15 @@
521
523
  static __initStatic2() {this.isAvailable = async()=>{
522
524
  return(
523
525
  (
524
- _optionalChain$h([window, 'optionalAccess', _17 => _17.ethereum, 'optionalAccess', _18 => _18.isCoinbaseWallet]) || _optionalChain$h([window, 'optionalAccess', _19 => _19.ethereum, 'optionalAccess', _20 => _20.isWalletLink])
526
+ _optionalChain$g([window, 'optionalAccess', _17 => _17.ethereum, 'optionalAccess', _18 => _18.isCoinbaseWallet]) || _optionalChain$g([window, 'optionalAccess', _19 => _19.ethereum, 'optionalAccess', _20 => _20.isWalletLink])
525
527
  ) || (
526
- _optionalChain$h([window, 'optionalAccess', _21 => _21.ethereum, 'optionalAccess', _22 => _22.providerMap, 'optionalAccess', _23 => _23.has, 'call', _24 => _24('CoinbaseWallet')])
528
+ _optionalChain$g([window, 'optionalAccess', _21 => _21.ethereum, 'optionalAccess', _22 => _22.providerMap, 'optionalAccess', _23 => _23.has, 'call', _24 => _24('CoinbaseWallet')])
527
529
  )
528
530
  )
529
531
  };}
530
532
  } CoinbaseEVM.__initStatic(); CoinbaseEVM.__initStatic2();
531
533
 
532
- 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; }
534
+ 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; }
533
535
  class CryptoCom extends WindowEthereum {
534
536
 
535
537
  static __initStatic() {this.info = {
@@ -538,10 +540,10 @@
538
540
  blockchains: supported$1.evm
539
541
  };}
540
542
 
541
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$g([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
543
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$f([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
542
544
  } CryptoCom.__initStatic(); CryptoCom.__initStatic2();
543
545
 
544
- 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; }
546
+ 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; }
545
547
  class ExodusEVM extends WindowEthereum {
546
548
 
547
549
  static __initStatic() {this.info = {
@@ -551,10 +553,10 @@
551
553
  platform: 'evm',
552
554
  };}
553
555
 
554
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$f([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isExodus]) };}
556
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$e([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isExodus]) };}
555
557
  } ExodusEVM.__initStatic(); ExodusEVM.__initStatic2();
556
558
 
557
- 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; }
559
+ 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; }
558
560
  class HyperPay extends WindowEthereum {
559
561
 
560
562
  static __initStatic() {this.info = {
@@ -563,10 +565,10 @@
563
565
  blockchains: supported$1.evm
564
566
  };}
565
567
 
566
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$e([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
568
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$d([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
567
569
  } HyperPay.__initStatic(); HyperPay.__initStatic2();
568
570
 
569
- 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; }
571
+ 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; }
570
572
  class MagicEdenEVM extends WindowEthereum {
571
573
 
572
574
  static __initStatic() {this.info = {
@@ -578,12 +580,12 @@
578
580
 
579
581
  static __initStatic2() {this.isAvailable = async()=>{
580
582
  return (
581
- _optionalChain$d([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMagicEden])
583
+ _optionalChain$c([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMagicEden])
582
584
  )
583
585
  };}
584
586
  } MagicEdenEVM.__initStatic(); MagicEdenEVM.__initStatic2();
585
587
 
586
- 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; }
588
+ 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; }
587
589
  class OKXEVM extends WindowEthereum {
588
590
 
589
591
  static __initStatic() {this.info = {
@@ -595,12 +597,12 @@
595
597
 
596
598
  static __initStatic2() {this.isAvailable = async()=>{
597
599
  return (
598
- _optionalChain$c([window, 'optionalAccess', _2 => _2.okxwallet])
600
+ _optionalChain$b([window, 'optionalAccess', _2 => _2.okxwallet])
599
601
  )
600
602
  };}
601
603
  } OKXEVM.__initStatic(); OKXEVM.__initStatic2();
602
604
 
603
- 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; }
605
+ 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; }
604
606
  class MetaMask extends WindowEthereum {
605
607
 
606
608
  static __initStatic() {this.info = {
@@ -610,8 +612,8 @@
610
612
  };}
611
613
 
612
614
  getProvider() {
613
- if(_optionalChain$b([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.providerMap, 'optionalAccess', _9 => _9.has, 'call', _10 => _10('MetaMask')])) {
614
- return _optionalChain$b([window, 'optionalAccess', _11 => _11.ethereum, 'optionalAccess', _12 => _12.providerMap, 'optionalAccess', _13 => _13.get, 'call', _14 => _14('MetaMask')])
615
+ if(_optionalChain$a([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.providerMap, 'optionalAccess', _9 => _9.has, 'call', _10 => _10('MetaMask')])) {
616
+ return _optionalChain$a([window, 'optionalAccess', _11 => _11.ethereum, 'optionalAccess', _12 => _12.providerMap, 'optionalAccess', _13 => _13.get, 'call', _14 => _14('MetaMask')])
615
617
  } else {
616
618
  return window.ethereum
617
619
  }
@@ -620,16 +622,16 @@
620
622
  static __initStatic2() {this.isAvailable = async()=>{
621
623
  return(
622
624
  (
623
- _optionalChain$b([window, 'optionalAccess', _15 => _15.ethereum, 'optionalAccess', _16 => _16.isMetaMask]) &&
625
+ _optionalChain$a([window, 'optionalAccess', _15 => _15.ethereum, 'optionalAccess', _16 => _16.isMetaMask]) &&
624
626
  Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1
625
627
  ) || (
626
- _optionalChain$b([window, 'optionalAccess', _17 => _17.ethereum, 'optionalAccess', _18 => _18.providerMap, 'optionalAccess', _19 => _19.has, 'call', _20 => _20('MetaMask')])
628
+ _optionalChain$a([window, 'optionalAccess', _17 => _17.ethereum, 'optionalAccess', _18 => _18.providerMap, 'optionalAccess', _19 => _19.has, 'call', _20 => _20('MetaMask')])
627
629
  )
628
630
  )
629
631
  };}
630
632
  } MetaMask.__initStatic(); MetaMask.__initStatic2();
631
633
 
632
- 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; }
634
+ 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; }
633
635
  class Opera extends WindowEthereum {
634
636
 
635
637
  static __initStatic() {this.info = {
@@ -638,10 +640,10 @@
638
640
  blockchains: supported$1.evm
639
641
  };}
640
642
 
641
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$a([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
643
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$9([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
642
644
  } Opera.__initStatic(); Opera.__initStatic2();
643
645
 
644
- 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; }
646
+ 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; }
645
647
  class PhantomEVM extends WindowEthereum {
646
648
 
647
649
  static __initStatic() {this.info = {
@@ -655,13 +657,13 @@
655
657
  return (
656
658
  window.phantom &&
657
659
  window.phantom.ethereum &&
658
- ! _optionalChain$9([window, 'optionalAccess', _4 => _4.ethereum, 'optionalAccess', _5 => _5.isMagicEden]) &&
659
- ! _optionalChain$9([window, 'optionalAccess', _6 => _6.okxwallet])
660
+ ! _optionalChain$8([window, 'optionalAccess', _4 => _4.ethereum, 'optionalAccess', _5 => _5.isMagicEden]) &&
661
+ ! _optionalChain$8([window, 'optionalAccess', _6 => _6.okxwallet])
660
662
  )
661
663
  };}
662
664
  } PhantomEVM.__initStatic(); PhantomEVM.__initStatic2();
663
665
 
664
- 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; }
666
+ 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; }
665
667
  class Rabby extends WindowEthereum {
666
668
 
667
669
  static __initStatic() {this.info = {
@@ -672,12 +674,28 @@
672
674
 
673
675
  static __initStatic2() {this.isAvailable = async()=>{
674
676
  return(
675
- _optionalChain$8([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isRabby])
677
+ _optionalChain$7([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isRabby])
676
678
  )
677
679
  };}
678
680
  } Rabby.__initStatic(); Rabby.__initStatic2();
679
681
 
680
- 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; }
682
+ 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; }
683
+ class Uniswap extends WindowEthereum {
684
+
685
+ static __initStatic() {this.info = {
686
+ name: 'Uniswap',
687
+ logo: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQxIiBoZWlnaHQ9IjY0MCIgdmlld0JveD0iMCAwIDY0MSA2NDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0yMjQuNTM0IDEyMy4yMjZDMjE4LjY5MiAxMjIuMzIgMjE4LjQ0NSAxMjIuMjEzIDIyMS4xOTUgMTIxLjc5MUMyMjYuNDY0IDEyMC45OCAyMzguOTA1IDEyMi4wODUgMjQ3LjQ3OSAxMjQuMTIzQzI2Ny40OTQgMTI4Ljg4MSAyODUuNzA3IDE0MS4wNjkgMzA1LjE0OCAxNjIuNzE0TDMxMC4zMTMgMTY4LjQ2NUwzMTcuNzAxIDE2Ny4yNzdDMzQ4LjgyOCAxNjIuMjc1IDM4MC40OTMgMTY2LjI1IDQwNi45NzggMTc4LjQ4NUM0MTQuMjY0IDE4MS44NTEgNDI1Ljc1MiAxODguNTUyIDQyNy4xODcgMTkwLjI3NEM0MjcuNjQ1IDE5MC44MjIgNDI4LjQ4NSAxOTQuMzU1IDQyOS4wNTMgMTk4LjEyNEM0MzEuMDIgMjExLjE2NCA0MzAuMDM2IDIyMS4xNiA0MjYuMDQ3IDIyOC42MjVDNDIzLjg3NyAyMzIuNjg4IDQyMy43NTYgMjMzLjk3NSA0MjUuMjE1IDIzNy40NTJDNDI2LjM4IDI0MC4yMjcgNDI5LjYyNyAyNDI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xOSAyMzQuNjUzIDI5My43NzZDMjM3LjYyNSAyOTcuNzQ1IDI0MC40OTkgMjk4Ljc5MSAyNDguMjgyIDI5OC43MzZDMjYzLjUxOCAyOTguNjMgMjc2Ljc2NCAyOTIuMDk1IDI3OC4zMDQgMjgzLjkyNUMyNzkuNTY3IDI3Ny4yMjkgMjczLjc0OSAyNjcuOTQ4IDI2NS43MzYgMjYzLjg3NEMyNjEuNjAxIDI2MS43NzIgMjUyLjgwNyAyNjAuOTM4IDI0OC41NTIgMjYyLjI0NFpNMjY2LjM2NCAyNzYuMTcyQzI2OC43MTQgMjcyLjgzNCAyNjcuNjg2IDI2OS4yMjUgMjYzLjY5IDI2Ni43ODVDMjU2LjA4IDI2Mi4xMzggMjQ0LjU3MSAyNjUuOTgzIDI0NC41NzEgMjczLjE3M0MyNDQuNTcxIDI3Ni43NTIgMjUwLjU3MiAyODAuNjU2IDI1Ni4wNzQgMjgwLjY1NkMyNTkuNzM1IDI4MC42NTYgMjY0Ljc0NiAyNzguNDczIDI2Ni4zNjQgMjc2LjE3MloiIGZpbGw9IiNGRjAwN0EiLz4KPC9zdmc+Cg==",
688
+ blockchains: supported$1.evm
689
+ };}
690
+
691
+ static __initStatic2() {this.isAvailable = async()=>{
692
+ return(
693
+ _optionalChain$6([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isUniswapWallet])
694
+ )
695
+ };}
696
+ } Uniswap.__initStatic(); Uniswap.__initStatic2();
697
+
698
+ 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; }
681
699
  class TokenPocket extends WindowEthereum {
682
700
 
683
701
  static __initStatic() {this.info = {
@@ -688,12 +706,12 @@
688
706
 
689
707
  static __initStatic2() {this.isAvailable = async()=>{
690
708
  return (
691
- _optionalChain$7([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isTokenPocket])
709
+ _optionalChain$5([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isTokenPocket])
692
710
  )
693
711
  };}
694
712
  } TokenPocket.__initStatic(); TokenPocket.__initStatic2();
695
713
 
696
- 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; }
714
+ 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; }
697
715
  class TrustEVM extends WindowEthereum {
698
716
 
699
717
  static __initStatic() {this.info = {
@@ -705,7 +723,7 @@
705
723
 
706
724
  static __initStatic2() {this.isAvailable = async()=>{
707
725
  return (
708
- (_optionalChain$6([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isTrust]) || _optionalChain$6([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isTrustWallet])) &&
726
+ (_optionalChain$4([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isTrust]) || _optionalChain$4([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isTrustWallet])) &&
709
727
  Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!Debug)(?!TrustWallet)(?!MetaMask)(?!PocketUniverse)(?!RevokeCash)/)).length == 1
710
728
  )
711
729
  };}
@@ -810,466 +828,10 @@
810
828
  }
811
829
  };
812
830
 
813
- 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; }
814
-
815
- const sendTransaction$2 = async ({ transaction, wallet })=> {
816
- transaction = new Transaction(transaction);
817
- if((await wallet.connectedTo(transaction.blockchain)) == false) {
818
- throw({ code: 'WRONG_NETWORK' })
819
- }
820
- await transaction.prepare({ wallet });
821
- const smartContractWallet = await getSmartContractWallet(transaction.blockchain, transaction.from);
822
- let transactionCount = await wallet.transactionCount({ blockchain: transaction.blockchain, address: transaction.from });
823
- transaction.nonce = transactionCount;
824
- await submit$2({ transaction, wallet }).then((tx)=>{
825
- if (tx) {
826
- let blockchain = Blockchains__default['default'].findByName(transaction.blockchain);
827
- transaction.id = tx;
828
- transaction.url = smartContractWallet && smartContractWallet.explorerUrlFor ? smartContractWallet.explorerUrlFor({ transaction }) : blockchain.explorerUrlFor({ transaction });
829
- if (transaction.sent) transaction.sent(transaction);
830
- retrieveTransaction$1({ blockchain: transaction.blockchain, tx, smartContractWallet }).then((sentTransaction)=>{
831
- transaction.id = sentTransaction.hash || transaction.id;
832
- transaction.url = blockchain.explorerUrlFor({ transaction });
833
- transaction.nonce = sentTransaction.nonce || transactionCount;
834
- retrieveConfirmedTransaction$2(sentTransaction).then(()=>{
835
- transaction._succeeded = true;
836
- if (transaction.succeeded) transaction.succeeded(transaction);
837
- }).catch((error)=>{
838
- if(error && error.code && error.code == 'TRANSACTION_REPLACED') {
839
- if(error.replacement && error.replacement.hash && error.receipt && error.receipt.status == 1) {
840
- transaction.id = error.replacement.hash;
841
- transaction._succeeded = true;
842
- if (transaction.succeeded) transaction.succeeded(transaction);
843
- } else if(error.replacement && error.replacement.hash && error.receipt && error.receipt.status == 0) {
844
- transaction.id = error.replacement.hash;
845
- transaction._failed = true;
846
- if(transaction.failed) transaction.failed(transaction, error);
847
- }
848
- } else {
849
- transaction._failed = true;
850
- if(transaction.failed) transaction.failed(transaction, error);
851
- }
852
- });
853
- });
854
- } else {
855
- throw('Submitting transaction failed!')
856
- }
857
- });
858
- return transaction
859
- };
860
-
861
- const retrieveConfirmedTransaction$2 = (sentTransaction)=>{
862
- return new Promise((resolve, reject)=>{
863
- try {
864
-
865
- sentTransaction.wait(1).then(resolve).catch((error)=>{
866
- if(
867
- (error && _optionalChain$5([error, 'optionalAccess', _ => _.stack, 'optionalAccess', _2 => _2.match, 'call', _3 => _3('JSON-RPC error')])) ||
868
- (error && error.toString().match('undefined'))
869
- ) {
870
- setTimeout(()=>{
871
- retrieveConfirmedTransaction$2(sentTransaction)
872
- .then(resolve)
873
- .catch(reject);
874
- }, 500);
875
- } else {
876
- reject(error);
877
- }
878
- });
879
- } catch (error) {
880
- if(
881
- (error && _optionalChain$5([error, 'optionalAccess', _4 => _4.stack, 'optionalAccess', _5 => _5.match, 'call', _6 => _6('JSON-RPC error')])) ||
882
- (error && error.toString().match('undefined'))
883
- ) {
884
- setTimeout(()=>{
885
- retrieveConfirmedTransaction$2(sentTransaction)
886
- .then(resolve)
887
- .catch(reject);
888
- }, 500);
889
- } else {
890
- reject(error);
891
- }
892
- }
893
- })
894
- };
895
-
896
- const retrieveTransaction$1 = async ({ blockchain, tx, smartContractWallet })=>{
897
- const provider = await web3ClientEvm.getProvider(blockchain);
898
- let retrieve = async()=>{
899
- try {
900
- if(smartContractWallet && smartContractWallet.retrieveTransaction) {
901
- return await smartContractWallet.retrieveTransaction({ blockchain, tx })
902
- } else {
903
- return await provider.getTransaction(tx)
904
- }
905
- } catch (e) {}
906
- };
907
-
908
- let sentTransaction;
909
- sentTransaction = await retrieve();
910
- while (!sentTransaction) {
911
- await (new Promise((resolve)=>setTimeout(resolve, 3000)));
912
- sentTransaction = await retrieve();
913
- }
914
- return sentTransaction
915
- };
916
-
917
- const submit$2 = ({ transaction, wallet }) => {
918
- if(transaction.method) {
919
- return submitContractInteraction$2({ transaction, wallet })
920
- } else {
921
- return submitSimpleTransfer$2({ transaction, wallet })
922
- }
923
- };
924
-
925
- const submitContractInteraction$2 = async ({ transaction, wallet })=>{
926
- const provider = await web3ClientEvm.getProvider(transaction.blockchain);
927
- let gasPrice = await provider.getGasPrice();
928
- if(_optionalChain$5([wallet, 'access', _7 => _7.session, 'optionalAccess', _8 => _8.peerMeta, 'optionalAccess', _9 => _9.name]) === 'Uniswap Wallet') {
929
- gasPrice = undefined;
930
- } else {
931
- gasPrice = gasPrice.toHexString();
932
- }
933
- let gas;
934
- try {
935
- gas = await web3ClientEvm.estimate(transaction);
936
- gas = gas.add(gas.div(10));
937
- } catch (e2) {}
938
- const data = await transaction.getData();
939
- const value = transaction.value ? ethers.ethers.utils.hexlify(ethers.ethers.BigNumber.from(transaction.value)) : undefined;
940
- const nonce = ethers.ethers.utils.hexlify(transaction.nonce);
941
- return wallet.connector.sendTransaction({
942
- from: transaction.from,
943
- to: transaction.to,
944
- value,
945
- data,
946
- gas: _optionalChain$5([gas, 'optionalAccess', _10 => _10.toHexString, 'call', _11 => _11()]),
947
- gasPrice,
948
- nonce,
949
- })
950
- };
951
-
952
- const submitSimpleTransfer$2 = async ({ transaction, wallet })=>{
953
- const provider = await web3ClientEvm.getProvider(transaction.blockchain);
954
- let gasPrice = await provider.getGasPrice();
955
- if(_optionalChain$5([wallet, 'access', _12 => _12.session, 'optionalAccess', _13 => _13.peerMeta, 'optionalAccess', _14 => _14.name]) === 'Uniswap Wallet') {
956
- gasPrice = undefined;
957
- } else {
958
- gasPrice = gasPrice.toHexString();
959
- }
960
- let gas;
961
- try {
962
- gas = await web3ClientEvm.estimate(transaction);
963
- gas = gas.add(gas.div(10));
964
- } catch (e3) {}
965
- const value = ethers.ethers.utils.hexlify(ethers.ethers.BigNumber.from(transaction.value));
966
- const nonce = ethers.ethers.utils.hexlify(transaction.nonce);
967
- return wallet.connector.sendTransaction({
968
- from: transaction.from,
969
- to: transaction.to,
970
- value,
971
- data: '0x',
972
- gas: _optionalChain$5([gas, 'optionalAccess', _15 => _15.toHexString, 'call', _16 => _16()]),
973
- gasPrice,
974
- nonce,
975
- })
976
- };
977
-
978
- 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; }
979
-
980
- const KEY$1 = '_DePayWeb3WalletsConnectedWalletConnectV1Instance';
981
-
982
- let currentPlainInstance;
983
-
984
- const getPlainInstance = ()=>{
985
- if(currentPlainInstance) { return currentPlainInstance }
986
- currentPlainInstance = getWalletConnectInstance(()=>{});
987
- return currentPlainInstance
988
- };
989
-
990
- const isConnected = ()=>{
991
- return new Promise(async(resolve, reject)=>{
992
-
993
- setTimeout(()=>{
994
- delete localStorage['walletconnect'];
995
- resolve(false);
996
- }, 5000);
997
-
998
- if(!localStorage['walletconnect'] || JSON.parse(localStorage['walletconnect']).handshakeTopic.length == 0) {
999
- delete localStorage['walletconnect'];
1000
- return resolve(false)
1001
- }
1002
-
1003
- let connector = getPlainInstance();
1004
- let accounts;
1005
-
1006
- try {
1007
- let blockNumber = await connector.sendCustomRequest({ method: 'eth_blockNumber' });
1008
- if(blockNumber) {
1009
- accounts = await connector.sendCustomRequest({ method: 'eth_accounts' });
1010
- } else {
1011
- delete localStorage['walletconnect'];
1012
- }
1013
- } catch (error) {
1014
- delete localStorage['walletconnect'];
1015
- resolve(false);
1016
- }
1017
-
1018
- return resolve(accounts && accounts.length)
1019
- })
1020
- };
1021
-
1022
- const getConnectedInstance$2 = async()=>{
1023
- if(window[KEY$1]) { return window[KEY$1] }
1024
- if(await isConnected()) { return new WalletConnectV1() }
1025
- };
1026
-
1027
- const setConnectedInstance$1 = (value)=>{
1028
- window[KEY$1] = value;
1029
- };
1030
-
1031
- const getWalletConnectInstance = (connect)=>{
1032
- return new walletconnectV1.WalletConnectClient({
1033
- bridge: "https://walletconnect.depay.com",
1034
- qrcodeModal: {
1035
- open: async(uri)=>connect({ uri }),
1036
- close: ()=>{},
1037
- }
1038
- })
1039
- };
1040
-
1041
- class WalletConnectV1 {
1042
-
1043
- static __initStatic() {this.info = {
1044
- name: 'WalletConnect',
1045
- logo: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz48IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMjUuNC4xLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAtLT48c3ZnIHZlcnNpb249JzEuMScgaWQ9J0xheWVyXzEnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZycgeG1sbnM6eGxpbms9J2h0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsnIHg9JzBweCcgeT0nMHB4JyB2aWV3Qm94PScwIDAgNTAwIDUwMCcgc3R5bGU9J2VuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTAwIDUwMDsnIHhtbDpzcGFjZT0ncHJlc2VydmUnPjxzdHlsZSB0eXBlPSd0ZXh0L2Nzcyc+IC5zdDB7ZmlsbDojNTk5MUNEO30KPC9zdHlsZT48ZyBpZD0nUGFnZS0xJz48ZyBpZD0nd2FsbGV0Y29ubmVjdC1sb2dvLWFsdCc+PHBhdGggaWQ9J1dhbGxldENvbm5lY3QnIGNsYXNzPSdzdDAnIGQ9J00xMDIuNywxNjJjODEuNS03OS44LDIxMy42LTc5LjgsMjk1LjEsMGw5LjgsOS42YzQuMSw0LDQuMSwxMC41LDAsMTQuNEwzNzQsMjE4LjkgYy0yLDItNS4zLDItNy40LDBsLTEzLjUtMTMuMmMtNTYuOC01NS43LTE0OS01NS43LTIwNS44LDBsLTE0LjUsMTQuMWMtMiwyLTUuMywyLTcuNCwwTDkxLjksMTg3Yy00LjEtNC00LjEtMTAuNSwwLTE0LjQgTDEwMi43LDE2MnogTTQ2Ny4xLDIyOS45bDI5LjksMjkuMmM0LjEsNCw0LjEsMTAuNSwwLDE0LjRMMzYyLjMsNDA1LjRjLTQuMSw0LTEwLjcsNC0xNC44LDBjMCwwLDAsMCwwLDBMMjUyLDMxMS45IGMtMS0xLTIuNy0xLTMuNywwaDBsLTk1LjUsOTMuNWMtNC4xLDQtMTAuNyw0LTE0LjgsMGMwLDAsMCwwLDAsMEwzLjQsMjczLjZjLTQuMS00LTQuMS0xMC41LDAtMTQuNGwyOS45LTI5LjIgYzQuMS00LDEwLjctNCwxNC44LDBsOTUuNSw5My41YzEsMSwyLjcsMSwzLjcsMGMwLDAsMCwwLDAsMGw5NS41LTkzLjVjNC4xLTQsMTAuNy00LDE0LjgsMGMwLDAsMCwwLDAsMGw5NS41LDkzLjUgYzEsMSwyLjcsMSwzLjcsMGw5NS41LTkzLjVDNDU2LjQsMjI1LjksNDYzLDIyNS45LDQ2Ny4xLDIyOS45eicvPjwvZz48L2c+PC9zdmc+Cg==",
1046
- blockchains: supported$1.evm
1047
- };}
1048
-
1049
- static __initStatic2() {this.isAvailable = async()=>{
1050
- return (await getConnectedInstance$2()) != undefined
1051
- };}
1052
-
1053
- constructor() {
1054
- this.name = (localStorage[KEY$1+'_name'] && localStorage[KEY$1+'_name'] != undefined) ? localStorage[KEY$1+'_name'] : this.constructor.info.name;
1055
- this.logo = (localStorage[KEY$1+'_logo'] && localStorage[KEY$1+'_logo'] != undefined) ? localStorage[KEY$1+'_logo'] : this.constructor.info.logo;
1056
- this.blockchains = this.constructor.info.blockchains;
1057
- this.sendTransaction = (transaction)=>{
1058
- return sendTransaction$2({
1059
- wallet: this,
1060
- transaction
1061
- })
1062
- };
1063
- }
1064
-
1065
- disconnect() {
1066
- setConnectedInstance$1(undefined);
1067
- localStorage[KEY$1+'_name'] = undefined;
1068
- localStorage[KEY$1+'_logo'] = undefined;
1069
- currentPlainInstance = undefined;
1070
- this.session = undefined;
1071
- }
1072
-
1073
- newWalletConnectInstance(connect) {
1074
- let instance = getWalletConnectInstance(connect);
1075
-
1076
- instance.on("disconnect", (error, payload) => {
1077
- this.disconnect();
1078
- if (error) { throw error }
1079
- });
1080
-
1081
- instance.on("modal_closed", ()=>{
1082
- setConnectedInstance$1(undefined);
1083
- this.connector = undefined;
1084
- this.session = undefined;
1085
- });
1086
-
1087
- return instance
1088
- }
1089
-
1090
- async account() {
1091
- if(!this.connector){ this.connector = getPlainInstance(); }
1092
- let accounts;
1093
- try{ accounts = await this.connector.sendCustomRequest({ method: 'eth_accounts' }); } catch (e) {}
1094
- if(accounts && accounts.length) { return ethers.ethers.utils.getAddress(accounts[0]) }
1095
- }
1096
-
1097
- async connect(options) {
1098
- let connect = (options && options.connect) ? options.connect : ({uri})=>{};
1099
- try {
1100
-
1101
- this.connector = WalletConnectV1.instance;
1102
-
1103
- if(this.connector == undefined){
1104
- this.connector = this.newWalletConnectInstance(connect);
1105
- }
1106
-
1107
- if(options && options.reconnect) {
1108
- if(this.connector) {
1109
- try{ await this.connector.killSession(); } catch (e2) {}
1110
- this.disconnect();
1111
- }
1112
- }
1113
-
1114
- if((await isConnected())) {
1115
- return await this.account()
1116
- } else {
1117
-
1118
- let session = await this.connector.connect();
1119
- this.session = session;
1120
-
1121
- if(_optionalChain$4([options, 'optionalAccess', _ => _.name])) { localStorage[KEY$1+'_name'] = this.name = options.name; }
1122
- if(_optionalChain$4([options, 'optionalAccess', _2 => _2.logo])) { localStorage[KEY$1+'_logo'] = this.logo = options.logo; }
1123
-
1124
- if(session.accounts instanceof Array && session.accounts.length) {
1125
- setConnectedInstance$1(this);
1126
- return ethers.ethers.utils.getAddress(session.accounts[0])
1127
- } else {
1128
- return
1129
- }
1130
- }
1131
-
1132
- } catch (error) {
1133
- console.log('WALLETCONNECT ERROR', error);
1134
- return undefined
1135
- }
1136
- }
1137
-
1138
- async connectedTo(input) {
1139
- let chainId = await this.connector.sendCustomRequest({ method: 'eth_chainId' });
1140
- const blockchain = Blockchains__default['default'].findById(chainId);
1141
- if(!blockchain) { return false }
1142
- if(input) {
1143
- return input === blockchain.name
1144
- } else {
1145
- return blockchain.name
1146
- }
1147
- }
1148
-
1149
- switchTo(blockchainName) {
1150
- return new Promise((resolve, reject)=>{
1151
- let resolved, rejected;
1152
- const blockchain = Blockchains__default['default'].findByName(blockchainName);
1153
- setTimeout(async()=>{
1154
- if(!(await this.connectedTo(blockchainName)) && !resolved && !rejected){
1155
- reject({ code: 'NOT_SUPPORTED' });
1156
- } else {
1157
- resolve();
1158
- }
1159
- }, 3000);
1160
- this.connector.sendCustomRequest({
1161
- method: 'wallet_switchEthereumChain',
1162
- params: [{ chainId: blockchain.id }],
1163
- }).then(()=>{
1164
- resolved = true;
1165
- resolve();
1166
- }).catch((error)=> {
1167
- if(error && typeof error.message == 'string' && error.message.match('addEthereumChain')){ // chain not yet added
1168
- this.addNetwork(blockchainName)
1169
- .then(()=>this.switchTo(blockchainName).then(()=>{
1170
- resolved = true;
1171
- resolve();
1172
- }))
1173
- .catch(()=>{
1174
- rejected = true;
1175
- reject({ code: 'NOT_SUPPORTED' });
1176
- });
1177
- } else {
1178
- rejected = true;
1179
- reject({ code: 'NOT_SUPPORTED' });
1180
- }
1181
- });
1182
- })
1183
- }
1184
-
1185
- addNetwork(blockchainName) {
1186
- return new Promise((resolve, reject)=>{
1187
- const blockchain = Blockchains__default['default'].findByName(blockchainName);
1188
- this.connector.sendCustomRequest({
1189
- method: 'wallet_addEthereumChain',
1190
- params: [{
1191
- chainId: blockchain.id,
1192
- chainName: blockchain.fullName,
1193
- nativeCurrency: {
1194
- name: blockchain.currency.name,
1195
- symbol: blockchain.currency.symbol,
1196
- decimals: blockchain.currency.decimals
1197
- },
1198
- rpcUrls: [blockchain.rpc],
1199
- blockExplorerUrls: [blockchain.explorer],
1200
- iconUrls: [blockchain.logo]
1201
- }],
1202
- }).then(resolve).catch(reject);
1203
- })
1204
- }
1205
-
1206
- on(event, callback) {
1207
- let internalCallback;
1208
- switch (event) {
1209
- case 'account':
1210
- internalCallback = (error, payload) => {
1211
- if(payload && payload.params && payload.params[0].accounts && payload.params[0].accounts instanceof Array) {
1212
- const accounts = payload.params[0].accounts.map((account)=>ethers.ethers.utils.getAddress(account));
1213
- callback(accounts[0]);
1214
- }
1215
- };
1216
- this.connector.on("session_update", internalCallback);
1217
- break
1218
- }
1219
- return internalCallback
1220
- }
1221
-
1222
- off(event, callback) {
1223
- switch (event) {
1224
- case 'account':
1225
- this.connector.off("session_update");
1226
- break
1227
- }
1228
- }
1229
-
1230
- async transactionCount({ blockchain, address }) {
1231
- const smartContractWallet = await getSmartContractWallet(blockchain, address);
1232
- if(smartContractWallet) {
1233
- return await smartContractWallet.transactionCount()
1234
- } else {
1235
- return await web3ClientEvm.request({ blockchain, method: 'transactionCount', address })
1236
- }
1237
- }
1238
-
1239
- async sign(message) {
1240
- if(typeof message === 'object') {
1241
- let account = await this.account();
1242
- if((await this.connectedTo(Blockchains__default['default'].findByNetworkId(message.domain.chainId).name)) === false) {
1243
- throw({ code: 'WRONG_NETWORK' })
1244
- }
1245
- let signature = await this.connector.sendCustomRequest({
1246
- jsonrpc: '2.0',
1247
- method: 'eth_signTypedData_v4',
1248
- params: [account, JSON.stringify(message)],
1249
- });
1250
- return signature
1251
- } else if (typeof message === 'string') {
1252
- let blockchain = await this.connectedTo();
1253
- let address = await this.account();
1254
- const smartContractWallet = await getSmartContractWallet(blockchain, address);
1255
- if(smartContractWallet){ throw({ message: 'Smart contract wallets are not supported for signing!', code: "SMART_CONTRACT_WALLET_NOT_SUPPORTED" }) }
1256
- var params = [ethers.ethers.utils.toUtf8Bytes(message), address];
1257
- let signature = await this.connector.signPersonalMessage(params);
1258
- return signature
1259
- }
1260
- }
1261
- } WalletConnectV1.__initStatic(); WalletConnectV1.__initStatic2();
1262
-
1263
- WalletConnectV1.getConnectedInstance = getConnectedInstance$2;
1264
- WalletConnectV1.setConnectedInstance = setConnectedInstance$1;
1265
-
1266
831
  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; }
1267
832
 
1268
833
  const sendTransaction$1 = async ({ transaction, wallet })=> {
1269
834
  transaction = new Transaction(transaction);
1270
- if((await wallet.connectedTo(transaction.blockchain)) == false) {
1271
- throw({ code: 'WRONG_NETWORK' })
1272
- }
1273
835
  await transaction.prepare({ wallet });
1274
836
  let transactionCount = await web3ClientEvm.request({ blockchain: transaction.blockchain, method: 'transactionCount', address: transaction.from });
1275
837
  transaction.nonce = transactionCount;
@@ -1405,8 +967,9 @@
1405
967
  value: transaction.value ? ethers.ethers.BigNumber.from(transaction.value.toString()).toHexString() : undefined,
1406
968
  data: await transaction.getData(),
1407
969
  gas: _optionalChain$3([gas, 'optionalAccess', _10 => _10.toHexString, 'call', _11 => _11()]),
970
+ gasLimit: _optionalChain$3([gas, 'optionalAccess', _12 => _12.toHexString, 'call', _13 => _13()]),
1408
971
  gasPrice: gasPrice.toHexString(),
1409
- nonce: transaction.nonce,
972
+ nonce: ethers.ethers.utils.hexlify(transaction.nonce),
1410
973
  }]
1411
974
  }
1412
975
  }).catch((e)=>{console.log('ERROR', e);})
@@ -1430,9 +993,11 @@
1430
993
  from: transaction.from,
1431
994
  to: transaction.to,
1432
995
  value: transaction.value ? ethers.ethers.BigNumber.from(transaction.value.toString()).toHexString() : undefined,
1433
- gas: _optionalChain$3([gas, 'optionalAccess', _12 => _12.toHexString, 'call', _13 => _13()]),
1434
- gasPrice: gasPrice.toHexString(),
1435
- nonce: transaction.nonce
996
+ data: '0x0',
997
+ gas: _optionalChain$3([gas, 'optionalAccess', _14 => _14.toHexString, 'call', _15 => _15()]),
998
+ gasLimit: _optionalChain$3([gas, 'optionalAccess', _16 => _16.toHexString, 'call', _17 => _17()]),
999
+ gasPrice: _optionalChain$3([gasPrice, 'optionalAccess', _18 => _18.toHexString, 'call', _19 => _19()]),
1000
+ nonce: ethers.ethers.utils.hexlify(transaction.nonce)
1436
1001
  }]
1437
1002
  }
1438
1003
  }).catch((e)=>{console.log('ERROR', e);})
@@ -1442,88 +1007,6 @@
1442
1007
 
1443
1008
  const KEY = 'depay:wallets:wc2';
1444
1009
 
1445
- // configurations for wallets that require special handling
1446
- const CONFIGURATIONS = {
1447
-
1448
- "MetaMask": {
1449
- methods: [
1450
- "eth_sendTransaction",
1451
- "personal_sign",
1452
- "eth_signTypedData",
1453
- "eth_signTypedData_v4",
1454
- "wallet_switchEthereumChain"
1455
- ],
1456
- },
1457
-
1458
- "BitGet (BitKeep)": {
1459
- methods: [
1460
- "eth_sendTransaction",
1461
- "personal_sign",
1462
- "eth_signTypedData",
1463
- "eth_signTypedData_v4",
1464
- ],
1465
- requiredNamespaces: {
1466
- eip155: {
1467
- chains: ['ethereum', 'bsc', 'polygon', 'arbitrum', 'base'].map((blockchainName)=>`eip155:${Blockchains__default['default'][blockchainName].networkId}`)
1468
- }
1469
- },
1470
- optionalNamespaces: {},
1471
- },
1472
-
1473
- "BitGet": {
1474
- methods: [
1475
- "eth_sendTransaction",
1476
- "personal_sign",
1477
- "eth_signTypedData",
1478
- "eth_signTypedData_v4",
1479
- ],
1480
- requiredNamespaces: {
1481
- eip155: {
1482
- chains: ['ethereum', 'bsc', 'polygon', 'arbitrum', 'base'].map((blockchainName)=>`eip155:${Blockchains__default['default'][blockchainName].networkId}`)
1483
- }
1484
- },
1485
- optionalNamespaces: {},
1486
- },
1487
-
1488
- "Uniswap Wallet": {
1489
- methods: [
1490
- "eth_sendTransaction",
1491
- "personal_sign",
1492
- "eth_signTypedData",
1493
- "eth_signTypedData_v4",
1494
- ],
1495
- requiredNamespaces: {
1496
- eip155: {
1497
- chains: ['ethereum', 'polygon', 'arbitrum', 'optimism', 'base'].map((blockchainName)=>`eip155:${Blockchains__default['default'][blockchainName].networkId}`)
1498
- }
1499
- },
1500
- optionalNamespaces: {},
1501
- },
1502
-
1503
- "Ledger Live": {
1504
- methods: [
1505
- "eth_sendTransaction",
1506
- "personal_sign",
1507
- "eth_signTypedData",
1508
- "eth_signTypedData_v4",
1509
- ],
1510
- requiredNamespaces: {},
1511
- optionalNamespaces: {
1512
- eip155: {
1513
- chains: Blockchains__default['default'].all.map((blockchain)=>`eip155:${blockchain.networkId}`)
1514
- }
1515
- },
1516
- },
1517
-
1518
- "Enjin Wallet": {
1519
- methods: [
1520
- "eth_sendTransaction",
1521
- "personal_sign",
1522
- "eth_signTypedData",
1523
- ]
1524
- },
1525
- };
1526
-
1527
1010
  const DEFAULT_CONFIGURATION = {
1528
1011
  events: ['accountsChanged'],
1529
1012
  methods: [
@@ -1557,31 +1040,23 @@
1557
1040
  };
1558
1041
 
1559
1042
  const getWalletConnectV2Config = (walletName)=>{
1560
- const methods = _optionalChain$2([CONFIGURATIONS, 'access', _ => _[walletName], 'optionalAccess', _2 => _2.methods]) || DEFAULT_CONFIGURATION.methods;
1561
- const events = _optionalChain$2([CONFIGURATIONS, 'access', _3 => _3[walletName], 'optionalAccess', _4 => _4.events]) || DEFAULT_CONFIGURATION.events;
1043
+ const methods = DEFAULT_CONFIGURATION.methods;
1044
+ const events = DEFAULT_CONFIGURATION.events;
1562
1045
 
1563
1046
  let requiredNamespaces = {};
1564
- if(_optionalChain$2([CONFIGURATIONS, 'access', _5 => _5[walletName], 'optionalAccess', _6 => _6.requiredNamespaces])) {
1565
- requiredNamespaces = CONFIGURATIONS[walletName].requiredNamespaces;
1566
- } else {
1567
- requiredNamespaces['eip155'] = {
1568
- chains: [`eip155:1`],
1569
- };
1570
- }
1047
+ requiredNamespaces['eip155'] = {
1048
+ chains: [`eip155:1`],
1049
+ };
1571
1050
  if(requiredNamespaces['eip155']) {
1572
1051
  requiredNamespaces['eip155'].methods = methods;
1573
1052
  requiredNamespaces['eip155'].events = events;
1574
1053
  }
1575
1054
 
1576
1055
  let optionalNamespaces = {};
1577
- if(_optionalChain$2([CONFIGURATIONS, 'access', _7 => _7[walletName], 'optionalAccess', _8 => _8.optionalNamespaces])) {
1578
- optionalNamespaces = CONFIGURATIONS[walletName].optionalNamespaces;
1579
- } else {
1580
- optionalNamespaces['eip155'] = {
1581
- chains: supported$1.evm.map((blockchain)=>`${Blockchains__default['default'][blockchain].namespace}:${Blockchains__default['default'][blockchain].networkId}`),
1582
- };
1583
- }
1584
- if(_optionalChain$2([optionalNamespaces, 'optionalAccess', _9 => _9.eip155]) && _optionalChain$2([optionalNamespaces, 'optionalAccess', _10 => _10.eip155, 'optionalAccess', _11 => _11.chains, 'optionalAccess', _12 => _12.length])) {
1056
+ optionalNamespaces['eip155'] = {
1057
+ chains: supported$1.evm.map((blockchain)=>`${Blockchains__default['default'][blockchain].namespace}:${Blockchains__default['default'][blockchain].networkId}`),
1058
+ };
1059
+ if(_optionalChain$2([optionalNamespaces, 'optionalAccess', _ => _.eip155]) && _optionalChain$2([optionalNamespaces, 'optionalAccess', _2 => _2.eip155, 'optionalAccess', _3 => _3.chains, 'optionalAccess', _4 => _4.length])) {
1585
1060
  optionalNamespaces['eip155'].methods = methods;
1586
1061
  optionalNamespaces['eip155'].events = events;
1587
1062
  }
@@ -1596,9 +1071,9 @@
1596
1071
  projectId: localStorage[KEY+":projectId"],
1597
1072
  metadata: {
1598
1073
  name: document.title || 'dApp',
1599
- description: _optionalChain$2([document, 'access', _13 => _13.querySelector, 'call', _14 => _14('meta[name="description"]'), 'optionalAccess', _15 => _15.getAttribute, 'call', _16 => _16('content')]) || document.title || 'dApp',
1074
+ description: _optionalChain$2([document, 'access', _5 => _5.querySelector, 'call', _6 => _6('meta[name="description"]'), 'optionalAccess', _7 => _7.getAttribute, 'call', _8 => _8('content')]) || document.title || 'dApp',
1600
1075
  url: location.href,
1601
- icons: [_optionalChain$2([document, 'access', _17 => _17.querySelector, 'call', _18 => _18("link[rel~='icon'], link[rel~='shortcut icon']"), 'optionalAccess', _19 => _19.href]) || `${location.origin}/favicon.ico`]
1076
+ icons: [_optionalChain$2([document, 'access', _9 => _9.querySelector, 'call', _10 => _10("link[rel~='icon'], link[rel~='shortcut icon']"), 'optionalAccess', _11 => _11.href]) || `${location.origin}/favicon.ico`]
1602
1077
  }
1603
1078
  });
1604
1079
  resolve(signClient);
@@ -1616,7 +1091,7 @@
1616
1091
  };}
1617
1092
 
1618
1093
  static __initStatic2() {this.isAvailable = async(options)=>{
1619
- return !! await getLastSession(_optionalChain$2([options, 'optionalAccess', _21 => _21.walletName]))
1094
+ return !! await getLastSession(_optionalChain$2([options, 'optionalAccess', _13 => _13.walletName]))
1620
1095
  };}
1621
1096
 
1622
1097
  constructor() {
@@ -1631,17 +1106,17 @@
1631
1106
  }
1632
1107
 
1633
1108
  async account() {
1634
- if(_optionalChain$2([this, 'access', _22 => _22.session, 'optionalAccess', _23 => _23.namespaces, 'optionalAccess', _24 => _24.eip155, 'optionalAccess', _25 => _25.accounts, 'optionalAccess', _26 => _26.length])) {
1109
+ if(_optionalChain$2([this, 'access', _14 => _14.session, 'optionalAccess', _15 => _15.namespaces, 'optionalAccess', _16 => _16.eip155, 'optionalAccess', _17 => _17.accounts, 'optionalAccess', _18 => _18.length])) {
1635
1110
  return this.session.namespaces.eip155.accounts[0].split(':')[2]
1636
1111
  }
1637
1112
  }
1638
1113
 
1639
1114
  async setSessionBlockchains() {
1640
- if(!this.session || (!_optionalChain$2([this, 'access', _27 => _27.session, 'optionalAccess', _28 => _28.namespaces, 'optionalAccess', _29 => _29.eip155]) && !_optionalChain$2([this, 'access', _30 => _30.session, 'optionalAccess', _31 => _31.optionalNamespaces, 'optionalAccess', _32 => _32.eip155]))) { return }
1115
+ if(!this.session || (!_optionalChain$2([this, 'access', _19 => _19.session, 'optionalAccess', _20 => _20.namespaces, 'optionalAccess', _21 => _21.eip155]) && !_optionalChain$2([this, 'access', _22 => _22.session, 'optionalAccess', _23 => _23.optionalNamespaces, 'optionalAccess', _24 => _24.eip155]))) { return }
1641
1116
  if(this.session.namespaces.eip155.chains) {
1642
- this.blockchains = this.session.namespaces.eip155.chains.map((chainIdentifier)=>_optionalChain$2([Blockchains__default['default'], 'access', _33 => _33.findByNetworkId, 'call', _34 => _34(chainIdentifier.split(':')[1]), 'optionalAccess', _35 => _35.name])).filter(Boolean);
1117
+ this.blockchains = this.session.namespaces.eip155.chains.map((chainIdentifier)=>_optionalChain$2([Blockchains__default['default'], 'access', _25 => _25.findByNetworkId, 'call', _26 => _26(chainIdentifier.split(':')[1]), 'optionalAccess', _27 => _27.name])).filter(Boolean);
1643
1118
  } else if(this.session.namespaces.eip155.accounts) {
1644
- this.blockchains = this.session.namespaces.eip155.accounts.map((accountIdentifier)=>_optionalChain$2([Blockchains__default['default'], 'access', _36 => _36.findByNetworkId, 'call', _37 => _37(accountIdentifier.split(':')[1]), 'optionalAccess', _38 => _38.name])).filter(Boolean);
1119
+ this.blockchains = this.session.namespaces.eip155.accounts.map((accountIdentifier)=>_optionalChain$2([Blockchains__default['default'], 'access', _28 => _28.findByNetworkId, 'call', _29 => _29(accountIdentifier.split(':')[1]), 'optionalAccess', _30 => _30.name])).filter(Boolean);
1645
1120
  }
1646
1121
  }
1647
1122
 
@@ -1651,13 +1126,13 @@
1651
1126
 
1652
1127
  try {
1653
1128
 
1654
- this.walletName = _optionalChain$2([options, 'optionalAccess', _39 => _39.name]);
1129
+ this.walletName = _optionalChain$2([options, 'optionalAccess', _31 => _31.name]);
1655
1130
 
1656
1131
  // delete localStorage[`wc@2:client:0.3//session`] // DELETE WC SESSIONS
1657
1132
  this.signClient = await getSignClient();
1658
1133
 
1659
1134
  this.signClient.on("session_delete", (session)=> {
1660
- if(_optionalChain$2([session, 'optionalAccess', _40 => _40.topic]) === _optionalChain$2([this, 'access', _41 => _41.session, 'optionalAccess', _42 => _42.topic])) {
1135
+ if(_optionalChain$2([session, 'optionalAccess', _32 => _32.topic]) === _optionalChain$2([this, 'access', _33 => _33.session, 'optionalAccess', _34 => _34.topic])) {
1661
1136
  localStorage[KEY+':name'] = undefined;
1662
1137
  localStorage[KEY+':logo'] = undefined;
1663
1138
  this.signClient = undefined;
@@ -1666,14 +1141,14 @@
1666
1141
  });
1667
1142
 
1668
1143
  this.signClient.on("session_update", async(session)=> {
1669
- if(_optionalChain$2([session, 'optionalAccess', _43 => _43.topic]) === _optionalChain$2([this, 'access', _44 => _44.session, 'optionalAccess', _45 => _45.topic])) {
1144
+ if(_optionalChain$2([session, 'optionalAccess', _35 => _35.topic]) === _optionalChain$2([this, 'access', _36 => _36.session, 'optionalAccess', _37 => _37.topic])) {
1670
1145
  this.session = this.signClient.session.get(session.topic);
1671
1146
  await this.setSessionBlockchains();
1672
1147
  }
1673
1148
  });
1674
1149
 
1675
1150
  this.signClient.on("session_event", (event)=> {
1676
- if(_optionalChain$2([event, 'optionalAccess', _46 => _46.topic]) === _optionalChain$2([this, 'access', _47 => _47.session, 'optionalAccess', _48 => _48.topic])) {}
1151
+ if(_optionalChain$2([event, 'optionalAccess', _38 => _38.topic]) === _optionalChain$2([this, 'access', _39 => _39.session, 'optionalAccess', _40 => _40.topic])) {}
1677
1152
  });
1678
1153
 
1679
1154
  const connectWallet = async()=>{
@@ -1684,24 +1159,24 @@
1684
1159
  await new Promise(resolve=>setTimeout(resolve, 500)); // to prevent race condition within WalletConnect
1685
1160
  };
1686
1161
 
1687
- const lastSession = _optionalChain$2([this, 'optionalAccess', _49 => _49.walletName, 'optionalAccess', _50 => _50.length]) ? await getLastSession(this.walletName) : undefined;
1162
+ const lastSession = _optionalChain$2([this, 'optionalAccess', _41 => _41.walletName, 'optionalAccess', _42 => _42.length]) ? await getLastSession(this.walletName) : undefined;
1688
1163
  if(lastSession) {
1689
1164
  this.session = lastSession;
1690
1165
  } else {
1691
1166
  await connectWallet();
1692
1167
  }
1693
1168
 
1694
- let meta = _optionalChain$2([this, 'access', _51 => _51.session, 'optionalAccess', _52 => _52.peer, 'optionalAccess', _53 => _53.metadata]);
1169
+ let meta = _optionalChain$2([this, 'access', _43 => _43.session, 'optionalAccess', _44 => _44.peer, 'optionalAccess', _45 => _45.metadata]);
1695
1170
  if(meta && meta.name) {
1696
1171
  this.name = meta.name;
1697
1172
  localStorage[KEY+':name'] = meta.name;
1698
- if(_optionalChain$2([meta, 'optionalAccess', _54 => _54.icons]) && meta.icons.length) {
1173
+ if(_optionalChain$2([meta, 'optionalAccess', _46 => _46.icons]) && meta.icons.length) {
1699
1174
  this.logo = meta.icons[0];
1700
1175
  localStorage[KEY+':logo'] = this.logo;
1701
1176
  }
1702
1177
  }
1703
- if(_optionalChain$2([options, 'optionalAccess', _55 => _55.name])) { localStorage[KEY+':name'] = this.name = options.name; }
1704
- if(_optionalChain$2([options, 'optionalAccess', _56 => _56.logo])) { localStorage[KEY+':logo'] = this.logo = options.logo; }
1178
+ if(_optionalChain$2([options, 'optionalAccess', _47 => _47.name])) { localStorage[KEY+':name'] = this.name = options.name; }
1179
+ if(_optionalChain$2([options, 'optionalAccess', _48 => _48.logo])) { localStorage[KEY+':logo'] = this.logo = options.logo; }
1705
1180
 
1706
1181
  await this.setSessionBlockchains();
1707
1182
 
@@ -1726,24 +1201,7 @@
1726
1201
 
1727
1202
  switchTo(blockchainName) {
1728
1203
  return new Promise((resolve, reject)=>{
1729
-
1730
- const blockchain = Blockchains__default['default'][blockchainName];
1731
-
1732
- Promise.race([
1733
- this.signClient.request({
1734
- topic: this.session.topic,
1735
- chainId: this.getValidChainId(),
1736
- request:{
1737
- method: 'wallet_switchEthereumChain',
1738
- params: [{ chainId: blockchain.id }],
1739
- }
1740
- }),
1741
- new Promise((resolve, reject)=>setTimeout(()=>{
1742
- if(this.blockchains.indexOf(blockchainName) === -1) {
1743
- reject({ code: 'NOT_SUPPORTED' });
1744
- }
1745
- } , 8000))
1746
- ]).catch(reject);
1204
+ reject({ code: 'NOT_SUPPORTED' });
1747
1205
  })
1748
1206
  }
1749
1207
 
@@ -1758,7 +1216,7 @@
1758
1216
  switch (event) {
1759
1217
  case 'account':
1760
1218
  internalCallback = async(event)=> {
1761
- if(_optionalChain$2([event, 'optionalAccess', _57 => _57.topic]) === _optionalChain$2([this, 'access', _58 => _58.session, 'optionalAccess', _59 => _59.topic]) && event.params.event.name === 'accountsChanged') {
1219
+ if(_optionalChain$2([event, 'optionalAccess', _49 => _49.topic]) === _optionalChain$2([this, 'access', _50 => _50.session, 'optionalAccess', _51 => _51.topic]) && event.params.event.name === 'accountsChanged') {
1762
1220
  callback(await this.account());
1763
1221
  }
1764
1222
  };
@@ -2110,6 +1568,7 @@
2110
1568
  Binance,
2111
1569
  TrustEVM,
2112
1570
  Rabby,
1571
+ Uniswap,
2113
1572
  BraveEVM,
2114
1573
  Opera,
2115
1574
  MagicEdenEVM,
@@ -2123,7 +1582,6 @@
2123
1582
 
2124
1583
  // standards (not concrete wallets)
2125
1584
  WindowEthereum,
2126
- WalletConnectV1,
2127
1585
  WalletConnectV2,
2128
1586
  WalletLink
2129
1587
  };
@@ -2165,6 +1623,7 @@
2165
1623
  wallets.Binance,
2166
1624
  wallets.TrustEVM,
2167
1625
  wallets.Rabby,
1626
+ wallets.Uniswap,
2168
1627
  wallets.PhantomEVM,
2169
1628
  wallets.BraveEVM,
2170
1629
  wallets.OKXEvm,
@@ -2178,7 +1637,6 @@
2178
1637
  wallets.ExodusEVM,
2179
1638
 
2180
1639
  // standards (not concrete wallets)
2181
- wallets.WalletConnectV1,
2182
1640
  wallets.WalletConnectV2,
2183
1641
  wallets.WalletLink,
2184
1642
  wallets.WindowEthereum,