@depay/web3-wallets-evm 15.4.3 → 15.4.6
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 +10 -2
- package/dist/esm/index.js +10 -2
- package/dist/esm/index.solana.js +10 -2
- package/dist/umd/index.evm.js +10 -2
- package/dist/umd/index.js +10 -2
- package/dist/umd/index.solana.js +10 -2
- package/package.json +1 -1
package/dist/esm/index.evm.js
CHANGED
|
@@ -60224,10 +60224,11 @@ const submit$1 = ({ transaction, wallet }) => {
|
|
|
60224
60224
|
const submitContractInteraction$1 = async ({ transaction, wallet })=>{
|
|
60225
60225
|
const provider = await getProvider(transaction.blockchain);
|
|
60226
60226
|
const gasPrice = await provider.getGasPrice();
|
|
60227
|
-
|
|
60227
|
+
let gas = await estimate(transaction);
|
|
60228
60228
|
const data = await transaction.getData();
|
|
60229
60229
|
const value = transaction.value ? ethers.utils.hexlify(ethers.BigNumber.from(transaction.value)) : undefined;
|
|
60230
60230
|
const nonce = ethers.utils.hexlify(transaction.nonce);
|
|
60231
|
+
gas = gas.add(gas.div(10));
|
|
60231
60232
|
return wallet.connector.sendTransaction({
|
|
60232
60233
|
from: transaction.from,
|
|
60233
60234
|
to: transaction.to,
|
|
@@ -60270,9 +60271,11 @@ const getPlainInstance = ()=>{
|
|
|
60270
60271
|
|
|
60271
60272
|
const isConnected = ()=>{
|
|
60272
60273
|
return new Promise(async(resolve, reject)=>{
|
|
60274
|
+
|
|
60273
60275
|
setTimeout(()=>{ resolve(false); }, 800);
|
|
60274
60276
|
|
|
60275
60277
|
if(!localStorage['walletconnect'] || JSON.parse(localStorage['walletconnect']).handshakeTopic.length == 0) {
|
|
60278
|
+
delete localStorage['walletconnect'];
|
|
60276
60279
|
return resolve(false)
|
|
60277
60280
|
}
|
|
60278
60281
|
|
|
@@ -60283,8 +60286,13 @@ const isConnected = ()=>{
|
|
|
60283
60286
|
let blockNumber = await connector.sendCustomRequest({ method: 'eth_blockNumber' });
|
|
60284
60287
|
if(blockNumber) {
|
|
60285
60288
|
accounts = await connector.sendCustomRequest({ method: 'eth_accounts' });
|
|
60289
|
+
} else {
|
|
60290
|
+
delete localStorage['walletconnect'];
|
|
60286
60291
|
}
|
|
60287
|
-
} catch (error) {
|
|
60292
|
+
} catch (error) {
|
|
60293
|
+
delete localStorage['walletconnect'];
|
|
60294
|
+
resolve(false);
|
|
60295
|
+
}
|
|
60288
60296
|
|
|
60289
60297
|
return resolve(accounts && accounts.length)
|
|
60290
60298
|
})
|
package/dist/esm/index.js
CHANGED
|
@@ -787,10 +787,11 @@ const submit$1 = ({ transaction, wallet }) => {
|
|
|
787
787
|
const submitContractInteraction$1 = async ({ transaction, wallet })=>{
|
|
788
788
|
const provider = await getProvider(transaction.blockchain);
|
|
789
789
|
const gasPrice = await provider.getGasPrice();
|
|
790
|
-
|
|
790
|
+
let gas = await estimate(transaction);
|
|
791
791
|
const data = await transaction.getData();
|
|
792
792
|
const value = transaction.value ? ethers.utils.hexlify(ethers.BigNumber.from(transaction.value)) : undefined;
|
|
793
793
|
const nonce = ethers.utils.hexlify(transaction.nonce);
|
|
794
|
+
gas = gas.add(gas.div(10));
|
|
794
795
|
return wallet.connector.sendTransaction({
|
|
795
796
|
from: transaction.from,
|
|
796
797
|
to: transaction.to,
|
|
@@ -833,9 +834,11 @@ const getPlainInstance = ()=>{
|
|
|
833
834
|
|
|
834
835
|
const isConnected = ()=>{
|
|
835
836
|
return new Promise(async(resolve, reject)=>{
|
|
837
|
+
|
|
836
838
|
setTimeout(()=>{ resolve(false); }, 800);
|
|
837
839
|
|
|
838
840
|
if(!localStorage['walletconnect'] || JSON.parse(localStorage['walletconnect']).handshakeTopic.length == 0) {
|
|
841
|
+
delete localStorage['walletconnect'];
|
|
839
842
|
return resolve(false)
|
|
840
843
|
}
|
|
841
844
|
|
|
@@ -846,8 +849,13 @@ const isConnected = ()=>{
|
|
|
846
849
|
let blockNumber = await connector.sendCustomRequest({ method: 'eth_blockNumber' });
|
|
847
850
|
if(blockNumber) {
|
|
848
851
|
accounts = await connector.sendCustomRequest({ method: 'eth_accounts' });
|
|
852
|
+
} else {
|
|
853
|
+
delete localStorage['walletconnect'];
|
|
849
854
|
}
|
|
850
|
-
} catch (error) {
|
|
855
|
+
} catch (error) {
|
|
856
|
+
delete localStorage['walletconnect'];
|
|
857
|
+
resolve(false);
|
|
858
|
+
}
|
|
851
859
|
|
|
852
860
|
return resolve(accounts && accounts.length)
|
|
853
861
|
})
|
package/dist/esm/index.solana.js
CHANGED
|
@@ -60224,10 +60224,11 @@ const submit$1 = ({ transaction, wallet }) => {
|
|
|
60224
60224
|
const submitContractInteraction$1 = async ({ transaction, wallet })=>{
|
|
60225
60225
|
const provider = await getProvider(transaction.blockchain);
|
|
60226
60226
|
const gasPrice = await provider.getGasPrice();
|
|
60227
|
-
|
|
60227
|
+
let gas = await estimate(transaction);
|
|
60228
60228
|
const data = await transaction.getData();
|
|
60229
60229
|
const value = transaction.value ? ethers.utils.hexlify(ethers.BigNumber.from(transaction.value)) : undefined;
|
|
60230
60230
|
const nonce = ethers.utils.hexlify(transaction.nonce);
|
|
60231
|
+
gas = gas.add(gas.div(10));
|
|
60231
60232
|
return wallet.connector.sendTransaction({
|
|
60232
60233
|
from: transaction.from,
|
|
60233
60234
|
to: transaction.to,
|
|
@@ -60270,9 +60271,11 @@ const getPlainInstance = ()=>{
|
|
|
60270
60271
|
|
|
60271
60272
|
const isConnected = ()=>{
|
|
60272
60273
|
return new Promise(async(resolve, reject)=>{
|
|
60274
|
+
|
|
60273
60275
|
setTimeout(()=>{ resolve(false); }, 800);
|
|
60274
60276
|
|
|
60275
60277
|
if(!localStorage['walletconnect'] || JSON.parse(localStorage['walletconnect']).handshakeTopic.length == 0) {
|
|
60278
|
+
delete localStorage['walletconnect'];
|
|
60276
60279
|
return resolve(false)
|
|
60277
60280
|
}
|
|
60278
60281
|
|
|
@@ -60283,8 +60286,13 @@ const isConnected = ()=>{
|
|
|
60283
60286
|
let blockNumber = await connector.sendCustomRequest({ method: 'eth_blockNumber' });
|
|
60284
60287
|
if(blockNumber) {
|
|
60285
60288
|
accounts = await connector.sendCustomRequest({ method: 'eth_accounts' });
|
|
60289
|
+
} else {
|
|
60290
|
+
delete localStorage['walletconnect'];
|
|
60286
60291
|
}
|
|
60287
|
-
} catch (error) {
|
|
60292
|
+
} catch (error) {
|
|
60293
|
+
delete localStorage['walletconnect'];
|
|
60294
|
+
resolve(false);
|
|
60295
|
+
}
|
|
60288
60296
|
|
|
60289
60297
|
return resolve(accounts && accounts.length)
|
|
60290
60298
|
})
|
package/dist/umd/index.evm.js
CHANGED
|
@@ -60228,10 +60228,11 @@
|
|
|
60228
60228
|
const submitContractInteraction$1 = async ({ transaction, wallet })=>{
|
|
60229
60229
|
const provider = await web3ClientEvm.getProvider(transaction.blockchain);
|
|
60230
60230
|
const gasPrice = await provider.getGasPrice();
|
|
60231
|
-
|
|
60231
|
+
let gas = await web3ClientEvm.estimate(transaction);
|
|
60232
60232
|
const data = await transaction.getData();
|
|
60233
60233
|
const value = transaction.value ? ethers.ethers.utils.hexlify(ethers.ethers.BigNumber.from(transaction.value)) : undefined;
|
|
60234
60234
|
const nonce = ethers.ethers.utils.hexlify(transaction.nonce);
|
|
60235
|
+
gas = gas.add(gas.div(10));
|
|
60235
60236
|
return wallet.connector.sendTransaction({
|
|
60236
60237
|
from: transaction.from,
|
|
60237
60238
|
to: transaction.to,
|
|
@@ -60274,9 +60275,11 @@
|
|
|
60274
60275
|
|
|
60275
60276
|
const isConnected = ()=>{
|
|
60276
60277
|
return new Promise(async(resolve, reject)=>{
|
|
60278
|
+
|
|
60277
60279
|
setTimeout(()=>{ resolve(false); }, 800);
|
|
60278
60280
|
|
|
60279
60281
|
if(!localStorage['walletconnect'] || JSON.parse(localStorage['walletconnect']).handshakeTopic.length == 0) {
|
|
60282
|
+
delete localStorage['walletconnect'];
|
|
60280
60283
|
return resolve(false)
|
|
60281
60284
|
}
|
|
60282
60285
|
|
|
@@ -60287,8 +60290,13 @@
|
|
|
60287
60290
|
let blockNumber = await connector.sendCustomRequest({ method: 'eth_blockNumber' });
|
|
60288
60291
|
if(blockNumber) {
|
|
60289
60292
|
accounts = await connector.sendCustomRequest({ method: 'eth_accounts' });
|
|
60293
|
+
} else {
|
|
60294
|
+
delete localStorage['walletconnect'];
|
|
60290
60295
|
}
|
|
60291
|
-
} catch (error) {
|
|
60296
|
+
} catch (error) {
|
|
60297
|
+
delete localStorage['walletconnect'];
|
|
60298
|
+
resolve(false);
|
|
60299
|
+
}
|
|
60292
60300
|
|
|
60293
60301
|
return resolve(accounts && accounts.length)
|
|
60294
60302
|
})
|
package/dist/umd/index.js
CHANGED
|
@@ -790,10 +790,11 @@
|
|
|
790
790
|
const submitContractInteraction$1 = async ({ transaction, wallet })=>{
|
|
791
791
|
const provider = await web3Client.getProvider(transaction.blockchain);
|
|
792
792
|
const gasPrice = await provider.getGasPrice();
|
|
793
|
-
|
|
793
|
+
let gas = await web3Client.estimate(transaction);
|
|
794
794
|
const data = await transaction.getData();
|
|
795
795
|
const value = transaction.value ? ethers.ethers.utils.hexlify(ethers.ethers.BigNumber.from(transaction.value)) : undefined;
|
|
796
796
|
const nonce = ethers.ethers.utils.hexlify(transaction.nonce);
|
|
797
|
+
gas = gas.add(gas.div(10));
|
|
797
798
|
return wallet.connector.sendTransaction({
|
|
798
799
|
from: transaction.from,
|
|
799
800
|
to: transaction.to,
|
|
@@ -836,9 +837,11 @@
|
|
|
836
837
|
|
|
837
838
|
const isConnected = ()=>{
|
|
838
839
|
return new Promise(async(resolve, reject)=>{
|
|
840
|
+
|
|
839
841
|
setTimeout(()=>{ resolve(false); }, 800);
|
|
840
842
|
|
|
841
843
|
if(!localStorage['walletconnect'] || JSON.parse(localStorage['walletconnect']).handshakeTopic.length == 0) {
|
|
844
|
+
delete localStorage['walletconnect'];
|
|
842
845
|
return resolve(false)
|
|
843
846
|
}
|
|
844
847
|
|
|
@@ -849,8 +852,13 @@
|
|
|
849
852
|
let blockNumber = await connector.sendCustomRequest({ method: 'eth_blockNumber' });
|
|
850
853
|
if(blockNumber) {
|
|
851
854
|
accounts = await connector.sendCustomRequest({ method: 'eth_accounts' });
|
|
855
|
+
} else {
|
|
856
|
+
delete localStorage['walletconnect'];
|
|
852
857
|
}
|
|
853
|
-
} catch (error) {
|
|
858
|
+
} catch (error) {
|
|
859
|
+
delete localStorage['walletconnect'];
|
|
860
|
+
resolve(false);
|
|
861
|
+
}
|
|
854
862
|
|
|
855
863
|
return resolve(accounts && accounts.length)
|
|
856
864
|
})
|
package/dist/umd/index.solana.js
CHANGED
|
@@ -60228,10 +60228,11 @@
|
|
|
60228
60228
|
const submitContractInteraction$1 = async ({ transaction, wallet })=>{
|
|
60229
60229
|
const provider = await web3ClientSolana.getProvider(transaction.blockchain);
|
|
60230
60230
|
const gasPrice = await provider.getGasPrice();
|
|
60231
|
-
|
|
60231
|
+
let gas = await web3ClientSolana.estimate(transaction);
|
|
60232
60232
|
const data = await transaction.getData();
|
|
60233
60233
|
const value = transaction.value ? ethers.ethers.utils.hexlify(ethers.ethers.BigNumber.from(transaction.value)) : undefined;
|
|
60234
60234
|
const nonce = ethers.ethers.utils.hexlify(transaction.nonce);
|
|
60235
|
+
gas = gas.add(gas.div(10));
|
|
60235
60236
|
return wallet.connector.sendTransaction({
|
|
60236
60237
|
from: transaction.from,
|
|
60237
60238
|
to: transaction.to,
|
|
@@ -60274,9 +60275,11 @@
|
|
|
60274
60275
|
|
|
60275
60276
|
const isConnected = ()=>{
|
|
60276
60277
|
return new Promise(async(resolve, reject)=>{
|
|
60278
|
+
|
|
60277
60279
|
setTimeout(()=>{ resolve(false); }, 800);
|
|
60278
60280
|
|
|
60279
60281
|
if(!localStorage['walletconnect'] || JSON.parse(localStorage['walletconnect']).handshakeTopic.length == 0) {
|
|
60282
|
+
delete localStorage['walletconnect'];
|
|
60280
60283
|
return resolve(false)
|
|
60281
60284
|
}
|
|
60282
60285
|
|
|
@@ -60287,8 +60290,13 @@
|
|
|
60287
60290
|
let blockNumber = await connector.sendCustomRequest({ method: 'eth_blockNumber' });
|
|
60288
60291
|
if(blockNumber) {
|
|
60289
60292
|
accounts = await connector.sendCustomRequest({ method: 'eth_accounts' });
|
|
60293
|
+
} else {
|
|
60294
|
+
delete localStorage['walletconnect'];
|
|
60290
60295
|
}
|
|
60291
|
-
} catch (error) {
|
|
60296
|
+
} catch (error) {
|
|
60297
|
+
delete localStorage['walletconnect'];
|
|
60298
|
+
resolve(false);
|
|
60299
|
+
}
|
|
60292
60300
|
|
|
60293
60301
|
return resolve(accounts && accounts.length)
|
|
60294
60302
|
})
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depay/web3-wallets-evm",
|
|
3
3
|
"moduleName": "Web3Wallets",
|
|
4
|
-
"version": "15.4.
|
|
4
|
+
"version": "15.4.6",
|
|
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",
|