@depay/web3-wallets-evm 16.0.3 → 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 +78 -46
- package/dist/esm/index.js +78 -46
- package/dist/esm/index.solana.js +77 -46
- package/dist/umd/index.evm.js +78 -46
- package/dist/umd/index.js +78 -46
- package/dist/umd/index.solana.js +77 -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;
|
|
@@ -42199,10 +42199,18 @@ class Transaction {
|
|
|
42199
42199
|
})
|
|
42200
42200
|
}
|
|
42201
42201
|
|
|
42202
|
+
getParamType(param) {
|
|
42203
|
+
if(_optionalChain$m([param, 'optionalAccess', _5 => _5.components, 'optionalAccess', _6 => _6.length])) {
|
|
42204
|
+
return `(${param.components.map((param)=>this.getParamType(param)).join(',')})`
|
|
42205
|
+
} else {
|
|
42206
|
+
return param.type
|
|
42207
|
+
}
|
|
42208
|
+
}
|
|
42209
|
+
|
|
42202
42210
|
getMethodNameWithSignature() {
|
|
42203
42211
|
let fragment = this.findFragment();
|
|
42204
42212
|
if(fragment.inputs) {
|
|
42205
|
-
return `${this.method}(${fragment.inputs.map((
|
|
42213
|
+
return `${this.method}(${fragment.inputs.map((param)=>this.getParamType(param)).join(',')})`
|
|
42206
42214
|
} else {
|
|
42207
42215
|
return this.method
|
|
42208
42216
|
}
|
|
@@ -42265,7 +42273,7 @@ class Transaction {
|
|
|
42265
42273
|
}
|
|
42266
42274
|
}
|
|
42267
42275
|
|
|
42268
|
-
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; }
|
|
42269
42277
|
|
|
42270
42278
|
const POLL_SPEED = 500; // 0.5 seconds
|
|
42271
42279
|
const MAX_POLLS = 240; // 120 seconds
|
|
@@ -42286,14 +42294,14 @@ const sendTransaction$5 = async ({ transaction, wallet })=> {
|
|
|
42286
42294
|
|
|
42287
42295
|
const provider = await getProvider$3(transaction.blockchain);
|
|
42288
42296
|
const { value } = await provider.getSignatureStatus(signature);
|
|
42289
|
-
const confirmationStatus = _optionalChain$
|
|
42297
|
+
const confirmationStatus = _optionalChain$l([value, 'optionalAccess', _ => _.confirmationStatus]);
|
|
42290
42298
|
if(confirmationStatus) {
|
|
42291
42299
|
const hasReachedSufficientCommitment = confirmationStatus === 'confirmed' || confirmationStatus === 'finalized';
|
|
42292
42300
|
if (hasReachedSufficientCommitment) {
|
|
42293
42301
|
if(value.err) {
|
|
42294
42302
|
transaction._failed = true;
|
|
42295
42303
|
const confirmedTransaction = await provider.getConfirmedTransaction(signature);
|
|
42296
|
-
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;
|
|
42297
42305
|
if(transaction.failed) transaction.failed(transaction, failedReason);
|
|
42298
42306
|
} else {
|
|
42299
42307
|
transaction._succeeded = true;
|
|
@@ -42384,7 +42392,7 @@ let supported$2 = ['ethereum', 'bsc', 'polygon', 'fantom', 'arbitrum', 'avalanch
|
|
|
42384
42392
|
supported$2.evm = ['ethereum', 'bsc', 'polygon', 'fantom', 'arbitrum', 'avalanche', 'gnosis', 'optimism'];
|
|
42385
42393
|
supported$2.solana = [];
|
|
42386
42394
|
|
|
42387
|
-
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; }
|
|
42388
42396
|
class WindowSolana {
|
|
42389
42397
|
|
|
42390
42398
|
static __initStatic() {this.info = {
|
|
@@ -42395,7 +42403,7 @@ class WindowSolana {
|
|
|
42395
42403
|
|
|
42396
42404
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
42397
42405
|
return (
|
|
42398
|
-
_optionalChain$
|
|
42406
|
+
_optionalChain$k([window, 'optionalAccess', _2 => _2.solana]) &&
|
|
42399
42407
|
!(window.phantom && !window.glow && !window.solana.isGlow) &&
|
|
42400
42408
|
!window.coin98 &&
|
|
42401
42409
|
!window.solana.isGlow
|
|
@@ -42445,7 +42453,7 @@ class WindowSolana {
|
|
|
42445
42453
|
let internalCallback;
|
|
42446
42454
|
switch (event) {
|
|
42447
42455
|
case 'account':
|
|
42448
|
-
internalCallback = (publicKey) => callback(_optionalChain$
|
|
42456
|
+
internalCallback = (publicKey) => callback(_optionalChain$k([publicKey, 'optionalAccess', _3 => _3.toString, 'call', _4 => _4()]));
|
|
42449
42457
|
this.getProvider().on('accountChanged', internalCallback);
|
|
42450
42458
|
break
|
|
42451
42459
|
}
|
|
@@ -43334,7 +43342,7 @@ const request = async function (url, options) {
|
|
|
43334
43342
|
})
|
|
43335
43343
|
};
|
|
43336
43344
|
|
|
43337
|
-
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; }
|
|
43338
43346
|
class Backpack extends WindowSolana {
|
|
43339
43347
|
|
|
43340
43348
|
static __initStatic() {this.info = {
|
|
@@ -43345,7 +43353,7 @@ class Backpack extends WindowSolana {
|
|
|
43345
43353
|
|
|
43346
43354
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43347
43355
|
return (
|
|
43348
|
-
_optionalChain$
|
|
43356
|
+
_optionalChain$j([window, 'optionalAccess', _2 => _2.backpack]) &&
|
|
43349
43357
|
window.backpack.isBackpack
|
|
43350
43358
|
)
|
|
43351
43359
|
};}
|
|
@@ -43440,7 +43448,7 @@ const submitSimpleTransfer$3 = ({ transaction, signer })=>{
|
|
|
43440
43448
|
})
|
|
43441
43449
|
};
|
|
43442
43450
|
|
|
43443
|
-
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; }
|
|
43444
43452
|
class WindowEthereum {
|
|
43445
43453
|
|
|
43446
43454
|
static __initStatic() {this.info = {
|
|
@@ -43451,17 +43459,18 @@ class WindowEthereum {
|
|
|
43451
43459
|
|
|
43452
43460
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43453
43461
|
return (
|
|
43454
|
-
_optionalChain$
|
|
43462
|
+
_optionalChain$i([window, 'optionalAccess', _25 => _25.ethereum]) &&
|
|
43455
43463
|
Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length != 1 && // MetaMask
|
|
43456
|
-
!_optionalChain$
|
|
43457
|
-
!(_optionalChain$
|
|
43458
|
-
!_optionalChain$
|
|
43459
|
-
!_optionalChain$
|
|
43460
|
-
!_optionalChain$
|
|
43461
|
-
!_optionalChain$
|
|
43462
|
-
!_optionalChain$
|
|
43463
|
-
!_optionalChain$
|
|
43464
|
-
!
|
|
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]))
|
|
43465
43474
|
)
|
|
43466
43475
|
};}
|
|
43467
43476
|
|
|
@@ -43587,7 +43596,7 @@ class WindowEthereum {
|
|
|
43587
43596
|
}
|
|
43588
43597
|
} WindowEthereum.__initStatic(); WindowEthereum.__initStatic2();
|
|
43589
43598
|
|
|
43590
|
-
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; }
|
|
43591
43600
|
class Binance extends WindowEthereum {
|
|
43592
43601
|
|
|
43593
43602
|
static __initStatic() {this.info = {
|
|
@@ -43597,7 +43606,7 @@ class Binance extends WindowEthereum {
|
|
|
43597
43606
|
};}
|
|
43598
43607
|
|
|
43599
43608
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43600
|
-
return _optionalChain$
|
|
43609
|
+
return _optionalChain$h([window, 'optionalAccess', _2 => _2.BinanceChain]) &&
|
|
43601
43610
|
!window.coin98
|
|
43602
43611
|
};}
|
|
43603
43612
|
|
|
@@ -43605,7 +43614,7 @@ class Binance extends WindowEthereum {
|
|
|
43605
43614
|
|
|
43606
43615
|
} Binance.__initStatic(); Binance.__initStatic2();
|
|
43607
43616
|
|
|
43608
|
-
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; }
|
|
43609
43618
|
class Brave extends WindowEthereum {
|
|
43610
43619
|
|
|
43611
43620
|
static __initStatic() {this.info = {
|
|
@@ -43614,10 +43623,10 @@ class Brave extends WindowEthereum {
|
|
|
43614
43623
|
blockchains: supported$2.evm
|
|
43615
43624
|
};}
|
|
43616
43625
|
|
|
43617
|
-
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]) };}
|
|
43618
43627
|
} Brave.__initStatic(); Brave.__initStatic2();
|
|
43619
43628
|
|
|
43620
|
-
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; }
|
|
43621
43630
|
class Coin98 extends WindowEthereum {
|
|
43622
43631
|
|
|
43623
43632
|
static __initStatic() {this.info = {
|
|
@@ -43626,10 +43635,10 @@ class Coin98 extends WindowEthereum {
|
|
|
43626
43635
|
blockchains: supported$2.evm
|
|
43627
43636
|
};}
|
|
43628
43637
|
|
|
43629
|
-
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$
|
|
43638
|
+
static __initStatic2() {this.isAvailable = async()=>{ return _optionalChain$f([window, 'optionalAccess', _2 => _2.coin98]) };}
|
|
43630
43639
|
} Coin98.__initStatic(); Coin98.__initStatic2();
|
|
43631
43640
|
|
|
43632
|
-
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; }
|
|
43633
43642
|
class Coinbase extends WindowEthereum {
|
|
43634
43643
|
|
|
43635
43644
|
static __initStatic() {this.info = {
|
|
@@ -43638,10 +43647,10 @@ class Coinbase extends WindowEthereum {
|
|
|
43638
43647
|
blockchains: supported$2.evm
|
|
43639
43648
|
};}
|
|
43640
43649
|
|
|
43641
|
-
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])) };}
|
|
43642
43651
|
} Coinbase.__initStatic(); Coinbase.__initStatic2();
|
|
43643
43652
|
|
|
43644
|
-
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; }
|
|
43645
43654
|
class CryptoCom extends WindowEthereum {
|
|
43646
43655
|
|
|
43647
43656
|
static __initStatic() {this.info = {
|
|
@@ -43650,7 +43659,7 @@ class CryptoCom extends WindowEthereum {
|
|
|
43650
43659
|
blockchains: supported$2.evm
|
|
43651
43660
|
};}
|
|
43652
43661
|
|
|
43653
|
-
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]) };}
|
|
43654
43663
|
} CryptoCom.__initStatic(); CryptoCom.__initStatic2();
|
|
43655
43664
|
|
|
43656
43665
|
class Glow extends WindowSolana {
|
|
@@ -43669,7 +43678,7 @@ class Glow extends WindowSolana {
|
|
|
43669
43678
|
};}
|
|
43670
43679
|
} Glow.__initStatic(); Glow.__initStatic2();
|
|
43671
43680
|
|
|
43672
|
-
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; }
|
|
43673
43682
|
class HyperPay extends WindowEthereum {
|
|
43674
43683
|
|
|
43675
43684
|
static __initStatic() {this.info = {
|
|
@@ -43678,10 +43687,10 @@ class HyperPay extends WindowEthereum {
|
|
|
43678
43687
|
blockchains: supported$2.evm
|
|
43679
43688
|
};}
|
|
43680
43689
|
|
|
43681
|
-
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]) };}
|
|
43682
43691
|
} HyperPay.__initStatic(); HyperPay.__initStatic2();
|
|
43683
43692
|
|
|
43684
|
-
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; }
|
|
43685
43694
|
class MetaMask extends WindowEthereum {
|
|
43686
43695
|
|
|
43687
43696
|
static __initStatic() {this.info = {
|
|
@@ -43692,13 +43701,13 @@ class MetaMask extends WindowEthereum {
|
|
|
43692
43701
|
|
|
43693
43702
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43694
43703
|
return(
|
|
43695
|
-
_optionalChain$
|
|
43704
|
+
_optionalChain$b([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isMetaMask]) &&
|
|
43696
43705
|
Object.keys(window.ethereum).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1
|
|
43697
43706
|
)
|
|
43698
43707
|
};}
|
|
43699
43708
|
} MetaMask.__initStatic(); MetaMask.__initStatic2();
|
|
43700
43709
|
|
|
43701
|
-
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; }
|
|
43702
43711
|
class Opera extends WindowEthereum {
|
|
43703
43712
|
|
|
43704
43713
|
static __initStatic() {this.info = {
|
|
@@ -43707,7 +43716,7 @@ class Opera extends WindowEthereum {
|
|
|
43707
43716
|
blockchains: supported$2.evm
|
|
43708
43717
|
};}
|
|
43709
43718
|
|
|
43710
|
-
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]) };}
|
|
43711
43720
|
} Opera.__initStatic(); Opera.__initStatic2();
|
|
43712
43721
|
|
|
43713
43722
|
class Phantom extends WindowSolana {
|
|
@@ -43725,7 +43734,7 @@ class Phantom extends WindowSolana {
|
|
|
43725
43734
|
};}
|
|
43726
43735
|
} Phantom.__initStatic(); Phantom.__initStatic2();
|
|
43727
43736
|
|
|
43728
|
-
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; }
|
|
43729
43738
|
class Rabby extends WindowEthereum {
|
|
43730
43739
|
|
|
43731
43740
|
static __initStatic() {this.info = {
|
|
@@ -43736,12 +43745,12 @@ class Rabby extends WindowEthereum {
|
|
|
43736
43745
|
|
|
43737
43746
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43738
43747
|
return(
|
|
43739
|
-
_optionalChain$
|
|
43748
|
+
_optionalChain$9([window, 'optionalAccess', _3 => _3.ethereum, 'optionalAccess', _4 => _4.isRabby])
|
|
43740
43749
|
)
|
|
43741
43750
|
};}
|
|
43742
43751
|
} Rabby.__initStatic(); Rabby.__initStatic2();
|
|
43743
43752
|
|
|
43744
|
-
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; }
|
|
43745
43754
|
const KEY$2 = '_DePayWeb3WalletsConnectedSolanaMobileWalletInstance';
|
|
43746
43755
|
|
|
43747
43756
|
const base64StringToPublicKey = (base64String)=> {
|
|
@@ -43830,8 +43839,8 @@ class SolanaMobileWalletAdapter {
|
|
|
43830
43839
|
await transact(
|
|
43831
43840
|
async (wallet) => {
|
|
43832
43841
|
await this.authorize(wallet);
|
|
43833
|
-
if(_optionalChain$
|
|
43834
|
-
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; }
|
|
43835
43844
|
}
|
|
43836
43845
|
);
|
|
43837
43846
|
return this._account
|
|
@@ -43890,7 +43899,7 @@ class SolanaMobileWalletAdapter {
|
|
|
43890
43899
|
}
|
|
43891
43900
|
} SolanaMobileWalletAdapter.__initStatic(); SolanaMobileWalletAdapter.__initStatic2();
|
|
43892
43901
|
|
|
43893
|
-
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; }
|
|
43894
43903
|
class Solflare extends WindowSolana {
|
|
43895
43904
|
|
|
43896
43905
|
static __initStatic() {this.info = {
|
|
@@ -43901,7 +43910,7 @@ class Solflare extends WindowSolana {
|
|
|
43901
43910
|
|
|
43902
43911
|
static __initStatic2() {this.isAvailable = async()=>{
|
|
43903
43912
|
return (
|
|
43904
|
-
_optionalChain$
|
|
43913
|
+
_optionalChain$7([window, 'optionalAccess', _2 => _2.solflare]) &&
|
|
43905
43914
|
window.solflare.isSolflare
|
|
43906
43915
|
)
|
|
43907
43916
|
};}
|
|
@@ -43911,6 +43920,22 @@ class Solflare extends WindowSolana {
|
|
|
43911
43920
|
_sendTransaction(transaction) { return this.getProvider().signTransaction(transaction) }
|
|
43912
43921
|
} Solflare.__initStatic(); Solflare.__initStatic2();
|
|
43913
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,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8bWFzayBpZD0ibWFzazBfNDA4XzIyNSIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMjQiIGhlaWdodD0iMTAyNCI+CjxyZWN0IHdpZHRoPSIxMDI0IiBoZWlnaHQ9IjEwMjQiIGZpbGw9IiNDNEM0QzQiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzQwOF8yMjUpIj4KPHBhdGggZD0iTTEwNDEuNTIgMEgtMjdWMTAyNEgxMDQxLjUyVjBaIiBmaWxsPSIjMjk4MEZFIi8+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF80MDhfMjI1KSI+CjxwYXRoIGQ9Ik00MDYuNzk2IDQzOC42NDNINDA2LjkyN0M0MDYuNzk2IDQzNy44NTcgNDA2Ljc5NiA0MzYuOTQgNDA2Ljc5NiA0MzYuMTU0VjQzOC42NDNaIiBmaWxsPSIjMjlBRUZGIi8+CjxwYXRoIGQ9Ik02NjcuNjAyIDQ2My41MzNINTIzLjI0OVY3MjQuMDc2QzUyMy4yNDkgNzM2LjM4OSA1MzMuMjA0IDc0Ni4zNDUgNTQ1LjUxNyA3NDYuMzQ1SDY0NS4zMzNDNjU3LjY0NyA3NDYuMzQ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oaXRlIiBzdG9wLW9wYWNpdHk9IjAuMzIzMyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIiBzdG9wLW9wYWNpdHk9IjAuMyIvPgo8L2xpbmVhckdyYWRpZW50Pgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzQwOF8yMjUiPgo8cmVjdCB3aWR0aD0iNzI4LjQ0OCIgaGVpZ2h0PSI0NzAiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNjggMjc3KSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+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
|
+
|
|
43914
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; }
|
|
43915
43940
|
class Trust extends WindowEthereum {
|
|
43916
43941
|
|
|
@@ -43920,7 +43945,12 @@ class Trust extends WindowEthereum {
|
|
|
43920
43945
|
blockchains: supported$2.evm
|
|
43921
43946
|
};}
|
|
43922
43947
|
|
|
43923
|
-
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
|
+
};}
|
|
43924
43954
|
} Trust.__initStatic(); Trust.__initStatic2();
|
|
43925
43955
|
|
|
43926
43956
|
const transactionApiBlockchainNames = {
|
|
@@ -45119,6 +45149,7 @@ var wallets = {
|
|
|
45119
45149
|
Coin98,
|
|
45120
45150
|
CryptoCom,
|
|
45121
45151
|
HyperPay,
|
|
45152
|
+
TokenPocket,
|
|
45122
45153
|
WindowEthereum,
|
|
45123
45154
|
WindowSolana,
|
|
45124
45155
|
SolanaMobileWalletAdapter,
|
|
@@ -45169,6 +45200,7 @@ const supported = [
|
|
|
45169
45200
|
wallets.Coin98,
|
|
45170
45201
|
wallets.CryptoCom,
|
|
45171
45202
|
wallets.HyperPay,
|
|
45203
|
+
wallets.TokenPocket,
|
|
45172
45204
|
wallets.WalletConnectV1,
|
|
45173
45205
|
wallets.WalletConnectV2,
|
|
45174
45206
|
wallets.WalletLink,
|