@depay/web3-wallets-evm 16.0.5 → 16.0.7
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 +93 -42
- package/dist/esm/index.js +93 -42
- package/dist/esm/index.solana.js +93 -42
- package/dist/umd/index.evm.js +93 -42
- package/dist/umd/index.js +93 -42
- package/dist/umd/index.solana.js +93 -42
- package/package.json +1 -1
package/dist/esm/index.evm.js
CHANGED
|
@@ -42135,7 +42135,7 @@ lib.u8;
|
|
|
42135
42135
|
lib.vec;
|
|
42136
42136
|
lib.vecU8;
|
|
42137
42137
|
|
|
42138
|
-
function _optionalChain$
|
|
42138
|
+
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; }
|
|
42139
42139
|
class Transaction {
|
|
42140
42140
|
|
|
42141
42141
|
constructor({
|
|
@@ -42160,7 +42160,7 @@ class Transaction {
|
|
|
42160
42160
|
this.to = (to && to.match('0x')) ? ethers.utils.getAddress(to) : to;
|
|
42161
42161
|
|
|
42162
42162
|
// optional
|
|
42163
|
-
this.value = _optionalChain$
|
|
42163
|
+
this.value = _optionalChain$n([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
|
|
42164
42164
|
this.api = api;
|
|
42165
42165
|
this.method = method;
|
|
42166
42166
|
this.params = params;
|
|
@@ -42200,7 +42200,7 @@ class Transaction {
|
|
|
42200
42200
|
}
|
|
42201
42201
|
|
|
42202
42202
|
getParamType(param) {
|
|
42203
|
-
if(_optionalChain$
|
|
42203
|
+
if(_optionalChain$n([param, 'optionalAccess', _5 => _5.components, 'optionalAccess', _6 => _6.length])) {
|
|
42204
42204
|
return `(${param.components.map((param)=>this.getParamType(param)).join(',')})`
|
|
42205
42205
|
} else {
|
|
42206
42206
|
return param.type
|
|
@@ -42273,7 +42273,7 @@ class Transaction {
|
|
|
42273
42273
|
}
|
|
42274
42274
|
}
|
|
42275
42275
|
|
|
42276
|
-
function _optionalChain$
|
|
42276
|
+
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; }
|
|
42277
42277
|
|
|
42278
42278
|
const POLL_SPEED = 500; // 0.5 seconds
|
|
42279
42279
|
const MAX_POLLS = 240; // 120 seconds
|
|
@@ -42294,14 +42294,14 @@ const sendTransaction$5 = async ({ transaction, wallet })=> {
|
|
|
42294
42294
|
|
|
42295
42295
|
const provider = await getProvider$3(transaction.blockchain);
|
|
42296
42296
|
const { value } = await provider.getSignatureStatus(signature);
|
|
42297
|
-
const confirmationStatus = _optionalChain$
|
|
42297
|
+
const confirmationStatus = _optionalChain$m([value, 'optionalAccess', _ => _.confirmationStatus]);
|
|
42298
42298
|
if(confirmationStatus) {
|
|
42299
42299
|
const hasReachedSufficientCommitment = confirmationStatus === 'confirmed' || confirmationStatus === 'finalized';
|
|
42300
42300
|
if (hasReachedSufficientCommitment) {
|
|
42301
42301
|
if(value.err) {
|
|
42302
42302
|
transaction._failed = true;
|
|
42303
42303
|
const confirmedTransaction = await provider.getConfirmedTransaction(signature);
|
|
42304
|
-
const failedReason = _optionalChain$
|
|
42304
|
+
const failedReason = _optionalChain$m([confirmedTransaction, 'optionalAccess', _2 => _2.meta, 'optionalAccess', _3 => _3.logMessages]) ? confirmedTransaction.meta.logMessages[confirmedTransaction.meta.logMessages.length - 1] : null;
|
|
42305
42305
|
if(transaction.failed) transaction.failed(transaction, failedReason);
|
|
42306
42306
|
} else {
|
|
42307
42307
|
transaction._succeeded = true;
|
|
@@ -42392,7 +42392,7 @@ let supported$2 = ['ethereum', 'bsc', 'polygon', 'fantom', 'arbitrum', 'avalanch
|
|
|
42392
42392
|
supported$2.evm = ['ethereum', 'bsc', 'polygon', 'fantom', 'arbitrum', 'avalanche', 'gnosis', 'optimism'];
|
|
42393
42393
|
supported$2.solana = [];
|
|
42394
42394
|
|
|
42395
|
-
function _optionalChain$
|
|
42395
|
+
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; }
|
|
42396
42396
|
class WindowSolana {
|
|
42397
42397
|
|
|
42398
42398
|
static __initStatic() {this.info = {
|
|
@@ -42403,9 +42403,14 @@ class WindowSolana {
|
|
|
42403
42403
|
|
|
42404
42404
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
42405
42405
|
return (
|
|
42406
|
-
_optionalChain$
|
|
42407
|
-
|
|
42406
|
+
_optionalChain$l([window, 'optionalAccess', _5 => _5.solana]) &&
|
|
42407
|
+
// not Phantom
|
|
42408
|
+
!(window.phantom && !window.glow && !window.solana.isGlow && !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])) &&
|
|
42409
|
+
// not Coin98
|
|
42408
42410
|
!window.coin98 &&
|
|
42411
|
+
// not BitKeep
|
|
42412
|
+
!(_optionalChain$l([window, 'optionalAccess', _6 => _6.solana]) && _optionalChain$l([window, 'optionalAccess', _7 => _7.solana, 'access', _8 => _8.isBitKeep])) &&
|
|
42413
|
+
// not Glow
|
|
42409
42414
|
!window.solana.isGlow
|
|
42410
42415
|
)
|
|
42411
42416
|
};}
|
|
@@ -42453,7 +42458,7 @@ class WindowSolana {
|
|
|
42453
42458
|
let internalCallback;
|
|
42454
42459
|
switch (event) {
|
|
42455
42460
|
case 'account':
|
|
42456
|
-
internalCallback = (publicKey) => callback(_optionalChain$
|
|
42461
|
+
internalCallback = (publicKey) => callback(_optionalChain$l([publicKey, 'optionalAccess', _9 => _9.toString, 'call', _10 => _10()]));
|
|
42457
42462
|
this.getProvider().on('accountChanged', internalCallback);
|
|
42458
42463
|
break
|
|
42459
42464
|
}
|
|
@@ -43342,7 +43347,7 @@ const request = async function (url, options) {
|
|
|
43342
43347
|
})
|
|
43343
43348
|
};
|
|
43344
43349
|
|
|
43345
|
-
function _optionalChain$
|
|
43350
|
+
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; }
|
|
43346
43351
|
class Backpack extends WindowSolana {
|
|
43347
43352
|
|
|
43348
43353
|
static __initStatic() {this.info = {
|
|
@@ -43353,7 +43358,7 @@ class Backpack extends WindowSolana {
|
|
|
43353
43358
|
|
|
43354
43359
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43355
43360
|
return (
|
|
43356
|
-
_optionalChain$
|
|
43361
|
+
_optionalChain$k([window, 'optionalAccess', _2 => _2.backpack]) &&
|
|
43357
43362
|
window.backpack.isBackpack
|
|
43358
43363
|
)
|
|
43359
43364
|
};}
|
|
@@ -43448,7 +43453,7 @@ const submitSimpleTransfer$3 = ({ transaction, signer })=>{
|
|
|
43448
43453
|
})
|
|
43449
43454
|
};
|
|
43450
43455
|
|
|
43451
|
-
function _optionalChain$
|
|
43456
|
+
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; }
|
|
43452
43457
|
class WindowEthereum {
|
|
43453
43458
|
|
|
43454
43459
|
static __initStatic() {this.info = {
|
|
@@ -43459,18 +43464,29 @@ class WindowEthereum {
|
|
|
43459
43464
|
|
|
43460
43465
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43461
43466
|
return (
|
|
43462
|
-
_optionalChain$
|
|
43463
|
-
|
|
43464
|
-
!_optionalChain$
|
|
43465
|
-
|
|
43466
|
-
!_optionalChain$
|
|
43467
|
-
|
|
43468
|
-
!_optionalChain$
|
|
43469
|
-
|
|
43470
|
-
!_optionalChain$
|
|
43471
|
-
|
|
43472
|
-
!_optionalChain$
|
|
43473
|
-
|
|
43467
|
+
_optionalChain$j([window, 'optionalAccess', _27 => _27.ethereum]) &&
|
|
43468
|
+
// not MetaMask
|
|
43469
|
+
!(_optionalChain$j([window, 'optionalAccess', _28 => _28.ethereum, 'optionalAccess', _29 => _29.isMetaMask]) && Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1) &&
|
|
43470
|
+
// not Coin98
|
|
43471
|
+
!_optionalChain$j([window, 'optionalAccess', _30 => _30.coin98]) &&
|
|
43472
|
+
// not Trust Wallet
|
|
43473
|
+
!(_optionalChain$j([window, 'optionalAccess', _31 => _31.ethereum, 'optionalAccess', _32 => _32.isTrust]) || _optionalChain$j([window, 'optionalAccess', _33 => _33.ethereum, 'optionalAccess', _34 => _34.isTrustWallet])) &&
|
|
43474
|
+
// not crypto.com
|
|
43475
|
+
!_optionalChain$j([window, 'optionalAccess', _35 => _35.ethereum, 'optionalAccess', _36 => _36.isDeficonnectProvider]) &&
|
|
43476
|
+
// not HyperPay
|
|
43477
|
+
!_optionalChain$j([window, 'optionalAccess', _37 => _37.ethereum, 'optionalAccess', _38 => _38.isHyperPay]) &&
|
|
43478
|
+
// not Phantom
|
|
43479
|
+
!(window.phantom && !window.glow && !_optionalChain$j([window, 'optionalAccess', _39 => _39.solana, 'optionalAccess', _40 => _40.isGlow]) && !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])) &&
|
|
43480
|
+
// not Rabby
|
|
43481
|
+
!_optionalChain$j([window, 'optionalAccess', _41 => _41.ethereum, 'optionalAccess', _42 => _42.isRabby]) &&
|
|
43482
|
+
// not Backpack
|
|
43483
|
+
!_optionalChain$j([window, 'optionalAccess', _43 => _43.backpack, 'optionalAccess', _44 => _44.isBackpack]) &&
|
|
43484
|
+
// not TokenPocket
|
|
43485
|
+
!_optionalChain$j([window, 'optionalAccess', _45 => _45.ethereum, 'optionalAccess', _46 => _46.isTokenPocket]) &&
|
|
43486
|
+
// not BitKeep
|
|
43487
|
+
!_optionalChain$j([window, 'optionalAccess', _47 => _47.ethereum, 'optionalAccess', _48 => _48.isBitKeep]) &&
|
|
43488
|
+
// not Coinbase
|
|
43489
|
+
!(_optionalChain$j([window, 'optionalAccess', _49 => _49.ethereum, 'optionalAccess', _50 => _50.isCoinbaseWallet]) || _optionalChain$j([window, 'optionalAccess', _51 => _51.ethereum, 'optionalAccess', _52 => _52.isWalletLink]))
|
|
43474
43490
|
)
|
|
43475
43491
|
};}
|
|
43476
43492
|
|
|
@@ -43596,7 +43612,7 @@ class WindowEthereum {
|
|
|
43596
43612
|
}
|
|
43597
43613
|
} WindowEthereum.__initStatic(); WindowEthereum.__initStatic2();
|
|
43598
43614
|
|
|
43599
|
-
function _optionalChain$
|
|
43615
|
+
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; }
|
|
43600
43616
|
class Binance extends WindowEthereum {
|
|
43601
43617
|
|
|
43602
43618
|
static __initStatic() {this.info = {
|
|
@@ -43606,7 +43622,7 @@ class Binance extends WindowEthereum {
|
|
|
43606
43622
|
};}
|
|
43607
43623
|
|
|
43608
43624
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43609
|
-
return _optionalChain$
|
|
43625
|
+
return _optionalChain$i([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
|
|
43610
43626
|
!window.coin98
|
|
43611
43627
|
};}
|
|
43612
43628
|
|
|
@@ -43614,7 +43630,7 @@ class Binance extends WindowEthereum {
|
|
|
43614
43630
|
|
|
43615
43631
|
} Binance.__initStatic(); Binance.__initStatic2();
|
|
43616
43632
|
|
|
43617
|
-
function _optionalChain$
|
|
43633
|
+
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; }
|
|
43618
43634
|
class Brave extends WindowEthereum {
|
|
43619
43635
|
|
|
43620
43636
|
static __initStatic() {this.info = {
|
|
@@ -43623,10 +43639,10 @@ class Brave extends WindowEthereum {
|
|
|
43623
43639
|
blockchains: supported$2.evm
|
|
43624
43640
|
};}
|
|
43625
43641
|
|
|
43626
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
43642
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$h([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
|
|
43627
43643
|
} Brave.__initStatic(); Brave.__initStatic2();
|
|
43628
43644
|
|
|
43629
|
-
function _optionalChain$
|
|
43645
|
+
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; }
|
|
43630
43646
|
class Coin98 extends WindowEthereum {
|
|
43631
43647
|
|
|
43632
43648
|
static __initStatic() {this.info = {
|
|
@@ -43635,10 +43651,10 @@ class Coin98 extends WindowEthereum {
|
|
|
43635
43651
|
blockchains: supported$2.evm
|
|
43636
43652
|
};}
|
|
43637
43653
|
|
|
43638
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
43654
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$g([window, 'optionalAccess', _2 => _2.coin98]) };}
|
|
43639
43655
|
} Coin98.__initStatic(); Coin98.__initStatic2();
|
|
43640
43656
|
|
|
43641
|
-
function _optionalChain$
|
|
43657
|
+
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; }
|
|
43642
43658
|
class Coinbase extends WindowEthereum {
|
|
43643
43659
|
|
|
43644
43660
|
static __initStatic() {this.info = {
|
|
@@ -43647,10 +43663,10 @@ class Coinbase extends WindowEthereum {
|
|
|
43647
43663
|
blockchains: supported$2.evm
|
|
43648
43664
|
};}
|
|
43649
43665
|
|
|
43650
|
-
static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$
|
|
43666
|
+
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])) };}
|
|
43651
43667
|
} Coinbase.__initStatic(); Coinbase.__initStatic2();
|
|
43652
43668
|
|
|
43653
|
-
function _optionalChain$
|
|
43669
|
+
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; }
|
|
43654
43670
|
class CryptoCom extends WindowEthereum {
|
|
43655
43671
|
|
|
43656
43672
|
static __initStatic() {this.info = {
|
|
@@ -43659,7 +43675,7 @@ class CryptoCom extends WindowEthereum {
|
|
|
43659
43675
|
blockchains: supported$2.evm
|
|
43660
43676
|
};}
|
|
43661
43677
|
|
|
43662
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
43678
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$e([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
|
|
43663
43679
|
} CryptoCom.__initStatic(); CryptoCom.__initStatic2();
|
|
43664
43680
|
|
|
43665
43681
|
class Glow extends WindowSolana {
|
|
@@ -43678,7 +43694,7 @@ class Glow extends WindowSolana {
|
|
|
43678
43694
|
};}
|
|
43679
43695
|
} Glow.__initStatic(); Glow.__initStatic2();
|
|
43680
43696
|
|
|
43681
|
-
function _optionalChain$
|
|
43697
|
+
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; }
|
|
43682
43698
|
class HyperPay extends WindowEthereum {
|
|
43683
43699
|
|
|
43684
43700
|
static __initStatic() {this.info = {
|
|
@@ -43687,10 +43703,10 @@ class HyperPay extends WindowEthereum {
|
|
|
43687
43703
|
blockchains: supported$2.evm
|
|
43688
43704
|
};}
|
|
43689
43705
|
|
|
43690
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
43706
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$d([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
|
|
43691
43707
|
} HyperPay.__initStatic(); HyperPay.__initStatic2();
|
|
43692
43708
|
|
|
43693
|
-
function _optionalChain$
|
|
43709
|
+
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; }
|
|
43694
43710
|
class MetaMask extends WindowEthereum {
|
|
43695
43711
|
|
|
43696
43712
|
static __initStatic() {this.info = {
|
|
@@ -43701,13 +43717,13 @@ class MetaMask extends WindowEthereum {
|
|
|
43701
43717
|
|
|
43702
43718
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43703
43719
|
return(
|
|
43704
|
-
_optionalChain$
|
|
43720
|
+
_optionalChain$c([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) &&
|
|
43705
43721
|
Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1
|
|
43706
43722
|
)
|
|
43707
43723
|
};}
|
|
43708
43724
|
} MetaMask.__initStatic(); MetaMask.__initStatic2();
|
|
43709
43725
|
|
|
43710
|
-
function _optionalChain$
|
|
43726
|
+
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; }
|
|
43711
43727
|
class Opera extends WindowEthereum {
|
|
43712
43728
|
|
|
43713
43729
|
static __initStatic() {this.info = {
|
|
@@ -43716,9 +43732,10 @@ class Opera extends WindowEthereum {
|
|
|
43716
43732
|
blockchains: supported$2.evm
|
|
43717
43733
|
};}
|
|
43718
43734
|
|
|
43719
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
43735
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$b([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
|
|
43720
43736
|
} Opera.__initStatic(); Opera.__initStatic2();
|
|
43721
43737
|
|
|
43738
|
+
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; }
|
|
43722
43739
|
class Phantom extends WindowSolana {
|
|
43723
43740
|
|
|
43724
43741
|
static __initStatic() {this.info = {
|
|
@@ -43729,7 +43746,10 @@ class Phantom extends WindowSolana {
|
|
|
43729
43746
|
|
|
43730
43747
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43731
43748
|
return (
|
|
43732
|
-
window.phantom &&
|
|
43749
|
+
window.phantom &&
|
|
43750
|
+
!window.glow &&
|
|
43751
|
+
!_optionalChain$a([window, 'optionalAccess', _3 => _3.solana, 'optionalAccess', _4 => _4.isGlow]) &&
|
|
43752
|
+
!['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])
|
|
43733
43753
|
)
|
|
43734
43754
|
};}
|
|
43735
43755
|
} Phantom.__initStatic(); Phantom.__initStatic2();
|
|
@@ -44585,6 +44605,36 @@ const CONFIGURATIONS = {
|
|
|
44585
44605
|
]
|
|
44586
44606
|
},
|
|
44587
44607
|
|
|
44608
|
+
"BitGet (BitKeep)": {
|
|
44609
|
+
methods: [
|
|
44610
|
+
"eth_sendTransaction",
|
|
44611
|
+
"personal_sign",
|
|
44612
|
+
"eth_signTypedData",
|
|
44613
|
+
"eth_signTypedData_v4",
|
|
44614
|
+
],
|
|
44615
|
+
requiredNamespaces: {
|
|
44616
|
+
eip155: {
|
|
44617
|
+
chains: ['ethereum', 'bsc', 'polygon', 'arbitrum', 'optimism'].map((blockchainName)=>`eip155:${Blockchains[blockchainName].networkId}`)
|
|
44618
|
+
}
|
|
44619
|
+
},
|
|
44620
|
+
optionalNamespaces: {},
|
|
44621
|
+
},
|
|
44622
|
+
|
|
44623
|
+
"BitGet": {
|
|
44624
|
+
methods: [
|
|
44625
|
+
"eth_sendTransaction",
|
|
44626
|
+
"personal_sign",
|
|
44627
|
+
"eth_signTypedData",
|
|
44628
|
+
"eth_signTypedData_v4",
|
|
44629
|
+
],
|
|
44630
|
+
requiredNamespaces: {
|
|
44631
|
+
eip155: {
|
|
44632
|
+
chains: ['ethereum', 'bsc', 'polygon', 'arbitrum', 'optimism'].map((blockchainName)=>`eip155:${Blockchains[blockchainName].networkId}`)
|
|
44633
|
+
}
|
|
44634
|
+
},
|
|
44635
|
+
optionalNamespaces: {},
|
|
44636
|
+
},
|
|
44637
|
+
|
|
44588
44638
|
"Uniswap Wallet": {
|
|
44589
44639
|
methods: [
|
|
44590
44640
|
"eth_sendTransaction",
|
|
@@ -44719,6 +44769,7 @@ class WalletConnectV2 {
|
|
|
44719
44769
|
}
|
|
44720
44770
|
|
|
44721
44771
|
async setSessionBlockchains() {
|
|
44772
|
+
if(!this.session) { return }
|
|
44722
44773
|
if(_optionalChain$1([CONFIGURATIONS, 'access', _27 => _27[this.walletName], 'optionalAccess', _28 => _28.methods, 'optionalAccess', _29 => _29.includes, 'call', _30 => _30('wallet_switchEthereumChain')])) {
|
|
44723
44774
|
this.blockchains = [this.session.namespaces.eip155.chains[this.session.namespaces.eip155.chains.length-1]].map((chainIdentifier)=>_optionalChain$1([Blockchains, 'access', _31 => _31.findByNetworkId, 'call', _32 => _32(chainIdentifier.split(':')[1]), 'optionalAccess', _33 => _33.name])).filter(Boolean);
|
|
44724
44775
|
} else if(this.session.namespaces.eip155.chains) {
|