@depay/web3-wallets-evm 17.2.2 → 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.
@@ -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; }
@@ -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; }
@@ -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 {
@@ -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; }
@@ -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; }
@@ -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.2.2",
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.4.4",
30
- "@depay/web3-client-evm": "^10.18.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": {