@depay/web3-wallets-svm 18.0.7 → 18.0.9

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.
package/dist/umd/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@depay/web3-client'), require('@depay/web3-blockchains'), require('@depay/solana-web3.js'), require('ethers'), require('@depay/walletconnect-v2'), require('@depay/coinbase-wallet-sdk'), require('@depay/worldcoin-precompiled')) :
3
- typeof define === 'function' && define.amd ? define(['exports', '@depay/web3-client', '@depay/web3-blockchains', '@depay/solana-web3.js', 'ethers', '@depay/walletconnect-v2', '@depay/coinbase-wallet-sdk', '@depay/worldcoin-precompiled'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Web3Wallets = {}, global.Web3Client, global.Web3Blockchains, global.SolanaWeb3js, global.ethers, global.WalletConnectV2, global.CoinbaseWalletSdk, global.WorldcoinPrecompiled));
5
- }(this, (function (exports, web3Client, Blockchains, solanaWeb3_js, ethers, walletconnectV2, coinbaseWalletSdk, worldcoinPrecompiled) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@depay/web3-client'), require('@depay/web3-blockchains'), require('@depay/solana-web3.js'), require('ethers'), require('@depay/walletconnect-v2'), require('@depay/coinbase-wallet-sdk')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@depay/web3-client', '@depay/web3-blockchains', '@depay/solana-web3.js', '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.SolanaWeb3js, global.ethers, global.WalletConnectV2, global.CoinbaseWalletSdk));
5
+ }(this, (function (exports, web3Client, Blockchains, solanaWeb3_js, 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
 
9
9
  var Blockchains__default = /*#__PURE__*/_interopDefaultLegacy(Blockchains);
10
10
 
11
- 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; }
11
+ 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; }
12
12
  class Transaction {
13
13
 
14
14
  constructor({
@@ -34,7 +34,7 @@
34
34
  this.to = (to && to.match('0x')) ? ethers.ethers.utils.getAddress(to) : to;
35
35
 
36
36
  // optional
37
- this.value = _optionalChain$B([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
37
+ this.value = _optionalChain$C([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
38
38
  this.api = api;
39
39
  this.method = method;
40
40
  this.params = params;
@@ -75,7 +75,7 @@
75
75
  }
76
76
 
77
77
  getParamType(param) {
78
- if(_optionalChain$B([param, 'optionalAccess', _5 => _5.components, 'optionalAccess', _6 => _6.length])) {
78
+ if(_optionalChain$C([param, 'optionalAccess', _5 => _5.components, 'optionalAccess', _6 => _6.length])) {
79
79
  return `(${param.components.map((param)=>this.getParamType(param)).join(',')})`
80
80
  } else {
81
81
  return param.type
@@ -148,7 +148,7 @@
148
148
  }
149
149
  }
150
150
 
151
- 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; }
151
+ 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; }
152
152
 
153
153
  const POLL_SPEED = 500; // 0.5 seconds
154
154
  const MAX_POLLS = 240; // 120 seconds
@@ -169,14 +169,14 @@
169
169
 
170
170
  const provider = await web3Client.getProvider(transaction.blockchain);
171
171
  const { value } = await provider.getSignatureStatus(signature);
172
- const confirmationStatus = _optionalChain$A([value, 'optionalAccess', _ => _.confirmationStatus]);
172
+ const confirmationStatus = _optionalChain$B([value, 'optionalAccess', _ => _.confirmationStatus]);
173
173
  if(confirmationStatus) {
174
174
  const hasReachedSufficientCommitment = confirmationStatus === 'confirmed' || confirmationStatus === 'finalized';
175
175
  if (hasReachedSufficientCommitment) {
176
176
  if(value.err) {
177
177
  transaction._failed = true;
178
178
  const confirmedTransaction = await provider.getConfirmedTransaction(signature);
179
- const failedReason = _optionalChain$A([confirmedTransaction, 'optionalAccess', _2 => _2.meta, 'optionalAccess', _3 => _3.logMessages]) ? confirmedTransaction.meta.logMessages[confirmedTransaction.meta.logMessages.length - 1] : null;
179
+ const failedReason = _optionalChain$B([confirmedTransaction, 'optionalAccess', _2 => _2.meta, 'optionalAccess', _3 => _3.logMessages]) ? confirmedTransaction.meta.logMessages[confirmedTransaction.meta.logMessages.length - 1] : null;
180
180
  if(transaction.failed) transaction.failed(transaction, failedReason);
181
181
  } else {
182
182
  transaction._succeeded = true;
@@ -267,7 +267,7 @@
267
267
  supported$1.evm = ['ethereum', 'bsc', 'polygon', 'fantom', 'arbitrum', 'avalanche', 'gnosis', 'optimism', 'base', 'worldchain'];
268
268
  supported$1.svm = ['solana'];
269
269
 
270
- function _optionalChain$z(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; }
270
+ 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; }
271
271
  class WindowSolana {
272
272
 
273
273
  static __initStatic() {this.info = {
@@ -278,13 +278,13 @@
278
278
 
279
279
  static __initStatic2() {this.isAvailable = async()=>{
280
280
  return (
281
- _optionalChain$z([window, 'optionalAccess', _6 => _6.solana]) &&
281
+ _optionalChain$A([window, 'optionalAccess', _6 => _6.solana]) &&
282
282
  // not Phantom
283
283
  !(window.phantom && !window.glow && !window.solana.isGlow && !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])) &&
284
284
  // not Coin98
285
285
  !window.coin98 &&
286
286
  // not BitKeep
287
- !(_optionalChain$z([window, 'optionalAccess', _7 => _7.solana]) && _optionalChain$z([window, 'optionalAccess', _8 => _8.solana, 'access', _9 => _9.isBitKeep])) &&
287
+ !(_optionalChain$A([window, 'optionalAccess', _7 => _7.solana]) && _optionalChain$A([window, 'optionalAccess', _8 => _8.solana, 'access', _9 => _9.isBitKeep])) &&
288
288
  // not Glow
289
289
  !window.solana.isGlow &&
290
290
  // not trust
@@ -292,7 +292,7 @@
292
292
  // Brave Wallet
293
293
  !window.solana.isBraveWallet &&
294
294
  // OKX Wallet
295
- !_optionalChain$z([window, 'optionalAccess', _10 => _10.okxwallet])
295
+ !_optionalChain$A([window, 'optionalAccess', _10 => _10.okxwallet])
296
296
  )
297
297
  };}
298
298
 
@@ -339,7 +339,7 @@
339
339
  let internalCallback;
340
340
  switch (event) {
341
341
  case 'account':
342
- internalCallback = (publicKey) => callback(_optionalChain$z([publicKey, 'optionalAccess', _11 => _11.toString, 'call', _12 => _12()]));
342
+ internalCallback = (publicKey) => callback(_optionalChain$A([publicKey, 'optionalAccess', _11 => _11.toString, 'call', _12 => _12()]));
343
343
  this.getProvider().on('accountChanged', internalCallback);
344
344
  break
345
345
  }
@@ -392,7 +392,7 @@
392
392
  }
393
393
  } WindowSolana.__initStatic(); WindowSolana.__initStatic2();
394
394
 
395
- function _optionalChain$y(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; }
395
+ function _optionalChain$z(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; }
396
396
 
397
397
  class Backpack extends WindowSolana {
398
398
 
@@ -404,7 +404,7 @@
404
404
 
405
405
  static __initStatic2() {this.isAvailable = async()=>{
406
406
  return (
407
- _optionalChain$y([window, 'optionalAccess', _2 => _2.backpack]) &&
407
+ _optionalChain$z([window, 'optionalAccess', _2 => _2.backpack]) &&
408
408
  window.backpack.isBackpack
409
409
  )
410
410
  };}
@@ -422,7 +422,7 @@
422
422
  }
423
423
  } Backpack.__initStatic(); Backpack.__initStatic2();
424
424
 
425
- function _optionalChain$x(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; }
425
+ function _optionalChain$y(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; }
426
426
 
427
427
  const sendTransaction$2 = async ({ transaction, wallet })=> {
428
428
  transaction = new Transaction(transaction);
@@ -476,7 +476,7 @@
476
476
  try {
477
477
  sentTransaction.wait(1).then(resolve).catch((error)=>{
478
478
  if(
479
- (error && _optionalChain$x([error, 'optionalAccess', _ => _.stack, 'optionalAccess', _2 => _2.match, 'call', _3 => _3('JSON-RPC error')])) ||
479
+ (error && _optionalChain$y([error, 'optionalAccess', _ => _.stack, 'optionalAccess', _2 => _2.match, 'call', _3 => _3('JSON-RPC error')])) ||
480
480
  (error && error.toString().match('undefined'))
481
481
  ) {
482
482
  setTimeout(()=>{
@@ -490,7 +490,7 @@
490
490
  });
491
491
  } catch(error) {
492
492
  if(
493
- (error && _optionalChain$x([error, 'optionalAccess', _4 => _4.stack, 'optionalAccess', _5 => _5.match, 'call', _6 => _6('JSON-RPC error')])) ||
493
+ (error && _optionalChain$y([error, 'optionalAccess', _4 => _4.stack, 'optionalAccess', _5 => _5.match, 'call', _6 => _6('JSON-RPC error')])) ||
494
494
  (error && error.toString().match('undefined'))
495
495
  ) {
496
496
  setTimeout(()=>{
@@ -525,12 +525,12 @@
525
525
  if(contractArguments) {
526
526
  return await method(...contractArguments, {
527
527
  value: Transaction.bigNumberify(transaction.value, transaction.blockchain),
528
- gasLimit: _optionalChain$x([gas, 'optionalAccess', _7 => _7.toHexString, 'call', _8 => _8()])
528
+ gasLimit: _optionalChain$y([gas, 'optionalAccess', _7 => _7.toHexString, 'call', _8 => _8()])
529
529
  })
530
530
  } else {
531
531
  return await method({
532
532
  value: Transaction.bigNumberify(transaction.value, transaction.blockchain),
533
- gasLimit: _optionalChain$x([gas, 'optionalAccess', _9 => _9.toHexString, 'call', _10 => _10()])
533
+ gasLimit: _optionalChain$y([gas, 'optionalAccess', _9 => _9.toHexString, 'call', _10 => _10()])
534
534
  })
535
535
  }
536
536
  };
@@ -542,7 +542,7 @@
542
542
  })
543
543
  };
544
544
 
545
- function _optionalChain$w(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
+ function _optionalChain$x(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
546
 
547
547
  class WindowEthereum {
548
548
 
@@ -554,39 +554,39 @@
554
554
 
555
555
  static __initStatic2() {this.isAvailable = async()=>{
556
556
  return (
557
- _optionalChain$w([window, 'optionalAccess', _38 => _38.ethereum]) &&
557
+ _optionalChain$x([window, 'optionalAccess', _38 => _38.ethereum]) &&
558
558
  // not MetaMask
559
- !(_optionalChain$w([window, 'optionalAccess', _39 => _39.ethereum, 'optionalAccess', _40 => _40.isMetaMask]) && Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1) &&
559
+ !(_optionalChain$x([window, 'optionalAccess', _39 => _39.ethereum, 'optionalAccess', _40 => _40.isMetaMask]) && Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1) &&
560
560
  // not Coin98
561
- !_optionalChain$w([window, 'optionalAccess', _41 => _41.coin98]) &&
561
+ !_optionalChain$x([window, 'optionalAccess', _41 => _41.coin98]) &&
562
562
  // not Trust Wallet
563
- !(_optionalChain$w([window, 'optionalAccess', _42 => _42.ethereum, 'optionalAccess', _43 => _43.isTrust]) || _optionalChain$w([window, 'optionalAccess', _44 => _44.ethereum, 'optionalAccess', _45 => _45.isTrustWallet])) &&
563
+ !(_optionalChain$x([window, 'optionalAccess', _42 => _42.ethereum, 'optionalAccess', _43 => _43.isTrust]) || _optionalChain$x([window, 'optionalAccess', _44 => _44.ethereum, 'optionalAccess', _45 => _45.isTrustWallet])) &&
564
564
  // not crypto.com
565
- !_optionalChain$w([window, 'optionalAccess', _46 => _46.ethereum, 'optionalAccess', _47 => _47.isDeficonnectProvider]) &&
565
+ !_optionalChain$x([window, 'optionalAccess', _46 => _46.ethereum, 'optionalAccess', _47 => _47.isDeficonnectProvider]) &&
566
566
  // not HyperPay
567
- !_optionalChain$w([window, 'optionalAccess', _48 => _48.ethereum, 'optionalAccess', _49 => _49.isHyperPay]) &&
567
+ !_optionalChain$x([window, 'optionalAccess', _48 => _48.ethereum, 'optionalAccess', _49 => _49.isHyperPay]) &&
568
568
  // not Phantom
569
- !(window.phantom && !window.glow && !_optionalChain$w([window, 'optionalAccess', _50 => _50.solana, 'optionalAccess', _51 => _51.isGlow]) && !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])) &&
569
+ !(window.phantom && !window.glow && !_optionalChain$x([window, 'optionalAccess', _50 => _50.solana, 'optionalAccess', _51 => _51.isGlow]) && !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])) &&
570
570
  // not Rabby
571
- !_optionalChain$w([window, 'optionalAccess', _52 => _52.ethereum, 'optionalAccess', _53 => _53.isRabby]) &&
571
+ !_optionalChain$x([window, 'optionalAccess', _52 => _52.ethereum, 'optionalAccess', _53 => _53.isRabby]) &&
572
572
  // not Backpack
573
- !_optionalChain$w([window, 'optionalAccess', _54 => _54.backpack, 'optionalAccess', _55 => _55.isBackpack]) &&
573
+ !_optionalChain$x([window, 'optionalAccess', _54 => _54.backpack, 'optionalAccess', _55 => _55.isBackpack]) &&
574
574
  // not TokenPocket
575
- !_optionalChain$w([window, 'optionalAccess', _56 => _56.ethereum, 'optionalAccess', _57 => _57.isTokenPocket]) &&
575
+ !_optionalChain$x([window, 'optionalAccess', _56 => _56.ethereum, 'optionalAccess', _57 => _57.isTokenPocket]) &&
576
576
  // not BitKeep
577
- !_optionalChain$w([window, 'optionalAccess', _58 => _58.ethereum, 'optionalAccess', _59 => _59.isBitKeep]) &&
577
+ !_optionalChain$x([window, 'optionalAccess', _58 => _58.ethereum, 'optionalAccess', _59 => _59.isBitKeep]) &&
578
578
  // not Coinbase
579
- !(_optionalChain$w([window, 'optionalAccess', _60 => _60.ethereum, 'optionalAccess', _61 => _61.isCoinbaseWallet]) || _optionalChain$w([window, 'optionalAccess', _62 => _62.ethereum, 'optionalAccess', _63 => _63.isWalletLink])) &&
579
+ !(_optionalChain$x([window, 'optionalAccess', _60 => _60.ethereum, 'optionalAccess', _61 => _61.isCoinbaseWallet]) || _optionalChain$x([window, 'optionalAccess', _62 => _62.ethereum, 'optionalAccess', _63 => _63.isWalletLink])) &&
580
580
  // MetaMask through ProviderMap
581
- !_optionalChain$w([window, 'optionalAccess', _64 => _64.ethereum, 'optionalAccess', _65 => _65.providerMap, 'optionalAccess', _66 => _66.has, 'call', _67 => _67('MetaMask')]) &&
581
+ !_optionalChain$x([window, 'optionalAccess', _64 => _64.ethereum, 'optionalAccess', _65 => _65.providerMap, 'optionalAccess', _66 => _66.has, 'call', _67 => _67('MetaMask')]) &&
582
582
  // Brave Wallet
583
- !_optionalChain$w([window, 'optionalAccess', _68 => _68.ethereum, 'optionalAccess', _69 => _69.isBraveWallet]) &&
583
+ !_optionalChain$x([window, 'optionalAccess', _68 => _68.ethereum, 'optionalAccess', _69 => _69.isBraveWallet]) &&
584
584
  // Uniswap Wallet
585
- !_optionalChain$w([window, 'optionalAccess', _70 => _70.ethereum, 'optionalAccess', _71 => _71.isUniswapWallet]) &&
585
+ !_optionalChain$x([window, 'optionalAccess', _70 => _70.ethereum, 'optionalAccess', _71 => _71.isUniswapWallet]) &&
586
586
  // Rainbow
587
- !_optionalChain$w([window, 'optionalAccess', _72 => _72.ethereum, 'optionalAccess', _73 => _73.isRainbow]) &&
587
+ !_optionalChain$x([window, 'optionalAccess', _72 => _72.ethereum, 'optionalAccess', _73 => _73.isRainbow]) &&
588
588
  // OKX Wallet
589
- !_optionalChain$w([window, 'optionalAccess', _74 => _74.okxwallet])
589
+ !_optionalChain$x([window, 'optionalAccess', _74 => _74.okxwallet])
590
590
  )
591
591
  };}
592
592
 
@@ -718,7 +718,7 @@
718
718
  }
719
719
  } WindowEthereum.__initStatic(); WindowEthereum.__initStatic2();
720
720
 
721
- function _optionalChain$v(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; }
721
+ function _optionalChain$w(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; }
722
722
  class Binance extends WindowEthereum {
723
723
 
724
724
  static __initStatic() {this.info = {
@@ -728,7 +728,7 @@
728
728
  };}
729
729
 
730
730
  static __initStatic2() {this.isAvailable = async()=>{
731
- return _optionalChain$v([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
731
+ return _optionalChain$w([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
732
732
  !window.coin98 &&
733
733
  !window.trustwallet
734
734
  };}
@@ -744,11 +744,11 @@
744
744
  coinbase: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cmVjdCB3aWR0aD0iMTAyNCIgaGVpZ2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zIuNywwLDUtMi4yLDUtNXYtNjQuNwoJQzI4NC4xLDIwNy42LDI4MS45LDIwNS40LDI3OS4xLDIwNS40eiIvPgo8L3N2Zz4K",
749
749
  };
750
750
 
751
- function _optionalChain$u(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; }
751
+ function _optionalChain$v(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; }
752
752
  class BraveEVM extends WindowEthereum {
753
753
 
754
754
  static __initStatic() {this.info = {
@@ -758,14 +758,14 @@
758
758
  platform: 'evm',
759
759
  };}
760
760
 
761
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$u([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
761
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$v([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
762
762
 
763
763
  getProvider() {
764
764
  return window.ethereum
765
765
  }
766
766
  } BraveEVM.__initStatic(); BraveEVM.__initStatic2();
767
767
 
768
- function _optionalChain$t(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; }
768
+ function _optionalChain$u(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; }
769
769
  class BraveSVM extends WindowSolana {
770
770
 
771
771
  static __initStatic() {this.info = {
@@ -775,14 +775,14 @@
775
775
  platform: 'svm',
776
776
  };}
777
777
 
778
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$t([window, 'optionalAccess', _3 => _3.solana, 'optionalAccess', _4 => _4.isBraveWallet]) };}
778
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$u([window, 'optionalAccess', _3 => _3.solana, 'optionalAccess', _4 => _4.isBraveWallet]) };}
779
779
 
780
780
  getProvider() {
781
781
  return window.braveSolana
782
782
  }
783
783
  } BraveSVM.__initStatic(); BraveSVM.__initStatic2();
784
784
 
785
- function _optionalChain$s(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; }
785
+ function _optionalChain$t(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; }
786
786
  class Coin98EVM extends WindowEthereum {
787
787
 
788
788
  static __initStatic() {this.info = {
@@ -792,13 +792,13 @@
792
792
  platform: 'evm',
793
793
  };}
794
794
 
795
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$s([window, 'optionalAccess', _2 => _2.coin98]) };}
795
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$t([window, 'optionalAccess', _2 => _2.coin98]) };}
796
796
 
797
797
  getProvider() { return window.coin98.provider }
798
798
 
799
799
  } Coin98EVM.__initStatic(); Coin98EVM.__initStatic2();
800
800
 
801
- function _optionalChain$r(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; }
801
+ function _optionalChain$s(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; }
802
802
  class Coin98SVM extends WindowSolana {
803
803
 
804
804
  static __initStatic() {this.info = {
@@ -808,13 +808,13 @@
808
808
  platform: 'svm',
809
809
  };}
810
810
 
811
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$r([window, 'optionalAccess', _3 => _3.coin98, 'optionalAccess', _4 => _4.sol]) };}
811
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$s([window, 'optionalAccess', _3 => _3.coin98, 'optionalAccess', _4 => _4.sol]) };}
812
812
 
813
813
  getProvider() { return window.coin98.sol }
814
814
 
815
815
  } Coin98SVM.__initStatic(); Coin98SVM.__initStatic2();
816
816
 
817
- function _optionalChain$q(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; }
817
+ function _optionalChain$r(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; }
818
818
  class CoinbaseEVM extends WindowEthereum {
819
819
 
820
820
  static __initStatic() {this.info = {
@@ -825,8 +825,8 @@
825
825
  };}
826
826
 
827
827
  getProvider() {
828
- if(_optionalChain$q([window, 'optionalAccess', _9 => _9.ethereum, 'optionalAccess', _10 => _10.providerMap, 'optionalAccess', _11 => _11.has, 'call', _12 => _12('CoinbaseWallet')])) {
829
- return _optionalChain$q([window, 'optionalAccess', _13 => _13.ethereum, 'optionalAccess', _14 => _14.providerMap, 'optionalAccess', _15 => _15.get, 'call', _16 => _16('CoinbaseWallet')])
828
+ if(_optionalChain$r([window, 'optionalAccess', _9 => _9.ethereum, 'optionalAccess', _10 => _10.providerMap, 'optionalAccess', _11 => _11.has, 'call', _12 => _12('CoinbaseWallet')])) {
829
+ return _optionalChain$r([window, 'optionalAccess', _13 => _13.ethereum, 'optionalAccess', _14 => _14.providerMap, 'optionalAccess', _15 => _15.get, 'call', _16 => _16('CoinbaseWallet')])
830
830
  } else {
831
831
  return window.ethereum
832
832
  }
@@ -835,9 +835,9 @@
835
835
  static __initStatic2() {this.isAvailable = async()=>{
836
836
  return(
837
837
  (
838
- _optionalChain$q([window, 'optionalAccess', _17 => _17.ethereum, 'optionalAccess', _18 => _18.isCoinbaseWallet]) || _optionalChain$q([window, 'optionalAccess', _19 => _19.ethereum, 'optionalAccess', _20 => _20.isWalletLink])
838
+ _optionalChain$r([window, 'optionalAccess', _17 => _17.ethereum, 'optionalAccess', _18 => _18.isCoinbaseWallet]) || _optionalChain$r([window, 'optionalAccess', _19 => _19.ethereum, 'optionalAccess', _20 => _20.isWalletLink])
839
839
  ) || (
840
- _optionalChain$q([window, 'optionalAccess', _21 => _21.ethereum, 'optionalAccess', _22 => _22.providerMap, 'optionalAccess', _23 => _23.has, 'call', _24 => _24('CoinbaseWallet')])
840
+ _optionalChain$r([window, 'optionalAccess', _21 => _21.ethereum, 'optionalAccess', _22 => _22.providerMap, 'optionalAccess', _23 => _23.has, 'call', _24 => _24('CoinbaseWallet')])
841
841
  )
842
842
  )
843
843
  };}
@@ -861,7 +861,7 @@
861
861
  };}
862
862
  } CoinbaseSVM.__initStatic(); CoinbaseSVM.__initStatic2();
863
863
 
864
- function _optionalChain$p(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; }
864
+ function _optionalChain$q(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; }
865
865
  class CryptoCom extends WindowEthereum {
866
866
 
867
867
  static __initStatic() {this.info = {
@@ -870,10 +870,10 @@
870
870
  blockchains: supported$1.evm
871
871
  };}
872
872
 
873
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$p([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
873
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$q([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
874
874
  } CryptoCom.__initStatic(); CryptoCom.__initStatic2();
875
875
 
876
- function _optionalChain$o(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; }
876
+ function _optionalChain$p(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; }
877
877
  class ExodusEVM extends WindowEthereum {
878
878
 
879
879
  static __initStatic() {this.info = {
@@ -883,10 +883,10 @@
883
883
  platform: 'evm',
884
884
  };}
885
885
 
886
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$o([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isExodus]) };}
886
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$p([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isExodus]) };}
887
887
  } ExodusEVM.__initStatic(); ExodusEVM.__initStatic2();
888
888
 
889
- 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; }
889
+ function _optionalChain$o(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; }
890
890
  class ExodusSVM extends WindowSolana {
891
891
 
892
892
  static __initStatic() {this.info = {
@@ -896,7 +896,7 @@
896
896
  platform: 'svm',
897
897
  };}
898
898
 
899
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$n([window, 'optionalAccess', _3 => _3.solana, 'optionalAccess', _4 => _4.isExodus]) };}
899
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$o([window, 'optionalAccess', _3 => _3.solana, 'optionalAccess', _4 => _4.isExodus]) };}
900
900
  } ExodusSVM.__initStatic(); ExodusSVM.__initStatic2();
