@depay/web3-wallets-evm 16.0.5 → 16.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.evm.js +58 -42
- package/dist/esm/index.js +58 -42
- package/dist/esm/index.solana.js +58 -42
- package/dist/umd/index.evm.js +58 -42
- package/dist/umd/index.js +58 -42
- package/dist/umd/index.solana.js +58 -42
- package/package.json +1 -1
package/dist/esm/index.solana.js
CHANGED
|
@@ -6,7 +6,7 @@ import { WalletConnectClient } from '@depay/walletconnect-v1';
|
|
|
6
6
|
import { SignClient } from '@depay/walletconnect-v2';
|
|
7
7
|
import { CoinbaseWalletSDK } from '@depay/coinbase-wallet-sdk';
|
|
8
8
|
|
|
9
|
-
function _optionalChain$
|
|
9
|
+
function _optionalChain$n(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
10
10
|
class Transaction {
|
|
11
11
|
|
|
12
12
|
constructor({
|
|
@@ -31,7 +31,7 @@ class Transaction {
|
|
|
31
31
|
this.to = (to && to.match('0x')) ? ethers.utils.getAddress(to) : to;
|
|
32
32
|
|
|
33
33
|
// optional
|
|
34
|
-
this.value = _optionalChain$
|
|
34
|
+
this.value = _optionalChain$n([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
|
|
35
35
|
this.api = api;
|
|
36
36
|
this.method = method;
|
|
37
37
|
this.params = params;
|
|
@@ -71,7 +71,7 @@ class Transaction {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
getParamType(param) {
|
|
74
|
-
if(_optionalChain$
|
|
74
|
+
if(_optionalChain$n([param, 'optionalAccess', _5 => _5.components, 'optionalAccess', _6 => _6.length])) {
|
|
75
75
|
return `(${param.components.map((param)=>this.getParamType(param)).join(',')})`
|
|
76
76
|
} else {
|
|
77
77
|
return param.type
|
|
@@ -144,7 +144,7 @@ class Transaction {
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
function _optionalChain$
|
|
147
|
+
function _optionalChain$m(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
148
148
|
|
|
149
149
|
const POLL_SPEED = 500; // 0.5 seconds
|
|
150
150
|
const MAX_POLLS = 240; // 120 seconds
|
|
@@ -165,14 +165,14 @@ const sendTransaction$4 = async ({ transaction, wallet })=> {
|
|
|
165
165
|
|
|
166
166
|
const provider = await getProvider$3(transaction.blockchain);
|
|
167
167
|
const { value } = await provider.getSignatureStatus(signature);
|
|
168
|
-
const confirmationStatus = _optionalChain$
|
|
168
|
+
const confirmationStatus = _optionalChain$m([value, 'optionalAccess', _ => _.confirmationStatus]);
|
|
169
169
|
if(confirmationStatus) {
|
|
170
170
|
const hasReachedSufficientCommitment = confirmationStatus === 'confirmed' || confirmationStatus === 'finalized';
|
|
171
171
|
if (hasReachedSufficientCommitment) {
|
|
172
172
|
if(value.err) {
|
|
173
173
|
transaction._failed = true;
|
|
174
174
|
const confirmedTransaction = await provider.getConfirmedTransaction(signature);
|
|
175
|
-
const failedReason = _optionalChain$
|
|
175
|
+
const failedReason = _optionalChain$m([confirmedTransaction, 'optionalAccess', _2 => _2.meta, 'optionalAccess', _3 => _3.logMessages]) ? confirmedTransaction.meta.logMessages[confirmedTransaction.meta.logMessages.length - 1] : null;
|
|
176
176
|
if(transaction.failed) transaction.failed(transaction, failedReason);
|
|
177
177
|
} else {
|
|
178
178
|
transaction._succeeded = true;
|
|
@@ -263,7 +263,7 @@ let supported$2 = ['solana'];
|
|
|
263
263
|
supported$2.evm = [];
|
|
264
264
|
supported$2.solana = ['solana'];
|
|
265
265
|
|
|
266
|
-
function _optionalChain$
|
|
266
|
+
function _optionalChain$l(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
267
267
|
class WindowSolana {
|
|
268
268
|
|
|
269
269
|
static __initStatic() {this.info = {
|
|
@@ -274,9 +274,12 @@ class WindowSolana {
|
|
|
274
274
|
|
|
275
275
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
276
276
|
return (
|
|
277
|
-
_optionalChain$
|
|
278
|
-
|
|
277
|
+
_optionalChain$l([window, 'optionalAccess', _2 => _2.solana]) &&
|
|
278
|
+
// not Phantom
|
|
279
|
+
!(window.phantom && !window.glow && !window.solana.isGlow && !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])) &&
|
|
280
|
+
// not Coin98
|
|
279
281
|
!window.coin98 &&
|
|
282
|
+
// not Glow
|
|
280
283
|
!window.solana.isGlow
|
|
281
284
|
)
|
|
282
285
|
};}
|
|
@@ -324,7 +327,7 @@ class WindowSolana {
|
|
|
324
327
|
let internalCallback;
|
|
325
328
|
switch (event) {
|
|
326
329
|
case 'account':
|
|
327
|
-
internalCallback = (publicKey) => callback(_optionalChain$
|
|
330
|
+
internalCallback = (publicKey) => callback(_optionalChain$l([publicKey, 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]));
|
|
328
331
|
this.getProvider().on('accountChanged', internalCallback);
|
|
329
332
|
break
|
|
330
333
|
}
|
|
@@ -1213,7 +1216,7 @@ const request = async function (url, options) {
|
|
|
1213
1216
|
})
|
|
1214
1217
|
};
|
|
1215
1218
|
|
|
1216
|
-
function _optionalChain$
|
|
1219
|
+
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; }
|
|
1217
1220
|
class Backpack extends WindowSolana {
|
|
1218
1221
|
|
|
1219
1222
|
static __initStatic() {this.info = {
|
|
@@ -1224,7 +1227,7 @@ class Backpack extends WindowSolana {
|
|
|
1224
1227
|
|
|
1225
1228
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
1226
1229
|
return (
|
|
1227
|
-
_optionalChain$
|
|
1230
|
+
_optionalChain$k([window, 'optionalAccess', _2 => _2.backpack]) &&
|
|
1228
1231
|
window.backpack.isBackpack
|
|
1229
1232
|
)
|
|
1230
1233
|
};}
|
|
@@ -1319,7 +1322,7 @@ const submitSimpleTransfer$3 = ({ transaction, signer })=>{
|
|
|
1319
1322
|
})
|
|
1320
1323
|
};
|
|
1321
1324
|
|
|
1322
|
-
function _optionalChain$
|
|
1325
|
+
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; }
|
|
1323
1326
|
class WindowEthereum {
|
|
1324
1327
|
|
|
1325
1328
|
static __initStatic() {this.info = {
|
|
@@ -1330,18 +1333,27 @@ class WindowEthereum {
|
|
|
1330
1333
|
|
|
1331
1334
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
1332
1335
|
return (
|
|
1333
|
-
_optionalChain$
|
|
1334
|
-
|
|
1335
|
-
!_optionalChain$
|
|
1336
|
-
|
|
1337
|
-
!_optionalChain$
|
|
1338
|
-
|
|
1339
|
-
!_optionalChain$
|
|
1340
|
-
|
|
1341
|
-
!_optionalChain$
|
|
1342
|
-
|
|
1343
|
-
!_optionalChain$
|
|
1344
|
-
|
|
1336
|
+
_optionalChain$j([window, 'optionalAccess', _25 => _25.ethereum]) &&
|
|
1337
|
+
// not MetaMask
|
|
1338
|
+
!(_optionalChain$j([window, 'optionalAccess', _26 => _26.ethereum, 'optionalAccess', _27 => _27.isMetaMask]) && Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1) &&
|
|
1339
|
+
// not Coin98
|
|
1340
|
+
!_optionalChain$j([window, 'optionalAccess', _28 => _28.coin98]) &&
|
|
1341
|
+
// not Trust Wallet
|
|
1342
|
+
!(_optionalChain$j([window, 'optionalAccess', _29 => _29.ethereum, 'optionalAccess', _30 => _30.isTrust]) || _optionalChain$j([window, 'optionalAccess', _31 => _31.ethereum, 'optionalAccess', _32 => _32.isTrustWallet])) &&
|
|
1343
|
+
// not crypto.com
|
|
1344
|
+
!_optionalChain$j([window, 'optionalAccess', _33 => _33.ethereum, 'optionalAccess', _34 => _34.isDeficonnectProvider]) &&
|
|
1345
|
+
// not HyperPay
|
|
1346
|
+
!_optionalChain$j([window, 'optionalAccess', _35 => _35.ethereum, 'optionalAccess', _36 => _36.isHyperPay]) &&
|
|
1347
|
+
// not Phantom
|
|
1348
|
+
!(window.phantom && !window.glow && !_optionalChain$j([window, 'optionalAccess', _37 => _37.solana, 'optionalAccess', _38 => _38.isGlow]) && !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])) &&
|
|
1349
|
+
// not Rabby
|
|
1350
|
+
!_optionalChain$j([window, 'optionalAccess', _39 => _39.ethereum, 'optionalAccess', _40 => _40.isRabby]) &&
|
|
1351
|
+
// not Backpack
|
|
1352
|
+
!_optionalChain$j([window, 'optionalAccess', _41 => _41.backpack, 'optionalAccess', _42 => _42.isBackpack]) &&
|
|
1353
|
+
// not TokenPocket
|
|
1354
|
+
!_optionalChain$j([window, 'optionalAccess', _43 => _43.ethereum, 'optionalAccess', _44 => _44.isTokenPocket]) &&
|
|
1355
|
+
// not Coinbase
|
|
1356
|
+
!(_optionalChain$j([window, 'optionalAccess', _45 => _45.ethereum, 'optionalAccess', _46 => _46.isCoinbaseWallet]) || _optionalChain$j([window, 'optionalAccess', _47 => _47.ethereum, 'optionalAccess', _48 => _48.isWalletLink]))
|
|
1345
1357
|
)
|
|
1346
1358
|
};}
|
|
1347
1359
|
|
|
@@ -1467,7 +1479,7 @@ class WindowEthereum {
|
|
|
1467
1479
|
}
|
|
1468
1480
|
} WindowEthereum.__initStatic(); WindowEthereum.__initStatic2();
|
|
1469
1481
|
|
|
1470
|
-
function _optionalChain$
|
|
1482
|
+
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; }
|
|
1471
1483
|
class Binance extends WindowEthereum {
|
|
1472
1484
|
|
|
1473
1485
|
static __initStatic() {this.info = {
|
|
@@ -1477,7 +1489,7 @@ class Binance extends WindowEthereum {
|
|
|
1477
1489
|
};}
|
|
1478
1490
|
|
|
1479
1491
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
1480
|
-
return _optionalChain$
|
|
1492
|
+
return _optionalChain$i([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
|
|
1481
1493
|
!window.coin98
|
|
1482
1494
|
};}
|
|
1483
1495
|
|
|
@@ -1485,7 +1497,7 @@ class Binance extends WindowEthereum {
|
|
|
1485
1497
|
|
|
1486
1498
|
} Binance.__initStatic(); Binance.__initStatic2();
|
|
1487
1499
|
|
|
1488
|
-
function _optionalChain$
|
|
1500
|
+
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; }
|
|
1489
1501
|
class Brave extends WindowEthereum {
|
|
1490
1502
|
|
|
1491
1503
|
static __initStatic() {this.info = {
|
|
@@ -1494,10 +1506,10 @@ class Brave extends WindowEthereum {
|
|
|
1494
1506
|
blockchains: supported$2.evm
|
|
1495
1507
|
};}
|
|
1496
1508
|
|
|
1497
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
1509
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$h([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
|
|
1498
1510
|
} Brave.__initStatic(); Brave.__initStatic2();
|
|
1499
1511
|
|
|
1500
|
-
function _optionalChain$
|
|
1512
|
+
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; }
|
|
1501
1513
|
class Coin98 extends WindowEthereum {
|
|
1502
1514
|
|
|
1503
1515
|
static __initStatic() {this.info = {
|
|
@@ -1506,10 +1518,10 @@ class Coin98 extends WindowEthereum {
|
|
|
1506
1518
|
blockchains: supported$2.evm
|
|
1507
1519
|
};}
|
|
1508
1520
|
|
|
1509
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
1521
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$g([window, 'optionalAccess', _2 => _2.coin98]) };}
|
|
1510
1522
|
} Coin98.__initStatic(); Coin98.__initStatic2();
|
|
1511
1523
|
|
|
1512
|
-
function _optionalChain$
|
|
1524
|
+
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; }
|
|
1513
1525
|
class Coinbase extends WindowEthereum {
|
|
1514
1526
|
|
|
1515
1527
|
static __initStatic() {this.info = {
|
|
@@ -1518,10 +1530,10 @@ class Coinbase extends WindowEthereum {
|
|
|
1518
1530
|
blockchains: supported$2.evm
|
|
1519
1531
|
};}
|
|
1520
1532
|
|
|
1521
|
-
static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$
|
|
1533
|
+
static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$f([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isCoinbaseWallet]) || _optionalChain$f([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isWalletLink])) };}
|
|
1522
1534
|
} Coinbase.__initStatic(); Coinbase.__initStatic2();
|
|
1523
1535
|
|
|
1524
|
-
function _optionalChain$
|
|
1536
|
+
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; }
|
|
1525
1537
|
class CryptoCom extends WindowEthereum {
|
|
1526
1538
|
|
|
1527
1539
|
static __initStatic() {this.info = {
|
|
@@ -1530,7 +1542,7 @@ class CryptoCom extends WindowEthereum {
|
|
|
1530
1542
|
blockchains: supported$2.evm
|
|
1531
1543
|
};}
|
|
1532
1544
|
|
|
1533
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
1545
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$e([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
|
|
1534
1546
|
} CryptoCom.__initStatic(); CryptoCom.__initStatic2();
|
|
1535
1547
|
|
|
1536
1548
|
class Glow extends WindowSolana {
|
|
@@ -1549,7 +1561,7 @@ class Glow extends WindowSolana {
|
|
|
1549
1561
|
};}
|
|
1550
1562
|
} Glow.__initStatic(); Glow.__initStatic2();
|
|
1551
1563
|
|
|
1552
|
-
function _optionalChain$
|
|
1564
|
+
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; }
|
|
1553
1565
|
class HyperPay extends WindowEthereum {
|
|
1554
1566
|
|
|
1555
1567
|
static __initStatic() {this.info = {
|
|
@@ -1558,10 +1570,10 @@ class HyperPay extends WindowEthereum {
|
|
|
1558
1570
|
blockchains: supported$2.evm
|
|
1559
1571
|
};}
|
|
1560
1572
|
|
|
1561
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
1573
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$d([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
|
|
1562
1574
|
} HyperPay.__initStatic(); HyperPay.__initStatic2();
|
|
1563
1575
|
|
|
1564
|
-
function _optionalChain$
|
|
1576
|
+
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; }
|
|
1565
1577
|
class MetaMask extends WindowEthereum {
|
|
1566
1578
|
|
|
1567
1579
|
static __initStatic() {this.info = {
|
|
@@ -1572,13 +1584,13 @@ class MetaMask extends WindowEthereum {
|
|
|
1572
1584
|
|
|
1573
1585
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
1574
1586
|
return(
|
|
1575
|
-
_optionalChain$
|
|
1587
|
+
_optionalChain$c([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) &&
|
|
1576
1588
|
Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1
|
|
1577
1589
|
)
|
|
1578
1590
|
};}
|
|
1579
1591
|
} MetaMask.__initStatic(); MetaMask.__initStatic2();
|
|
1580
1592
|
|
|
1581
|
-
function _optionalChain$
|
|
1593
|
+
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; }
|
|
1582
1594
|
class Opera extends WindowEthereum {
|
|
1583
1595
|
|
|
1584
1596
|
static __initStatic() {this.info = {
|
|
@@ -1587,9 +1599,10 @@ class Opera extends WindowEthereum {
|
|
|
1587
1599
|
blockchains: supported$2.evm
|
|
1588
1600
|
};}
|
|
1589
1601
|
|
|
1590
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
1602
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$b([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
|
|
1591
1603
|
} Opera.__initStatic(); Opera.__initStatic2();
|
|
1592
1604
|
|
|
1605
|
+
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; }
|
|
1593
1606
|
class Phantom extends WindowSolana {
|
|
1594
1607
|
|
|
1595
1608
|
static __initStatic() {this.info = {
|
|
@@ -1600,7 +1613,10 @@ class Phantom extends WindowSolana {
|
|
|
1600
1613
|
|
|
1601
1614
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
1602
1615
|
return (
|
|
1603
|
-
window.phantom &&
|
|
1616
|
+
window.phantom &&
|
|
1617
|
+
!window.glow &&
|
|
1618
|
+
!_optionalChain$a([window, 'optionalAccess', _3 => _3.solana, 'optionalAccess', _4 => _4.isGlow]) &&
|
|
1619
|
+
!['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])
|
|
1604
1620
|
)
|
|
1605
1621
|
};}
|
|
1606
1622
|
} Phantom.__initStatic(); Phantom.__initStatic2();
|
package/dist/umd/index.evm.js
CHANGED
|
@@ -42138,7 +42138,7 @@
|
|
|
42138
42138
|
lib.vec;
|
|
42139
42139
|
lib.vecU8;
|
|
42140
42140
|
|
|
42141
|
-
function _optionalChain$
|
|
42141
|
+
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; }
|
|
42142
42142
|
class Transaction {
|
|
42143
42143
|
|
|
42144
42144
|
constructor({
|
|
@@ -42163,7 +42163,7 @@
|
|
|
42163
42163
|
this.to = (to && to.match('0x')) ? ethers.ethers.utils.getAddress(to) : to;
|
|
42164
42164
|
|
|
42165
42165
|
// optional
|
|
42166
|
-
this.value = _optionalChain$
|
|
42166
|
+
this.value = _optionalChain$n([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
|
|
42167
42167
|
this.api = api;
|
|
42168
42168
|
this.method = method;
|
|
42169
42169
|
this.params = params;
|
|
@@ -42203,7 +42203,7 @@
|
|
|
42203
42203
|
}
|
|
42204
42204
|
|
|
42205
42205
|
getParamType(param) {
|
|
42206
|
-
if(_optionalChain$
|
|
42206
|
+
if(_optionalChain$n([param, 'optionalAccess', _5 => _5.components, 'optionalAccess', _6 => _6.length])) {
|
|
42207
42207
|
return `(${param.components.map((param)=>this.getParamType(param)).join(',')})`
|
|
42208
42208
|
} else {
|
|
42209
42209
|
return param.type
|
|
@@ -42276,7 +42276,7 @@
|
|
|
42276
42276
|
}
|
|
42277
42277
|
}
|
|
42278
42278
|
|
|
42279
|
-
function _optionalChain$
|
|
42279
|
+
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; }
|
|
42280
42280
|
|
|
42281
42281
|
const POLL_SPEED = 500; // 0.5 seconds
|
|
42282
42282
|
const MAX_POLLS = 240; // 120 seconds
|
|
@@ -42297,14 +42297,14 @@
|
|
|
42297
42297
|
|
|
42298
42298
|
const provider = await web3ClientEvm.getProvider(transaction.blockchain);
|
|
42299
42299
|
const { value } = await provider.getSignatureStatus(signature);
|
|
42300
|
-
const confirmationStatus = _optionalChain$
|
|
42300
|
+
const confirmationStatus = _optionalChain$m([value, 'optionalAccess', _ => _.confirmationStatus]);
|
|
42301
42301
|
if(confirmationStatus) {
|
|
42302
42302
|
const hasReachedSufficientCommitment = confirmationStatus === 'confirmed' || confirmationStatus === 'finalized';
|
|
42303
42303
|
if (hasReachedSufficientCommitment) {
|
|
42304
42304
|
if(value.err) {
|
|
42305
42305
|
transaction._failed = true;
|
|
42306
42306
|
const confirmedTransaction = await provider.getConfirmedTransaction(signature);
|
|
42307
|
-
const failedReason = _optionalChain$
|
|
42307
|
+
const failedReason = _optionalChain$m([confirmedTransaction, 'optionalAccess', _2 => _2.meta, 'optionalAccess', _3 => _3.logMessages]) ? confirmedTransaction.meta.logMessages[confirmedTransaction.meta.logMessages.length - 1] : null;
|
|
42308
42308
|
if(transaction.failed) transaction.failed(transaction, failedReason);
|
|
42309
42309
|
} else {
|
|
42310
42310
|
transaction._succeeded = true;
|
|
@@ -42395,7 +42395,7 @@
|
|
|
42395
42395
|
supported$2.evm = ['ethereum', 'bsc', 'polygon', 'fantom', 'arbitrum', 'avalanche', 'gnosis', 'optimism'];
|
|
42396
42396
|
supported$2.solana = [];
|
|
42397
42397
|
|
|
42398
|
-
function _optionalChain$
|
|
42398
|
+
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; }
|
|
42399
42399
|
class WindowSolana {
|
|
42400
42400
|
|
|
42401
42401
|
static __initStatic() {this.info = {
|
|
@@ -42406,9 +42406,12 @@
|
|
|
42406
42406
|
|
|
42407
42407
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
42408
42408
|
return (
|
|
42409
|
-
_optionalChain$
|
|
42410
|
-
|
|
42409
|
+
_optionalChain$l([window, 'optionalAccess', _2 => _2.solana]) &&
|
|
42410
|
+
// not Phantom
|
|
42411
|
+
!(window.phantom && !window.glow && !window.solana.isGlow && !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])) &&
|
|
42412
|
+
// not Coin98
|
|
42411
42413
|
!window.coin98 &&
|
|
42414
|
+
// not Glow
|
|
42412
42415
|
!window.solana.isGlow
|
|
42413
42416
|
)
|
|
42414
42417
|
};}
|
|
@@ -42456,7 +42459,7 @@
|
|
|
42456
42459
|
let internalCallback;
|
|
42457
42460
|
switch (event) {
|
|
42458
42461
|
case 'account':
|
|
42459
|
-
internalCallback = (publicKey) => callback(_optionalChain$
|
|
42462
|
+
internalCallback = (publicKey) => callback(_optionalChain$l([publicKey, 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]));
|
|
42460
42463
|
this.getProvider().on('accountChanged', internalCallback);
|
|
42461
42464
|
break
|
|
42462
42465
|
}
|
|
@@ -43345,7 +43348,7 @@
|
|
|
43345
43348
|
})
|
|
43346
43349
|
};
|
|
43347
43350
|
|
|
43348
|
-
function _optionalChain$
|
|
43351
|
+
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; }
|
|
43349
43352
|
class Backpack extends WindowSolana {
|
|
43350
43353
|
|
|
43351
43354
|
static __initStatic() {this.info = {
|
|
@@ -43356,7 +43359,7 @@
|
|
|
43356
43359
|
|
|
43357
43360
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43358
43361
|
return (
|
|
43359
|
-
_optionalChain$
|
|
43362
|
+
_optionalChain$k([window, 'optionalAccess', _2 => _2.backpack]) &&
|
|
43360
43363
|
window.backpack.isBackpack
|
|
43361
43364
|
)
|
|
43362
43365
|
};}
|
|
@@ -43451,7 +43454,7 @@
|
|
|
43451
43454
|
})
|
|
43452
43455
|
};
|
|
43453
43456
|
|
|
43454
|
-
function _optionalChain$
|
|
43457
|
+
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; }
|
|
43455
43458
|
class WindowEthereum {
|
|
43456
43459
|
|
|
43457
43460
|
static __initStatic() {this.info = {
|
|
@@ -43462,18 +43465,27 @@
|
|
|
43462
43465
|
|
|
43463
43466
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43464
43467
|
return (
|
|
43465
|
-
_optionalChain$
|
|
43466
|
-
|
|
43467
|
-
!_optionalChain$
|
|
43468
|
-
|
|
43469
|
-
!_optionalChain$
|
|
43470
|
-
|
|
43471
|
-
!_optionalChain$
|
|
43472
|
-
|
|
43473
|
-
!_optionalChain$
|
|
43474
|
-
|
|
43475
|
-
!_optionalChain$
|
|
43476
|
-
|
|
43468
|
+
_optionalChain$j([window, 'optionalAccess', _25 => _25.ethereum]) &&
|
|
43469
|
+
// not MetaMask
|
|
43470
|
+
!(_optionalChain$j([window, 'optionalAccess', _26 => _26.ethereum, 'optionalAccess', _27 => _27.isMetaMask]) && Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1) &&
|
|
43471
|
+
// not Coin98
|
|
43472
|
+
!_optionalChain$j([window, 'optionalAccess', _28 => _28.coin98]) &&
|
|
43473
|
+
// not Trust Wallet
|
|
43474
|
+
!(_optionalChain$j([window, 'optionalAccess', _29 => _29.ethereum, 'optionalAccess', _30 => _30.isTrust]) || _optionalChain$j([window, 'optionalAccess', _31 => _31.ethereum, 'optionalAccess', _32 => _32.isTrustWallet])) &&
|
|
43475
|
+
// not crypto.com
|
|
43476
|
+
!_optionalChain$j([window, 'optionalAccess', _33 => _33.ethereum, 'optionalAccess', _34 => _34.isDeficonnectProvider]) &&
|
|
43477
|
+
// not HyperPay
|
|
43478
|
+
!_optionalChain$j([window, 'optionalAccess', _35 => _35.ethereum, 'optionalAccess', _36 => _36.isHyperPay]) &&
|
|
43479
|
+
// not Phantom
|
|
43480
|
+
!(window.phantom && !window.glow && !_optionalChain$j([window, 'optionalAccess', _37 => _37.solana, 'optionalAccess', _38 => _38.isGlow]) && !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])) &&
|
|
43481
|
+
// not Rabby
|
|
43482
|
+
!_optionalChain$j([window, 'optionalAccess', _39 => _39.ethereum, 'optionalAccess', _40 => _40.isRabby]) &&
|
|
43483
|
+
// not Backpack
|
|
43484
|
+
!_optionalChain$j([window, 'optionalAccess', _41 => _41.backpack, 'optionalAccess', _42 => _42.isBackpack]) &&
|
|
43485
|
+
// not TokenPocket
|
|
43486
|
+
!_optionalChain$j([window, 'optionalAccess', _43 => _43.ethereum, 'optionalAccess', _44 => _44.isTokenPocket]) &&
|
|
43487
|
+
// not Coinbase
|
|
43488
|
+
!(_optionalChain$j([window, 'optionalAccess', _45 => _45.ethereum, 'optionalAccess', _46 => _46.isCoinbaseWallet]) || _optionalChain$j([window, 'optionalAccess', _47 => _47.ethereum, 'optionalAccess', _48 => _48.isWalletLink]))
|
|
43477
43489
|
)
|
|
43478
43490
|
};}
|
|
43479
43491
|
|
|
@@ -43599,7 +43611,7 @@
|
|
|
43599
43611
|
}
|
|
43600
43612
|
} WindowEthereum.__initStatic(); WindowEthereum.__initStatic2();
|
|
43601
43613
|
|
|
43602
|
-
function _optionalChain$
|
|
43614
|
+
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; }
|
|
43603
43615
|
class Binance extends WindowEthereum {
|
|
43604
43616
|
|
|
43605
43617
|
static __initStatic() {this.info = {
|
|
@@ -43609,7 +43621,7 @@
|
|
|
43609
43621
|
};}
|
|
43610
43622
|
|
|
43611
43623
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43612
|
-
return _optionalChain$
|
|
43624
|
+
return _optionalChain$i([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
|
|
43613
43625
|
!window.coin98
|
|
43614
43626
|
};}
|
|
43615
43627
|
|
|
@@ -43617,7 +43629,7 @@
|
|
|
43617
43629
|
|
|
43618
43630
|
} Binance.__initStatic(); Binance.__initStatic2();
|
|
43619
43631
|
|
|
43620
|
-
function _optionalChain$
|
|
43632
|
+
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; }
|
|
43621
43633
|
class Brave extends WindowEthereum {
|
|
43622
43634
|
|
|
43623
43635
|
static __initStatic() {this.info = {
|
|
@@ -43626,10 +43638,10 @@
|
|
|
43626
43638
|
blockchains: supported$2.evm
|
|
43627
43639
|
};}
|
|
43628
43640
|
|
|
43629
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
43641
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$h([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
|
|
43630
43642
|
} Brave.__initStatic(); Brave.__initStatic2();
|
|
43631
43643
|
|
|
43632
|
-
function _optionalChain$
|
|
43644
|
+
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; }
|
|
43633
43645
|
class Coin98 extends WindowEthereum {
|
|
43634
43646
|
|
|
43635
43647
|
static __initStatic() {this.info = {
|
|
@@ -43638,10 +43650,10 @@
|
|
|
43638
43650
|
blockchains: supported$2.evm
|
|
43639
43651
|
};}
|
|
43640
43652
|
|
|
43641
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
43653
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$g([window, 'optionalAccess', _2 => _2.coin98]) };}
|
|
43642
43654
|
} Coin98.__initStatic(); Coin98.__initStatic2();
|
|
43643
43655
|
|
|
43644
|
-
function _optionalChain$
|
|
43656
|
+
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; }
|
|
43645
43657
|
class Coinbase extends WindowEthereum {
|
|
43646
43658
|
|
|
43647
43659
|
static __initStatic() {this.info = {
|
|
@@ -43650,10 +43662,10 @@
|
|
|
43650
43662
|
blockchains: supported$2.evm
|
|
43651
43663
|
};}
|
|
43652
43664
|
|
|
43653
|
-
static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$
|
|
43665
|
+
static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$f([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isCoinbaseWallet]) || _optionalChain$f([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isWalletLink])) };}
|
|
43654
43666
|
} Coinbase.__initStatic(); Coinbase.__initStatic2();
|
|
43655
43667
|
|
|
43656
|
-
function _optionalChain$
|
|
43668
|
+
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; }
|
|
43657
43669
|
class CryptoCom extends WindowEthereum {
|
|
43658
43670
|
|
|
43659
43671
|
static __initStatic() {this.info = {
|
|
@@ -43662,7 +43674,7 @@
|
|
|
43662
43674
|
blockchains: supported$2.evm
|
|
43663
43675
|
};}
|
|
43664
43676
|
|
|
43665
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
43677
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$e([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
|
|
43666
43678
|
} CryptoCom.__initStatic(); CryptoCom.__initStatic2();
|
|
43667
43679
|
|
|
43668
43680
|
class Glow extends WindowSolana {
|
|
@@ -43681,7 +43693,7 @@
|
|
|
43681
43693
|
};}
|
|
43682
43694
|
} Glow.__initStatic(); Glow.__initStatic2();
|
|
43683
43695
|
|
|
43684
|
-
function _optionalChain$
|
|
43696
|
+
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; }
|
|
43685
43697
|
class HyperPay extends WindowEthereum {
|
|
43686
43698
|
|
|
43687
43699
|
static __initStatic() {this.info = {
|
|
@@ -43690,10 +43702,10 @@
|
|
|
43690
43702
|
blockchains: supported$2.evm
|
|
43691
43703
|
};}
|
|
43692
43704
|
|
|
43693
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
43705
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$d([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
|
|
43694
43706
|
} HyperPay.__initStatic(); HyperPay.__initStatic2();
|
|
43695
43707
|
|
|
43696
|
-
function _optionalChain$
|
|
43708
|
+
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; }
|
|
43697
43709
|
class MetaMask extends WindowEthereum {
|
|
43698
43710
|
|
|
43699
43711
|
static __initStatic() {this.info = {
|
|
@@ -43704,13 +43716,13 @@
|
|
|
43704
43716
|
|
|
43705
43717
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43706
43718
|
return(
|
|
43707
|
-
_optionalChain$
|
|
43719
|
+
_optionalChain$c([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) &&
|
|
43708
43720
|
Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1
|
|
43709
43721
|
)
|
|
43710
43722
|
};}
|
|
43711
43723
|
} MetaMask.__initStatic(); MetaMask.__initStatic2();
|
|
43712
43724
|
|
|
43713
|
-
function _optionalChain$
|
|
43725
|
+
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; }
|
|
43714
43726
|
class Opera extends WindowEthereum {
|
|
43715
43727
|
|
|
43716
43728
|
static __initStatic() {this.info = {
|
|
@@ -43719,9 +43731,10 @@
|
|
|
43719
43731
|
blockchains: supported$2.evm
|
|
43720
43732
|
};}
|
|
43721
43733
|
|
|
43722
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
43734
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$b([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
|
|
43723
43735
|
} Opera.__initStatic(); Opera.__initStatic2();
|
|
43724
43736
|
|
|
43737
|
+
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; }
|
|
43725
43738
|
class Phantom extends WindowSolana {
|
|
43726
43739
|
|
|
43727
43740
|
static __initStatic() {this.info = {
|
|
@@ -43732,7 +43745,10 @@
|
|
|
43732
43745
|
|
|
43733
43746
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43734
43747
|
return (
|
|
43735
|
-
window.phantom &&
|
|
43748
|
+
window.phantom &&
|
|
43749
|
+
!window.glow &&
|
|
43750
|
+
!_optionalChain$a([window, 'optionalAccess', _3 => _3.solana, 'optionalAccess', _4 => _4.isGlow]) &&
|
|
43751
|
+
!['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])
|
|
43736
43752
|
)
|
|
43737
43753
|
};}
|
|
43738
43754
|
} Phantom.__initStatic(); Phantom.__initStatic2();
|