@depay/web3-wallets-evm 14.9.1 → 14.10.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 -5
- package/dist/esm/index.js +5 -5
- package/dist/umd/index.evm.js +5 -5
- package/dist/umd/index.js +5 -5
- package/package.json +1 -1
package/dist/esm/index.evm.js
CHANGED
|
@@ -60124,7 +60124,9 @@ function _optionalChain$4(ops) { let lastAccessLHS = undefined; let value = ops[
|
|
|
60124
60124
|
const KEY$1 = '_DePayWeb3WalletsConnectedWalletConnectV1Instance';
|
|
60125
60125
|
|
|
60126
60126
|
const getConnectedInstance$2 = ()=>{
|
|
60127
|
-
return window[KEY$1]
|
|
60127
|
+
if(window[KEY$1]) { return window[KEY$1] }
|
|
60128
|
+
let connector = getWalletConnectInstance(()=>{});
|
|
60129
|
+
if(connector.connected) { return new WalletConnectV1() }
|
|
60128
60130
|
};
|
|
60129
60131
|
|
|
60130
60132
|
const setConnectedInstance$2 = (value)=>{
|
|
@@ -60155,8 +60157,8 @@ class WalletConnectV1 {
|
|
|
60155
60157
|
};}
|
|
60156
60158
|
|
|
60157
60159
|
constructor() {
|
|
60158
|
-
this.name = this.constructor.info.name;
|
|
60159
|
-
this.logo = this.constructor.info.logo;
|
|
60160
|
+
this.name = localStorage[KEY$1+'_name'] ? localStorage[KEY$1+'_name'] : this.constructor.info.name;
|
|
60161
|
+
this.logo = localStorage[KEY$1+'_logo'] ? localStorage[KEY$1+'_logo'] : this.constructor.info.logo;
|
|
60160
60162
|
this.blockchains = this.constructor.info.blockchains;
|
|
60161
60163
|
this.sendTransaction = (transaction)=>{
|
|
60162
60164
|
return sendTransaction$3({
|
|
@@ -60215,8 +60217,6 @@ class WalletConnectV1 {
|
|
|
60215
60217
|
}
|
|
60216
60218
|
|
|
60217
60219
|
if(this.connector.connected) {
|
|
60218
|
-
if(localStorage[KEY$1+'_name']) { this.name = localStorage[KEY$1+'_name']; }
|
|
60219
|
-
if(localStorage[KEY$1+'_logo']) { this.logo = localStorage[KEY$1+'_logo']; }
|
|
60220
60220
|
|
|
60221
60221
|
let account = await this.account();
|
|
60222
60222
|
this.connectedChainId = await this.connector.sendCustomRequest({ method: 'eth_chainId' });
|
package/dist/esm/index.js
CHANGED
|
@@ -1218,7 +1218,9 @@ function _optionalChain$2(ops) { let lastAccessLHS = undefined; let value = ops[
|
|
|
1218
1218
|
const KEY$1 = '_DePayWeb3WalletsConnectedWalletConnectV1Instance';
|
|
1219
1219
|
|
|
1220
1220
|
const getConnectedInstance$2 = ()=>{
|
|
1221
|
-
return window[KEY$1]
|
|
1221
|
+
if(window[KEY$1]) { return window[KEY$1] }
|
|
1222
|
+
let connector = getWalletConnectInstance(()=>{});
|
|
1223
|
+
if(connector.connected) { return new WalletConnectV1() }
|
|
1222
1224
|
};
|
|
1223
1225
|
|
|
1224
1226
|
const setConnectedInstance$2 = (value)=>{
|
|
@@ -1249,8 +1251,8 @@ class WalletConnectV1 {
|
|
|
1249
1251
|
};}
|
|
1250
1252
|
|
|
1251
1253
|
constructor() {
|
|
1252
|
-
this.name = this.constructor.info.name;
|
|
1253
|
-
this.logo = this.constructor.info.logo;
|
|
1254
|
+
this.name = localStorage[KEY$1+'_name'] ? localStorage[KEY$1+'_name'] : this.constructor.info.name;
|
|
1255
|
+
this.logo = localStorage[KEY$1+'_logo'] ? localStorage[KEY$1+'_logo'] : this.constructor.info.logo;
|
|
1254
1256
|
this.blockchains = this.constructor.info.blockchains;
|
|
1255
1257
|
this.sendTransaction = (transaction)=>{
|
|
1256
1258
|
return sendTransaction$2({
|
|
@@ -1309,8 +1311,6 @@ class WalletConnectV1 {
|
|
|
1309
1311
|
}
|
|
1310
1312
|
|
|
1311
1313
|
if(this.connector.connected) {
|
|
1312
|
-
if(localStorage[KEY$1+'_name']) { this.name = localStorage[KEY$1+'_name']; }
|
|
1313
|
-
if(localStorage[KEY$1+'_logo']) { this.logo = localStorage[KEY$1+'_logo']; }
|
|
1314
1314
|
|
|
1315
1315
|
let account = await this.account();
|
|
1316
1316
|
this.connectedChainId = await this.connector.sendCustomRequest({ method: 'eth_chainId' });
|
package/dist/umd/index.evm.js
CHANGED
|
@@ -60122,7 +60122,9 @@
|
|
|
60122
60122
|
const KEY$1 = '_DePayWeb3WalletsConnectedWalletConnectV1Instance';
|
|
60123
60123
|
|
|
60124
60124
|
const getConnectedInstance$2 = ()=>{
|
|
60125
|
-
return window[KEY$1]
|
|
60125
|
+
if(window[KEY$1]) { return window[KEY$1] }
|
|
60126
|
+
let connector = getWalletConnectInstance(()=>{});
|
|
60127
|
+
if(connector.connected) { return new WalletConnectV1() }
|
|
60126
60128
|
};
|
|
60127
60129
|
|
|
60128
60130
|
const setConnectedInstance$2 = (value)=>{
|
|
@@ -60153,8 +60155,8 @@
|
|
|
60153
60155
|
};}
|
|
60154
60156
|
|
|
60155
60157
|
constructor() {
|
|
60156
|
-
this.name = this.constructor.info.name;
|
|
60157
|
-
this.logo = this.constructor.info.logo;
|
|
60158
|
+
this.name = localStorage[KEY$1+'_name'] ? localStorage[KEY$1+'_name'] : this.constructor.info.name;
|
|
60159
|
+
this.logo = localStorage[KEY$1+'_logo'] ? localStorage[KEY$1+'_logo'] : this.constructor.info.logo;
|
|
60158
60160
|
this.blockchains = this.constructor.info.blockchains;
|
|
60159
60161
|
this.sendTransaction = (transaction)=>{
|
|
60160
60162
|
return sendTransaction$3({
|
|
@@ -60213,8 +60215,6 @@
|
|
|
60213
60215
|
}
|
|
60214
60216
|
|
|
60215
60217
|
if(this.connector.connected) {
|
|
60216
|
-
if(localStorage[KEY$1+'_name']) { this.name = localStorage[KEY$1+'_name']; }
|
|
60217
|
-
if(localStorage[KEY$1+'_logo']) { this.logo = localStorage[KEY$1+'_logo']; }
|
|
60218
60218
|
|
|
60219
60219
|
let account = await this.account();
|
|
60220
60220
|
this.connectedChainId = await this.connector.sendCustomRequest({ method: 'eth_chainId' });
|
package/dist/umd/index.js
CHANGED
|
@@ -1215,7 +1215,9 @@
|
|
|
1215
1215
|
const KEY$1 = '_DePayWeb3WalletsConnectedWalletConnectV1Instance';
|
|
1216
1216
|
|
|
1217
1217
|
const getConnectedInstance$2 = ()=>{
|
|
1218
|
-
return window[KEY$1]
|
|
1218
|
+
if(window[KEY$1]) { return window[KEY$1] }
|
|
1219
|
+
let connector = getWalletConnectInstance(()=>{});
|
|
1220
|
+
if(connector.connected) { return new WalletConnectV1() }
|
|
1219
1221
|
};
|
|
1220
1222
|
|
|
1221
1223
|
const setConnectedInstance$2 = (value)=>{
|
|
@@ -1246,8 +1248,8 @@
|
|
|
1246
1248
|
};}
|
|
1247
1249
|
|
|
1248
1250
|
constructor() {
|
|
1249
|
-
this.name = this.constructor.info.name;
|
|
1250
|
-
this.logo = this.constructor.info.logo;
|
|
1251
|
+
this.name = localStorage[KEY$1+'_name'] ? localStorage[KEY$1+'_name'] : this.constructor.info.name;
|
|
1252
|
+
this.logo = localStorage[KEY$1+'_logo'] ? localStorage[KEY$1+'_logo'] : this.constructor.info.logo;
|
|
1251
1253
|
this.blockchains = this.constructor.info.blockchains;
|
|
1252
1254
|
this.sendTransaction = (transaction)=>{
|
|
1253
1255
|
return sendTransaction$2({
|
|
@@ -1306,8 +1308,6 @@
|
|
|
1306
1308
|
}
|
|
1307
1309
|
|
|
1308
1310
|
if(this.connector.connected) {
|
|
1309
|
-
if(localStorage[KEY$1+'_name']) { this.name = localStorage[KEY$1+'_name']; }
|
|
1310
|
-
if(localStorage[KEY$1+'_logo']) { this.logo = localStorage[KEY$1+'_logo']; }
|
|
1311
1311
|
|
|
1312
1312
|
let account = await this.account();
|
|
1313
1313
|
this.connectedChainId = await this.connector.sendCustomRequest({ method: 'eth_chainId' });
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depay/web3-wallets-evm",
|
|
3
3
|
"moduleName": "Web3Wallets",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.10.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",
|