901
901
 
902
902
  class Glow extends WindowSolana {
@@ -915,7 +915,7 @@
915
915
  };}
916
916
  } Glow.__initStatic(); Glow.__initStatic2();
917
917
 
918
- 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; }
918
+ 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; }
919
919
  class HyperPay extends WindowEthereum {
920
920
 
921
921
  static __initStatic() {this.info = {
@@ -924,10 +924,10 @@
924
924
  blockchains: supported$1.evm
925
925
  };}
926
926
 
927
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$m([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
927
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$n([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
928
928
  } HyperPay.__initStatic(); HyperPay.__initStatic2();
929
929
 
930
- 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; }
930
+ 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; }
931
931
  class MagicEdenEVM extends WindowEthereum {
932
932
 
933
933
  static __initStatic() {this.info = {
@@ -939,12 +939,12 @@
939
939
 
940
940
  static __initStatic2() {this.isAvailable = async()=>{
941
941
  return (
942
- _optionalChain$l([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMagicEden])
942
+ _optionalChain$m([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMagicEden])
943
943
  )
944
944
  };}
945
945
  } MagicEdenEVM.__initStatic(); MagicEdenEVM.__initStatic2();
946
946
 
947
- 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; }
947
+ 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; }
948
948
  class MagicEdenSVM extends WindowSolana {
949
949
 
950
950
  static __initStatic() {this.info = {
@@ -956,12 +956,12 @@
956
956
 
957
957
  static __initStatic2() {this.isAvailable = async()=>{
958
958
  return (
959
- _optionalChain$k([window, 'optionalAccess', _3 => _3.solana, 'optionalAccess', _4 => _4.isMagicEden])
959
+ _optionalChain$l([window, 'optionalAccess', _3 => _3.solana, 'optionalAccess', _4 => _4.isMagicEden])
960
960
  )
961
961
  };}
962
962
  } MagicEdenSVM.__initStatic(); MagicEdenSVM.__initStatic2();
963
963
 
964
- 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; }
964
+ 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; }
965
965
  class MetaMask extends WindowEthereum {
966
966
 
967
967
  static __initStatic() {this.info = {
@@ -972,7 +972,7 @@
972
972
 
973
973
  static __initStatic2() {this.isMetaMask = (provider)=> {
974
974
  return(
975
- _optionalChain$j([provider, 'optionalAccess', _3 => _3.isMetaMask]) &&
975
+ _optionalChain$k([provider, 'optionalAccess', _3 => _3.isMetaMask]) &&
976
976
  Object.keys(provider).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!WalletGuard)(?!RevokeCash)/)).length == 1
977
977
  )
978
978
  };}
@@ -986,16 +986,16 @@
986
986
  static __initStatic4() {this.isAvailable = async()=>{
987
987
  return(
988
988
  MetaMask.getEip6963Provider() ||
989
- MetaMask.isMetaMask(_optionalChain$j([window, 'optionalAccess', _4 => _4.ethereum]))
989
+ MetaMask.isMetaMask(_optionalChain$k([window, 'optionalAccess', _4 => _4.ethereum]))
990
990
  )
991
991
  };}
992
992
 
993
993
  getProvider() {
994
- return MetaMask.getEip6963Provider() || (MetaMask.isMetaMask(_optionalChain$j([window, 'optionalAccess', _5 => _5.ethereum])) && _optionalChain$j([window, 'optionalAccess', _6 => _6.ethereum]))
994
+ return MetaMask.getEip6963Provider() || (MetaMask.isMetaMask(_optionalChain$k([window, 'optionalAccess', _5 => _5.ethereum])) && _optionalChain$k([window, 'optionalAccess', _6 => _6.ethereum]))
995
995
  }
996
996
  } MetaMask.__initStatic(); MetaMask.__initStatic2(); MetaMask.__initStatic3(); MetaMask.__initStatic4();
997
997
 
998
- 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; }
998
+ 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; }
999
999
  class OKXEVM extends WindowEthereum {
1000
1000
 
1001
1001
  static __initStatic() {this.info = {
@@ -1007,12 +1007,12 @@
1007
1007
 
1008
1008
  static __initStatic2() {this.isAvailable = async()=>{
1009
1009
  return (
1010
- _optionalChain$i([window, 'optionalAccess', _2 => _2.okxwallet])
1010
+ _optionalChain$j([window, 'optionalAccess', _2 => _2.okxwallet])
1011
1011
  )
1012
1012
  };}
1013
1013
  } OKXEVM.__initStatic(); OKXEVM.__initStatic2();
1014
1014
 
1015
- 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; }
1015
+ 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; }
1016
1016
  class OKXSVM extends WindowSolana {
1017
1017
 
1018
1018
  static __initStatic() {this.info = {
@@ -1024,12 +1024,12 @@
1024
1024
 
1025
1025
  static __initStatic2() {this.isAvailable = async()=>{
1026
1026
  return (
1027
- _optionalChain$h([window, 'optionalAccess', _3 => _3.solana, 'optionalAccess', _4 => _4.isOkxWallet])
1027
+ _optionalChain$i([window, 'optionalAccess', _3 => _3.solana, 'optionalAccess', _4 => _4.isOkxWallet])
1028
1028
  )
1029
1029
  };}
1030
1030
  } OKXSVM.__initStatic(); OKXSVM.__initStatic2();
1031
1031
 
1032
- 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; }
1032
+ 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; }
1033
1033
  class Opera extends WindowEthereum {
1034
1034
 
1035
1035
  static __initStatic() {this.info = {
@@ -1038,10 +1038,10 @@
1038
1038
  blockchains: supported$1.evm
1039
1039
  };}
1040
1040
 
1041
- static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$g([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
1041
+ static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$h([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
1042
1042
  } Opera.__initStatic(); Opera.__initStatic2();
1043
1043
 
1044
- 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; }
1044
+ 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; }
1045
1045
  class PhantomEVM extends WindowEthereum {
1046
1046
 
1047
1047
  static __initStatic() {this.info = {
@@ -1055,17 +1055,17 @@
1055
1055
  return (
1056
1056
  window.phantom &&
1057
1057
  window.phantom.ethereum &&
1058
- ! _optionalChain$f([window, 'optionalAccess', _4 => _4.ethereum, 'optionalAccess', _5 => _5.isMagicEden]) &&
1059
- ! _optionalChain$f([window, 'optionalAccess', _6 => _6.okxwallet])
1058
+ ! _optionalChain$g([window, 'optionalAccess', _4 => _4.ethereum, 'optionalAccess', _5 => _5.isMagicEden]) &&
1059
+ ! _optionalChain$g([window, 'optionalAccess', _6 => _6.okxwallet])
1060
1060
  )
1061
1061
  };}
1062
1062
 
1063
1063
  getProvider() {
1064
- return _optionalChain$f([window, 'optionalAccess', _7 => _7.phantom, 'optionalAccess', _8 => _8.ethereum]) || window.ethereum
1064
+ return _optionalChain$g([window, 'optionalAccess', _7 => _7.phantom, 'optionalAccess', _8 => _8.ethereum]) || window.ethereum
1065
1065
  }
1066
1066
  } PhantomEVM.__initStatic(); PhantomEVM.__initStatic2();
1067
1067
 
1068
- 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; }
1068
+ 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; }
1069
1069
  class PhantomSVM extends WindowSolana {
1070
1070
 
1071
1071
  static __initStatic() {this.info = {
@@ -1079,20 +1079,20 @@
1079
1079
  return (
1080
1080
  window.phantom &&
1081
1081
  !window.glow &&
1082
- !_optionalChain$e([window, 'optionalAccess', _8 => _8.solana, 'optionalAccess', _9 => _9.isGlow]) &&
1083
- !_optionalChain$e([window, 'optionalAccess', _10 => _10.solana, 'optionalAccess', _11 => _11.isExodus]) &&
1084
- ! _optionalChain$e([window, 'optionalAccess', _12 => _12.ethereum, 'optionalAccess', _13 => _13.isMagicEden]) &&
1085
- ! _optionalChain$e([window, 'optionalAccess', _14 => _14.okxwallet]) &&
1082
+ !_optionalChain$f([window, 'optionalAccess', _8 => _8.solana, 'optionalAccess', _9 => _9.isGlow]) &&
1083
+ !_optionalChain$f([window, 'optionalAccess', _10 => _10.solana, 'optionalAccess', _11 => _11.isExodus]) &&
1084
+ ! _optionalChain$f([window, 'optionalAccess', _12 => _12.ethereum, 'optionalAccess', _13 => _13.isMagicEden]) &&
1085
+ ! _optionalChain$f([window, 'optionalAccess', _14 => _14.okxwallet]) &&
1086
1086
  !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])
1087
1087
  )
1088
1088
  };}
