@depay/web3-wallets-evm 16.0.4 → 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 +89 -49
- package/dist/esm/index.js +89 -49
- package/dist/esm/index.solana.js +88 -49
- package/dist/umd/index.evm.js +89 -49
- package/dist/umd/index.js +89 -49
- package/dist/umd/index.solana.js +88 -49
- 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,12 @@ class WindowSolana {
|
|
|
42403
42403
|
|
|
42404
42404
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
42405
42405
|
return (
|
|
42406
|
-
_optionalChain$
|
|
42407
|
-
|
|
42406
|
+
_optionalChain$l([window, 'optionalAccess', _2 => _2.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 Glow
|
|
42409
42412
|
!window.solana.isGlow
|
|
42410
42413
|
)
|
|
42411
42414
|
};}
|
|
@@ -42453,7 +42456,7 @@ class WindowSolana {
|
|
|
42453
42456
|
let internalCallback;
|
|
42454
42457
|
switch (event) {
|
|
42455
42458
|
case 'account':
|
|
42456
|
-
internalCallback = (publicKey) => callback(_optionalChain$
|
|
42459
|
+
internalCallback = (publicKey) => callback(_optionalChain$l([publicKey, 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]));
|
|
42457
42460
|
this.getProvider().on('accountChanged', internalCallback);
|
|
42458
42461
|
break
|
|
42459
42462
|
}
|
|
@@ -43342,7 +43345,7 @@ const request = async function (url, options) {
|
|
|
43342
43345
|
})
|
|
43343
43346
|
};
|
|
43344
43347
|
|
|
43345
|
-
function _optionalChain$
|
|
43348
|
+
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
43349
|
class Backpack extends WindowSolana {
|
|
43347
43350
|
|
|
43348
43351
|
static __initStatic() {this.info = {
|
|
@@ -43353,7 +43356,7 @@ class Backpack extends WindowSolana {
|
|
|
43353
43356
|
|
|
43354
43357
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43355
43358
|
return (
|
|
43356
|
-
_optionalChain$
|
|
43359
|
+
_optionalChain$k([window, 'optionalAccess', _2 => _2.backpack]) &&
|
|
43357
43360
|
window.backpack.isBackpack
|
|
43358
43361
|
)
|
|
43359
43362
|
};}
|
|
@@ -43448,7 +43451,7 @@ const submitSimpleTransfer$3 = ({ transaction, signer })=>{
|
|
|
43448
43451
|
})
|
|
43449
43452
|
};
|
|
43450
43453
|
|
|
43451
|
-
function _optionalChain$
|
|
43454
|
+
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
43455
|
class WindowEthereum {
|
|
43453
43456
|
|
|
43454
43457
|
static __initStatic() {this.info = {
|
|
@@ -43459,17 +43462,27 @@ class WindowEthereum {
|
|
|
43459
43462
|
|
|
43460
43463
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43461
43464
|
return (
|
|
43462
|
-
_optionalChain$
|
|
43463
|
-
|
|
43464
|
-
!_optionalChain$
|
|
43465
|
-
|
|
43466
|
-
!_optionalChain$
|
|
43467
|
-
|
|
43468
|
-
!_optionalChain$
|
|
43469
|
-
|
|
43470
|
-
!_optionalChain$
|
|
43471
|
-
|
|
43472
|
-
!
|
|
43465
|
+
_optionalChain$j([window, 'optionalAccess', _25 => _25.ethereum]) &&
|
|
43466
|
+
// not MetaMask
|
|
43467
|
+
!(_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) &&
|
|
43468
|
+
// not Coin98
|
|
43469
|
+
!_optionalChain$j([window, 'optionalAccess', _28 => _28.coin98]) &&
|
|
43470
|
+
// not Trust Wallet
|
|
43471
|
+
!(_optionalChain$j([window, 'optionalAccess', _29 => _29.ethereum, 'optionalAccess', _30 => _30.isTrust]) || _optionalChain$j([window, 'optionalAccess', _31 => _31.ethereum, 'optionalAccess', _32 => _32.isTrustWallet])) &&
|
|
43472
|
+
// not crypto.com
|
|
43473
|
+
!_optionalChain$j([window, 'optionalAccess', _33 => _33.ethereum, 'optionalAccess', _34 => _34.isDeficonnectProvider]) &&
|
|
43474
|
+
// not HyperPay
|
|
43475
|
+
!_optionalChain$j([window, 'optionalAccess', _35 => _35.ethereum, 'optionalAccess', _36 => _36.isHyperPay]) &&
|
|
43476
|
+
// not Phantom
|
|
43477
|
+
!(window.phantom && !window.glow && !_optionalChain$j([window, 'optionalAccess', _37 => _37.solana, 'optionalAccess', _38 => _38.isGlow]) && !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])) &&
|
|
43478
|
+
// not Rabby
|
|
43479
|
+
!_optionalChain$j([window, 'optionalAccess', _39 => _39.ethereum, 'optionalAccess', _40 => _40.isRabby]) &&
|
|
43480
|
+
// not Backpack
|
|
43481
|
+
!_optionalChain$j([window, 'optionalAccess', _41 => _41.backpack, 'optionalAccess', _42 => _42.isBackpack]) &&
|
|
43482
|
+
// not TokenPocket
|
|
43483
|
+
!_optionalChain$j([window, 'optionalAccess', _43 => _43.ethereum, 'optionalAccess', _44 => _44.isTokenPocket]) &&
|
|
43484
|
+
// not Coinbase
|
|
43485
|
+
!(_optionalChain$j([window, 'optionalAccess', _45 => _45.ethereum, 'optionalAccess', _46 => _46.isCoinbaseWallet]) || _optionalChain$j([window, 'optionalAccess', _47 => _47.ethereum, 'optionalAccess', _48 => _48.isWalletLink]))
|
|
43473
43486
|
)
|
|
43474
43487
|
};}
|
|
43475
43488
|
|
|
@@ -43595,7 +43608,7 @@ class WindowEthereum {
|
|
|
43595
43608
|
}
|
|
43596
43609
|
} WindowEthereum.__initStatic(); WindowEthereum.__initStatic2();
|
|
43597
43610
|
|
|
43598
|
-
function _optionalChain$
|
|
43611
|
+
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; }
|
|
43599
43612
|
class Binance extends WindowEthereum {
|
|
43600
43613
|
|
|
43601
43614
|
static __initStatic() {this.info = {
|
|
@@ -43605,7 +43618,7 @@ class Binance extends WindowEthereum {
|
|
|
43605
43618
|
};}
|
|
43606
43619
|
|
|
43607
43620
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43608
|
-
return _optionalChain$
|
|
43621
|
+
return _optionalChain$i([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
|
|
43609
43622
|
!window.coin98
|
|
43610
43623
|
};}
|
|
43611
43624
|
|
|
@@ -43613,7 +43626,7 @@ class Binance extends WindowEthereum {
|
|
|
43613
43626
|
|
|
43614
43627
|
} Binance.__initStatic(); Binance.__initStatic2();
|
|
43615
43628
|
|
|
43616
|
-
function _optionalChain$
|
|
43629
|
+
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; }
|
|
43617
43630
|
class Brave extends WindowEthereum {
|
|
43618
43631
|
|
|
43619
43632
|
static __initStatic() {this.info = {
|
|
@@ -43622,10 +43635,10 @@ class Brave extends WindowEthereum {
|
|
|
43622
43635
|
blockchains: supported$2.evm
|
|
43623
43636
|
};}
|
|
43624
43637
|
|
|
43625
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
43638
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$h([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
|
|
43626
43639
|
} Brave.__initStatic(); Brave.__initStatic2();
|
|
43627
43640
|
|
|
43628
|
-
function _optionalChain$
|
|
43641
|
+
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; }
|
|
43629
43642
|
class Coin98 extends WindowEthereum {
|
|
43630
43643
|
|
|
43631
43644
|
static __initStatic() {this.info = {
|
|
@@ -43634,10 +43647,10 @@ class Coin98 extends WindowEthereum {
|
|
|
43634
43647
|
blockchains: supported$2.evm
|
|
43635
43648
|
};}
|
|
43636
43649
|
|
|
43637
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
43650
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$g([window, 'optionalAccess', _2 => _2.coin98]) };}
|
|
43638
43651
|
} Coin98.__initStatic(); Coin98.__initStatic2();
|
|
43639
43652
|
|
|
43640
|
-
function _optionalChain$
|
|
43653
|
+
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; }
|
|
43641
43654
|
class Coinbase extends WindowEthereum {
|
|
43642
43655
|
|
|
43643
43656
|
static __initStatic() {this.info = {
|
|
@@ -43646,10 +43659,10 @@ class Coinbase extends WindowEthereum {
|
|
|
43646
43659
|
blockchains: supported$2.evm
|
|
43647
43660
|
};}
|
|
43648
43661
|
|
|
43649
|
-
static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$
|
|
43662
|
+
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])) };}
|
|
43650
43663
|
} Coinbase.__initStatic(); Coinbase.__initStatic2();
|
|
43651
43664
|
|
|
43652
|
-
function _optionalChain$
|
|
43665
|
+
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; }
|
|
43653
43666
|
class CryptoCom extends WindowEthereum {
|
|
43654
43667
|
|
|
43655
43668
|
static __initStatic() {this.info = {
|
|
@@ -43658,7 +43671,7 @@ class CryptoCom extends WindowEthereum {
|
|
|
43658
43671
|
blockchains: supported$2.evm
|
|
43659
43672
|
};}
|
|
43660
43673
|
|
|
43661
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
43674
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$e([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
|
|
43662
43675
|
} CryptoCom.__initStatic(); CryptoCom.__initStatic2();
|
|
43663
43676
|
|
|
43664
43677
|
class Glow extends WindowSolana {
|
|
@@ -43677,7 +43690,7 @@ class Glow extends WindowSolana {
|
|
|
43677
43690
|
};}
|
|
43678
43691
|
} Glow.__initStatic(); Glow.__initStatic2();
|
|
43679
43692
|
|
|
43680
|
-
function _optionalChain$
|
|
43693
|
+
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; }
|
|
43681
43694
|
class HyperPay extends WindowEthereum {
|
|
43682
43695
|
|
|
43683
43696
|
static __initStatic() {this.info = {
|
|
@@ -43686,10 +43699,10 @@ class HyperPay extends WindowEthereum {
|
|
|
43686
43699
|
blockchains: supported$2.evm
|
|
43687
43700
|
};}
|
|
43688
43701
|
|
|
43689
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
43702
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$d([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
|
|
43690
43703
|
} HyperPay.__initStatic(); HyperPay.__initStatic2();
|
|
43691
43704
|
|
|
43692
|
-
function _optionalChain$
|
|
43705
|
+
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; }
|
|
43693
43706
|
class MetaMask extends WindowEthereum {
|
|
43694
43707
|
|
|
43695
43708
|
static __initStatic() {this.info = {
|
|
@@ -43700,13 +43713,13 @@ class MetaMask extends WindowEthereum {
|
|
|
43700
43713
|
|
|
43701
43714
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43702
43715
|
return(
|
|
43703
|
-
_optionalChain$
|
|
43716
|
+
_optionalChain$c([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) &&
|
|
43704
43717
|
Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1
|
|
43705
43718
|
)
|
|
43706
43719
|
};}
|
|
43707
43720
|
} MetaMask.__initStatic(); MetaMask.__initStatic2();
|
|
43708
43721
|
|
|
43709
|
-
function _optionalChain$
|
|
43722
|
+
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; }
|
|
43710
43723
|
class Opera extends WindowEthereum {
|
|
43711
43724
|
|
|
43712
43725
|
static __initStatic() {this.info = {
|
|
@@ -43715,9 +43728,10 @@ class Opera extends WindowEthereum {
|
|
|
43715
43728
|
blockchains: supported$2.evm
|
|
43716
43729
|
};}
|
|
43717
43730
|
|
|
43718
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
43731
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$b([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
|
|
43719
43732
|
} Opera.__initStatic(); Opera.__initStatic2();
|
|
43720
43733
|
|
|
43734
|
+
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; }
|
|
43721
43735
|
class Phantom extends WindowSolana {
|
|
43722
43736
|
|
|
43723
43737
|
static __initStatic() {this.info = {
|
|
@@ -43728,12 +43742,15 @@ class Phantom extends WindowSolana {
|
|
|
43728
43742
|
|
|
43729
43743
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43730
43744
|
return (
|
|
43731
|
-
window.phantom &&
|
|
43745
|
+
window.phantom &&
|
|
43746
|
+
!window.glow &&
|
|
43747
|
+
!_optionalChain$a([window, 'optionalAccess', _3 => _3.solana, 'optionalAccess', _4 => _4.isGlow]) &&
|
|
43748
|
+
!['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])
|
|
43732
43749
|
)
|
|
43733
43750
|
};}
|
|
43734
43751
|
} Phantom.__initStatic(); Phantom.__initStatic2();
|
|
43735
43752
|
|
|
43736
|
-
function _optionalChain$
|
|
43753
|
+
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; }
|
|
43737
43754
|
class Rabby extends WindowEthereum {
|
|
43738
43755
|
|
|
43739
43756
|
static __initStatic() {this.info = {
|
|
@@ -43744,12 +43761,12 @@ class Rabby extends WindowEthereum {
|
|
|
43744
43761
|
|
|
43745
43762
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43746
43763
|
return(
|
|
43747
|
-
_optionalChain$
|
|
43764
|
+
_optionalChain$9([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isRabby])
|
|
43748
43765
|
)
|
|
43749
43766
|
};}
|
|
43750
43767
|
} Rabby.__initStatic(); Rabby.__initStatic2();
|
|
43751
43768
|
|
|
43752
|
-
function _optionalChain$
|
|
43769
|
+
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; }
|
|
43753
43770
|
const KEY$2 = '_DePayWeb3WalletsConnectedSolanaMobileWalletInstance';
|
|
43754
43771
|
|
|
43755
43772
|
const base64StringToPublicKey = (base64String)=> {
|
|
@@ -43838,8 +43855,8 @@ class SolanaMobileWalletAdapter {
|
|
|
43838
43855
|
await transact(
|
|
43839
43856
|
async (wallet) => {
|
|
43840
43857
|
await this.authorize(wallet);
|
|
43841
|
-
if(_optionalChain$
|
|
43842
|
-
if(_optionalChain$
|
|
43858
|
+
if(_optionalChain$8([options, 'optionalAccess', _ => _.name])) { localStorage[KEY$2+'_name'] = this.name = options.name; }
|
|
43859
|
+
if(_optionalChain$8([options, 'optionalAccess', _2 => _2.logo])) { localStorage[KEY$2+'_logo'] = this.logo = options.logo; }
|
|
43843
43860
|
}
|
|
43844
43861
|
);
|
|
43845
43862
|
return this._account
|
|
@@ -43898,7 +43915,7 @@ class SolanaMobileWalletAdapter {
|
|
|
43898
43915
|
}
|
|
43899
43916
|
} SolanaMobileWalletAdapter.__initStatic(); SolanaMobileWalletAdapter.__initStatic2();
|
|
43900
43917
|
|
|
43901
|
-
function _optionalChain$
|
|
43918
|
+
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; }
|
|
43902
43919
|
class Solflare extends WindowSolana {
|
|
43903
43920
|
|
|
43904
43921
|
static __initStatic() {this.info = {
|
|
@@ -43909,7 +43926,7 @@ class Solflare extends WindowSolana {
|
|
|
43909
43926
|
|
|
43910
43927
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43911
43928
|
return (
|
|
43912
|
-
_optionalChain$
|
|
43929
|
+
_optionalChain$7([window, 'optionalAccess', _2 => _2.solflare]) &&
|
|
43913
43930
|
window.solflare.isSolflare
|
|
43914
43931
|
)
|
|
43915
43932
|
};}
|
|
@@ -43919,6 +43936,22 @@ class Solflare extends WindowSolana {
|
|
|
43919
43936
|
_sendTransaction(transaction) { return this.getProvider().signTransaction(transaction) }
|
|
43920
43937
|
} Solflare.__initStatic(); Solflare.__initStatic2();
|
|
43921
43938
|
|
|
43939
|
+
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; }
|
|
43940
|
+
class TokenPocket extends WindowEthereum {
|
|
43941
|
+
|
|
43942
|
+
static __initStatic() {this.info = {
|
|
43943
|
+
name: 'TP Wallet (TokenPocket)',
|
|
43944
|
+
logo: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8bWFzayBpZD0ibWFzazBfNDA4XzIyNSIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMCIgeT0iMCIgd2lkdGg9IjEw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NTYgODk2LjMxNCA0NjMuNTMzQzg5Ni40NDUgMzYwLjU3MyA4MTIuODcyIDI3NyA3MDkuNzgxIDI3N1oiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik03MDkuNzggNjUwLjA2NlY1MDUuNTgxQzcwOC43MzMgNTA1LjU4MSA3MDcuODE2IDUwNS41ODEgNzA2Ljc2OCA1MDUuNDVWNjUwLjA2NkM3MDcuODE2IDY1MC4wNjYgNzA4Ljg2NCA2NTAuMDY2IDcwOS43OCA2NTAuMDY2WiIgZmlsbD0id2hpdGUiLz4KPC9nPgo8L2c+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfNDA4XzIyNSIgeDE9IjcwOS44NDQiIHkxPSI1NTYuODI3IiB4Mj0iNjY3Ljc1MyIgeTI9IjU1Ni44MjciIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0id2hpdGUiLz4KPHN0b3Agb2Zmc2V0PSIwLjk2NjciIHN0b3AtY29sb3I9IndoaXRlIiBzdG9wLW9wYWNpdHk9IjAuMzIzMyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIiBzdG9wLW9wYWNpdHk9IjAuMyIvPgo8L2xpbmVhckdyYWRpZW50Pgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzQwOF8yMjUiPgo8cmVjdCB3aWR0aD0iNzI4LjQ0OCIgaGVpZ2h0PSI0NzAiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNjggMjc3KSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo=",
|
|
43945
|
+
blockchains: supported$2.evm
|
|
43946
|
+
};}
|
|
43947
|
+
|
|
43948
|
+
static __initStatic2() {this.isAvailable = async()=>{
|
|
43949
|
+
return (
|
|
43950
|
+
_optionalChain$6([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isTokenPocket])
|
|
43951
|
+
)
|
|
43952
|
+
};}
|
|
43953
|
+
} TokenPocket.__initStatic(); TokenPocket.__initStatic2();
|
|
43954
|
+
|
|
43922
43955
|
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; }
|
|
43923
43956
|
class Trust extends WindowEthereum {
|
|
43924
43957
|
|
|
@@ -43928,7 +43961,12 @@ class Trust extends WindowEthereum {
|
|
|
43928
43961
|
blockchains: supported$2.evm
|
|
43929
43962
|
};}
|
|
43930
43963
|
|
|
43931
|
-
static __initStatic2() {this.isAvailable = async()=>{
|
|
43964
|
+
static __initStatic2() {this.isAvailable = async()=>{
|
|
43965
|
+
return (
|
|
43966
|
+
(_optionalChain$5([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isTrust]) || _optionalChain$5([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isTrustWallet])) &&
|
|
43967
|
+
Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!Debug)(?!TrustWallet)(?!MetaMask)(?!PocketUniverse)(?!RevokeCash)/)).length == 1
|
|
43968
|
+
)
|
|
43969
|
+
};}
|
|
43932
43970
|
} Trust.__initStatic(); Trust.__initStatic2();
|
|
43933
43971
|
|
|
43934
43972
|
const transactionApiBlockchainNames = {
|
|
@@ -45127,6 +45165,7 @@ var wallets = {
|
|
|
45127
45165
|
Coin98,
|
|
45128
45166
|
CryptoCom,
|
|
45129
45167
|
HyperPay,
|
|
45168
|
+
TokenPocket,
|
|
45130
45169
|
WindowEthereum,
|
|
45131
45170
|
WindowSolana,
|
|
45132
45171
|
SolanaMobileWalletAdapter,
|
|
@@ -45177,6 +45216,7 @@ const supported = [
|
|
|
45177
45216
|
wallets.Coin98,
|
|
45178
45217
|
wallets.CryptoCom,
|
|
45179
45218
|
wallets.HyperPay,
|
|
45219
|
+
wallets.TokenPocket,
|
|
45180
45220
|
wallets.WalletConnectV1,
|
|
45181
45221
|
wallets.WalletConnectV2,
|
|
45182
45222
|
wallets.WalletLink,
|