@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/umd/index.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
var Blockchains__default = /*#__PURE__*/_interopDefaultLegacy(Blockchains);
|
|
10
10
|
|
|
11
|
-
function _optionalChain$
|
|
11
|
+
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; }
|
|
12
12
|
class Transaction {
|
|
13
13
|
|
|
14
14
|
constructor({
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
this.to = (to && to.match('0x')) ? ethers.ethers.utils.getAddress(to) : to;
|
|
34
34
|
|
|
35
35
|
// optional
|
|
36
|
-
this.value = _optionalChain$
|
|
36
|
+
this.value = _optionalChain$q([Transaction, 'access', _ => _.bigNumberify, 'call', _2 => _2(value, blockchain), 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]);
|
|
37
37
|
this.api = api;
|
|
38
38
|
this.method = method;
|
|
39
39
|
this.params = params;
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
getParamType(param) {
|
|
76
|
-
if(_optionalChain$
|
|
76
|
+
if(_optionalChain$q([param, 'optionalAccess', _5 => _5.components, 'optionalAccess', _6 => _6.length])) {
|
|
77
77
|
return `(${param.components.map((param)=>this.getParamType(param)).join(',')})`
|
|
78
78
|
} else {
|
|
79
79
|
return param.type
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
function _optionalChain$
|
|
149
|
+
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; }
|
|
150
150
|
|
|
151
151
|
const POLL_SPEED = 500; // 0.5 seconds
|
|
152
152
|
const MAX_POLLS = 240; // 120 seconds
|
|
@@ -167,14 +167,14 @@
|
|
|
167
167
|
|
|
168
168
|
const provider = await web3Client.getProvider(transaction.blockchain);
|
|
169
169
|
const { value } = await provider.getSignatureStatus(signature);
|
|
170
|
-
const confirmationStatus = _optionalChain$
|
|
170
|
+
const confirmationStatus = _optionalChain$p([value, 'optionalAccess', _ => _.confirmationStatus]);
|
|
171
171
|
if(confirmationStatus) {
|
|
172
172
|
const hasReachedSufficientCommitment = confirmationStatus === 'confirmed' || confirmationStatus === 'finalized';
|
|
173
173
|
if (hasReachedSufficientCommitment) {
|
|
174
174
|
if(value.err) {
|
|
175
175
|
transaction._failed = true;
|
|
176
176
|
const confirmedTransaction = await provider.getConfirmedTransaction(signature);
|
|
177
|
-
const failedReason = _optionalChain$
|
|
177
|
+
const failedReason = _optionalChain$p([confirmedTransaction, 'optionalAccess', _2 => _2.meta, 'optionalAccess', _3 => _3.logMessages]) ? confirmedTransaction.meta.logMessages[confirmedTransaction.meta.logMessages.length - 1] : null;
|
|
178
178
|
if(transaction.failed) transaction.failed(transaction, failedReason);
|
|
179
179
|
} else {
|
|
180
180
|
transaction._succeeded = true;
|
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
supported$1.evm = ['ethereum', 'bsc', 'polygon', 'fantom', 'arbitrum', 'avalanche', 'gnosis', 'optimism', 'base'];
|
|
266
266
|
supported$1.solana = ['solana'];
|
|
267
267
|
|
|
268
|
-
function _optionalChain$
|
|
268
|
+
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; }
|
|
269
269
|
class WindowSolana {
|
|
270
270
|
|
|
271
271
|
static __initStatic() {this.info = {
|
|
@@ -276,15 +276,17 @@
|
|
|
276
276
|
|
|
277
277
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
278
278
|
return (
|
|
279
|
-
_optionalChain$
|
|
279
|
+
_optionalChain$o([window, 'optionalAccess', _5 => _5.solana]) &&
|
|
280
280
|
// not Phantom
|
|
281
281
|
!(window.phantom && !window.glow && !window.solana.isGlow && !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])) &&
|
|
282
282
|
// not Coin98
|
|
283
283
|
!window.coin98 &&
|
|
284
284
|
// not BitKeep
|
|
285
|
-
!(_optionalChain$
|
|
285
|
+
!(_optionalChain$o([window, 'optionalAccess', _6 => _6.solana]) && _optionalChain$o([window, 'optionalAccess', _7 => _7.solana, 'access', _8 => _8.isBitKeep])) &&
|
|
286
286
|
// not Glow
|
|
287
|
-
!window.solana.isGlow
|
|
287
|
+
!window.solana.isGlow &&
|
|
288
|
+
// not trust
|
|
289
|
+
!window.trustwallet
|
|
288
290
|
)
|
|
289
291
|
};}
|
|
290
292
|
|
|
@@ -331,7 +333,7 @@
|
|
|
331
333
|
let internalCallback;
|
|
332
334
|
switch (event) {
|
|
333
335
|
case 'account':
|
|
334
|
-
internalCallback = (publicKey) => callback(_optionalChain$
|
|
336
|
+
internalCallback = (publicKey) => callback(_optionalChain$o([publicKey, 'optionalAccess', _9 => _9.toString, 'call', _10 => _10()]));
|
|
335
337
|
this.getProvider().on('accountChanged', internalCallback);
|
|
336
338
|
break
|
|
337
339
|
}
|
|
@@ -384,7 +386,7 @@
|
|
|
384
386
|
}
|
|
385
387
|
} WindowSolana.__initStatic(); WindowSolana.__initStatic2();
|
|
386
388
|
|
|
387
|
-
function _optionalChain$
|
|
389
|
+
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; }
|
|
388
390
|
|
|
389
391
|
class Backpack extends WindowSolana {
|
|
390
392
|
|
|
@@ -396,7 +398,7 @@
|
|
|
396
398
|
|
|
397
399
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
398
400
|
return (
|
|
399
|
-
_optionalChain$
|
|
401
|
+
_optionalChain$n([window, 'optionalAccess', _2 => _2.backpack]) &&
|
|
400
402
|
window.backpack.isBackpack
|
|
401
403
|
)
|
|
402
404
|
};}
|
|
@@ -520,7 +522,7 @@
|
|
|
520
522
|
})
|
|
521
523
|
};
|
|
522
524
|
|
|
523
|
-
function _optionalChain$
|
|
525
|
+
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; }
|
|
524
526
|
|
|
525
527
|
class WindowEthereum {
|
|
526
528
|
|
|
@@ -532,31 +534,31 @@
|
|
|
532
534
|
|
|
533
535
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
534
536
|
return (
|
|
535
|
-
_optionalChain$
|
|
537
|
+
_optionalChain$m([window, 'optionalAccess', _31 => _31.ethereum]) &&
|
|
536
538
|
// not MetaMask
|
|
537
|
-
!(_optionalChain$
|
|
539
|
+
!(_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) &&
|
|
538
540
|
// not Coin98
|
|
539
|
-
!_optionalChain$
|
|
541
|
+
!_optionalChain$m([window, 'optionalAccess', _34 => _34.coin98]) &&
|
|
540
542
|
// not Trust Wallet
|
|
541
|
-
!(_optionalChain$
|
|
543
|
+
!(_optionalChain$m([window, 'optionalAccess', _35 => _35.ethereum, 'optionalAccess', _36 => _36.isTrust]) || _optionalChain$m([window, 'optionalAccess', _37 => _37.ethereum, 'optionalAccess', _38 => _38.isTrustWallet])) &&
|
|
542
544
|
// not crypto.com
|
|
543
|
-
!_optionalChain$
|
|
545
|
+
!_optionalChain$m([window, 'optionalAccess', _39 => _39.ethereum, 'optionalAccess', _40 => _40.isDeficonnectProvider]) &&
|
|
544
546
|
// not HyperPay
|
|
545
|
-
!_optionalChain$
|
|
547
|
+
!_optionalChain$m([window, 'optionalAccess', _41 => _41.ethereum, 'optionalAccess', _42 => _42.isHyperPay]) &&
|
|
546
548
|
// not Phantom
|
|
547
|
-
!(window.phantom && !window.glow && !_optionalChain$
|
|
549
|
+
!(window.phantom && !window.glow && !_optionalChain$m([window, 'optionalAccess', _43 => _43.solana, 'optionalAccess', _44 => _44.isGlow]) && !['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])) &&
|
|
548
550
|
// not Rabby
|
|
549
|
-
!_optionalChain$
|
|
551
|
+
!_optionalChain$m([window, 'optionalAccess', _45 => _45.ethereum, 'optionalAccess', _46 => _46.isRabby]) &&
|
|
550
552
|
// not Backpack
|
|
551
|
-
!_optionalChain$
|
|
553
|
+
!_optionalChain$m([window, 'optionalAccess', _47 => _47.backpack, 'optionalAccess', _48 => _48.isBackpack]) &&
|
|
552
554
|
// not TokenPocket
|
|
553
|
-
!_optionalChain$
|
|
555
|
+
!_optionalChain$m([window, 'optionalAccess', _49 => _49.ethereum, 'optionalAccess', _50 => _50.isTokenPocket]) &&
|
|
554
556
|
// not BitKeep
|
|
555
|
-
!_optionalChain$
|
|
557
|
+
!_optionalChain$m([window, 'optionalAccess', _51 => _51.ethereum, 'optionalAccess', _52 => _52.isBitKeep]) &&
|
|
556
558
|
// not Coinbase
|
|
557
|
-
!(_optionalChain$
|
|
559
|
+
!(_optionalChain$m([window, 'optionalAccess', _53 => _53.ethereum, 'optionalAccess', _54 => _54.isCoinbaseWallet]) || _optionalChain$m([window, 'optionalAccess', _55 => _55.ethereum, 'optionalAccess', _56 => _56.isWalletLink])) &&
|
|
558
560
|
// MetaMask through ProviderMap
|
|
559
|
-
!_optionalChain$
|
|
561
|
+
!_optionalChain$m([window, 'optionalAccess', _57 => _57.ethereum, 'optionalAccess', _58 => _58.providerMap, 'optionalAccess', _59 => _59.has, 'call', _60 => _60('MetaMask')])
|
|
560
562
|
)
|
|
561
563
|
};}
|
|
562
564
|
|
|
@@ -682,7 +684,7 @@
|
|
|
682
684
|
}
|
|
683
685
|
} WindowEthereum.__initStatic(); WindowEthereum.__initStatic2();
|
|
684
686
|
|
|
685
|
-
function _optionalChain$
|
|
687
|
+
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; }
|
|
686
688
|
class Binance extends WindowEthereum {
|
|
687
689
|
|
|
688
690
|
static __initStatic() {this.info = {
|
|
@@ -692,15 +694,16 @@
|
|
|
692
694
|
};}
|
|
693
695
|
|
|
694
696
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
695
|
-
return _optionalChain$
|
|
696
|
-
!window.coin98
|
|
697
|
+
return _optionalChain$l([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
|
|
698
|
+
!window.coin98 &&
|
|
699
|
+
!window.trustwallet
|
|
697
700
|
};}
|
|
698
701
|
|
|
699
702
|
getProvider() { return window.BinanceChain }
|
|
700
703
|
|
|
701
704
|
} Binance.__initStatic(); Binance.__initStatic2();
|
|
702
705
|
|
|
703
|
-
function _optionalChain$
|
|
706
|
+
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; }
|
|
704
707
|
class Brave extends WindowEthereum {
|
|
705
708
|
|
|
706
709
|
static __initStatic() {this.info = {
|
|
@@ -709,33 +712,62 @@
|
|
|
709
712
|
blockchains: supported$1.evm
|
|
710
713
|
};}
|
|
711
714
|
|
|
712
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
715
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$k([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isBraveWallet]) };}
|
|
713
716
|
} Brave.__init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
trust: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA5Ni41IDk2LjUiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDk2LjUgOTYuNSIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgZmlsbD0iI0ZGRkZGRiIgd2lkdGg9Ijk2LjUiIGhlaWdodD0iOTYuNSIvPgo8cGF0aCBzdHJva2U9IiMzMzc1QkIiIHN0cm9rZS13aWR0aD0iNi4wNjMiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQgPSIxMCIgZmlsbD0ibm9uZSIgZD0ibTQ4LjUgMjAuMWM5LjYgOCAyMC42IDcuNSAyMy43IDcuNS0wLjcgNDUuNS01LjkgMzYuNS0yMy43IDQ5LjMtMTcuOC0xMi44LTIzLTMuNy0yMy43LTQ5LjMgMy4yIDAgMTQuMSAwLjUgMjMuNy03LjV6Ii8+Cjwvc3ZnPgo=",
|
|
724
|
+
};
|
|
725
|
+
|
|
726
|
+
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; }
|
|
727
|
+
class Coin98EVM extends WindowEthereum {
|
|
717
728
|
|
|
718
729
|
static __initStatic() {this.info = {
|
|
719
730
|
name: 'Coin98',
|
|
720
|
-
logo:
|
|
721
|
-
blockchains: supported$1.evm
|
|
731
|
+
logo: logos.coin98,
|
|
732
|
+
blockchains: supported$1.evm,
|
|
733
|
+
platform: 'evm',
|
|
722
734
|
};}
|
|
723
735
|
|
|
724
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
725
|
-
} Coin98.__initStatic(); Coin98.__initStatic2();
|
|
736
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$j([window, 'optionalAccess', _2 => _2.coin98]) };}
|
|
726
737
|
|
|
727
|
-
|
|
728
|
-
|
|
738
|
+
getProvider() { return window.coin98.provider }
|
|
739
|
+
|
|
740
|
+
} Coin98EVM.__initStatic(); Coin98EVM.__initStatic2();
|
|
741
|
+
|
|
742
|
+
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; }
|
|
743
|
+
class Coin98SVM extends WindowSolana {
|
|
744
|
+
|
|
745
|
+
static __initStatic() {this.info = {
|
|
746
|
+
name: 'Coin98',
|
|
747
|
+
logo: logos.coin98,
|
|
748
|
+
blockchains: supported$1.solana,
|
|
749
|
+
platform: 'svm',
|
|
750
|
+
};}
|
|
751
|
+
|
|
752
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$i([window, 'optionalAccess', _3 => _3.coin98, 'optionalAccess', _4 => _4.sol]) };}
|
|
753
|
+
|
|
754
|
+
getProvider() { return window.coin98.sol }
|
|
755
|
+
|
|
756
|
+
} Coin98SVM.__initStatic(); Coin98SVM.__initStatic2();
|
|
757
|
+
|
|
758
|
+
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; }
|
|
759
|
+
class CoinbaseEVM extends WindowEthereum {
|
|
729
760
|
|
|
730
761
|
static __initStatic() {this.info = {
|
|
731
762
|
name: 'Coinbase',
|
|
732
|
-
logo:
|
|
733
|
-
blockchains: supported$1.evm
|
|
763
|
+
logo: logos.coinbase,
|
|
764
|
+
blockchains: supported$1.evm,
|
|
765
|
+
platform: 'evm',
|
|
734
766
|
};}
|
|
735
767
|
|
|
736
768
|
getProvider() {
|
|
737
|
-
if(_optionalChain$
|
|
738
|
-
return _optionalChain$
|
|
769
|
+
if(_optionalChain$h([window, 'optionalAccess', _9 => _9.ethereum, 'optionalAccess', _10 => _10.providerMap, 'optionalAccess', _11 => _11.has, 'call', _12 => _12('CoinbaseWallet')])) {
|
|
770
|
+
return _optionalChain$h([window, 'optionalAccess', _13 => _13.ethereum, 'optionalAccess', _14 => _14.providerMap, 'optionalAccess', _15 => _15.get, 'call', _16 => _16('CoinbaseWallet')])
|
|
739
771
|
} else {
|
|
740
772
|
return window.ethereum
|
|
741
773
|
}
|
|
@@ -744,15 +776,33 @@
|
|
|
744
776
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
745
777
|
return(
|
|
746
778
|
(
|
|
747
|
-
_optionalChain$
|
|
779
|
+
_optionalChain$h([window, 'optionalAccess', _17 => _17.ethereum, 'optionalAccess', _18 => _18.isCoinbaseWallet]) || _optionalChain$h([window, 'optionalAccess', _19 => _19.ethereum, 'optionalAccess', _20 => _20.isWalletLink])
|
|
748
780
|
) || (
|
|
749
|
-
_optionalChain$
|
|
781
|
+
_optionalChain$h([window, 'optionalAccess', _21 => _21.ethereum, 'optionalAccess', _22 => _22.providerMap, 'optionalAccess', _23 => _23.has, 'call', _24 => _24('CoinbaseWallet')])
|
|
750
782
|
)
|
|
751
783
|
)
|
|
752
784
|
};}
|
|
753
|
-
}
|
|
785
|
+
} CoinbaseEVM.__initStatic(); CoinbaseEVM.__initStatic2();
|
|
754
786
|
|
|
755
|
-
|
|
787
|
+
class CoinbaseSVM extends WindowSolana {
|
|
788
|
+
|
|
789
|
+
static __initStatic() {this.info = {
|
|
790
|
+
name: 'Coinbase',
|
|
791
|
+
logo: logos.coinbase,
|
|
792
|
+
blockchains: supported$1.solana,
|
|
793
|
+
platform: 'svm',
|
|
794
|
+
};}
|
|
795
|
+
|
|
796
|
+
getProvider() {
|
|
797
|
+
return window.coinbaseSolana
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
static __initStatic2() {this.isAvailable = async()=>{
|
|
801
|
+
return !!window.coinbaseSolana
|
|
802
|
+
};}
|
|
803
|
+
} CoinbaseSVM.__initStatic(); CoinbaseSVM.__initStatic2();
|
|
804
|
+
|
|
805
|
+
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; }
|
|
756
806
|
class CryptoCom extends WindowEthereum {
|
|
757
807
|
|
|
758
808
|
static __initStatic() {this.info = {
|
|
@@ -761,9 +811,35 @@
|
|
|
761
811
|
blockchains: supported$1.evm
|
|
762
812
|
};}
|
|
763
813
|
|
|
764
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
814
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$g([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isDeficonnectProvider]) };}
|
|
765
815
|
} CryptoCom.__initStatic(); CryptoCom.__initStatic2();
|
|
766
816
|
|
|
817
|
+
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; }
|
|
818
|
+
class ExodusEVM extends WindowEthereum {
|
|
819
|
+
|
|
820
|
+
static __initStatic() {this.info = {
|
|
821
|
+
name: 'Exodus',
|
|
822
|
+
logo: logos.exodus,
|
|
823
|
+
blockchains: supported$1.evm,
|
|
824
|
+
platform: 'evm',
|
|
825
|
+
};}
|
|
826
|
+
|
|
827
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$f([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isExodus]) };}
|
|
828
|
+
} ExodusEVM.__initStatic(); ExodusEVM.__initStatic2();
|
|
829
|
+
|
|
830
|
+
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; }
|
|
831
|
+
class ExodusSVM extends WindowSolana {
|
|
832
|
+
|
|
833
|
+
static __initStatic() {this.info = {
|
|
834
|
+
name: 'Exodus',
|
|
835
|
+
logo: logos.exodus,
|
|
836
|
+
blockchains: supported$1.solana,
|
|
837
|
+
platform: 'svm',
|
|
838
|
+
};}
|
|
839
|
+
|
|
840
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$e([window, 'optionalAccess', _3 => _3.solana, 'optionalAccess', _4 => _4.isExodus]) };}
|
|
841
|
+
} ExodusSVM.__initStatic(); ExodusSVM.__initStatic2();
|
|
842
|
+
|
|
767
843
|
class Glow extends WindowSolana {
|
|
768
844
|
|
|
769
845
|
static __initStatic() {this.info = {
|
|
@@ -780,7 +856,7 @@
|
|
|
780
856
|
};}
|
|
781
857
|
} Glow.__initStatic(); Glow.__initStatic2();
|
|
782
858
|
|
|
783
|
-
function _optionalChain$
|
|
859
|
+
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; }
|
|
784
860
|
class HyperPay extends WindowEthereum {
|
|
785
861
|
|
|
786
862
|
static __initStatic() {this.info = {
|
|
@@ -789,10 +865,10 @@
|
|
|
789
865
|
blockchains: supported$1.evm
|
|
790
866
|
};}
|
|
791
867
|
|
|
792
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
868
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$d([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isHyperPay]) };}
|
|
793
869
|
} HyperPay.__initStatic(); HyperPay.__initStatic2();
|
|
794
870
|
|
|
795
|
-
function _optionalChain$
|
|
871
|
+
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; }
|
|
796
872
|
class MetaMask extends WindowEthereum {
|
|
797
873
|
|
|
798
874
|
static __initStatic() {this.info = {
|
|
@@ -802,8 +878,8 @@
|
|
|
802
878
|
};}
|
|
803
879
|
|
|
804
880
|
getProvider() {
|
|
805
|
-
if(_optionalChain$
|
|
806
|
-
return _optionalChain$
|
|
881
|
+
if(_optionalChain$c([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.providerMap, 'optionalAccess', _9 => _9.has, 'call', _10 => _10('MetaMask')])) {
|
|
882
|
+
return _optionalChain$c([window, 'optionalAccess', _11 => _11.ethereum, 'optionalAccess', _12 => _12.providerMap, 'optionalAccess', _13 => _13.get, 'call', _14 => _14('MetaMask')])
|
|
807
883
|
} else {
|
|
808
884
|
return window.ethereum
|
|
809
885
|
}
|
|
@@ -812,16 +888,16 @@
|
|
|
812
888
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
813
889
|
return(
|
|
814
890
|
(
|
|
815
|
-
_optionalChain$
|
|
891
|
+
_optionalChain$c([window, 'optionalAccess', _15 => _15.ethereum, 'optionalAccess', _16 => _16.isMetaMask]) &&
|
|
816
892
|
Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1
|
|
817
893
|
) || (
|
|
818
|
-
_optionalChain$
|
|
894
|
+
_optionalChain$c([window, 'optionalAccess', _17 => _17.ethereum, 'optionalAccess', _18 => _18.providerMap, 'optionalAccess', _19 => _19.has, 'call', _20 => _20('MetaMask')])
|
|
819
895
|
)
|
|
820
896
|
)
|
|
821
897
|
};}
|
|
822
898
|
} MetaMask.__initStatic(); MetaMask.__initStatic2();
|
|
823
899
|
|
|
824
|
-
function _optionalChain$
|
|
900
|
+
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; }
|
|
825
901
|
class Opera extends WindowEthereum {
|
|
826
902
|
|
|
827
903
|
static __initStatic() {this.info = {
|
|
@@ -830,29 +906,48 @@
|
|
|
830
906
|
blockchains: supported$1.evm
|
|
831
907
|
};}
|
|
832
908
|
|
|
833
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
909
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$b([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isOpera]) };}
|
|
834
910
|
} Opera.__initStatic(); Opera.__initStatic2();
|
|
835
911
|
|
|
836
|
-
|
|
837
|
-
class Phantom extends WindowSolana {
|
|
912
|
+
class PhantomEVM extends WindowEthereum {
|
|
838
913
|
|
|
839
914
|
static __initStatic() {this.info = {
|
|
840
915
|
name: 'Phantom',
|
|
841
|
-
logo:
|
|
842
|
-
blockchains:
|
|
916
|
+
logo: logos.phantom,
|
|
917
|
+
blockchains: supported$1.evm,
|
|
918
|
+
platform: 'evm',
|
|
919
|
+
};}
|
|
920
|
+
|
|
921
|
+
static __initStatic2() {this.isAvailable = async()=>{
|
|
922
|
+
return (
|
|
923
|
+
window.phantom &&
|
|
924
|
+
window.phantom.ethereum
|
|
925
|
+
)
|
|
926
|
+
};}
|
|
927
|
+
} PhantomEVM.__initStatic(); PhantomEVM.__initStatic2();
|
|
928
|
+
|
|
929
|
+
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; }
|
|
930
|
+
class PhantomSVM extends WindowSolana {
|
|
931
|
+
|
|
932
|
+
static __initStatic() {this.info = {
|
|
933
|
+
name: 'Phantom',
|
|
934
|
+
logo: logos.phantom,
|
|
935
|
+
blockchains: supported$1.solana,
|
|
936
|
+
platform: 'svm',
|
|
843
937
|
};}
|
|
844
938
|
|
|
845
939
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
846
940
|
return (
|
|
847
941
|
window.phantom &&
|
|
848
942
|
!window.glow &&
|
|
849
|
-
!_optionalChain$
|
|
943
|
+
!_optionalChain$a([window, 'optionalAccess', _5 => _5.solana, 'optionalAccess', _6 => _6.isGlow]) &&
|
|
944
|
+
!_optionalChain$a([window, 'optionalAccess', _7 => _7.solana, 'optionalAccess', _8 => _8.isExodus]) &&
|
|
850
945
|
!['isBitKeep'].some((identifier)=>window.solana && window.solana[identifier])
|
|
851
946
|
)
|
|
852
947
|
};}
|
|
853
|
-
}
|
|
948
|
+
} PhantomSVM.__initStatic(); PhantomSVM.__initStatic2();
|
|
854
949
|
|
|
855
|
-
function _optionalChain$
|
|
950
|
+
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; }
|
|
856
951
|
class Rabby extends WindowEthereum {
|
|
857
952
|
|
|
858
953
|
static __initStatic() {this.info = {
|
|
@@ -863,12 +958,12 @@
|
|
|
863
958
|
|
|
864
959
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
865
960
|
return(
|
|
866
|
-
_optionalChain$
|
|
961
|
+
_optionalChain$9([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isRabby])
|
|
867
962
|
)
|
|
868
963
|
};}
|
|
869
964
|
} Rabby.__initStatic(); Rabby.__initStatic2();
|
|
870
965
|
|
|
871
|
-
function _optionalChain$
|
|
966
|
+
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; }
|
|
872
967
|
|
|
873
968
|
|
|
874
969
|
const KEY$2 = '_DePayWeb3WalletsConnectedSolanaMobileWalletInstance';
|
|
@@ -959,8 +1054,8 @@
|
|
|
959
1054
|
await solanaWeb3_js.transact(
|
|
960
1055
|
async (wallet) => {
|
|
961
1056
|
await this.authorize(wallet);
|
|
962
|
-
if(_optionalChain$
|
|
963
|
-
if(_optionalChain$
|
|
1057
|
+
if(_optionalChain$8([options, 'optionalAccess', _ => _.name])) { localStorage[KEY$2+'_name'] = this.name = options.name; }
|
|
1058
|
+
if(_optionalChain$8([options, 'optionalAccess', _2 => _2.logo])) { localStorage[KEY$2+'_logo'] = this.logo = options.logo; }
|
|
964
1059
|
}
|
|
965
1060
|
);
|
|
966
1061
|
return this._account
|
|
@@ -1019,7 +1114,7 @@
|
|
|
1019
1114
|
}
|
|
1020
1115
|
} SolanaMobileWalletAdapter.__initStatic(); SolanaMobileWalletAdapter.__initStatic2();
|
|
1021
1116
|
|
|
1022
|
-
function _optionalChain$
|
|
1117
|
+
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; }
|
|
1023
1118
|
class Solflare extends WindowSolana {
|
|
1024
1119
|
|
|
1025
1120
|
static __initStatic() {this.info = {
|
|
@@ -1030,7 +1125,7 @@
|
|
|
1030
1125
|
|
|
1031
1126
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
1032
1127
|
return (
|
|
1033
|
-
_optionalChain$
|
|
1128
|
+
_optionalChain$7([window, 'optionalAccess', _2 => _2.solflare]) &&
|
|
1034
1129
|
window.solflare.isSolflare
|
|
1035
1130
|
)
|
|
1036
1131
|
};}
|
|
@@ -1040,7 +1135,7 @@
|
|
|
1040
1135
|
_sendTransaction(transaction) { return this.getProvider().signTransaction(transaction) }
|
|
1041
1136
|
} Solflare.__initStatic(); Solflare.__initStatic2();
|
|
1042
1137
|
|
|
1043
|
-
function _optionalChain$
|
|
1138
|
+
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; }
|
|
1044
1139
|
class TokenPocket extends WindowEthereum {
|
|
1045
1140
|
|
|
1046
1141
|
static __initStatic() {this.info = {
|
|
@@ -1051,27 +1146,43 @@
|
|
|
1051
1146
|
|
|
1052
1147
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
1053
1148
|
return (
|
|
1054
|
-
_optionalChain$
|
|
1149
|
+
_optionalChain$6([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isTokenPocket])
|
|
1055
1150
|
)
|
|
1056
1151
|
};}
|
|
1057
1152
|
} TokenPocket.__initStatic(); TokenPocket.__initStatic2();
|
|
1058
1153
|
|
|
1059
|
-
function _optionalChain$
|
|
1060
|
-
class
|
|
1154
|
+
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; }
|
|
1155
|
+
class TrustEVM extends WindowEthereum {
|
|
1061
1156
|
|
|
1062
1157
|
static __initStatic() {this.info = {
|
|
1063
1158
|
name: 'Trust Wallet',
|
|
1064
|
-
logo:
|
|
1065
|
-
blockchains: supported$1.evm
|
|
1159
|
+
logo: logos.trust,
|
|
1160
|
+
blockchains: supported$1.evm,
|
|
1161
|
+
platform: 'evm',
|
|
1066
1162
|
};}
|
|
1067
1163
|
|
|
1068
1164
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
1069
1165
|
return (
|
|
1070
|
-
(_optionalChain$
|
|
1166
|
+
(_optionalChain$5([window, 'optionalAccess', _5 => _5.ethereum, 'optionalAccess', _6 => _6.isTrust]) || _optionalChain$5([window, 'optionalAccess', _7 => _7.ethereum, 'optionalAccess', _8 => _8.isTrustWallet])) &&
|
|
1071
1167
|
Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!Debug)(?!TrustWallet)(?!MetaMask)(?!PocketUniverse)(?!RevokeCash)/)).length == 1
|
|
1072
1168
|
)
|
|
1073
1169
|
};}
|
|
1074
|
-
}
|
|
1170
|
+
} TrustEVM.__initStatic(); TrustEVM.__initStatic2();
|
|
1171
|
+
|
|
1172
|
+
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; }
|
|
1173
|
+
class TrustSVM extends WindowSolana {
|
|
1174
|
+
|
|
1175
|
+
static __initStatic() {this.info = {
|
|
1176
|
+
name: 'Trust Wallet',
|
|
1177
|
+
logo: logos.trust,
|
|
1178
|
+
blockchains: supported$1.svm,
|
|
1179
|
+
platform: 'svm',
|
|
1180
|
+
};}
|
|
1181
|
+
|
|
1182
|
+
static __initStatic2() {this.isAvailable = async()=>{
|
|
1183
|
+
return _optionalChain$4([window, 'access', _3 => _3.solana, 'optionalAccess', _4 => _4.isTrustWallet])
|
|
1184
|
+
};}
|
|
1185
|
+
} TrustSVM.__initStatic(); TrustSVM.__initStatic2();
|
|
1075
1186
|
|
|
1076
1187
|
const transactionApiBlockchainNames = {
|
|
1077
1188
|
'ethereum': 'mainnet',
|
|
@@ -1969,7 +2080,7 @@
|
|
|
1969
2080
|
async setSessionBlockchains() {
|
|
1970
2081
|
if(!this.session || !_optionalChain$1([this, 'access', _27 => _27.session, 'optionalAccess', _28 => _28.namespaces, 'optionalAccess', _29 => _29.eip155])) { return }
|
|
1971
2082
|
if(_optionalChain$1([CONFIGURATIONS, 'access', _30 => _30[this.walletName], 'optionalAccess', _31 => _31.methods, 'optionalAccess', _32 => _32.includes, 'call', _33 => _33('wallet_switchEthereumChain')])) {
|
|
1972
|
-
this.blockchains = this.session.namespaces.eip155.chains.map((chainIdentifier)=>_optionalChain$1([Blockchains__default['default'], 'access', _34 => _34.findByNetworkId, 'call', _35 => _35(chainIdentifier.split(':')[1]), 'optionalAccess', _36 => _36.name])).filter(Boolean);
|
|
2083
|
+
this.blockchains = [this.session.namespaces.eip155.chains[this.session.namespaces.eip155.chains.length-1]].map((chainIdentifier)=>_optionalChain$1([Blockchains__default['default'], 'access', _34 => _34.findByNetworkId, 'call', _35 => _35(chainIdentifier.split(':')[1]), 'optionalAccess', _36 => _36.name])).filter(Boolean);
|
|
1973
2084
|
} else if(this.session.namespaces.eip155.chains) {
|
|
1974
2085
|
this.blockchains = this.session.namespaces.eip155.chains.map((chainIdentifier)=>_optionalChain$1([Blockchains__default['default'], 'access', _37 => _37.findByNetworkId, 'call', _38 => _38(chainIdentifier.split(':')[1]), 'optionalAccess', _39 => _39.name])).filter(Boolean);
|
|
1975
2086
|
} else if(this.session.namespaces.eip155.accounts) {
|
|
@@ -2268,7 +2379,7 @@
|
|
|
2268
2379
|
|
|
2269
2380
|
static __initStatic() {this.info = {
|
|
2270
2381
|
name: 'Coinbase',
|
|
2271
|
-
logo:
|
|
2382
|
+
logo: logos.coinbase,
|
|
2272
2383
|
blockchains: supported$1.evm
|
|
2273
2384
|
};}
|
|
2274
2385
|
|
|
@@ -2424,20 +2535,28 @@
|
|
|
2424
2535
|
|
|
2425
2536
|
var wallets = {
|
|
2426
2537
|
MetaMask,
|
|
2427
|
-
|
|
2428
|
-
|
|
2538
|
+
PhantomEVM,
|
|
2539
|
+
PhantomSVM,
|
|
2540
|
+
CoinbaseEVM,
|
|
2541
|
+
CoinbaseSVM,
|
|
2429
2542
|
Binance,
|
|
2430
|
-
|
|
2543
|
+
TrustEVM,
|
|
2544
|
+
TrustSVM,
|
|
2431
2545
|
Backpack,
|
|
2432
2546
|
Glow,
|
|
2433
2547
|
Solflare,
|
|
2434
2548
|
Rabby,
|
|
2435
2549
|
Brave,
|
|
2436
2550
|
Opera,
|
|
2437
|
-
|
|
2551
|
+
Coin98EVM,
|
|
2552
|
+
Coin98SVM,
|
|
2438
2553
|
CryptoCom,
|
|
2439
2554
|
HyperPay,
|
|
2440
2555
|
TokenPocket,
|
|
2556
|
+
ExodusEVM,
|
|
2557
|
+
ExodusSVM,
|
|
2558
|
+
|
|
2559
|
+
// standards (not concrete wallets)
|
|
2441
2560
|
WindowEthereum,
|
|
2442
2561
|
WindowSolana,
|
|
2443
2562
|
SolanaMobileWalletAdapter,
|
|
@@ -2479,10 +2598,13 @@
|
|
|
2479
2598
|
|
|
2480
2599
|
const supported = [
|
|
2481
2600
|
wallets.MetaMask,
|
|
2482
|
-
wallets.
|
|
2483
|
-
wallets.
|
|
2601
|
+
wallets.PhantomEVM,
|
|
2602
|
+
wallets.PhantomSVM,
|
|
2603
|
+
wallets.CoinbaseEVM,
|
|
2604
|
+
wallets.CoinbaseSVM,
|
|
2484
2605
|
wallets.Binance,
|
|
2485
|
-
wallets.
|
|
2606
|
+
wallets.TrustEVM,
|
|
2607
|
+
wallets.TrustSVM,
|
|
2486
2608
|
wallets.Backpack,
|
|
2487
2609
|
wallets.Glow,
|
|
2488
2610
|
wallets.Solflare,
|
|
@@ -2493,6 +2615,10 @@
|
|
|
2493
2615
|
wallets.CryptoCom,
|
|
2494
2616
|
wallets.HyperPay,
|
|
2495
2617
|
wallets.TokenPocket,
|
|
2618
|
+
wallets.ExodusEVM,
|
|
2619
|
+
wallets.ExodusSVM,
|
|
2620
|
+
|
|
2621
|
+
// standards (not concrete wallets)
|
|
2496
2622
|
wallets.WalletConnectV1,
|
|
2497
2623
|
wallets.WalletConnectV2,
|
|
2498
2624
|
wallets.SolanaMobileWalletAdapter,
|