1089
1089
 
1090
1090
  getProvider() {
1091
- return _optionalChain$e([window, 'optionalAccess', _15 => _15.phantom, 'optionalAccess', _16 => _16.solana]) || window.solana
1091
+ return _optionalChain$f([window, 'optionalAccess', _15 => _15.phantom, 'optionalAccess', _16 => _16.solana]) || window.solana
1092
1092
  }
1093
1093
  } PhantomSVM.__initStatic(); PhantomSVM.__initStatic2();
1094
1094
 
1095
- 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; }
1095
+ 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; }
1096
1096
  class Rabby extends WindowEthereum {
1097
1097
 
1098
1098
  static __initStatic() {this.info = {
@@ -1103,12 +1103,12 @@
1103
1103
 
1104
1104
  static __initStatic2() {this.isAvailable = async()=>{
1105
1105
  return(
1106
- _optionalChain$d([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isRabby])
1106
+ _optionalChain$e([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isRabby])
1107
1107
  )
1108
1108
  };}
1109
1109
  } Rabby.__initStatic(); Rabby.__initStatic2();
1110
1110
 
1111
- 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; }
1111
+ 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; }
1112
1112
  class Rainbow extends WindowEthereum {
1113
1113
 
1114
1114
  static __initStatic() {this.info = {
@@ -1119,24 +1119,24 @@
1119
1119
 
1120
1120
  static __initStatic2() {this.getEip6963Provider = ()=>{
1121
1121
  return window['_eip6963Providers'] ? Object.values(window['_eip6963Providers']).find((provider)=>{
1122
- return _optionalChain$c([provider, 'optionalAccess', _4 => _4.isRainbow])
1122
+ return _optionalChain$d([provider, 'optionalAccess', _4 => _4.isRainbow])
1123
1123
  }) : undefined
1124
1124
  };}
1125
1125
 
1126
1126
  static __initStatic3() {this.isAvailable = async()=>{
1127
1127
  return(
1128
1128
  Rainbow.getEip6963Provider() ||
1129
- _optionalChain$c([window, 'optionalAccess', _5 => _5.rainbow, 'optionalAccess', _6 => _6.isRainbow])
1129
+ _optionalChain$d([window, 'optionalAccess', _5 => _5.rainbow, 'optionalAccess', _6 => _6.isRainbow])
1130
1130
  )
1131
1131
  };}
1132
1132
 
1133
1133
  getProvider() {
1134
- return Rainbow.getEip6963Provider() || _optionalChain$c([window, 'optionalAccess', _7 => _7.rainbow])
1134
+ return Rainbow.getEip6963Provider() || _optionalChain$d([window, 'optionalAccess', _7 => _7.rainbow])
1135
1135
  }
1136
1136
 
1137
1137
  } Rainbow.__initStatic(); Rainbow.__initStatic2(); Rainbow.__initStatic3();
1138
1138
 
1139
- 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; }
1139
+ 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; }
1140
1140
 
1141
1141
 
1142
1142
  const KEY$1 = '_DePayWeb3WalletsConnectedSolanaMobileWalletInstance';
@@ -1227,8 +1227,8 @@
1227
1227
  await solanaWeb3_js.transact(
1228
1228
  async (wallet) => {
1229
1229
  await this.authorize(wallet);
1230
- if(_optionalChain$b([options, 'optionalAccess', _ => _.name])) { localStorage[KEY$1+'_name'] = this.name = options.name; }
1231
- if(_optionalChain$b([options, 'optionalAccess', _2 => _2.logo])) { localStorage[KEY$1+'_logo'] = this.logo = options.logo; }
1230
+ if(_optionalChain$c([options, 'optionalAccess', _ => _.name])) { localStorage[KEY$1+'_name'] = this.name = options.name; }
1231
+ if(_optionalChain$c([options, 'optionalAccess', _2 => _2.logo])) { localStorage[KEY$1+'_logo'] = this.logo = options.logo; }
1232
1232
  }
1233
1233
  );
1234
1234
  return this._account
@@ -1287,7 +1287,7 @@
1287
1287
  }
1288
1288
  } SolanaMobileWalletAdapter.__initStatic(); SolanaMobileWalletAdapter.__initStatic2();
1289
1289
 
