@depay/web3-wallets-evm 16.2.15 → 16.3.0
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/README.md +8 -0
- package/dist/esm/index.evm.js +103 -50
- package/dist/esm/index.js +214 -88
- package/dist/esm/index.solana.js +111 -26
- package/dist/umd/index.evm.js +103 -50
- package/dist/umd/index.js +214 -88
- package/dist/umd/index.solana.js +111 -26
- package/package.json +1 -1
package/dist/esm/index.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$q(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
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$q([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$q([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$p(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
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(transaction.blockchain);
|
|
167
167
|
const { value } = await provider.getSignatureStatus(signature);
|
|
168
|
-
const confirmationStatus = _optionalChain$
|
|
168
|
+
const confirmationStatus = _optionalChain$p([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$p([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$1 = ['ethereum', 'bsc', 'polygon', 'solana', 'fantom', 'arbitrum',
|
|
|
263
263
|
supported$1.evm = ['ethereum', 'bsc', 'polygon', 'fantom', 'arbitrum', 'avalanche', 'gnosis', 'optimism', 'base'];
|
|
264
264
|
supported$1.solana = ['solana'];
|
|
265
265
|
|
|
266
|
-
function _optionalChain$
|
|
266
|
+
function _optionalChain$o(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
267
267
|
class WindowSolana {
|
|
268
268
|
|
|
269
269
|
static __initStatic() {this.info = {
|
|
@@ -274,15 +274,17 @@ class WindowSolana {
|
|
|
274
274
|
|
|
275
275
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
276
276
|
return (
|
|
277
|
-
_optionalChain$
|
|
277
|
+
_optionalChain$o([window, 'optionalAccess', _5 => _5.solana]) &&
|
|
278
278
|
// not Phantom
|
|
279
279
|
!(window.phantom && !window.glow && !window.solana.isGlow && !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])) &&
|
|
280
280
|
// not Coin98
|
|
281
281
|
!window.coin98 &&
|
|
282
282
|
// not BitKeep
|
|
283
|
-
!(_optionalChain$
|
|
283
|
+
!(_optionalChain$o([window, 'optionalAccess', _6 => _6.solana]) && _optionalChain$o([window, 'optionalAccess', _7 => _7.solana, 'access', _8 => _8.isBitKeep])) &&
|
|
284
284
|
// not Glow
|
|
285
|
-
!window.solana.isGlow
|
|
285
|
+
!window.solana.isGlow &&
|
|
286
|
+
// not trust
|
|
287
|
+
!window.trustwallet
|
|
286
288
|
)
|
|
287
289
|
};}
|
|
288
290
|
|
|
@@ -329,7 +331,7 @@ class WindowSolana {
|
|
|
329
331
|
let internalCallback;
|
|
330
332
|
switch (event) {
|
|
331
333
|
case 'account':
|
|
332
|
-
internalCallback = (publicKey) => callback(_optionalChain$
|
|
334
|
+
internalCallback = (publicKey) => callback(_optionalChain$o([publicKey, 'optionalAccess', _9 => _9.toString, 'call', _10 => _10()]));
|
|
333
335
|
this.getProvider().on('accountChanged', internalCallback);
|
|
334
336
|
break
|
|
335
337
|
}
|
|
@@ -382,7 +384,7 @@ class WindowSolana {
|
|
|
382
384
|
}
|
|
383
385
|
} WindowSolana.__initStatic(); WindowSolana.__initStatic2();
|
|
384
386
|
|
|
385
|
-
function _optionalChain$
|
|
387
|
+
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; }
|
|
386
388
|
|
|
387
389
|
class Backpack extends WindowSolana {
|
|
388
390
|
|
|
@@ -394,7 +396,7 @@ class Backpack extends WindowSolana {
|
|
|
394
396
|
|
|
395
397
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
396
398
|
return (
|
|
397
|
-
_optionalChain$
|
|
399
|
+
_optionalChain$n([window, 'optionalAccess', _2 => _2.backpack]) &&
|
|
398
400
|
window.backpack.isBackpack
|
|
399
401
|
)
|
|
400
402
|
};}
|
|
@@ -518,7 +520,7 @@ const submitSimpleTransfer$3 = ({ transaction, signer })=>{
|
|
|
518
520
|
})
|
|
519
521
|
};
|
|
520
522
|
|
|
521
|
-
function _optionalChain$
|
|
523
|
+
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; }
|
|
522
524
|
|
|
523
525
|
class WindowEthereum {
|
|
524
526
|
|
|
@@ -530,31 +532,31 @@ class WindowEthereum {
|
|
|
530
532
|
|
|
531
533
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
532
534
|
return (
|
|
533
|
-
_optionalChain$
|
|
535
|
+
_optionalChain$m([window, 'optionalAccess', _31 => _31.ethereum]) &&
|
|
534
536
|
// not MetaMask
|
|
535
|
-
!(_optionalChain$
|
|
537
|
+
!(_optionalChain$m([window, 'optionalAccess', _32 => _32.ethereum, 'optionalAccess', _33 => _33.isMetaMask]) && Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1) &&
|
|
536
538
|
// not Coin98
|
|
537
|
-
!_optionalChain$
|
|
539
|
+
!_optionalChain$m([window, 'optionalAccess', _34 => _34.coin98]) &&
|
|
538
540
|
// not Trust Wallet
|
|
539
|
-
!(_optionalChain$
|
|
541
|
+
!(_optionalChain$m([window, 'optionalAccess', _35 => _35.ethereum, 'optionalAccess', _36 => _36.isTrust]) || _optionalChain$m([window, 'optionalAccess', _37 => _37.ethereum, 'optionalAccess', _38 => _38.isTrustWallet])) &&
|
|
540
542
|
// not crypto.com
|
|
541
|
-
!_optionalChain$
|
|
543
|
+
!_optionalChain$m([window, 'optionalAccess', _39 => _39.ethereum, 'optionalAccess', _40 => _40.isDeficonnectProvider]) &&
|
|
542
544
|
// not HyperPay
|
|
543
|
-
!_optionalChain$
|
|
545
|
+
!_optionalChain$m([window, 'optionalAccess', _41 => _41.ethereum, 'optionalAccess', _42 => _42.isHyperPay]) &&
|
|
544
546
|
// not Phantom
|
|
545
|
-
!(window.phantom && !window.glow && !_optionalChain$
|
|
547
|
+
!(window.phantom && !window.glow && !_optionalChain$m([window, 'optionalAccess', _43 => _43.solana, 'optionalAccess', _44 => _44.isGlow]) && !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])) &&
|
|
546
548
|
// not Rabby
|
|
547
|
-
!_optionalChain$
|
|
549
|
+
!_optionalChain$m([window, 'optionalAccess', _45 => _45.ethereum, 'optionalAccess', _46 => _46.isRabby]) &&
|
|
548
550
|
// not Backpack
|
|
549
|
-
!_optionalChain$
|
|
551
|
+
!_optionalChain$m([window, 'optionalAccess', _47 => _47.backpack, 'optionalAccess', _48 => _48.isBackpack]) &&
|
|
550
552
|
// not TokenPocket
|
|
551
|
-
!_optionalChain$
|
|
553
|
+
!_optionalChain$m([window, 'optionalAccess', _49 => _49.ethereum, 'optionalAccess', _50 => _50.isTokenPocket]) &&
|
|
552
554
|
// not BitKeep
|
|
553
|
-
!_optionalChain$
|
|
555
|
+
!_optionalChain$m([window, 'optionalAccess', _51 => _51.ethereum, 'optionalAccess', _52 => _52.isBitKeep]) &&
|
|
554
556
|
// not Coinbase
|
|
555
|
-
!(_optionalChain$
|
|
557
|
+
!(_optionalChain$m([window, 'optionalAccess', _53 => _53.ethereum, 'optionalAccess', _54 => _54.isCoinbaseWallet]) || _optionalChain$m([window, 'optionalAccess', _55 => _55.ethereum, 'optionalAccess', _56 => _56.isWalletLink])) &&
|
|
556
558
|
// MetaMask through ProviderMap
|
|
557
|
-
!_optionalChain$
|
|
559
|
+
!_optionalChain$m([window, 'optionalAccess', _57 => _57.ethereum, 'optionalAccess', _58 => _58.providerMap, 'optionalAccess', _59 => _59.has, 'call', _60 => _60('MetaMask')])
|
|
558
560
|
)
|
|
559
561
|
};}
|
|
560
562
|
|
|
@@ -680,7 +682,7 @@ class WindowEthereum {
|
|
|
680
682
|
}
|
|
681
683
|
} WindowEthereum.__initStatic(); WindowEthereum.__initStatic2();
|
|
682
684
|
|
|
683
|
-
function _optionalChain$
|
|
685
|
+
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; }
|
|
684
686
|
class Binance extends WindowEthereum {
|
|
685
687
|
|
|
686
688
|
static __initStatic() {this.info = {
|
|
@@ -690,15 +692,16 @@ class Binance extends WindowEthereum {
|
|
|
690
692
|
};}
|
|
691
693
|
|
|
692
694
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
693
|
-
return _optionalChain$
|
|
694
|
-
!window.coin98
|
|
695
|
+
return _optionalChain$l([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
|
|
696
|
+
!window.coin98 &&
|
|
697
|
+
!window.trustwallet
|
|
695
698
|
};}
|
|
696
699
|
|
|
697
700
|
getProvider() { return window.BinanceChain }
|
|
698
701
|
|
|
699
702
|
} Binance.__initStatic(); Binance.__initStatic2();
|
|
700
703
|
|
|
701
|
-
function _optionalChain$
|
|
704
|
+
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; }
|
|
702
705
|
class Brave extends WindowEthereum {
|
|
703
706
|
|
|
704
707
|
static __initStatic() {this.info = {
|
|
@@ -707,33 +710,62 @@ class Brave extends WindowEthereum {
|
|
|
707
710
|
blockchains: supported$1.evm
|
|
708
711
|
};}
|
|
709
712
|
|
|
710
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
713
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$k([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
|
|
711
714
|
} Brave.__initStatic(); Brave.__initStatic2();
|
|
712
715
|
|
|
713
|
-
|
|
714
|
-
|
|
716
|
+
var logos = {
|
|
717
|
+
exodus: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgdmlld0JveD0iMCAwIDMwMCAzMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0yOTguMjAzIDgzLjc2NDVMMTcwLjQ0OSAwVjQ2LjgzMzJMMjUyLjQwNSAxMDAuMDg5TDI0Mi43NjMgMTMwLjU5OEgxNzAuNDQ5VjE2OS40MDJIMjQyLjc2M0wyNTIuNDA1IDE5OS45MTFMMTcwLjQ0OSAyNTMuMTY3VjMwMEwyOTguMjAzIDIxNi41MDNMMjc3LjMxMyAxNTAuMTM0TDI5OC4yMDMgODMuNzY0NVoiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8xNjYxXzI5NSkiLz4KPHBhdGggZD0iTTU5LjMwMDcgMTY5LjQwMkgxMzEuMzQ2VjEzMC41OThINTkuMDMyOUw0OS42NTg5IDEwMC4wODlMMTMxLjM0NiA0Ni44MzMyVjBMMy41OTI1MyA4My43NjQ1TDI0LjQ4MzEgMTUwLjEzNEwzLjU5MjUzIDIxNi41MDNMMTMxLjYxNCAzMDBWMjUzLjE2N0w0OS42NTg5IDE5OS45MTFMNTkuMzAwNyAxNjkuNDAyWiIgZmlsbD0idXJsK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JyBkPSdNMjg0LjY5LDI5Ni4wOUgyMTUuMzFhMTEsMTEsMCwwLDEtMTAuOS0xMC45VjIxNS40OGExMSwxMSwwLDAsMSwxMC45LTEwLjkxSDI4NWExMSwxMSwwLDAsMSwxMC45LDEwLjkxdjY5LjcxQTExLjA3LDExLjA3LDAsMCwxLDI4NC42OSwyOTYuMDlaJyB0cmFuc2Zvcm09J3RyYW5zbGF0ZSgtNS41MiAtNS42OCknLz48L3N2Zz4=",
|
|
721
|
+
trust: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA5Ni41IDk2LjUiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDk2LjUgOTYuNSIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgZmlsbD0iI0ZGRkZGRiIgd2lkdGg9Ijk2LjUiIGhlaWdodD0iOTYuNSIvPgo8cGF0aCBzdHJva2U9IiMzMzc1QkIiIHN0cm9rZS13aWR0aD0iNi4wNjMiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQgPSIxMCIgZmlsbD0ibm9uZSIgZD0ibTQ4LjUgMjAuMWM5LjYgOCAyMC42IDcuNSAyMy43IDcuNS0wLjcgNDUuNS01LjkgMzYuNS0yMy43IDQ5LjMtMTcuOC0xMi44LTIzLTMuNy0yMy43LTQ5LjMgMy4yIDAgMTQuMSAwLjUgMjMuNy03LjV6Ii8+Cjwvc3ZnPgo=",
|
|
722
|
+
};
|
|
723
|
+
|
|
724
|
+
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; }
|
|
725
|
+
class Coin98EVM extends WindowEthereum {
|
|
715
726
|
|
|
716
727
|
static __initStatic() {this.info = {
|
|
717
728
|
name: 'Coin98',
|
|
718
|
-
logo:
|
|
719
|
-
blockchains: supported$1.evm
|
|
729
|
+
logo: logos.coin98,
|
|
730
|
+
blockchains: supported$1.evm,
|
|
731
|
+
platform: 'evm',
|
|
720
732
|
};}
|
|
721
733
|
|
|
722
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
723
|
-
} Coin98.__initStatic(); Coin98.__initStatic2();
|
|
734
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$j([window, 'optionalAccess', _2 => _2.coin98]) };}
|
|
724
735
|
|
|
725
|
-
|
|
726
|
-
|
|
736
|
+
getProvider() { return window.coin98.provider }
|
|
737
|
+
|
|
738
|
+
} Coin98EVM.__initStatic(); Coin98EVM.__initStatic2();
|
|
739
|
+
|
|
740
|
+
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; }
|
|
741
|
+
class Coin98SVM extends WindowSolana {
|
|
742
|
+
|
|
743
|
+
static __initStatic() {this.info = {
|
|
744
|
+
name: 'Coin98',
|
|
745
|
+
logo: logos.coin98,
|
|
746
|
+
blockchains: supported$1.solana,
|
|
747
|
+
platform: 'svm',
|
|
748
|
+
};}
|
|
749
|
+
|
|
750
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$i([window, 'optionalAccess', _3 => _3.coin98, 'optionalAccess', _4 => _4.sol]) };}
|
|
751
|
+
|
|
752
|
+
getProvider() { return window.coin98.sol }
|
|
753
|
+
|
|
754
|
+
} Coin98SVM.__initStatic(); Coin98SVM.__initStatic2();
|
|
755
|
+
|
|
756
|
+
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; }
|
|
757
|
+
class CoinbaseEVM extends WindowEthereum {
|
|
727
758
|
|
|
728
759
|
static __initStatic() {this.info = {
|
|
729
760
|
name: 'Coinbase',
|
|
730
|
-
logo:
|
|
731
|
-
blockchains: supported$1.evm
|
|
761
|
+
logo: logos.coinbase,
|
|
762
|
+
blockchains: supported$1.evm,
|
|
763
|
+
platform: 'evm',
|
|
732
764
|
};}
|
|
733
765
|
|
|
734
766
|
getProvider() {
|
|
735
|
-
if(_optionalChain$
|
|
736
|
-
return _optionalChain$
|
|
767
|
+
if(_optionalChain$h([window, 'optionalAccess', _9 => _9.ethereum, 'optionalAccess', _10 => _10.providerMap, 'optionalAccess', _11 => _11.has, 'call', _12 => _12('CoinbaseWallet')])) {
|
|
768
|
+
return _optionalChain$h([window, 'optionalAccess', _13 => _13.ethereum, 'optionalAccess', _14 => _14.providerMap, 'optionalAccess', _15 => _15.get, 'call', _16 => _16('CoinbaseWallet')])
|
|
737
769
|
} else {
|
|
738
770
|
return window.ethereum
|
|
739
771
|
}
|
|
@@ -742,15 +774,33 @@ class Coinbase extends WindowEthereum {
|
|
|
742
774
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
743
775
|
return(
|
|
744
776
|
(
|
|
745
|
-
_optionalChain$
|
|
777
|
+
_optionalChain$h([window, 'optionalAccess', _17 => _17.ethereum, 'optionalAccess', _18 => _18.isCoinbaseWallet]) || _optionalChain$h([window, 'optionalAccess', _19 => _19.ethereum, 'optionalAccess', _20 => _20.isWalletLink])
|
|
746
778
|
) || (
|
|
747
|
-
_optionalChain$
|
|
779
|
+
_optionalChain$h([window, 'optionalAccess', _21 => _21.ethereum, 'optionalAccess', _22 => _22.providerMap, 'optionalAccess', _23 => _23.has, 'call', _24 => _24('CoinbaseWallet')])
|
|
748
780
|
)
|
|
749
781
|
)
|
|
750
782
|
};}
|
|
751
|
-
}
|
|
783
|
+
} CoinbaseEVM.__initStatic(); CoinbaseEVM.__initStatic2();
|
|
752
784
|
|
|
753
|
-
|
|
785
|
+
class CoinbaseSVM extends WindowSolana {
|
|
786
|
+
|
|
787
|
+
static __initStatic() {this.info = {
|
|
788
|
+
name: 'Coinbase',
|
|
789
|
+
logo: logos.coinbase,
|
|
790
|
+
blockchains: supported$1.solana,
|
|
791
|
+
platform: 'svm',
|
|
792
|
+
};}
|
|
793
|
+
|
|
794
|
+
getProvider() {
|
|
795
|
+
return window.coinbaseSolana
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
static __initStatic2() {this.isAvailable = async()=>{
|
|
799
|
+
return !!window.coinbaseSolana
|
|
800
|
+
};}
|
|
801
|
+
} CoinbaseSVM.__initStatic(); CoinbaseSVM.__initStatic2();
|
|
802
|
+
|
|
803
|
+
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; }
|
|
754
804
|
class CryptoCom extends WindowEthereum {
|
|
755
805
|
|
|
756
806
|
static __initStatic() {this.info = {
|
|
@@ -759,9 +809,35 @@ class CryptoCom extends WindowEthereum {
|
|
|
759
809
|
blockchains: supported$1.evm
|
|
760
810
|
};}
|
|
761
811
|
|
|
762
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
812
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$g([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
|
|
763
813
|
} CryptoCom.__initStatic(); CryptoCom.__initStatic2();
|
|
764
814
|
|
|
815
|
+
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; }
|
|
816
|
+
class ExodusEVM extends WindowEthereum {
|
|
817
|
+
|
|
818
|
+
static __initStatic() {this.info = {
|
|
819
|
+
name: 'Exodus',
|
|
820
|
+
logo: logos.exodus,
|
|
821
|
+
blockchains: supported$1.evm,
|
|
822
|
+
platform: 'evm',
|
|
823
|
+
};}
|
|
824
|
+
|
|
825
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$f([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isExodus]) };}
|
|
826
|
+
} ExodusEVM.__initStatic(); ExodusEVM.__initStatic2();
|
|
827
|
+
|
|
828
|
+
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; }
|
|
829
|
+
class ExodusSVM extends WindowSolana {
|
|
830
|
+
|
|
831
|
+
static __initStatic() {this.info = {
|
|
832
|
+
name: 'Exodus',
|
|
833
|
+
logo: logos.exodus,
|
|
834
|
+
blockchains: supported$1.solana,
|
|
835
|
+
platform: 'svm',
|
|
836
|
+
};}
|
|
837
|
+
|
|
838
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$e([window, 'optionalAccess', _3 => _3.solana, 'optionalAccess', _4 => _4.isExodus]) };}
|
|
839
|
+
} ExodusSVM.__initStatic(); ExodusSVM.__initStatic2();
|
|
840
|
+
|
|
765
841
|
class Glow extends WindowSolana {
|
|
766
842
|
|
|
767
843
|
static __initStatic() {this.info = {
|
|
@@ -778,7 +854,7 @@ class Glow extends WindowSolana {
|
|
|
778
854
|
};}
|
|
779
855
|
} Glow.__initStatic(); Glow.__initStatic2();
|
|
780
856
|
|
|
781
|
-
function _optionalChain$
|
|
857
|
+
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; }
|
|
782
858
|
class HyperPay extends WindowEthereum {
|
|
783
859
|
|
|
784
860
|
static __initStatic() {this.info = {
|
|
@@ -787,10 +863,10 @@ class HyperPay extends WindowEthereum {
|
|
|
787
863
|
blockchains: supported$1.evm
|
|
788
864
|
};}
|
|
789
865
|
|
|
790
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
866
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$d([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
|
|
791
867
|
} HyperPay.__initStatic(); HyperPay.__initStatic2();
|
|
792
868
|
|
|
793
|
-
function _optionalChain$
|
|
869
|
+
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; }
|
|
794
870
|
class MetaMask extends WindowEthereum {
|
|
795
871
|
|
|
796
872
|
static __initStatic() {this.info = {
|
|
@@ -800,8 +876,8 @@ class MetaMask extends WindowEthereum {
|
|
|
800
876
|
};}
|
|
801
877
|
|
|
802
878
|
getProvider() {
|
|
803
|
-
if(_optionalChain$
|
|
804
|
-
return _optionalChain$
|
|
879
|
+
if(_optionalChain$c([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.providerMap, 'optionalAccess', _9 => _9.has, 'call', _10 => _10('MetaMask')])) {
|
|
880
|
+
return _optionalChain$c([window, 'optionalAccess', _11 => _11.ethereum, 'optionalAccess', _12 => _12.providerMap, 'optionalAccess', _13 => _13.get, 'call', _14 => _14('MetaMask')])
|
|
805
881
|
} else {
|
|
806
882
|
return window.ethereum
|
|
807
883
|
}
|
|
@@ -810,16 +886,16 @@ class MetaMask extends WindowEthereum {
|
|
|
810
886
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
811
887
|
return(
|
|
812
888
|
(
|
|
813
|
-
_optionalChain$
|
|
889
|
+
_optionalChain$c([window, 'optionalAccess', _15 => _15.ethereum, 'optionalAccess', _16 => _16.isMetaMask]) &&
|
|
814
890
|
Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1
|
|
815
891
|
) || (
|
|
816
|
-
_optionalChain$
|
|
892
|
+
_optionalChain$c([window, 'optionalAccess', _17 => _17.ethereum, 'optionalAccess', _18 => _18.providerMap, 'optionalAccess', _19 => _19.has, 'call', _20 => _20('MetaMask')])
|
|
817
893
|
)
|
|
818
894
|
)
|
|
819
895
|
};}
|
|
820
896
|
} MetaMask.__initStatic(); MetaMask.__initStatic2();
|
|
821
897
|
|
|
822
|
-
function _optionalChain$
|
|
898
|
+
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; }
|
|
823
899
|
class Opera extends WindowEthereum {
|
|
824
900
|
|
|
825
901
|
static __initStatic() {this.info = {
|
|
@@ -828,29 +904,48 @@ class Opera extends WindowEthereum {
|
|
|
828
904
|
blockchains: supported$1.evm
|
|
829
905
|
};}
|
|
830
906
|
|
|
831
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
907
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$b([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
|
|
832
908
|
} Opera.__initStatic(); Opera.__initStatic2();
|
|
833
909
|
|
|
834
|
-
|
|
835
|
-
class Phantom extends WindowSolana {
|
|
910
|
+
class PhantomEVM extends WindowEthereum {
|
|
836
911
|
|
|
837
912
|
static __initStatic() {this.info = {
|
|
838
913
|
name: 'Phantom',
|
|
839
|
-
logo:
|
|
840
|
-
blockchains:
|
|
914
|
+
logo: logos.phantom,
|
|
915
|
+
blockchains: supported$1.evm,
|
|
916
|
+
platform: 'evm',
|
|
917
|
+
};}
|
|
918
|
+
|
|
919
|
+
static __initStatic2() {this.isAvailable = async()=>{
|
|
920
|
+
return (
|
|
921
|
+
window.phantom &&
|
|
922
|
+
window.phantom.ethereum
|
|
923
|
+
)
|
|
924
|
+
};}
|
|
925
|
+
} PhantomEVM.__initStatic(); PhantomEVM.__initStatic2();
|
|
926
|
+
|
|
927
|
+
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; }
|
|
928
|
+
class PhantomSVM extends WindowSolana {
|
|
929
|
+
|
|
930
|
+
static __initStatic() {this.info = {
|
|
931
|
+
name: 'Phantom',
|
|
932
|
+
logo: logos.phantom,
|
|
933
|
+
blockchains: supported$1.solana,
|
|
934
|
+
platform: 'svm',
|
|
841
935
|
};}
|
|
842
936
|
|
|
843
937
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
844
938
|
return (
|
|
845
939
|
window.phantom &&
|
|
846
940
|
!window.glow &&
|
|
847
|
-
!_optionalChain$
|
|
941
|
+
!_optionalChain$a([window, 'optionalAccess', _5 => _5.solana, 'optionalAccess', _6 => _6.isGlow]) &&
|
|
942
|
+
!_optionalChain$a([window, 'optionalAccess', _7 => _7.solana, 'optionalAccess', _8 => _8.isExodus]) &&
|
|
848
943
|
!['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])
|
|
849
944
|
)
|
|
850
945
|
};}
|
|
851
|
-
}
|
|
946
|
+
} PhantomSVM.__initStatic(); PhantomSVM.__initStatic2();
|
|
852
947
|
|
|
853
|
-
function _optionalChain$
|
|
948
|
+
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; }
|
|
854
949
|
class Rabby extends WindowEthereum {
|
|
855
950
|
|
|
856
951
|
static __initStatic() {this.info = {
|
|
@@ -861,12 +956,12 @@ class Rabby extends WindowEthereum {
|
|
|
861
956
|
|
|
862
957
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
863
958
|
return(
|
|
864
|
-
_optionalChain$
|
|
959
|
+
_optionalChain$9([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isRabby])
|
|
865
960
|
)
|
|
866
961
|
};}
|
|
867
962
|
} Rabby.__initStatic(); Rabby.__initStatic2();
|
|
868
963
|
|
|
869
|
-
function _optionalChain$
|
|
964
|
+
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; }
|
|
870
965
|
|
|
871
966
|
|
|
872
967
|
const KEY$2 = '_DePayWeb3WalletsConnectedSolanaMobileWalletInstance';
|
|
@@ -957,8 +1052,8 @@ class SolanaMobileWalletAdapter {
|
|
|
957
1052
|
await transact(
|
|
958
1053
|
async (wallet) => {
|
|
959
1054
|
await this.authorize(wallet);
|
|
960
|
-
if(_optionalChain$
|
|
961
|
-
if(_optionalChain$
|
|
1055
|
+
if(_optionalChain$8([options, 'optionalAccess', _ => _.name])) { localStorage[KEY$2+'_name'] = this.name = options.name; }
|
|
1056
|
+
if(_optionalChain$8([options, 'optionalAccess', _2 => _2.logo])) { localStorage[KEY$2+'_logo'] = this.logo = options.logo; }
|
|
962
1057
|
}
|
|
963
1058
|
);
|
|
964
1059
|
return this._account
|
|
@@ -1017,7 +1112,7 @@ class SolanaMobileWalletAdapter {
|
|
|
1017
1112
|
}
|
|
1018
1113
|
} SolanaMobileWalletAdapter.__initStatic(); SolanaMobileWalletAdapter.__initStatic2();
|
|
1019
1114
|
|
|
1020
|
-
function _optionalChain$
|
|
1115
|
+
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; }
|
|
1021
1116
|
class Solflare extends WindowSolana {
|
|
1022
1117
|
|
|
1023
1118
|
static __initStatic() {this.info = {
|
|
@@ -1028,7 +1123,7 @@ class Solflare extends WindowSolana {
|
|
|
1028
1123
|
|
|
1029
1124
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
1030
1125
|
return (
|
|
1031
|
-
_optionalChain$
|
|
1126
|
+
_optionalChain$7([window, 'optionalAccess', _2 => _2.solflare]) &&
|
|
1032
1127
|
window.solflare.isSolflare
|
|
1033
1128
|
)
|
|
1034
1129
|
};}
|
|
@@ -1038,7 +1133,7 @@ class Solflare extends WindowSolana {
|
|
|
1038
1133
|
_sendTransaction(transaction) { return this.getProvider().signTransaction(transaction) }
|
|
1039
1134
|
} Solflare.__initStatic(); Solflare.__initStatic2();
|
|
1040
1135
|
|
|
1041
|
-
function _optionalChain$
|
|
1136
|
+
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; }
|
|
1042
1137
|
class TokenPocket extends WindowEthereum {
|
|
1043
1138
|
|
|
1044
1139
|
static __initStatic() {this.info = {
|
|
@@ -1049,27 +1144,43 @@ class TokenPocket extends WindowEthereum {
|
|
|
1049
1144
|
|
|
1050
1145
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
1051
1146
|
return (
|
|
1052
|
-
_optionalChain$
|
|
1147
|
+
_optionalChain$6([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isTokenPocket])
|
|
1053
1148
|
)
|
|
1054
1149
|
};}
|
|
1055
1150
|
} TokenPocket.__initStatic(); TokenPocket.__initStatic2();
|
|
1056
1151
|
|
|
1057
|
-
function _optionalChain$
|
|
1058
|
-
class
|
|
1152
|
+
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; }
|
|
1153
|
+
class TrustEVM extends WindowEthereum {
|
|
1059
1154
|
|
|
1060
1155
|
static __initStatic() {this.info = {
|
|
1061
1156
|
name: 'Trust Wallet',
|
|
1062
|
-
logo:
|
|
1063
|
-
blockchains: supported$1.evm
|
|
1157
|
+
logo: logos.trust,
|
|
1158
|
+
blockchains: supported$1.evm,
|
|
1159
|
+
platform: 'evm',
|
|
1064
1160
|
};}
|
|
1065
1161
|
|
|
1066
1162
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
1067
1163
|
return (
|
|
1068
|
-
(_optionalChain$
|
|
1164
|
+
(_optionalChain$5([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isTrust]) || _optionalChain$5([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isTrustWallet])) &&
|
|
1069
1165
|
Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!Debug)(?!TrustWallet)(?!MetaMask)(?!PocketUniverse)(?!RevokeCash)/)).length == 1
|
|
1070
1166
|
)
|
|
1071
1167
|
};}
|
|
1072
|
-
}
|
|
1168
|
+
} TrustEVM.__initStatic(); TrustEVM.__initStatic2();
|
|
1169
|
+
|
|
1170
|
+
function _optionalChain$4(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
1171
|
+
class TrustSVM extends WindowSolana {
|
|
1172
|
+
|
|
1173
|
+
static __initStatic() {this.info = {
|
|
1174
|
+
name: 'Trust Wallet',
|
|
1175
|
+
logo: logos.trust,
|
|
1176
|
+
blockchains: supported$1.svm,
|
|
1177
|
+
platform: 'svm',
|
|
1178
|
+
};}
|
|
1179
|
+
|
|
1180
|
+
static __initStatic2() {this.isAvailable = async()=>{
|
|
1181
|
+
return _optionalChain$4([window, 'access', _3 => _3.solana, 'optionalAccess', _4 => _4.isTrustWallet])
|
|
1182
|
+
};}
|
|
1183
|
+
} TrustSVM.__initStatic(); TrustSVM.__initStatic2();
|
|
1073
1184
|
|
|
1074
1185
|
const transactionApiBlockchainNames = {
|
|
1075
1186
|
'ethereum': 'mainnet',
|
|
@@ -1967,7 +2078,7 @@ class WalletConnectV2 {
|
|
|
1967
2078
|
async setSessionBlockchains() {
|
|
1968
2079
|
if(!this.session || !_optionalChain$1([this, 'access', _27 => _27.session, 'optionalAccess', _28 => _28.namespaces, 'optionalAccess', _29 => _29.eip155])) { return }
|
|
1969
2080
|
if(_optionalChain$1([CONFIGURATIONS, 'access', _30 => _30[this.walletName], 'optionalAccess', _31 => _31.methods, 'optionalAccess', _32 => _32.includes, 'call', _33 => _33('wallet_switchEthereumChain')])) {
|
|
1970
|
-
this.blockchains = this.session.namespaces.eip155.chains.map((chainIdentifier)=>_optionalChain$1([Blockchains, 'access', _34 => _34.findByNetworkId, 'call', _35 => _35(chainIdentifier.split(':')[1]), 'optionalAccess', _36 => _36.name])).filter(Boolean);
|
|
2081
|
+
this.blockchains = [this.session.namespaces.eip155.chains[this.session.namespaces.eip155.chains.length-1]].map((chainIdentifier)=>_optionalChain$1([Blockchains, 'access', _34 => _34.findByNetworkId, 'call', _35 => _35(chainIdentifier.split(':')[1]), 'optionalAccess', _36 => _36.name])).filter(Boolean);
|
|
1971
2082
|
} else if(this.session.namespaces.eip155.chains) {
|
|
1972
2083
|
this.blockchains = this.session.namespaces.eip155.chains.map((chainIdentifier)=>_optionalChain$1([Blockchains, 'access', _37 => _37.findByNetworkId, 'call', _38 => _38(chainIdentifier.split(':')[1]), 'optionalAccess', _39 => _39.name])).filter(Boolean);
|
|
1973
2084
|
} else if(this.session.namespaces.eip155.accounts) {
|
|
@@ -2266,7 +2377,7 @@ class WalletLink {
|
|
|
2266
2377
|
|
|
2267
2378
|
static __initStatic() {this.info = {
|
|
2268
2379
|
name: 'Coinbase',
|
|
2269
|
-
logo:
|
|
2380
|
+
logo: logos.coinbase,
|
|
2270
2381
|
blockchains: supported$1.evm
|
|
2271
2382
|
};}
|
|
2272
2383
|
|
|
@@ -2422,20 +2533,28 @@ WalletLink.setConnectedInstance = setConnectedInstance;
|
|
|
2422
2533
|
|
|
2423
2534
|
var wallets = {
|
|
2424
2535
|
MetaMask,
|
|
2425
|
-
|
|
2426
|
-
|
|
2536
|
+
PhantomEVM,
|
|
2537
|
+
PhantomSVM,
|
|
2538
|
+
CoinbaseEVM,
|
|
2539
|
+
CoinbaseSVM,
|
|
2427
2540
|
Binance,
|
|
2428
|
-
|
|
2541
|
+
TrustEVM,
|
|
2542
|
+
TrustSVM,
|
|
2429
2543
|
Backpack,
|
|
2430
2544
|
Glow,
|
|
2431
2545
|
Solflare,
|
|
2432
2546
|
Rabby,
|
|
2433
2547
|
Brave,
|
|
2434
2548
|
Opera,
|
|
2435
|
-
|
|
2549
|
+
Coin98EVM,
|
|
2550
|
+
Coin98SVM,
|
|
2436
2551
|
CryptoCom,
|
|
2437
2552
|
HyperPay,
|
|
2438
2553
|
TokenPocket,
|
|
2554
|
+
ExodusEVM,
|
|
2555
|
+
ExodusSVM,
|
|
2556
|
+
|
|
2557
|
+
// standards (not concrete wallets)
|
|
2439
2558
|
WindowEthereum,
|
|
2440
2559
|
WindowSolana,
|
|
2441
2560
|
SolanaMobileWalletAdapter,
|
|
@@ -2477,10 +2596,13 @@ const getWallets = async(args)=>{
|
|
|
2477
2596
|
|
|
2478
2597
|
const supported = [
|
|
2479
2598
|
wallets.MetaMask,
|
|
2480
|
-
wallets.
|
|
2481
|
-
wallets.
|
|
2599
|
+
wallets.PhantomEVM,
|
|
2600
|
+
wallets.PhantomSVM,
|
|
2601
|
+
wallets.CoinbaseEVM,
|
|
2602
|
+
wallets.CoinbaseSVM,
|
|
2482
2603
|
wallets.Binance,
|
|
2483
|
-
wallets.
|
|
2604
|
+
wallets.TrustEVM,
|
|
2605
|
+
wallets.TrustSVM,
|
|
2484
2606
|
wallets.Backpack,
|
|
2485
2607
|
wallets.Glow,
|
|
2486
2608
|
wallets.Solflare,
|
|
@@ -2491,6 +2613,10 @@ const supported = [
|
|
|
2491
2613
|
wallets.CryptoCom,
|
|
2492
2614
|
wallets.HyperPay,
|
|
2493
2615
|
wallets.TokenPocket,
|
|
2616
|
+
wallets.ExodusEVM,
|
|
2617
|
+
wallets.ExodusSVM,
|
|
2618
|
+
|
|
2619
|
+
// standards (not concrete wallets)
|
|
2494
2620
|
wallets.WalletConnectV1,
|
|
2495
2621
|
wallets.WalletConnectV2,
|
|
2496
2622
|
wallets.SolanaMobileWalletAdapter,
|