@depay/web3-wallets-evm 17.2.1 → 17.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/dist/esm/index.evm.js +5 -3
- package/dist/esm/index.js +5 -3
- package/dist/umd/index.evm.js +5 -3
- package/dist/umd/index.js +5 -3
- package/package.json +3 -3
package/dist/esm/index.evm.js
CHANGED
|
@@ -4,8 +4,8 @@ import { ethers } from 'ethers';
|
|
|
4
4
|
import { SignClient } from '@depay/walletconnect-v2';
|
|
5
5
|
import { CoinbaseWalletSDK } from '@depay/coinbase-wallet-sdk';
|
|
6
6
|
|
|
7
|
-
let supported$1 = ['ethereum', 'bsc', 'polygon', 'fantom', 'arbitrum', 'avalanche', 'gnosis', 'optimism', 'base'];
|
|
8
|
-
supported$1.evm = ['ethereum', 'bsc', 'polygon', 'fantom', 'arbitrum', 'avalanche', 'gnosis', 'optimism', 'base'];
|
|
7
|
+
let supported$1 = ['ethereum', 'bsc', 'polygon', 'fantom', 'arbitrum', 'avalanche', 'gnosis', 'optimism', 'base', 'worldchain'];
|
|
8
|
+
supported$1.evm = ['ethereum', 'bsc', 'polygon', 'fantom', 'arbitrum', 'avalanche', 'gnosis', 'optimism', 'base', 'worldchain'];
|
|
9
9
|
supported$1.solana = [];
|
|
10
10
|
|
|
11
11
|
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; }
|
|
@@ -612,7 +612,7 @@ class MetaMask extends WindowEthereum {
|
|
|
612
612
|
static __initStatic2() {this.isMetaMask = (provider)=> {
|
|
613
613
|
return(
|
|
614
614
|
_optionalChain$c([provider, 'optionalAccess', _3 => _3.isMetaMask]) &&
|
|
615
|
-
Object.keys(provider).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1
|
|
615
|
+
Object.keys(provider).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!WalletGuard)(?!RevokeCash)/)).length == 1
|
|
616
616
|
)
|
|
617
617
|
};}
|
|
618
618
|
|
|
@@ -784,6 +784,7 @@ const transactionApiBlockchainNames = {
|
|
|
784
784
|
'avalanche': 'avalanche',
|
|
785
785
|
'gnosis': 'gnosis-chain',
|
|
786
786
|
'optimism': 'optimism',
|
|
787
|
+
'worldchain': 'optimism',
|
|
787
788
|
};
|
|
788
789
|
|
|
789
790
|
const explorerBlockchainNames = {
|
|
@@ -795,6 +796,7 @@ const explorerBlockchainNames = {
|
|
|
795
796
|
'avalanche': 'avax',
|
|
796
797
|
'gnosis': 'gno',
|
|
797
798
|
'optimism': 'oeth',
|
|
799
|
+
'worldchain': 'oeth',
|
|
798
800
|
};
|
|
799
801
|
|
|
800
802
|
class Safe {
|
package/dist/esm/index.js
CHANGED
|
@@ -258,8 +258,8 @@ const submitInstructions = async ({ transaction, wallet })=> {
|
|
|
258
258
|
return wallet._sendTransaction(transactionV0)
|
|
259
259
|
};
|
|
260
260
|
|
|
261
|
-
let supported$1 = ['ethereum', 'bsc', 'polygon', 'solana', 'fantom', 'arbitrum', 'avalanche', 'gnosis', 'optimism', 'base'];
|
|
262
|
-
supported$1.evm = ['ethereum', 'bsc', 'polygon', 'fantom', 'arbitrum', 'avalanche', 'gnosis', 'optimism', 'base'];
|
|
261
|
+
let supported$1 = ['ethereum', 'bsc', 'polygon', 'solana', 'fantom', 'arbitrum', 'avalanche', 'gnosis', 'optimism', 'base', 'worldchain'];
|
|
262
|
+
supported$1.evm = ['ethereum', 'bsc', 'polygon', 'fantom', 'arbitrum', 'avalanche', 'gnosis', 'optimism', 'base', 'worldchain'];
|
|
263
263
|
supported$1.solana = ['solana'];
|
|
264
264
|
|
|
265
265
|
function _optionalChain$y(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; }
|
|
@@ -997,7 +997,7 @@ class MetaMask extends WindowEthereum {
|
|
|
997
997
|
static __initStatic2() {this.isMetaMask = (provider)=> {
|
|
998
998
|
return(
|
|
999
999
|
_optionalChain$g([provider, 'optionalAccess', _3 => _3.isMetaMask]) &&
|
|
1000
|
-
Object.keys(provider).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1
|
|
1000
|
+
Object.keys(provider).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!WalletGuard)(?!RevokeCash)/)).length == 1
|
|
1001
1001
|
)
|
|
1002
1002
|
};}
|
|
1003
1003
|
|
|
@@ -1383,6 +1383,7 @@ const transactionApiBlockchainNames = {
|
|
|
1383
1383
|
'avalanche': 'avalanche',
|
|
1384
1384
|
'gnosis': 'gnosis-chain',
|
|
1385
1385
|
'optimism': 'optimism',
|
|
1386
|
+
'worldchain': 'optimism',
|
|
1386
1387
|
};
|
|
1387
1388
|
|
|
1388
1389
|
const explorerBlockchainNames = {
|
|
@@ -1394,6 +1395,7 @@ const explorerBlockchainNames = {
|
|
|
1394
1395
|
'avalanche': 'avax',
|
|
1395
1396
|
'gnosis': 'gno',
|
|
1396
1397
|
'optimism': 'oeth',
|
|
1398
|
+
'worldchain': 'oeth',
|
|
1397
1399
|
};
|
|
1398
1400
|
|
|
1399
1401
|
class Safe {
|
package/dist/umd/index.evm.js
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
var Blockchains__default = /*#__PURE__*/_interopDefaultLegacy(Blockchains);
|
|
10
10
|
|
|
11
|
-
let supported$1 = ['ethereum', 'bsc', 'polygon', 'fantom', 'arbitrum', 'avalanche', 'gnosis', 'optimism', 'base'];
|
|
12
|
-
supported$1.evm = ['ethereum', 'bsc', 'polygon', 'fantom', 'arbitrum', 'avalanche', 'gnosis', 'optimism', 'base'];
|
|
11
|
+
let supported$1 = ['ethereum', 'bsc', 'polygon', 'fantom', 'arbitrum', 'avalanche', 'gnosis', 'optimism', 'base', 'worldchain'];
|
|
12
|
+
supported$1.evm = ['ethereum', 'bsc', 'polygon', 'fantom', 'arbitrum', 'avalanche', 'gnosis', 'optimism', 'base', 'worldchain'];
|
|
13
13
|
supported$1.solana = [];
|
|
14
14
|
|
|
15
15
|
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; }
|
|
@@ -616,7 +616,7 @@
|
|
|
616
616
|
static __initStatic2() {this.isMetaMask = (provider)=> {
|
|
617
617
|
return(
|
|
618
618
|
_optionalChain$c([provider, 'optionalAccess', _3 => _3.isMetaMask]) &&
|
|
619
|
-
Object.keys(provider).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1
|
|
619
|
+
Object.keys(provider).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!WalletGuard)(?!RevokeCash)/)).length == 1
|
|
620
620
|
)
|
|
621
621
|
};}
|
|
622
622
|
|
|
@@ -788,6 +788,7 @@
|
|
|
788
788
|
'avalanche': 'avalanche',
|
|
789
789
|
'gnosis': 'gnosis-chain',
|
|
790
790
|
'optimism': 'optimism',
|
|
791
|
+
'worldchain': 'optimism',
|
|
791
792
|
};
|
|
792
793
|
|
|
793
794
|
const explorerBlockchainNames = {
|
|
@@ -799,6 +800,7 @@
|
|
|
799
800
|
'avalanche': 'avax',
|
|
800
801
|
'gnosis': 'gno',
|
|
801
802
|
'optimism': 'oeth',
|
|
803
|
+
'worldchain': 'oeth',
|
|
802
804
|
};
|
|
803
805
|
|
|
804
806
|
class Safe {
|
package/dist/umd/index.js
CHANGED
|
@@ -261,8 +261,8 @@
|
|
|
261
261
|
return wallet._sendTransaction(transactionV0)
|
|
262
262
|
};
|
|
263
263
|
|
|
264
|
-
let supported$1 = ['ethereum', 'bsc', 'polygon', 'solana', 'fantom', 'arbitrum', 'avalanche', 'gnosis', 'optimism', 'base'];
|
|
265
|
-
supported$1.evm = ['ethereum', 'bsc', 'polygon', 'fantom', 'arbitrum', 'avalanche', 'gnosis', 'optimism', 'base'];
|
|
264
|
+
let supported$1 = ['ethereum', 'bsc', 'polygon', 'solana', 'fantom', 'arbitrum', 'avalanche', 'gnosis', 'optimism', 'base', 'worldchain'];
|
|
265
|
+
supported$1.evm = ['ethereum', 'bsc', 'polygon', 'fantom', 'arbitrum', 'avalanche', 'gnosis', 'optimism', 'base', 'worldchain'];
|
|
266
266
|
supported$1.solana = ['solana'];
|
|
267
267
|
|
|
268
268
|
function _optionalChain$y(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; }
|
|
@@ -1000,7 +1000,7 @@
|
|
|
1000
1000
|
static __initStatic2() {this.isMetaMask = (provider)=> {
|
|
1001
1001
|
return(
|
|
1002
1002
|
_optionalChain$g([provider, 'optionalAccess', _3 => _3.isMetaMask]) &&
|
|
1003
|
-
Object.keys(provider).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/)).length == 1
|
|
1003
|
+
Object.keys(provider).filter((key)=>key.match(/^is(?!Connected)(?!PocketUniverse)(?!WalletGuard)(?!RevokeCash)/)).length == 1
|
|
1004
1004
|
)
|
|
1005
1005
|
};}
|
|
1006
1006
|
|
|
@@ -1386,6 +1386,7 @@
|
|
|
1386
1386
|
'avalanche': 'avalanche',
|
|
1387
1387
|
'gnosis': 'gnosis-chain',
|
|
1388
1388
|
'optimism': 'optimism',
|
|
1389
|
+
'worldchain': 'optimism',
|
|
1389
1390
|
};
|
|
1390
1391
|
|
|
1391
1392
|
const explorerBlockchainNames = {
|
|
@@ -1397,6 +1398,7 @@
|
|
|
1397
1398
|
'avalanche': 'avax',
|
|
1398
1399
|
'gnosis': 'gno',
|
|
1399
1400
|
'optimism': 'oeth',
|
|
1401
|
+
'worldchain': 'oeth',
|
|
1400
1402
|
};
|
|
1401
1403
|
|
|
1402
1404
|
class Safe {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depay/web3-wallets-evm",
|
|
3
3
|
"moduleName": "Web3Wallets",
|
|
4
|
-
"version": "17.
|
|
4
|
+
"version": "17.3.0",
|
|
5
5
|
"description": "One-Stop-Shop JavaScript library to integrate various web3 crypto wallets and multiple blockchains at once with a single interface.",
|
|
6
6
|
"main": "dist/umd/index.evm.js",
|
|
7
7
|
"module": "dist/esm/index.evm.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@depay/coinbase-wallet-sdk": "^3.8.4",
|
|
28
28
|
"@depay/walletconnect-v2": "^2.12.2",
|
|
29
|
-
"@depay/web3-blockchains": "^9.
|
|
30
|
-
"@depay/web3-client-evm": "^10.
|
|
29
|
+
"@depay/web3-blockchains": "^9.6.1",
|
|
30
|
+
"@depay/web3-client-evm": "^10.19.0",
|
|
31
31
|
"ethers": "^5.7.1"
|
|
32
32
|
},
|
|
33
33
|
"engines": {
|