1290
- 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; }
1290
+ 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; }
1291
1291
  class Solflare extends WindowSolana {
1292
1292
 
1293
1293
  static __initStatic() {this.info = {
@@ -1298,7 +1298,7 @@
1298
1298
 
1299
1299
  static __initStatic2() {this.isAvailable = async()=>{
1300
1300
  return (
1301
- _optionalChain$a([window, 'optionalAccess', _2 => _2.solflare]) &&
1301
+ _optionalChain$b([window, 'optionalAccess', _2 => _2.solflare]) &&
1302
1302
  window.solflare.isSolflare
1303
1303
  )
1304
1304
  };}
@@ -1308,7 +1308,7 @@
1308
1308
  _sendTransaction(transaction) { return this.getProvider().signTransaction(transaction) }
1309
1309
  } Solflare.__initStatic(); Solflare.__initStatic2();
1310
1310
 
1311
- 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; }
1311
+ 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; }
1312
1312
  class TokenPocket extends WindowEthereum {
1313
1313
 
1314
1314
  static __initStatic() {this.info = {
@@ -1319,12 +1319,12 @@
1319
1319
 
1320
1320
  static __initStatic2() {this.isAvailable = async()=>{
1321
1321
  return (
1322
- _optionalChain$9([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isTokenPocket])
1322
+ _optionalChain$a([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isTokenPocket])
1323
1323
  )
1324
1324
  };}
1325
1325
  } TokenPocket.__initStatic(); TokenPocket.__initStatic2();
1326
1326
 
1327
- 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; }
1327
+ 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; }
1328
1328
  class TrustEVM extends WindowEthereum {
1329
1329
 
1330
1330
  static __initStatic() {this.info = {
@@ -1336,13 +1336,13 @@
1336
1336
 
1337
1337
  static __initStatic2() {this.isAvailable = async()=>{
1338
1338
  return (
1339
- (_optionalChain$8([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isTrust]) || _optionalChain$8([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isTrustWallet])) &&
1339
+ (_optionalChain$9([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isTrust]) || _optionalChain$9([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isTrustWallet])) &&
1340
1340
  Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!Debug)(?!TrustWallet)(?!MetaMask)(?!PocketUniverse)(?!RevokeCash)/)).length == 1
1341
1341
  )
1342
1342
  };}
1343
1343
  } TrustEVM.__initStatic(); TrustEVM.__initStatic2();
1344
1344
 
1345
- 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; }
1345
+ 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; }
1346
1346
  class TrustSVM extends WindowSolana {
1347
1347
 
1348
1348
  static __initStatic() {this.info = {
@@ -1353,11 +1353,11 @@
1353
1353
  };}
1354
1354
 
1355
1355
  static __initStatic2() {this.isAvailable = async()=>{
1356
- return _optionalChain$7([window, 'access', _3 => _3.solana, 'optionalAccess', _4 => _4.isTrustWallet])
1356
+ return _optionalChain$8([window, 'access', _3 => _3.solana, 'optionalAccess', _4 => _4.isTrustWallet])
1357
1357
  };}
1358
1358
  } TrustSVM.__initStatic(); TrustSVM.__initStatic2();
1359
1359
 
1360
- 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; }
1360
+ 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; }
1361
1361
  class Uniswap extends WindowEthereum {
1362
1362
 
1363
1363
  static __initStatic() {this.info = {
@@ -1368,19 +1368,19 @@
1368
1368
 
1369
1369
  static __initStatic2() {this.getEip6963Provider = ()=>{
1370
1370
  return window['_eip6963Providers'] ? Object.values(window['_eip6963Providers']).find((provider)=>{
1371
- return _optionalChain$6([provider, 'optionalAccess', _4 => _4.isUniswapWallet])
1371
+ return _optionalChain$7([provider, 'optionalAccess', _4 => _4.isUniswapWallet])
1372
1372
  }) : undefined
1373
1373
  };}
1374
1374
 
1375
1375
  static __initStatic3() {this.isAvailable = async()=>{
1376
1376
  return(
1377
1377
  Uniswap.getEip6963Provider() ||
1378
- _optionalChain$6([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isUniswapWallet])
1378
+ _optionalChain$7([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isUniswapWallet])
1379
1379
  )
1380
1380
  };}
1381
1381
 
1382
1382
  getProvider() {
1383
- return Uniswap.getEip6963Provider() || (_optionalChain$6([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isUniswapWallet]) && _optionalChain$6([window, 'optionalAccess', _9 => _9.ethereum]))
1383
+ return Uniswap.getEip6963Provider() || (_optionalChain$7([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isUniswapWallet]) && _optionalChain$7([window, 'optionalAccess', _9 => _9.ethereum]))
1384
1384
  }
1385
1385
  } Uniswap.__initStatic(); Uniswap.__initStatic2(); Uniswap.__initStatic3();
1386
1386
 
@@ -1485,7 +1485,7 @@
1485
1485
  }
1486
1486
  };
1487
1487
 
1488
- 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; }
1488
+ 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; }
1489
1489
 
1490
1490
  const sendTransaction$1 = async ({ transaction, wallet })=> {
1491
1491
  transaction = new Transaction(transaction);
@@ -1536,7 +1536,7 @@
1536
1536
  try {
1537
1537
  sentTransaction.wait(1).then(resolve).catch((error)=>{
1538
1538
  if(
1539
- (error && _optionalChain$5([error, 'optionalAccess', _ => _.stack, 'optionalAccess', _2 => _2.match, 'call', _3 => _3('JSON-RPC error')])) ||
1539
+ (error && _optionalChain$6([error, 'optionalAccess', _ => _.stack, 'optionalAccess', _2 => _2.match, 'call', _3 => _3('JSON-RPC error')])) ||
1540
1540
  (error && error.toString().match('undefined'))
1541
1541
  ) {
1542
1542
  setTimeout(()=>{
@@ -1550,7 +1550,7 @@
1550
1550
  });
1551
1551
  } catch (error) {
1552
1552
  if(
1553
- (error && _optionalChain$5([error, 'optionalAccess', _4 => _4.stack, 'optionalAccess', _5 => _5.match, 'call', _6 => _6('JSON-RPC error')])) ||
1553
+ (error && _optionalChain$6([error, 'optionalAccess', _4 => _4.stack, 'optionalAccess', _5 => _5.match, 'call', _6 => _6('JSON-RPC error')])) ||
1554
1554
  (error && error.toString().match('undefined'))
1555
1555
  ) {
1556
1556
  setTimeout(()=>{
@@ -1581,7 +1581,7 @@
1581
1581
  resolve(sentTransaction);
1582
1582
  } catch (error) {
1583
1583
  if(
1584
- (error && _optionalChain$5([error, 'optionalAccess', _7 => _7.stack, 'optionalAccess', _8 => _8.match, 'call', _9 => _9('JSON-RPC error')])) ||
1584
+ (error && _optionalChain$6([error, 'optionalAccess', _7 => _7.stack, 'optionalAccess', _8 => _8.match, 'call', _9 => _9('JSON-RPC error')])) ||
1585
1585
  (error && error.toString().match('undefined'))
1586
1586
  ) {
1587
1587
  setTimeout(()=>{
@@ -1623,8 +1623,8 @@
1623
1623
  to: transaction.to,
1624
1624
  value: transaction.value ? ethers.ethers.BigNumber.from(transaction.value.toString()).toHexString() : undefined,
1625
1625
  data: await transaction.getData(),
1626
- gas: _optionalChain$5([gas, 'optionalAccess', _10 => _10.toHexString, 'call', _11 => _11()]),
1627
- gasLimit: _optionalChain$5([gas, 'optionalAccess', _12 => _12.toHexString, 'call', _13 => _13()]),
1626
+ gas: _optionalChain$6([gas, 'optionalAccess', _10 => _10.toHexString, 'call', _11 => _11()]),
1627
+ gasLimit: _optionalChain$6([gas, 'optionalAccess', _12 => _12.toHexString, 'call', _13 => _13()]),
1628
1628
  gasPrice: gasPrice.toHexString(),
1629
1629
  nonce: ethers.ethers.utils.hexlify(transaction.nonce),
1630
1630
  }]
@@ -1651,16 +1651,16 @@
1651
1651
  to: transaction.to,
1652
1652
  value: transaction.value ? ethers.ethers.BigNumber.from(transaction.value.toString()).toHexString() : undefined,
1653
1653
  data: '0x0',
1654
- gas: _optionalChain$5([gas, 'optionalAccess', _14 => _14.toHexString, 'call', _15 => _15()]),
1655
- gasLimit: _optionalChain$5([gas, 'optionalAccess', _16 => _16.toHexString, 'call', _17 => _17()]),
1656
- gasPrice: _optionalChain$5([gasPrice, 'optionalAccess', _18 => _18.toHexString, 'call', _19 => _19()]),
1654
+ gas: _optionalChain$6([gas, 'optionalAccess', _14 => _14.toHexString, 'call', _15 => _15()]),
1655
+ gasLimit: _optionalChain$6([gas, 'optionalAccess', _16 => _16.toHexString, 'call', _17 => _17()]),
1656
+ gasPrice: _optionalChain$6([gasPrice, 'optionalAccess', _18 => _18.toHexString, 'call', _19 => _19()]),
1657
1657
  nonce: ethers.ethers.utils.hexlify(transaction.nonce)
1658
1658
  }]
1659
1659
  }
1660
1660
  }).catch((e)=>{console.log('ERROR', e);})
1661
1661
  };
1662
1662
 
1663
- 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; }
1663
+ 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; }
1664
1664
 
1665
1665
  const KEY = 'depay:wallets:wc2';
1666
1666
 
@@ -1713,7 +1713,7 @@
1713
1713
  optionalNamespaces['eip155'] = {
1714
1714
  chains: supported$1.evm.map((blockchain)=>`${Blockchains__default['default'][blockchain].namespace}:${Blockchains__default['default'][blockchain].networkId}`),
1715
1715
  };
1716
- if(_optionalChain$4([optionalNamespaces, 'optionalAccess', _ => _.eip155]) && _optionalChain$4([optionalNamespaces, 'optionalAccess', _2 => _2.eip155, 'optionalAccess', _3 => _3.chains, 'optionalAccess', _4 => _4.length])) {
1716
+ if(_optionalChain$5([optionalNamespaces, 'optionalAccess', _ => _.eip155]) && _optionalChain$5([optionalNamespaces, 'optionalAccess', _2 => _2.eip155, 'optionalAccess', _3 => _3.chains, 'optionalAccess', _4 => _4.length])) {
1717
1717
  optionalNamespaces['eip155'].methods = methods;
1718
1718
  optionalNamespaces['eip155'].events = events;
1719
1719
  }
@@ -1728,9 +1728,9 @@
1728
1728
  projectId: localStorage[KEY+":projectId"],
1729
1729
  metadata: {
1730
1730
  name: document.title || 'dApp',
1731
- description: _optionalChain$4([document, 'access', _5 => _5.querySelector, 'call', _6 => _6('meta[name="description"]'), 'optionalAccess', _7 => _7.getAttribute, 'call', _8 => _8('content')]) || document.title || 'dApp',
1731
+ description: _optionalChain$5([document, 'access', _5 => _5.querySelector, 'call', _6 => _6('meta[name="description"]'), 'optionalAccess', _7 => _7.getAttribute, 'call', _8 => _8('content')]) || document.title || 'dApp',
1732
1732
  url: location.href,
1733
- icons: [_optionalChain$4([document, 'access', _9 => _9.querySelector, 'call', _10 => _10("link[rel~='icon'], link[rel~='shortcut icon']"), 'optionalAccess', _11 => _11.href]) || `${location.origin}/favicon.ico`]
1733
+ icons: [_optionalChain$5([document, 'access', _9 => _9.querySelector, 'call', _10 => _10("link[rel~='icon'], link[rel~='shortcut icon']"), 'optionalAccess', _11 => _11.href]) || `${location.origin}/favicon.ico`]
1734
1734
  }
1735
1735
  });
1736
1736
  resolve(signClient);
@@ -1748,7 +1748,7 @@
1748
1748
  };}
1749
1749
 
1750
1750
  static __initStatic2() {this.isAvailable = async(options)=>{
1751
- return !! await getLastSession(_optionalChain$4([options, 'optionalAccess', _13 => _13.walletName]))
1751
+ return !! await getLastSession(_optionalChain$5([options, 'optionalAccess', _13 => _13.walletName]))
1752
1752
  };}
1753
1753
 
1754
1754
  constructor() {
@@ -1763,17 +1763,17 @@
1763
1763
  }
1764
1764
 
