@depay/web3-wallets-evm 16.0.4 → 16.0.5
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 +70 -46
- package/dist/esm/index.js +70 -46
- package/dist/esm/index.solana.js +69 -46
- package/dist/umd/index.evm.js +70 -46
- package/dist/umd/index.js +70 -46
- package/dist/umd/index.solana.js +69 -46
- 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$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; }
|
|
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$m([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$m([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$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; }
|
|
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$l([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$l([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$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; }
|
|
42396
42396
|
class WindowSolana {
|
|
42397
42397
|
|
|
42398
42398
|
static __initStatic() {this.info = {
|
|
@@ -42403,7 +42403,7 @@ class WindowSolana {
|
|
|
42403
42403
|
|
|
42404
42404
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
42405
42405
|
return (
|
|
42406
|
-
_optionalChain$
|
|
42406
|
+
_optionalChain$k([window, 'optionalAccess', _2 => _2.solana]) &&
|
|
42407
42407
|
!(window.phantom && !window.glow && !window.solana.isGlow) &&
|
|
42408
42408
|
!window.coin98 &&
|
|
42409
42409
|
!window.solana.isGlow
|
|
@@ -42453,7 +42453,7 @@ class WindowSolana {
|
|
|
42453
42453
|
let internalCallback;
|
|
42454
42454
|
switch (event) {
|
|
42455
42455
|
case 'account':
|
|
42456
|
-
internalCallback = (publicKey) => callback(_optionalChain$
|
|
42456
|
+
internalCallback = (publicKey) => callback(_optionalChain$k([publicKey, 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]));
|
|
42457
42457
|
this.getProvider().on('accountChanged', internalCallback);
|
|
42458
42458
|
break
|
|
42459
42459
|
}
|
|
@@ -43342,7 +43342,7 @@ const request = async function (url, options) {
|
|
|
43342
43342
|
})
|
|
43343
43343
|
};
|
|
43344
43344
|
|
|
43345
|
-
function _optionalChain$
|
|
43345
|
+
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; }
|
|
43346
43346
|
class Backpack extends WindowSolana {
|
|
43347
43347
|
|
|
43348
43348
|
static __initStatic() {this.info = {
|
|
@@ -43353,7 +43353,7 @@ class Backpack extends WindowSolana {
|
|
|
43353
43353
|
|
|
43354
43354
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43355
43355
|
return (
|
|
43356
|
-
_optionalChain$
|
|
43356
|
+
_optionalChain$j([window, 'optionalAccess', _2 => _2.backpack]) &&
|
|
43357
43357
|
window.backpack.isBackpack
|
|
43358
43358
|
)
|
|
43359
43359
|
};}
|
|
@@ -43448,7 +43448,7 @@ const submitSimpleTransfer$3 = ({ transaction, signer })=>{
|
|
|
43448
43448
|
})
|
|
43449
43449
|
};
|
|
43450
43450
|
|
|
43451
|
-
function _optionalChain$
|
|
43451
|
+
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; }
|
|
43452
43452
|
class WindowEthereum {
|
|
43453
43453
|
|
|
43454
43454
|
static __initStatic() {this.info = {
|
|
@@ -43459,17 +43459,18 @@ class WindowEthereum {
|
|
|
43459
43459
|
|
|
43460
43460
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43461
43461
|
return (
|
|
43462
|
-
_optionalChain$
|
|
43462
|
+
_optionalChain$i([window, 'optionalAccess', _25 => _25.ethereum]) &&
|
|
43463
43463
|
Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length != 1 && // MetaMask
|
|
43464
|
-
!_optionalChain$
|
|
43465
|
-
!(_optionalChain$
|
|
43466
|
-
!_optionalChain$
|
|
43467
|
-
!_optionalChain$
|
|
43468
|
-
!_optionalChain$
|
|
43469
|
-
!_optionalChain$
|
|
43470
|
-
!_optionalChain$
|
|
43471
|
-
!_optionalChain$
|
|
43472
|
-
!
|
|
43464
|
+
!_optionalChain$i([window, 'optionalAccess', _26 => _26.coin98]) && // Coin98
|
|
43465
|
+
!(_optionalChain$i([window, 'optionalAccess', _27 => _27.ethereum, 'optionalAccess', _28 => _28.isTrust]) || _optionalChain$i([window, 'optionalAccess', _29 => _29.ethereum, 'optionalAccess', _30 => _30.isTrustWallet])) && // Trust Wallet
|
|
43466
|
+
!_optionalChain$i([window, 'optionalAccess', _31 => _31.ethereum, 'optionalAccess', _32 => _32.isDeficonnectProvider]) && // crypto.com
|
|
43467
|
+
!_optionalChain$i([window, 'optionalAccess', _33 => _33.ethereum, 'optionalAccess', _34 => _34.isHyperPay]) && // isHyperPay
|
|
43468
|
+
!_optionalChain$i([window, 'optionalAccess', _35 => _35.ethereum, 'optionalAccess', _36 => _36.isPhantom]) && // Phantom
|
|
43469
|
+
!_optionalChain$i([window, 'optionalAccess', _37 => _37.solana, 'optionalAccess', _38 => _38.isPhantom]) && // Phantom
|
|
43470
|
+
!_optionalChain$i([window, 'optionalAccess', _39 => _39.ethereum, 'optionalAccess', _40 => _40.isRabby]) && // Rabby
|
|
43471
|
+
!_optionalChain$i([window, 'optionalAccess', _41 => _41.backpack, 'optionalAccess', _42 => _42.isBackpack]) && // Backpack
|
|
43472
|
+
!_optionalChain$i([window, 'optionalAccess', _43 => _43.ethereum, 'optionalAccess', _44 => _44.isTokenPocket]) && // TokenPocket
|
|
43473
|
+
!(_optionalChain$i([window, 'optionalAccess', _45 => _45.ethereum, 'optionalAccess', _46 => _46.isCoinbaseWallet]) || _optionalChain$i([window, 'optionalAccess', _47 => _47.ethereum, 'optionalAccess', _48 => _48.isWalletLink]))
|
|
43473
43474
|
)
|
|
43474
43475
|
};}
|
|
43475
43476
|
|
|
@@ -43595,7 +43596,7 @@ class WindowEthereum {
|
|
|
43595
43596
|
}
|
|
43596
43597
|
} WindowEthereum.__initStatic(); WindowEthereum.__initStatic2();
|
|
43597
43598
|
|
|
43598
|
-
function _optionalChain$
|
|
43599
|
+
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; }
|
|
43599
43600
|
class Binance extends WindowEthereum {
|
|
43600
43601
|
|
|
43601
43602
|
static __initStatic() {this.info = {
|
|
@@ -43605,7 +43606,7 @@ class Binance extends WindowEthereum {
|
|
|
43605
43606
|
};}
|
|
43606
43607
|
|
|
43607
43608
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43608
|
-
return _optionalChain$
|
|
43609
|
+
return _optionalChain$h([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
|
|
43609
43610
|
!window.coin98
|
|
43610
43611
|
};}
|
|
43611
43612
|
|
|
@@ -43613,7 +43614,7 @@ class Binance extends WindowEthereum {
|
|
|
43613
43614
|
|
|
43614
43615
|
} Binance.__initStatic(); Binance.__initStatic2();
|
|
43615
43616
|
|
|
43616
|
-
function _optionalChain$
|
|
43617
|
+
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; }
|
|
43617
43618
|
class Brave extends WindowEthereum {
|
|
43618
43619
|
|
|
43619
43620
|
static __initStatic() {this.info = {
|
|
@@ -43622,10 +43623,10 @@ class Brave extends WindowEthereum {
|
|
|
43622
43623
|
blockchains: supported$2.evm
|
|
43623
43624
|
};}
|
|
43624
43625
|
|
|
43625
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
43626
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$g([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
|
|
43626
43627
|
} Brave.__initStatic(); Brave.__initStatic2();
|
|
43627
43628
|
|
|
43628
|
-
function _optionalChain$
|
|
43629
|
+
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; }
|
|
43629
43630
|
class Coin98 extends WindowEthereum {
|
|
43630
43631
|
|
|
43631
43632
|
static __initStatic() {this.info = {
|
|
@@ -43634,10 +43635,10 @@ class Coin98 extends WindowEthereum {
|
|
|
43634
43635
|
blockchains: supported$2.evm
|
|
43635
43636
|
};}
|
|
43636
43637
|
|
|
43637
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
43638
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$f([window, 'optionalAccess', _2 => _2.coin98]) };}
|
|
43638
43639
|
} Coin98.__initStatic(); Coin98.__initStatic2();
|
|
43639
43640
|
|
|
43640
|
-
function _optionalChain$
|
|
43641
|
+
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; }
|
|
43641
43642
|
class Coinbase extends WindowEthereum {
|
|
43642
43643
|
|
|
43643
43644
|
static __initStatic() {this.info = {
|
|
@@ -43646,10 +43647,10 @@ class Coinbase extends WindowEthereum {
|
|
|
43646
43647
|
blockchains: supported$2.evm
|
|
43647
43648
|
};}
|
|
43648
43649
|
|
|
43649
|
-
static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$
|
|
43650
|
+
static __initStatic2() {this.isAvailable = async()=>{ return (_optionalChain$e([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isCoinbaseWallet]) || _optionalChain$e([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isWalletLink])) };}
|
|
43650
43651
|
} Coinbase.__initStatic(); Coinbase.__initStatic2();
|
|
43651
43652
|
|
|
43652
|
-
function _optionalChain$
|
|
43653
|
+
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; }
|
|
43653
43654
|
class CryptoCom extends WindowEthereum {
|
|
43654
43655
|
|
|
43655
43656
|
static __initStatic() {this.info = {
|
|
@@ -43658,7 +43659,7 @@ class CryptoCom extends WindowEthereum {
|
|
|
43658
43659
|
blockchains: supported$2.evm
|
|
43659
43660
|
};}
|
|
43660
43661
|
|
|
43661
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
43662
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$d([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
|
|
43662
43663
|
} CryptoCom.__initStatic(); CryptoCom.__initStatic2();
|
|
43663
43664
|
|
|
43664
43665
|
class Glow extends WindowSolana {
|
|
@@ -43677,7 +43678,7 @@ class Glow extends WindowSolana {
|
|
|
43677
43678
|
};}
|
|
43678
43679
|
} Glow.__initStatic(); Glow.__initStatic2();
|
|
43679
43680
|
|
|
43680
|
-
function _optionalChain$
|
|
43681
|
+
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; }
|
|
43681
43682
|
class HyperPay extends WindowEthereum {
|
|
43682
43683
|
|
|
43683
43684
|
static __initStatic() {this.info = {
|
|
@@ -43686,10 +43687,10 @@ class HyperPay extends WindowEthereum {
|
|
|
43686
43687
|
blockchains: supported$2.evm
|
|
43687
43688
|
};}
|
|
43688
43689
|
|
|
43689
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
43690
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$c([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
|
|
43690
43691
|
} HyperPay.__initStatic(); HyperPay.__initStatic2();
|
|
43691
43692
|
|
|
43692
|
-
function _optionalChain$
|
|
43693
|
+
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; }
|
|
43693
43694
|
class MetaMask extends WindowEthereum {
|
|
43694
43695
|
|
|
43695
43696
|
static __initStatic() {this.info = {
|
|
@@ -43700,13 +43701,13 @@ class MetaMask extends WindowEthereum {
|
|
|
43700
43701
|
|
|
43701
43702
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43702
43703
|
return(
|
|
43703
|
-
_optionalChain$
|
|
43704
|
+
_optionalChain$b([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) &&
|
|
43704
43705
|
Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1
|
|
43705
43706
|
)
|
|
43706
43707
|
};}
|
|
43707
43708
|
} MetaMask.__initStatic(); MetaMask.__initStatic2();
|
|
43708
43709
|
|
|
43709
|
-
function _optionalChain$
|
|
43710
|
+
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; }
|
|
43710
43711
|
class Opera extends WindowEthereum {
|
|
43711
43712
|
|
|
43712
43713
|
static __initStatic() {this.info = {
|
|
@@ -43715,7 +43716,7 @@ class Opera extends WindowEthereum {
|
|
|
43715
43716
|
blockchains: supported$2.evm
|
|
43716
43717
|
};}
|
|
43717
43718
|
|
|
43718
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
43719
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$a([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
|
|
43719
43720
|
} Opera.__initStatic(); Opera.__initStatic2();
|
|
43720
43721
|
|
|
43721
43722
|
class Phantom extends WindowSolana {
|
|
@@ -43733,7 +43734,7 @@ class Phantom extends WindowSolana {
|
|
|
43733
43734
|
};}
|
|
43734
43735
|
} Phantom.__initStatic(); Phantom.__initStatic2();
|
|
43735
43736
|
|
|
43736
|
-
function _optionalChain$
|
|
43737
|
+
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
43738
|
class Rabby extends WindowEthereum {
|
|
43738
43739
|
|
|
43739
43740
|
static __initStatic() {this.info = {
|
|
@@ -43744,12 +43745,12 @@ class Rabby extends WindowEthereum {
|
|
|
43744
43745
|
|
|
43745
43746
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43746
43747
|
return(
|
|
43747
|
-
_optionalChain$
|
|
43748
|
+
_optionalChain$9([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isRabby])
|
|
43748
43749
|
)
|
|
43749
43750
|
};}
|
|
43750
43751
|
} Rabby.__initStatic(); Rabby.__initStatic2();
|
|
43751
43752
|
|
|
43752
|
-
function _optionalChain$
|
|
43753
|
+
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
43754
|
const KEY$2 = '_DePayWeb3WalletsConnectedSolanaMobileWalletInstance';
|
|
43754
43755
|
|
|
43755
43756
|
const base64StringToPublicKey = (base64String)=> {
|
|
@@ -43838,8 +43839,8 @@ class SolanaMobileWalletAdapter {
|
|
|
43838
43839
|
await transact(
|
|
43839
43840
|
async (wallet) => {
|
|
43840
43841
|
await this.authorize(wallet);
|
|
43841
|
-
if(_optionalChain$
|
|
43842
|
-
if(_optionalChain$
|
|
43842
|
+
if(_optionalChain$8([options, 'optionalAccess', _ => _.name])) { localStorage[KEY$2+'_name'] = this.name = options.name; }
|
|
43843
|
+
if(_optionalChain$8([options, 'optionalAccess', _2 => _2.logo])) { localStorage[KEY$2+'_logo'] = this.logo = options.logo; }
|
|
43843
43844
|
}
|
|
43844
43845
|
);
|
|
43845
43846
|
return this._account
|
|
@@ -43898,7 +43899,7 @@ class SolanaMobileWalletAdapter {
|
|
|
43898
43899
|
}
|
|
43899
43900
|
} SolanaMobileWalletAdapter.__initStatic(); SolanaMobileWalletAdapter.__initStatic2();
|
|
43900
43901
|
|
|
43901
|
-
function _optionalChain$
|
|
43902
|
+
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
43903
|
class Solflare extends WindowSolana {
|
|
43903
43904
|
|
|
43904
43905
|
static __initStatic() {this.info = {
|
|
@@ -43909,7 +43910,7 @@ class Solflare extends WindowSolana {
|
|
|
43909
43910
|
|
|
43910
43911
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43911
43912
|
return (
|
|
43912
|
-
_optionalChain$
|
|
43913
|
+
_optionalChain$7([window, 'optionalAccess', _2 => _2.solflare]) &&
|
|
43913
43914
|
window.solflare.isSolflare
|
|
43914
43915
|
)
|
|
43915
43916
|
};}
|
|
@@ -43919,6 +43920,22 @@ class Solflare extends WindowSolana {
|
|
|
43919
43920
|
_sendTransaction(transaction) { return this.getProvider().signTransaction(transaction) }
|
|
43920
43921
|
} Solflare.__initStatic(); Solflare.__initStatic2();
|
|
43921
43922
|
|
|
43923
|
+
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; }
|
|
43924
|
+
class TokenPocket extends WindowEthereum {
|
|
43925
|
+
|
|
43926
|
+
static __initStatic() {this.info = {
|
|
43927
|
+
name: 'TP Wallet (TokenPocket)',
|
|
43928
|
+
logo: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIga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bGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNjggMjc3KSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo=",
|
|
43929
|
+
blockchains: supported$2.evm
|
|
43930
|
+
};}
|
|
43931
|
+
|
|
43932
|
+
static __initStatic2() {this.isAvailable = async()=>{
|
|
43933
|
+
return (
|
|
43934
|
+
_optionalChain$6([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isTokenPocket])
|
|
43935
|
+
)
|
|
43936
|
+
};}
|
|
43937
|
+
} TokenPocket.__initStatic(); TokenPocket.__initStatic2();
|
|
43938
|
+
|
|
43922
43939
|
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
43940
|
class Trust extends WindowEthereum {
|
|
43924
43941
|
|
|
@@ -43928,7 +43945,12 @@ class Trust extends WindowEthereum {
|
|
|
43928
43945
|
blockchains: supported$2.evm
|
|
43929
43946
|
};}
|
|
43930
43947
|
|
|
43931
|
-
static __initStatic2() {this.isAvailable = async()=>{
|
|
43948
|
+
static __initStatic2() {this.isAvailable = async()=>{
|
|
43949
|
+
return (
|
|
43950
|
+
(_optionalChain$5([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isTrust]) || _optionalChain$5([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isTrustWallet])) &&
|
|
43951
|
+
Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!Debug)(?!TrustWallet)(?!MetaMask)(?!PocketUniverse)(?!RevokeCash)/)).length == 1
|
|
43952
|
+
)
|
|
43953
|
+
};}
|
|
43932
43954
|
} Trust.__initStatic(); Trust.__initStatic2();
|
|
43933
43955
|
|
|
43934
43956
|
const transactionApiBlockchainNames = {
|
|
@@ -45127,6 +45149,7 @@ var wallets = {
|
|
|
45127
45149
|
Coin98,
|
|
45128
45150
|
CryptoCom,
|
|
45129
45151
|
HyperPay,
|
|
45152
|
+
TokenPocket,
|
|
45130
45153
|
WindowEthereum,
|
|
45131
45154
|
WindowSolana,
|
|
45132
45155
|
SolanaMobileWalletAdapter,
|
|
@@ -45177,6 +45200,7 @@ const supported = [
|
|
|
45177
45200
|
wallets.Coin98,
|
|
45178
45201
|
wallets.CryptoCom,
|
|
45179
45202
|
wallets.HyperPay,
|
|
45203
|
+
wallets.TokenPocket,
|
|
45180
45204
|
wallets.WalletConnectV1,
|
|
45181
45205
|
wallets.WalletConnectV2,
|
|
45182
45206
|
wallets.WalletLink,
|