@depay/web3-wallets-evm 16.2.13 → 16.2.15
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 +11 -1
- package/dist/esm/index.js +11 -1
- package/dist/umd/index.evm.js +11 -1
- package/dist/umd/index.js +11 -1
- package/package.json +1 -1
package/dist/esm/index.evm.js
CHANGED
|
@@ -603,12 +603,22 @@ const transactionApiBlockchainNames = {
|
|
|
603
603
|
'ethereum': 'mainnet',
|
|
604
604
|
'bsc': 'bsc',
|
|
605
605
|
'polygon': 'polygon',
|
|
606
|
+
'arbitrum': 'arbitrum',
|
|
607
|
+
'base': 'base',
|
|
608
|
+
'avalanche': 'avalanche',
|
|
609
|
+
'gnosis': 'gnosis-chain',
|
|
610
|
+
'optimism': 'optimism',
|
|
606
611
|
};
|
|
607
612
|
|
|
608
613
|
const explorerBlockchainNames = {
|
|
609
614
|
'ethereum': 'eth',
|
|
610
615
|
'bsc': 'bnb',
|
|
611
616
|
'polygon': 'matic',
|
|
617
|
+
'arbitrum': 'arb1',
|
|
618
|
+
'base': 'base',
|
|
619
|
+
'avalanche': 'avax',
|
|
620
|
+
'gnosis': 'gno',
|
|
621
|
+
'optimism': 'oeth',
|
|
612
622
|
};
|
|
613
623
|
|
|
614
624
|
class Safe {
|
|
@@ -1485,7 +1495,7 @@ class WalletConnectV2 {
|
|
|
1485
1495
|
async setSessionBlockchains() {
|
|
1486
1496
|
if(!this.session || !_optionalChain$1([this, 'access', _27 => _27.session, 'optionalAccess', _28 => _28.namespaces, 'optionalAccess', _29 => _29.eip155])) { return }
|
|
1487
1497
|
if(_optionalChain$1([CONFIGURATIONS, 'access', _30 => _30[this.walletName], 'optionalAccess', _31 => _31.methods, 'optionalAccess', _32 => _32.includes, 'call', _33 => _33('wallet_switchEthereumChain')])) {
|
|
1488
|
-
this.blockchains =
|
|
1498
|
+
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);
|
|
1489
1499
|
} else if(this.session.namespaces.eip155.chains) {
|
|
1490
1500
|
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);
|
|
1491
1501
|
} else if(this.session.namespaces.eip155.accounts) {
|
package/dist/esm/index.js
CHANGED
|
@@ -1075,12 +1075,22 @@ const transactionApiBlockchainNames = {
|
|
|
1075
1075
|
'ethereum': 'mainnet',
|
|
1076
1076
|
'bsc': 'bsc',
|
|
1077
1077
|
'polygon': 'polygon',
|
|
1078
|
+
'arbitrum': 'arbitrum',
|
|
1079
|
+
'base': 'base',
|
|
1080
|
+
'avalanche': 'avalanche',
|
|
1081
|
+
'gnosis': 'gnosis-chain',
|
|
1082
|
+
'optimism': 'optimism',
|
|
1078
1083
|
};
|
|
1079
1084
|
|
|
1080
1085
|
const explorerBlockchainNames = {
|
|
1081
1086
|
'ethereum': 'eth',
|
|
1082
1087
|
'bsc': 'bnb',
|
|
1083
1088
|
'polygon': 'matic',
|
|
1089
|
+
'arbitrum': 'arb1',
|
|
1090
|
+
'base': 'base',
|
|
1091
|
+
'avalanche': 'avax',
|
|
1092
|
+
'gnosis': 'gno',
|
|
1093
|
+
'optimism': 'oeth',
|
|
1084
1094
|
};
|
|
1085
1095
|
|
|
1086
1096
|
class Safe {
|
|
@@ -1957,7 +1967,7 @@ class WalletConnectV2 {
|
|
|
1957
1967
|
async setSessionBlockchains() {
|
|
1958
1968
|
if(!this.session || !_optionalChain$1([this, 'access', _27 => _27.session, 'optionalAccess', _28 => _28.namespaces, 'optionalAccess', _29 => _29.eip155])) { return }
|
|
1959
1969
|
if(_optionalChain$1([CONFIGURATIONS, 'access', _30 => _30[this.walletName], 'optionalAccess', _31 => _31.methods, 'optionalAccess', _32 => _32.includes, 'call', _33 => _33('wallet_switchEthereumChain')])) {
|
|
1960
|
-
this.blockchains =
|
|
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);
|
|
1961
1971
|
} else if(this.session.namespaces.eip155.chains) {
|
|
1962
1972
|
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);
|
|
1963
1973
|
} else if(this.session.namespaces.eip155.accounts) {
|
package/dist/umd/index.evm.js
CHANGED
|
@@ -606,12 +606,22 @@
|
|
|
606
606
|
'ethereum': 'mainnet',
|
|
607
607
|
'bsc': 'bsc',
|
|
608
608
|
'polygon': 'polygon',
|
|
609
|
+
'arbitrum': 'arbitrum',
|
|
610
|
+
'base': 'base',
|
|
611
|
+
'avalanche': 'avalanche',
|
|
612
|
+
'gnosis': 'gnosis-chain',
|
|
613
|
+
'optimism': 'optimism',
|
|
609
614
|
};
|
|
610
615
|
|
|
611
616
|
const explorerBlockchainNames = {
|
|
612
617
|
'ethereum': 'eth',
|
|
613
618
|
'bsc': 'bnb',
|
|
614
619
|
'polygon': 'matic',
|
|
620
|
+
'arbitrum': 'arb1',
|
|
621
|
+
'base': 'base',
|
|
622
|
+
'avalanche': 'avax',
|
|
623
|
+
'gnosis': 'gno',
|
|
624
|
+
'optimism': 'oeth',
|
|
615
625
|
};
|
|
616
626
|
|
|
617
627
|
class Safe {
|
|
@@ -1488,7 +1498,7 @@
|
|
|
1488
1498
|
async setSessionBlockchains() {
|
|
1489
1499
|
if(!this.session || !_optionalChain$1([this, 'access', _27 => _27.session, 'optionalAccess', _28 => _28.namespaces, 'optionalAccess', _29 => _29.eip155])) { return }
|
|
1490
1500
|
if(_optionalChain$1([CONFIGURATIONS, 'access', _30 => _30[this.walletName], 'optionalAccess', _31 => _31.methods, 'optionalAccess', _32 => _32.includes, 'call', _33 => _33('wallet_switchEthereumChain')])) {
|
|
1491
|
-
this.blockchains =
|
|
1501
|
+
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);
|
|
1492
1502
|
} else if(this.session.namespaces.eip155.chains) {
|
|
1493
1503
|
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);
|
|
1494
1504
|
} else if(this.session.namespaces.eip155.accounts) {
|
package/dist/umd/index.js
CHANGED
|
@@ -1077,12 +1077,22 @@
|
|
|
1077
1077
|
'ethereum': 'mainnet',
|
|
1078
1078
|
'bsc': 'bsc',
|
|
1079
1079
|
'polygon': 'polygon',
|
|
1080
|
+
'arbitrum': 'arbitrum',
|
|
1081
|
+
'base': 'base',
|
|
1082
|
+
'avalanche': 'avalanche',
|
|
1083
|
+
'gnosis': 'gnosis-chain',
|
|
1084
|
+
'optimism': 'optimism',
|
|
1080
1085
|
};
|
|
1081
1086
|
|
|
1082
1087
|
const explorerBlockchainNames = {
|
|
1083
1088
|
'ethereum': 'eth',
|
|
1084
1089
|
'bsc': 'bnb',
|
|
1085
1090
|
'polygon': 'matic',
|
|
1091
|
+
'arbitrum': 'arb1',
|
|
1092
|
+
'base': 'base',
|
|
1093
|
+
'avalanche': 'avax',
|
|
1094
|
+
'gnosis': 'gno',
|
|
1095
|
+
'optimism': 'oeth',
|
|
1086
1096
|
};
|
|
1087
1097
|
|
|
1088
1098
|
class Safe {
|
|
@@ -1959,7 +1969,7 @@
|
|
|
1959
1969
|
async setSessionBlockchains() {
|
|
1960
1970
|
if(!this.session || !_optionalChain$1([this, 'access', _27 => _27.session, 'optionalAccess', _28 => _28.namespaces, 'optionalAccess', _29 => _29.eip155])) { return }
|
|
1961
1971
|
if(_optionalChain$1([CONFIGURATIONS, 'access', _30 => _30[this.walletName], 'optionalAccess', _31 => _31.methods, 'optionalAccess', _32 => _32.includes, 'call', _33 => _33('wallet_switchEthereumChain')])) {
|
|
1962
|
-
this.blockchains =
|
|
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);
|
|
1963
1973
|
} else if(this.session.namespaces.eip155.chains) {
|
|
1964
1974
|
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);
|
|
1965
1975
|
} else if(this.session.namespaces.eip155.accounts) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depay/web3-wallets-evm",
|
|
3
3
|
"moduleName": "Web3Wallets",
|
|
4
|
-
"version": "16.2.
|
|
4
|
+
"version": "16.2.15",
|
|
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",
|