1765
1765
  async account() {
1766
- if(_optionalChain$4([this, 'access', _14 => _14.session, 'optionalAccess', _15 => _15.namespaces, 'optionalAccess', _16 => _16.eip155, 'optionalAccess', _17 => _17.accounts, 'optionalAccess', _18 => _18.length])) {
1766
+ if(_optionalChain$5([this, 'access', _14 => _14.session, 'optionalAccess', _15 => _15.namespaces, 'optionalAccess', _16 => _16.eip155, 'optionalAccess', _17 => _17.accounts, 'optionalAccess', _18 => _18.length])) {
1767
1767
  return this.session.namespaces.eip155.accounts[0].split(':')[2]
1768
1768
  }
1769
1769
  }
1770
1770
 
1771
1771
  async setSessionBlockchains() {
1772
- if(!this.session || (!_optionalChain$4([this, 'access', _19 => _19.session, 'optionalAccess', _20 => _20.namespaces, 'optionalAccess', _21 => _21.eip155]) && !_optionalChain$4([this, 'access', _22 => _22.session, 'optionalAccess', _23 => _23.optionalNamespaces, 'optionalAccess', _24 => _24.eip155]))) { return }
1772
+ if(!this.session || (!_optionalChain$5([this, 'access', _19 => _19.session, 'optionalAccess', _20 => _20.namespaces, 'optionalAccess', _21 => _21.eip155]) && !_optionalChain$5([this, 'access', _22 => _22.session, 'optionalAccess', _23 => _23.optionalNamespaces, 'optionalAccess', _24 => _24.eip155]))) { return }
1773
1773
  if(this.session.namespaces.eip155.chains) {
1774
- this.blockchains = this.session.namespaces.eip155.chains.map((chainIdentifier)=>_optionalChain$4([Blockchains__default['default'], 'access', _25 => _25.findByNetworkId, 'call', _26 => _26(chainIdentifier.split(':')[1]), 'optionalAccess', _27 => _27.name])).filter(Boolean);
1774
+ this.blockchains = this.session.namespaces.eip155.chains.map((chainIdentifier)=>_optionalChain$5([Blockchains__default['default'], 'access', _25 => _25.findByNetworkId, 'call', _26 => _26(chainIdentifier.split(':')[1]), 'optionalAccess', _27 => _27.name])).filter(Boolean);
1775
1775
  } else if(this.session.namespaces.eip155.accounts) {
1776
- this.blockchains = this.session.namespaces.eip155.accounts.map((accountIdentifier)=>_optionalChain$4([Blockchains__default['default'], 'access', _28 => _28.findByNetworkId, 'call', _29 => _29(accountIdentifier.split(':')[1]), 'optionalAccess', _30 => _30.name])).filter(Boolean);
1776
+ this.blockchains = this.session.namespaces.eip155.accounts.map((accountIdentifier)=>_optionalChain$5([Blockchains__default['default'], 'access', _28 => _28.findByNetworkId, 'call', _29 => _29(accountIdentifier.split(':')[1]), 'optionalAccess', _30 => _30.name])).filter(Boolean);
1777
1777
  }
1778
1778
  }
1779
1779
 
@@ -1783,13 +1783,13 @@
1783
1783
 
1784
1784
  try {
1785
1785
 
1786
- this.walletName = _optionalChain$4([options, 'optionalAccess', _31 => _31.name]);
1786
+ this.walletName = _optionalChain$5([options, 'optionalAccess', _31 => _31.name]);
1787
1787
 
1788
1788
  // delete localStorage[`wc@2:client:0.3//session`] // DELETE WC SESSIONS
1789
1789
  this.signClient = await getSignClient();
1790
1790
 
1791
1791
  this.signClient.on("session_delete", (session)=> {
1792
- if(_optionalChain$4([session, 'optionalAccess', _32 => _32.topic]) === _optionalChain$4([this, 'access', _33 => _33.session, 'optionalAccess', _34 => _34.topic])) {
1792
+ if(_optionalChain$5([session, 'optionalAccess', _32 => _32.topic]) === _optionalChain$5([this, 'access', _33 => _33.session, 'optionalAccess', _34 => _34.topic])) {
1793
1793
  localStorage[KEY+':name'] = undefined;
1794
1794
  localStorage[KEY+':logo'] = undefined;
1795
1795
  this.signClient = undefined;
@@ -1798,14 +1798,14 @@
1798
1798
  });
1799
1799
 
1800
1800
  this.signClient.on("session_update", async(session)=> {
1801
- if(_optionalChain$4([session, 'optionalAccess', _35 => _35.topic]) === _optionalChain$4([this, 'access', _36 => _36.session, 'optionalAccess', _37 => _37.topic])) {
1801
+ if(_optionalChain$5([session, 'optionalAccess', _35 => _35.topic]) === _optionalChain$5([this, 'access', _36 => _36.session, 'optionalAccess', _37 => _37.topic])) {
1802
1802
  this.session = this.signClient.session.get(session.topic);
1803
1803
  await this.setSessionBlockchains();
1804
1804
  }
1805
1805
  });
1806
1806
 
1807
1807
  this.signClient.on("session_event", (event)=> {
1808
- if(_optionalChain$4([event, 'optionalAccess', _38 => _38.topic]) === _optionalChain$4([this, 'access', _39 => _39.session, 'optionalAccess', _40 => _40.topic])) {}
1808
+ if(_optionalChain$5([event, 'optionalAccess', _38 => _38.topic]) === _optionalChain$5([this, 'access', _39 => _39.session, 'optionalAccess', _40 => _40.topic])) {}
1809
1809
  });
1810
1810
 
1811
1811
  const connectWallet = async()=>{
@@ -1816,24 +1816,24 @@
1816
1816
  await new Promise(resolve=>setTimeout(resolve, 500)); // to prevent race condition within WalletConnect
1817
1817
  };
1818
1818
 
1819
- const lastSession = _optionalChain$4([this, 'optionalAccess', _41 => _41.walletName, 'optionalAccess', _42 => _42.length]) ? await getLastSession(this.walletName) : undefined;
1819
+ const lastSession = _optionalChain$5([this, 'optionalAccess', _41 => _41.walletName, 'optionalAccess', _42 => _42.length]) ? await getLastSession(this.walletName) : undefined;
1820
1820
  if(lastSession) {
1821
1821
  this.session = lastSession;
1822
1822
  } else {
1823
1823
  await connectWallet();
1824
1824
  }
1825
1825
 
1826
- let meta = _optionalChain$4([this, 'access', _43 => _43.session, 'optionalAccess', _44 => _44.peer, 'optionalAccess', _45 => _45.metadata]);
1826
+ let meta = _optionalChain$5([this, 'access', _43 => _43.session, 'optionalAccess', _44 => _44.peer, 'optionalAccess', _45 => _45.metadata]);
1827
1827
  if(meta && meta.name) {
1828
1828
  this.name = meta.name;
1829
1829
  localStorage[KEY+':name'] = meta.name;
1830
- if(_optionalChain$4([meta, 'optionalAccess', _46 => _46.icons]) && meta.icons.length) {
1830
+ if(_optionalChain$5([meta, 'optionalAccess', _46 => _46.icons]) && meta.icons.length) {
1831
1831
  this.logo = meta.icons[0];
1832
1832
  localStorage[KEY+':logo'] = this.logo;
1833
1833
  }
1834
1834
  }
1835
- if(_optionalChain$4([options, 'optionalAccess', _47 => _47.name])) { localStorage[KEY+':name'] = this.name = options.name; }
1836
- if(_optionalChain$4([options, 'optionalAccess', _48 => _48.logo])) { localStorage[KEY+':logo'] = this.logo = options.logo; }
1835
+ if(_optionalChain$5([options, 'optionalAccess', _47 => _47.name])) { localStorage[KEY+':name'] = this.name = options.name; }
1836
+ if(_optionalChain$5([options, 'optionalAccess', _48 => _48.logo])) { localStorage[KEY+':logo'] = this.logo = options.logo; }
1837
1837
 
1838
1838
  await this.setSessionBlockchains();
1839
1839
 
@@ -1873,7 +1873,7 @@
1873
1873
  switch (event) {
1874
1874
  case 'account':
1875
1875
  internalCallback = async(event)=> {
1876
- if(_optionalChain$4([event, 'optionalAccess', _49 => _49.topic]) === _optionalChain$4([this, 'access', _50 => _50.session, 'optionalAccess', _51 => _51.topic]) && event.params.event.name === 'accountsChanged') {
1876
+ if(_optionalChain$5([event, 'optionalAccess', _49 => _49.topic]) === _optionalChain$5([this, 'access', _50 => _50.session, 'optionalAccess', _51 => _51.topic]) && event.params.event.name === 'accountsChanged') {
1877
1877
  callback(await this.account());
1878
1878
  }
1879
1879
  };
@@ -1933,7 +1933,7 @@
1933
1933
 
1934
1934
  WalletConnectV2.getConnectedInstance = getConnectedInstance$1;
1935
1935
 
1936
- 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; }
1936
+ 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; }
1937
1937
  const sendTransaction = async ({ transaction, wallet })=> {
1938
1938
  transaction = new Transaction(transaction);
1939
1939
  if((await wallet.connectedTo(transaction.blockchain)) == false) {
@@ -1985,7 +1985,7 @@
1985
1985
 
1986
1986
  sentTransaction.wait(1).then(resolve).catch((error)=>{
1987
1987
  if(
1988
- (error && _optionalChain$3([error, 'optionalAccess', _ => _.stack, 'optionalAccess', _2 => _2.match, 'call', _3 => _3('JSON-RPC error')])) ||
1988
+ (error && _optionalChain$4([error, 'optionalAccess', _ => _.stack, 'optionalAccess', _2 => _2.match, 'call', _3 => _3('JSON-RPC error')])) ||
1989
1989
  (error && error.toString().match('undefined'))
1990
1990
  ) {
1991
1991
  setTimeout(()=>{
@@ -1999,7 +1999,7 @@
1999
1999
  });
2000
2000
  } catch(error) {
2001
2001
  if(
2002
- (error && _optionalChain$3([error, 'optionalAccess', _4 => _4.stack, 'optionalAccess', _5 => _5.match, 'call', _6 => _6('JSON-RPC error')])) ||
2002
+ (error && _optionalChain$4([error, 'optionalAccess', _4 => _4.stack, 'optionalAccess', _5 => _5.match, 'call', _6 => _6('JSON-RPC error')])) ||
2003
2003
  (error && error.toString().match('undefined'))
2004
2004
  ) {
2005
2005
  setTimeout(()=>{
@@ -2044,7 +2044,7 @@
2044
2044
  })
2045
2045
  };
2046
2046
 
2047
- function _optionalChain$2(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; }
2047
+ 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; }
2048
2048
 
2049
2049
  const getConnectedInstance = ()=>{
2050
2050
  return window._connectedWalletLinkInstance
@@ -2098,10 +2098,10 @@
2098
2098
  let connect = (options && options.connect) ? options.connect : ({uri})=>{};
2099
2099
  await connect({ uri: this.connector.qrUrl });
2100
2100
 
2101
- _optionalChain$2([document, 'access', _ => _.querySelector, 'call', _2 => _2('.-cbwsdk-css-reset'), 'optionalAccess', _3 => _3.setAttribute, 'call', _4 => _4('style', 'display: none;')]);
2102
- _optionalChain$2([document, 'access', _5 => _5.querySelector, 'call', _6 => _6('.-cbwsdk-extension-dialog-container'), 'optionalAccess', _7 => _7.setAttribute, 'call', _8 => _8('style', 'display: none;')]);
2101
+ _optionalChain$3([document, 'access', _ => _.querySelector, 'call', _2 => _2('.-cbwsdk-css-reset'), 'optionalAccess', _3 => _3.setAttribute, 'call', _4 => _4('style', 'display: none;')]);
2102
+ _optionalChain$3([document, 'access', _5 => _5.querySelector, 'call', _6 => _6('.-cbwsdk-extension-dialog-container'), 'optionalAccess', _7 => _7.setAttribute, 'call', _8 => _8('style', 'display: none;')]);
2103
2103
  setTimeout(()=>{
2104
- if(_optionalChain$2([this, 'optionalAccess', _9 => _9.connector, 'optionalAccess', _10 => _10._relay, 'optionalAccess', _11 => _11.ui, 'optionalAccess', _12 => _12.linkFlow, 'optionalAccess', _13 => _13.isOpen])){
2104
+ if(_optionalChain$3([this, 'optionalAccess', _9 => _9.connector, 'optionalAccess', _10 => _10._relay, 'optionalAccess', _11 => _11.ui, 'optionalAccess', _12 => _12.linkFlow, 'optionalAccess', _13 => _13.isOpen])){
2105
2105
  this.connector._relay.ui.linkFlow.isOpen = false;
2106
2106
  }
2107
2107
  }, 10);
@@ -2225,24 +2225,370 @@
2225
2225
  WalletLink.getConnectedInstance = getConnectedInstance;
2226
2226
  WalletLink.setConnectedInstance = setConnectedInstance;
2227
2227
 
2228
+ function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain$2(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; }// https://github.com/worldcoin/minikit-js/blob/main/packages/core/helpers/siwe/siwe.ts
2229
+ const generateSiweMessage = (siweMessageData) => {
2230
+ let siweMessage = '';
2231
+
2232
+ if (siweMessageData.scheme) {
2233
+ siweMessage += `${siweMessageData.scheme}://${siweMessageData.domain} wants you to sign in with your Ethereum account:\n`;
2234
+ } else {
2235
+ siweMessage += `${siweMessageData.domain} wants you to sign in with your Ethereum account:\n`;
2236
+ }
2237
+
2238
+ // NOTE: This differs from the ERC-4361 spec where the address is required
2239
+ if (siweMessageData.address) {
2240
+ siweMessage += `${siweMessageData.address}\n`;
2241
+ } else {
2242
+ siweMessage += '{address}\n';
2243
+ }
2244
+ siweMessage += '\n';
2245
+
2246
+ if (siweMessageData.statement) {
2247
+ siweMessage += `${siweMessageData.statement}\n`;
2248
+ }
2249
+
2250
+ siweMessage += '\n';
2251
+
2252
+ siweMessage += `URI: ${siweMessageData.uri}\n`;
2253
+ siweMessage += `Version: ${siweMessageData.version}\n`;
2254
+ siweMessage += `Chain ID: ${siweMessageData.chain_id}\n`;
2255
+ siweMessage += `Nonce: ${siweMessageData.nonce}\n`;
2256
+ siweMessage += `Issued At: ${siweMessageData.issued_at}\n`;
2257
+
2258
+ if (siweMessageData.expiration_time) {
2259
+ siweMessage += `Expiration Time: ${siweMessageData.expiration_time}\n`;
2260
+ }
2261
+
2262
+ if (siweMessageData.not_before) {
2263
+ siweMessage += `Not Before: ${siweMessageData.not_before}\n`;
2264
+ }
2265
+
2266
+ if (siweMessageData.request_id) {
2267
+ siweMessage += `Request ID: ${siweMessageData.request_id}\n`;
2268
+ }
2269
+
2270
+ return siweMessage
2271
+ };
2272
+
2273
+ // https://github.com/worldcoin/minikit-js/blob/main/packages/core/helpers/transaction/validate-payload.ts
2274
+ const isValidHex = (str) => {
2275
+ return /^0x[0-9A-Fa-f]+$/.test(str)
2276
+ };
2277
+ const processTransactionPayload = (payload) => {
2278
+ // Handle primitives directly
2279
+ if (
2280
+ typeof payload === 'boolean' ||
2281
+ typeof payload === 'string' ||
2282
+ payload === null ||
2283
+ payload === undefined
2284
+ ) {
2285
+ return payload
2286
+ }
2287
+
2288
+ // Convert numbers to strings to prevent overflow issues
2289
+ if (typeof payload === 'number' || typeof payload === 'bigint') {
2290
+ return String(payload)
2291
+ }
2292
+
2293
+ // Handle arrays by processing each element
2294
+ if (Array.isArray(payload)) {
2295
+ return payload.map((value) => processTransactionPayload(value))
2296
+ }
2297
+
2298
+ // Handle objects
2299
+ if (typeof payload === 'object') {
2300
+ const result = { ...payload };
2301
+
2302
+ // Special handling for transaction value fields
2303
+ if ('value' in result && result.value !== undefined) {
2304
+ // Ensure it's a string
2305
+ if (typeof result.value !== 'string') {
2306
+ result.value = String(result.value);
2307
+ }
2308
+
2309
+ if (!isValidHex(result.value)) {
2310
+ console.error(
2311
+ 'Transaction value must be a valid hex string',
2312
+ result.value,
2313
+ );
2314
+ throw new Error(
2315
+ `Transaction value must be a valid hex string: ${result.value}`,
2316
+ )
2317
+ }
2318
+ }
2319
+
2320
+ // Process all object properties recursively
2321
+ for (const key in result) {
2322
+ if (Object.prototype.hasOwnProperty.call(result, key)) {
2323
+ result[key] = processTransactionPayload(result[key]);
2324
+ }
2325
+ }
2326
+
2327
+ return result
2328
+ }
2329
+
2330
+ // Fallback for any other types
2331
+ return payload
2332
+ };
2333
+
2334
+ // https://github.com/worldcoin/minikit-js/blob/main/packages/core/helpers/send-webview-event.ts
2335
+ const sendMiniKitEvent = function(payload) {
2336
+ if (window.webkit) {
2337
+ if (
2338
+ window.webkit.messageHandlers &&
2339
+ window.webkit.messageHandlers.minikit &&
2340
+ window.webkit.messageHandlers.minikit.postMessage
2341
+ ) {
2342
+ window.webkit.messageHandlers.minikit.postMessage(payload);
2343
+ }
2344
+ } else if (window.Android && window.Android.postMessage) {
2345
+ window.Android.postMessage(JSON.stringify(payload));
2346
+ }
2347
+ };
2348
+
2349
+ // https://github.com/worldcoin/minikit-js/blob/main/packages/core/types/commands.ts
2350
+ let Command = {
2351
+ "Verify": 'verify',
2352
+ "Pay": 'pay',
2353
+ "WalletAuth": 'wallet-auth',
2354
+ "SendTransaction": 'send-transaction',
2355
+ "SignMessage": 'sign-message',
2356
+ "SignTypedData": 'sign-typed-data',
2357
+ "ShareContacts": 'share-contacts',
2358
+ "RequestPermission": 'request-permission',
2359
+ "GetPermissions": 'get-permissions',
2360
+ "SendHapticFeedback": 'send-haptic-feedback',
2361
+ "ShareFiles": 'share-files',
2362
+ };
2363
+
2364
+ // https://github.com/worldcoin/minikit-js/blob/main/packages/core/types/responses.ts
2365
+ let ResponseEvent = {
2366
+ "MiniAppVerifyAction": "miniapp-verify-action",
2367
+ "MiniAppPayment": "miniapp-payment",
2368
+ "MiniAppWalletAuth": "miniapp-wallet-auth",
2369
+ "MiniAppSendTransaction": "miniapp-send-transaction",
2370
+ "MiniAppSignMessage": "miniapp-sign-message",
2371
+ "MiniAppSignTypedData": "miniapp-sign-typed-data",
2372
+ "MiniAppShareContacts": "miniapp-share-contacts",
2373
+ "MiniAppRequestPermission": "miniapp-request-permission",
2374
+ "MiniAppGetPermissions": "miniapp-get-permissions",
2375
+ "MiniAppSendHapticFeedback": "miniapp-send-haptic-feedback",
2376
+ "MiniAppShareFiles": "miniapp-share-files",
2377
+ };
2378
+
2379
+ // https://github.com/worldcoin/minikit-js/blob/main/packages/core/index.ts
2380
+ // https://github.com/worldcoin/minikit-js/blob/main/packages/core/minikit.ts
2381
+
2382
+ class MiniKit {
2383
+
2384
+ static __initStatic() {this.MINIKIT_VERSION = 1;}
2385
+
2386
+ static __initStatic2() {this.miniKitCommandVersion = {
2387
+ [Command.Verify]: 1,
2388
+ [Command.Pay]: 1,
2389
+ [Command.WalletAuth]: 1,
2390
+ [Command.SendTransaction]: 1,
2391
+ [Command.SignMessage]: 1,
2392
+ [Command.SignTypedData]: 1,
2393
+ [Command.ShareContacts]: 1,
2394
+ [Command.RequestPermission]: 1,
2395
+ [Command.GetPermissions]: 1,
2396
+ [Command.SendHapticFeedback]: 1,
2397
+ [Command.ShareFiles]: 1,
2398
+ };}
2399
+
2400
+ static __initStatic3() {this.listeners = {
2401
+ [ResponseEvent.MiniAppVerifyAction]: () => {},
2402
+ [ResponseEvent.MiniAppPayment]: () => {},
2403
+ [ResponseEvent.MiniAppWalletAuth]: () => {},
2404
+ [ResponseEvent.MiniAppSendTransaction]: () => {},
2405
+ [ResponseEvent.MiniAppSignMessage]: () => {},
2406
+ [ResponseEvent.MiniAppSignTypedData]: () => {},
2407
+ [ResponseEvent.MiniAppShareContacts]: () => {},
2408
+ [ResponseEvent.MiniAppRequestPermission]: () => {},
2409
+ [ResponseEvent.MiniAppGetPermissions]: () => {},
2410
+ [ResponseEvent.MiniAppSendHapticFeedback]: () => {},
2411
+ [ResponseEvent.MiniAppShareFiles]: () => {},
2412
+ };}
2413
+
2414
+ static __initStatic4() {this.appId = null;}
2415
+ static __initStatic5() {this.user = {};}
2416
+ static __initStatic6() {this.isReady = false;}
2417
+
2418
+ static install(appId) {
2419
+
2420
+ if (typeof window === "undefined" || Boolean(window.MiniKit)) {
2421
+ return {
2422
+ success: false,
2423
+ errorCode: 'already_installed',
2424
+ errorMessage: 'MiniKit is already installed.'
2425
+ }
2426
+ }
2427
+
2428
+ if (!appId) {
2429
+ console.warn("App ID not provided during install");
2430
+ } else {
2431
+ MiniKit.appId = appId;
2432
+ }
2433
+
2434
+ if (!window.WorldApp) {
2435
+ return {
2436
+ success: false,
2437
+ errorCode: 'outside_of_worldapp',
2438
+ errorMessage: 'MiniApp launched outside of WorldApp.'
2439
+ }
2440
+ }
2441
+
2442
+ // Set user properties
2443
+ MiniKit.user.optedIntoOptionalAnalytics = window.WorldApp.is_optional_analytics;
2444
+ MiniKit.user.deviceOS = window.WorldApp.device_os;
2445
+ MiniKit.user.worldAppVersion = window.WorldApp.world_app_version;
2446
+
2447
+ try {
2448
+ window.MiniKit = MiniKit;
2449
+ this.sendInit();
2450
+ } catch (error) {
2451
+ console.error(
2452
+ 'Failed to install MiniKit.',
2453
+ error
2454
+ );
2455
+
2456
+ return {
2457
+ success: false,
2458
+ errorCode: 'unknown',
2459
+ errorMessage: 'Failed to install MiniKit.'
2460
+ }
2461
+ }
2462
+
2463
+ MiniKit.isReady = true;
2464
+ return { success: true }
2465
+ }
2466
+
2467
+ static sendInit() {
2468
+ sendWebviewEvent({
2469
+ command: 'init',
2470
+ payload: { version: this.MINIKIT_VERSION },
2471
+ });
2472
+ }
2473
+
2474
+ static subscribe(event, handler) {
2475
+ if (event === ResponseEvent.MiniAppWalletAuth) {
2476
+ const originalHandler = handler;
2477
+ const wrappedHandler = async (payload) => {
2478
+ if (payload.status === 'success') {
2479
+ MiniKit.user.walletAddress = payload.address;
2480
+ }
2481
+ originalHandler(payload);
2482
+ };
2483
+ this.listeners[event] = wrappedHandler;
2484
+ } else if (event === ResponseEvent.MiniAppVerifyAction) {
2485
+ const originalHandler = handler;
2486
+ const wrappedHandler = (payload) => {
2487
+ originalHandler(payload);
2488
+ };
2489
+ this.listeners[event] = wrappedHandler;
2490
+ } else {
2491
+ this.listeners[event] = handler;
2492
+ }
2493
+ }
2494
+
2495
+ static unsubscribe(event) {
2496
+ delete this.listeners[event];
2497
+ }
2498
+
2499
+ static trigger(event, payload) {
2500
+ if (!this.listeners[event]) {
2501
+ console.error(
2502
+ `No handler for event ${event}, payload: ${JSON.stringify(payload)}`
2503
+ );
2504
+ return
2505
+ }
2506
+ this.listeners[event](payload);
2507
+ }
2508
+
2509
+ static __initStatic7() {this.commands = {
2510
+
2511
+ walletAuth: (payload) => {
2512
+
2513
+ let protocol = null;
2514
+ try {
2515
+ const currentUrl = new URL(window.location.href);
2516
+ protocol = currentUrl.protocol.split(':')[0];
2517
+ } catch (error) {
2518
+ console.error('Failed to get current URL', error);
2519
+ return null
2520
+ }
2521
+
2522
+ const siweMessage = generateSiweMessage({
2523
+ scheme: protocol,
2524
+ domain: window.location.host,
2525
+ statement: _nullishCoalesce(payload.statement, () => ( undefined)),
2526
+ uri: window.location.href,
2527
+ version: '1',
2528
+ chain_id: 480,
2529
+ nonce: payload.nonce,
2530
+ issued_at: new Date().toISOString(),
2531
+ expiration_time: _optionalChain$2([payload, 'access', _7 => _7.expirationTime, 'optionalAccess', _8 => _8.toISOString, 'call', _9 => _9()]),
2532
+ not_before: _optionalChain$2([payload, 'access', _10 => _10.notBefore, 'optionalAccess', _11 => _11.toISOString, 'call', _12 => _12()]),
2533
+ request_id: _nullishCoalesce(payload.requestId, () => ( undefined)),
2534
+ });
2535
+
2536
+ const walletAuthPayload = { siweMessage };
2537
+ sendMiniKitEvent({
2538
+ command: Command.WalletAuth,
2539
+ version: this.miniKitCommandVersion[Command.WalletAuth],
2540
+ payload: walletAuthPayload,
2541
+ });
2542
+
2543
+ return walletAuthPayload
2544
+ },
2545
+
2546
+ sendTransaction: (payload) => {
2547
+
2548
+ const validatedPayload = processTransactionPayload(payload);
2549
+
2550
+ sendMiniKitEvent({
2551
+ command: Command.SendTransaction,
2552
+ version: this.miniKitCommandVersion[Command.SendTransaction],
2553
+ payload: validatedPayload,
2554
+ });
2555
+
2556
+ return validatedPayload
2557
+ },
2558
+
2559
+ signMessage: (payload) => {
2560
+
2561
+ sendMiniKitEvent({
2562
+ command: Command.SignMessage,
2563
+ version: this.miniKitCommandVersion[Command.SignMessage],
2564
+ payload,
2565
+ });
2566
+
2567
+ return payload
2568
+ },
2569
+ };}
2570
+ } MiniKit.__initStatic(); MiniKit.__initStatic2(); MiniKit.__initStatic3(); MiniKit.__initStatic4(); MiniKit.__initStatic5(); MiniKit.__initStatic6(); MiniKit.__initStatic7();
2571
+
2228
2572
  function _optionalChain$1(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; }
2229
2573
 
2230
2574
  class WorldApp {
2231
2575
 
2232
- static __initStatic() {this.info = {
2576
+ static __initStatic() {this.MiniKit = MiniKit;}
2577
+
2578
+ static __initStatic2() {this.info = {
2233
2579
  name: 'World App',
2234
2580
  logo: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDMzIDMyIj4KICA8Zz4KICAgIDxnPgogICAgICA8cmVjdCBmaWxsPSIjMDAwMDAwIiB3aWR0aD0iMzMiIGhlaWdodD0iMzIiLz4KICAgIDwvZz4KICAgIDxnPgogICAgICA8cGF0aCBmaWxsPSIjRkZGRkZGIiBkPSJNMjQuNywxMi41Yy0uNS0xLjEtMS4xLTItMS45LTIuOHMtMS44LTEuNS0yLjgtMS45Yy0xLjEtLjUtMi4zLS43LTMuNS0uN3MtMi40LjItMy41LjdjLTEuMS41LTIsMS4xLTIuOCwxLjlzLTEuNSwxLjgtMS45LDIuOGMtLjUsMS4xLS43LDIuMy0uNywzLjVzLjIsMi40LjcsMy41LDEuMSwyLDEuOSwyLjhjLjguOCwxLjgsMS41LDIuOCwxLjksMS4xLjUsMi4zLjcsMy41LjdzMi40LS4yLDMuNS0uNywyLTEuMSwyLjgtMS45LDEuNS0xLjgsMS45LTIuOGMuNS0xLjEuNy0yLjMuNy0zLjVzLS4yLTIuNC0uNy0zLjVaTTEzLjUsMTUuMmMuNC0xLjQsMS43LTIuNSwzLjItMi41aDYuMmMuNC44LjcsMS42LjcsMi41aC0xMC4xWk0yMy43LDE2LjhjMCwuOS0uNCwxLjctLjcsMi41aC02LjJjLTEuNSwwLTIuOC0xLjEtMy4yLTIuNWgxMC4xWk0xMS40LDEwLjljMS40LTEuNCwzLjItMi4xLDUuMS0yLjFzMy44LjcsNS4xLDIuMWguMWMwLC4xLTUsLjEtNSwuMS0xLjMsMC0yLjYuNS0zLjUsMS41LS43LjctMS4yLDEuNy0xLjQsMi43aC0yLjVjLjItMS42LjktMy4xLDIuMS00LjNaTTE2LjUsMjMuMmMtMS45LDAtMy44LS43LTUuMS0yLjEtMS4yLTEuMi0xLjktMi43LTIuMS00LjNoMi41Yy4yLDEsLjcsMS45LDEuNCwyLjcuOS45LDIuMiwxLjUsMy41LDEuNWg1LS4xYy0xLjQsMS41LTMuMiwyLjItNS4xLDIuMloiLz4KICAgIDwvZz4KICA8L2c+Cjwvc3ZnPgo=",
2235
2581
  blockchains: ["worldchain"]
2236
2582
  };}
2237
2583
 
2238
- static __initStatic2() {this.isAvailable = async()=>{
2584
+ static __initStatic3() {this.isAvailable = async()=>{
2239
2585
  return Boolean(
2240
2586
  _optionalChain$1([window, 'optionalAccess', _2 => _2.WorldApp])
2241
2587
  )
2242
2588
  };}
2243
2589
 
2244
2590
  constructor () {
2245
- worldcoinPrecompiled.MiniKit.install();
2591
+ MiniKit.install();
2246
2592
  this.name = this.constructor.info.name;
2247
2593
  this.logo = this.constructor.info.logo;
2248
2594
  this.blockchains = this.constructor.info.blockchains;
@@ -2250,25 +2596,17 @@
2250
2596
  }
2251
2597
 
2252
2598
  sendTransaction(transaction) {
2253
- console.log('sendTransaction', transaction);
2254
2599
  transaction = new Transaction(transaction);
2255
- console.log('after transaction wrapping transaction.sent', transaction.sent);
2256
- console.log('after transaction wrapping transaction.succeeded', transaction.succeeded);
2257
- console.log('after transaction wrapping transaction.failed', transaction.failed);
2258
2600
 
2259
2601
  return new Promise(async(resolve, reject)=>{
2260
2602
  await transaction.prepare({ wallet: this });
2261
- console.log('after prepare transaction', transaction);
2262
2603
  transaction.nonce = (await this.transactionCount({ blockchain: 'worldchain', address: transaction.from })).toString();
2263
- console.log('after nonce transaction', transaction);
2604
+ transaction.fromBlock = await web3Client.request('worldchain://latestBlockNumber');
2264
2605
 
2265
- console.log('before MiniKit.subscribe');
2266
- worldcoinPrecompiled.MiniKit.subscribe(worldcoinPrecompiled.ResponseEvent.MiniAppSendTransaction, (payload)=> {
2267
- console.log('payload', payload);
2606
+ MiniKit.subscribe(ResponseEvent.MiniAppSendTransaction, (payload)=> {
2607
+ MiniKit.unsubscribe(ResponseEvent.MiniAppSendTransaction);
2268
2608
  if (payload.status == "success") {
2269
- console.log('before transaction.accepted', transaction);
2270
2609
  if (transaction.accepted) { transaction.accepted(); }
2271
- console.log('after transaction.accepted', transaction);
2272
2610
  this.fetchTransaction(transaction, payload).then((transactionHash)=>{
2273
2611
  if(transactionHash) {
2274
2612
  resolve(transaction);
@@ -2280,9 +2618,7 @@
2280
2618
  reject('Submitting transaction failed!');
2281
2619
  }
2282
2620
  });
2283
- console.log('after MiniKit.subscribe');
2284
-
2285
- console.log('before MiniKit.commands.sendTransaction', {
2621
+ MiniKit.commands.sendTransaction({
2286
2622
  transaction: [
2287
2623
  {
2288
2624
  address: transaction.to,
@@ -2293,70 +2629,107 @@
2293
2629
  ],
2294
2630
  permit2: [_optionalChain$1([transaction, 'access', _13 => _13.params, 'optionalAccess', _14 => _14.permit2])]
2295
2631
  });
2296
- worldcoinPrecompiled.MiniKit.commands.sendTransaction({
2297
- transaction: [
2298
- {
2299
- address: transaction.to,
2300
- abi: _optionalChain$1([transaction, 'access', _15 => _15.api, 'optionalAccess', _16 => _16.filter, 'call', _17 => _17((fragment)=>fragment.name === transaction.method && _optionalChain$1([fragment, 'optionalAccess', _18 => _18.inputs, 'optionalAccess', _19 => _19.length]) === _optionalChain$1([transaction, 'access', _20 => _20.params, 'optionalAccess', _21 => _21.args, 'optionalAccess', _22 => _22.length]))]),
2301
- functionName: transaction.method,
2302
- args: _optionalChain$1([transaction, 'access', _23 => _23.params, 'optionalAccess', _24 => _24.args])
2303
- },
2304
- ],
2305
- permit2: [_optionalChain$1([transaction, 'access', _25 => _25.params, 'optionalAccess', _26 => _26.permit2])]
2306
- });
2307
- console.log('after MiniKit.commands.sendTransaction');
2308
2632
  })
2309
2633
  }
2310
2634
 
2311
2635
  retryFetchTransaction(transaction, payload, attempt) {
2312
- console.log('Retry Fetch transaction', attempt);
2313
2636
  return new Promise((resolve, reject)=>{
2314
2637
  setTimeout(()=>{
2315
2638
  this.fetchTransaction(transaction, payload, attempt+1).then(resolve).catch(reject);
2316
- }, (attempt < 30 ? 500 : 1000));
2639
+ }, (attempt < 30 ? 500 : 2000));
2317
2640
  })
2318
2641
  }
2319
2642
 
2320
- fetchTransaction(transaction, payload, attempt = 1) {
2321
- return new Promise((resolve, reject)=>{
2322
- console.log('Before fetch');
2323
- fetch(`https://public.depay.com/transactions/worldchain/${payload.transaction_id}`, {
2643
+ pollTransactionIdFromWorldchain(payload) {
2644
+
2645
+ return new Promise((resolve)=>{
2646
+
2647
+ fetch(`https://public.depay.com/transactions/worldchain/${payload.transaction_id}?app_id=${payload.mini_app_id}`, {
2324
2648
  headers: { "Content-Type": "application/json" },
2325
2649
  }).then((response)=>{
2326
- console.log('After fetch', response);
2327
2650
  if(response.ok) {
2328
- console.log('Before json');
2329
2651
  response.json().then((transactionJSON)=>{
2330
- console.log('After json', transactionJSON);
2331
- if(_optionalChain$1([transactionJSON, 'optionalAccess', _27 => _27.external_id])) {
2332
- transaction.id = _optionalChain$1([transactionJSON, 'optionalAccess', _28 => _28.external_id]);
2333
- transaction.url = Blockchains__default['default']['worldchain'].explorerUrlFor({ transaction });
2334
- console.log('before transaction.sent', transaction.sent);
2335
- if (transaction.sent) { transaction.sent(transaction); }
2336
- console.log('Before provider');
2337
- web3Client.getProvider('worldchain').then((provider)=>{
2338
- console.log('After provider', provider);
2339
- console.log('Before wait transaction', transactionJSON.external_id);
2340
- provider.waitForTransaction(transactionJSON.external_id).then((receipt)=>{
2341
- console.log('After receipt', receipt);
2342
- if(receipt && receipt.status == 1) {
2343
- transaction._succeeded = true;
2344
- console.log('before transaction.succeeded', transaction.succeeded);
2345
- if (transaction.succeeded) { transaction.succeeded(transaction); }
2346
- resolve(transaction);
2347
- } else {
2348
- if (transaction.failed) { transaction.failed(transaction, 'Transaction failed'); }
2349
- }
2350
- }).catch(reject);
2351
- }).catch(reject);
2652
+ if(_optionalChain$1([transactionJSON, 'optionalAccess', _15 => _15.external_id])) {
2653
+ resolve(_optionalChain$1([transactionJSON, 'optionalAccess', _16 => _16.external_id]));
2352
2654
  } else {
2353
- this.retryFetchTransaction(transaction, payload, attempt).then(resolve).catch(reject);
2655
+ resolve();
2354
2656
  }
2355
- }).catch(()=>this.retryFetchTransaction(transaction, payload, attempt).then(resolve).catch(reject));
2657
+ }).catch(()=>resolve());
2658
+ } else {
2659
+ resolve();
2660
+ }
2661
+ }).catch((error)=>{
2662
+ console.log('CATCH ERROR', error);
2663
+ resolve();
2664
+ });
2665
+ })
2666
+ }
2667
+
2668
+ pollEventForUserOp(transaction, payload) {
2669
+
2670
+ return new Promise((resolve)=>{
2671
+
2672
+ web3Client.rpcRequest({
2673
+ blockchain: 'worldchain',
2674
+ method: "eth_getLogs",
2675
+ params: [
2676
+ {
2677
+ "fromBlock": ethers.ethers.utils.hexValue(transaction.fromBlock),
2678
+ "toBlock": "latest",
2679
+ "address": "0x0000000071727De22E5E9d8BAf0edAc6f37da032", // entry point
2680
+ "topics": [
2681
+ "0x49628fd1471006c1482da88028e9ce4dbb080b815c9b0344d39e5a8e6ec1419f",
2682
+ payload.userOpHash
2683
+ ]
2684
+ }
2685
+ ]
2686
+ }).then((responseData)=>{
2687
+ if(responseData && responseData instanceof Array) {
2688
+ let event = responseData.find((event)=>{
2689
+ return(!event.removed)
2690
+ });
2691
+ if(event && event.transactionHash) {
2692
+ return resolve(event.transactionHash)
2693
+ }
2694
+ }
2695
+ resolve();
2696
+ }).catch(()=>resolve());
2697
+ })
2698
+ }
2699
+
2700
+
2701
+
2702
+ fetchTransaction(transaction, payload, attempt = 1) {
2703
+ return new Promise((resolve, reject)=>{
2704
+
2705
+ Promise.all([
2706
+ this.pollTransactionIdFromWorldchain(payload),
2707
+ this.pollEventForUserOp(transaction, payload),
2708
+ ]).then((results)=>{
2709
+ let transactionHash = results ? results.filter(Boolean)[0] : undefined;
2710
+ if(transactionHash) {
2711
+ transaction.id = transactionHash;
2712
+ transaction.url = Blockchains__default['default']['worldchain'].explorerUrlFor({ transaction });
2713
+ if (transaction.sent) { transaction.sent(transaction); }
2714
+ web3Client.getProvider('worldchain').then((provider)=>{
2715
+ provider.waitForTransaction(transactionHash).then((receipt)=>{
2716
+ if(receipt && receipt.status == 1) {
2717
+ transaction._succeeded = true;
2718
+ if (transaction.succeeded) { transaction.succeeded(transaction); }
2719
+ resolve(transaction);
2720
+ } else {
2721
+ if (transaction.failed) { transaction.failed(transaction, 'Transaction failed'); }
2722
+ reject(transaction);
2723
+ }
2724
+ }).catch(reject);
2725
+ }).catch(reject);
2356
2726
  } else {
2357
2727
  this.retryFetchTransaction(transaction, payload, attempt).then(resolve).catch(reject);
2358
2728
  }
2359
- }).catch(()=>this.retryFetchTransaction(transaction, payload, attempt).then(resolve).catch(reject));
2729
+ }).catch((error)=>{
2730
+ console.log('CATCH ERROR!', error);
2731
+ this.retryFetchTransaction(transaction, payload, attempt).then(resolve).catch(reject);
2732
+ });
2360
2733
  })
2361
2734
  }
2362
2735
 
@@ -2366,37 +2739,33 @@
2366
2739
 
2367
2740
  async account() {
2368
2741
  if(!this.getProvider()) { return undefined }
2369
- return worldcoinPrecompiled.MiniKit.walletAddress
2742
+ return this.walletAddress()
2743
+ }
2744
+
2745
+ walletAddress() {
2746
+ return (_optionalChain$1([window, 'access', _17 => _17.MiniKit, 'access', _18 => _18.user, 'optionalAccess', _19 => _19.walletAddress]) || _optionalChain$1([MiniKit, 'access', _20 => _20.user, 'optionalAccess', _21 => _21.walletAddress]))
2370
2747
  }
2371
2748
 
2372
2749
  connect() {
2373
2750
 
2374
2751
  return new Promise( async(resolve, reject)=>{
2375
2752
 
2376
- if(worldcoinPrecompiled.MiniKit.walletAddress) {
2377
- return resolve(worldcoinPrecompiled.MiniKit.walletAddress)
2753
+ if(this.walletAddress()) {
2754
+ return resolve(this.walletAddress())
2378
2755
  }
2379
2756
 
2380
- worldcoinPrecompiled.MiniKit.subscribe(worldcoinPrecompiled.ResponseEvent.MiniAppWalletAuth, async (payload) => {
2757
+ MiniKit.subscribe(ResponseEvent.MiniAppWalletAuth, async (payload) => {
2758
+ MiniKit.unsubscribe(ResponseEvent.MiniAppWalletAuth);
2381
2759
  if (payload.status === "error") {
2382
2760
  return reject(payload.message)
2383
2761
  } else {
2384
- return resolve(worldcoinPrecompiled.MiniKit.walletAddress || _optionalChain$1([window, 'access', _29 => _29.MiniKit, 'optionalAccess', _30 => _30.walletAddress]))
2762
+ return resolve(this.walletAddress())
2385
2763
  }
2386
2764
  });
2387
2765
 
2388
- const { finalPayload } = await worldcoinPrecompiled.MiniKit.commandsAsync.walletAuth({
2389
- nonce: crypto.randomUUID().replace(/-/g, ""),
2390
- expirationTime: new Date(new Date().getTime() + 7 * 24 * 60 * 60 * 1000),
2391
- notBefore: new Date(new Date().getTime() - 24 * 60 * 60 * 1000),
2392
- statement: "Connect World App (v17.6.2)"
2766
+ MiniKit.commands.walletAuth({
2767
+ nonce: crypto.randomUUID().replace(/-/g, "")
2393
2768
  });
2394
-
2395
- if(finalPayload.status == 'error') {
2396
- return reject(finalPayload.message)
2397
- } else {
2398
- return resolve(worldcoinPrecompiled.MiniKit.walletAddress || _optionalChain$1([window, 'access', _31 => _31.MiniKit, 'optionalAccess', _32 => _32.walletAddress]))
2399
- }
2400
2769
  })
2401
2770
  }
2402
2771
 
@@ -2425,12 +2794,12 @@
2425
2794
  }
2426
2795
 
2427
2796
  async transactionCount({ blockchain, address }) {
2428
- if(!_optionalChain$1([worldcoinPrecompiled.MiniKit, 'optionalAccess', _33 => _33.walletAddress])) {
2797
+ if(!this.walletAddress()) {
2429
2798
  return 0
2430
2799
  } else {
2431
2800
  return web3Client.request({
2432
2801
  blockchain: 'worldchain',
2433
- address: _optionalChain$1([worldcoinPrecompiled.MiniKit, 'optionalAccess', _34 => _34.walletAddress]),
2802
+ address: this.walletAddress(),
2434
2803
  api: [{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"}],"name":"AddedOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"approvedHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"ApproveHash","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"handler","type":"address"}],"name":"ChangedFallbackHandler","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"guard","type":"address"}],"name":"ChangedGuard","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"threshold","type":"uint256"}],"name":"ChangedThreshold","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"module","type":"address"}],"name":"DisabledModule","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"module","type":"address"}],"name":"EnabledModule","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"txHash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"payment","type":"uint256"}],"name":"ExecutionFailure","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"module","type":"address"}],"name":"ExecutionFromModuleFailure","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"module","type":"address"}],"name":"ExecutionFromModuleSuccess","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"txHash","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"payment","type":"uint256"}],"name":"ExecutionSuccess","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"}],"name":"RemovedOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"SafeReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"initiator","type":"address"},{"indexed":false,"internalType":"address[]","name":"owners","type":"address[]"},{"indexed":false,"internalType":"uint256","name":"threshold","type":"uint256"},{"indexed":false,"internalType":"address","name":"initializer","type":"address"},{"indexed":false,"internalType":"address","name":"fallbackHandler","type":"address"}],"name":"SafeSetup","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"msgHash","type":"bytes32"}],"name":"SignMsg","type":"event"},{"stateMutability":"nonpayable","type":"fallback"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"addOwnerWithThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hashToApprove","type":"bytes32"}],"name":"approveHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"approvedHashes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"changeThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"dataHash","type":"bytes32"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"signatures","type":"bytes"},{"internalType":"uint256","name":"requiredSignatures","type":"uint256"}],"name":"checkNSignatures","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"dataHash","type":"bytes32"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"signatures","type":"bytes"}],"name":"checkSignatures","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"prevModule","type":"address"},{"internalType":"address","name":"module","type":"address"}],"name":"disableModule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"domainSeparator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"module","type":"address"}],"name":"enableModule","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"enumEnum.Operation","name":"operation","type":"uint8"},{"internalType":"uint256","name":"safeTxGas","type":"uint256"},{"internalType":"uint256","name":"baseGas","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"address","name":"gasToken","type":"address"},{"internalType":"address","name":"refundReceiver","type":"address"},{"internalType":"uint256","name":"_nonce","type":"uint256"}],"name":"encodeTransactionData","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"enumEnum.Operation","name":"operation","type":"uint8"},{"internalType":"uint256","name":"safeTxGas","type":"uint256"},{"internalType":"uint256","name":"baseGas","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"address","name":"gasToken","type":"address"},{"internalType":"addresspayable","name":"refundReceiver","type":"address"},{"internalType":"bytes","name":"signatures","type":"bytes"}],"name":"execTransaction","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"enumEnum.Operation","name":"operation","type":"uint8"}],"name":"execTransactionFromModule","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"enumEnum.Operation","name":"operation","type":"uint8"}],"name":"execTransactionFromModuleReturnData","outputs":[{"internalType":"bool","name":"success","type":"bool"},{"internalType":"bytes","name":"returnData","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"start","type":"address"},{"internalType":"uint256","name":"pageSize","type":"uint256"}],"name":"getModulesPaginated","outputs":[{"internalType":"address[]","name":"array","type":"address[]"},{"internalType":"address","name":"next","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOwners","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"offset","type":"uint256"},{"internalType":"uint256","name":"length","type":"uint256"}],"name":"getStorageAt","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"enumEnum.Operation","name":"operation","type":"uint8"},{"internalType":"uint256","name":"safeTxGas","type":"uint256"},{"internalType":"uint256","name":"baseGas","type":"uint256"},{"internalType":"uint256","name":"gasPrice","type":"uint256"},{"internalType":"address","name":"gasToken","type":"address"},{"internalType":"address","name":"refundReceiver","type":"address"},{"internalType":"uint256","name":"_nonce","type":"uint256"}],"name":"getTransactionHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"module","type":"address"}],"name":"isModuleEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"prevOwner","type":"address"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"_threshold","type":"uint256"}],"name":"removeOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"enumEnum.Operation","name":"operation","type":"uint8"}],"name":"requiredTxGas","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"handler","type":"address"}],"name":"setFallbackHandler","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"guard","type":"address"}],"name":"setGuard","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_owners","type":"address[]"},{"internalType":"uint256","name":"_threshold","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"address","name":"fallbackHandler","type":"address"},{"internalType":"address","name":"paymentToken","type":"address"},{"internalType":"uint256","name":"payment","type":"uint256"},{"internalType":"addresspayable","name":"paymentReceiver","type":"address"}],"name":"setup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"signedMessages","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"targetContract","type":"address"},{"internalType":"bytes","name":"calldataPayload","type":"bytes"}],"name":"simulateAndRevert","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"prevOwner","type":"address"},{"internalType":"address","name":"oldOwner","type":"address"},{"internalType":"address","name":"newOwner","type":"address"}],"name":"swapOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}],
2435
2804
  method: 'nonce'
2436
2805
  })
@@ -2441,19 +2810,18 @@
2441
2810
 
2442
2811
  return new Promise((resolve, reject)=>{
2443
2812
 
2444
- worldcoinPrecompiled.MiniKit.subscribe(worldcoinPrecompiled.ResponseEvent.MiniAppSignMessage, async (payload) => {
2813
+ MiniKit.subscribe(ResponseEvent.MiniAppSignMessage, async (payload) => {
2814
+ MiniKit.unsubscribe(ResponseEvent.MiniAppSignMessage);
2445
2815
  if (payload.status === "error") {
2446
2816
  return reject()
2447
2817
  } else {
2448
2818
  return resolve(payload.signature)
2449
2819
  }
2450
2820
  });
2451
-
2452
- worldcoinPrecompiled.MiniKit.commands.signMessage({ message });
2453
-
2821
+ MiniKit.commands.signMessage({ message });
2454
2822
  })
2455
2823
  }
2456
- } WorldApp.__initStatic(); WorldApp.__initStatic2();
2824
+ } WorldApp.__initStatic(); WorldApp.__initStatic2(); WorldApp.__initStatic3();
2457
2825
 
2458
2826
  var wallets = {
2459
2827
  MetaMask,