@depay/web3-wallets-evm 16.2.8 → 16.2.10
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 +4 -3
- package/dist/esm/index.js +4 -3
- package/dist/umd/index.evm.js +4 -3
- package/dist/umd/index.js +4 -3
- package/package.json +1 -1
package/dist/esm/index.evm.js
CHANGED
|
@@ -1190,7 +1190,7 @@ const submitContractInteraction$1 = async ({ transaction, wallet })=>{
|
|
|
1190
1190
|
params: [{
|
|
1191
1191
|
from: transaction.from,
|
|
1192
1192
|
to: transaction.to,
|
|
1193
|
-
value:
|
|
1193
|
+
value: transaction.value ? ethers.BigNumber.from(transaction.value.toString()).toHexString() : undefined,
|
|
1194
1194
|
data: await transaction.getData(),
|
|
1195
1195
|
gas: gas.toHexString(),
|
|
1196
1196
|
gasPrice: gasPrice.toHexString(),
|
|
@@ -1213,7 +1213,7 @@ const submitSimpleTransfer$1 = async ({ transaction, wallet })=>{
|
|
|
1213
1213
|
params: [{
|
|
1214
1214
|
from: transaction.from,
|
|
1215
1215
|
to: transaction.to,
|
|
1216
|
-
value:
|
|
1216
|
+
value: transaction.value ? ethers.BigNumber.from(transaction.value.toString()).toHexString() : undefined,
|
|
1217
1217
|
gas: gas.toHexString(),
|
|
1218
1218
|
gasPrice: gasPrice.toHexString(),
|
|
1219
1219
|
nonce: transaction.nonce
|
|
@@ -1326,7 +1326,8 @@ const getLastSession = async(walletName)=>{
|
|
|
1326
1326
|
if(!localStorage[KEY+":projectId"]) { return }
|
|
1327
1327
|
if(walletName !== localStorage[KEY+":lastSessionWalletName"]) { return }
|
|
1328
1328
|
let signClient = await getSignClient();
|
|
1329
|
-
|
|
1329
|
+
let existingSessions;
|
|
1330
|
+
try { existingSessions = signClient.find(getWalletConnectV2Config(walletName)); } catch (e) {}
|
|
1330
1331
|
const lastSession = existingSessions ? existingSessions[existingSessions.length-1] : undefined;
|
|
1331
1332
|
if(lastSession && localStorage[KEY+":lastExpiredSessionTopic"] !== lastSession.topic && lastSession.expiry > Math.ceil(Date.now()/1000)) {
|
|
1332
1333
|
const result = await Promise.race([signClient.ping({ topic: lastSession.topic }), new Promise((resolve)=>setTimeout(resolve, 1500))]);
|
package/dist/esm/index.js
CHANGED
|
@@ -1662,7 +1662,7 @@ const submitContractInteraction$1 = async ({ transaction, wallet })=>{
|
|
|
1662
1662
|
params: [{
|
|
1663
1663
|
from: transaction.from,
|
|
1664
1664
|
to: transaction.to,
|
|
1665
|
-
value:
|
|
1665
|
+
value: transaction.value ? ethers.BigNumber.from(transaction.value.toString()).toHexString() : undefined,
|
|
1666
1666
|
data: await transaction.getData(),
|
|
1667
1667
|
gas: gas.toHexString(),
|
|
1668
1668
|
gasPrice: gasPrice.toHexString(),
|
|
@@ -1685,7 +1685,7 @@ const submitSimpleTransfer$1 = async ({ transaction, wallet })=>{
|
|
|
1685
1685
|
params: [{
|
|
1686
1686
|
from: transaction.from,
|
|
1687
1687
|
to: transaction.to,
|
|
1688
|
-
value:
|
|
1688
|
+
value: transaction.value ? ethers.BigNumber.from(transaction.value.toString()).toHexString() : undefined,
|
|
1689
1689
|
gas: gas.toHexString(),
|
|
1690
1690
|
gasPrice: gasPrice.toHexString(),
|
|
1691
1691
|
nonce: transaction.nonce
|
|
@@ -1798,7 +1798,8 @@ const getLastSession = async(walletName)=>{
|
|
|
1798
1798
|
if(!localStorage[KEY+":projectId"]) { return }
|
|
1799
1799
|
if(walletName !== localStorage[KEY+":lastSessionWalletName"]) { return }
|
|
1800
1800
|
let signClient = await getSignClient();
|
|
1801
|
-
|
|
1801
|
+
let existingSessions;
|
|
1802
|
+
try { existingSessions = signClient.find(getWalletConnectV2Config(walletName)); } catch (e) {}
|
|
1802
1803
|
const lastSession = existingSessions ? existingSessions[existingSessions.length-1] : undefined;
|
|
1803
1804
|
if(lastSession && localStorage[KEY+":lastExpiredSessionTopic"] !== lastSession.topic && lastSession.expiry > Math.ceil(Date.now()/1000)) {
|
|
1804
1805
|
const result = await Promise.race([signClient.ping({ topic: lastSession.topic }), new Promise((resolve)=>setTimeout(resolve, 1500))]);
|
package/dist/umd/index.evm.js
CHANGED
|
@@ -1193,7 +1193,7 @@
|
|
|
1193
1193
|
params: [{
|
|
1194
1194
|
from: transaction.from,
|
|
1195
1195
|
to: transaction.to,
|
|
1196
|
-
value:
|
|
1196
|
+
value: transaction.value ? ethers.ethers.BigNumber.from(transaction.value.toString()).toHexString() : undefined,
|
|
1197
1197
|
data: await transaction.getData(),
|
|
1198
1198
|
gas: gas.toHexString(),
|
|
1199
1199
|
gasPrice: gasPrice.toHexString(),
|
|
@@ -1216,7 +1216,7 @@
|
|
|
1216
1216
|
params: [{
|
|
1217
1217
|
from: transaction.from,
|
|
1218
1218
|
to: transaction.to,
|
|
1219
|
-
value:
|
|
1219
|
+
value: transaction.value ? ethers.ethers.BigNumber.from(transaction.value.toString()).toHexString() : undefined,
|
|
1220
1220
|
gas: gas.toHexString(),
|
|
1221
1221
|
gasPrice: gasPrice.toHexString(),
|
|
1222
1222
|
nonce: transaction.nonce
|
|
@@ -1329,7 +1329,8 @@
|
|
|
1329
1329
|
if(!localStorage[KEY+":projectId"]) { return }
|
|
1330
1330
|
if(walletName !== localStorage[KEY+":lastSessionWalletName"]) { return }
|
|
1331
1331
|
let signClient = await getSignClient();
|
|
1332
|
-
|
|
1332
|
+
let existingSessions;
|
|
1333
|
+
try { existingSessions = signClient.find(getWalletConnectV2Config(walletName)); } catch (e) {}
|
|
1333
1334
|
const lastSession = existingSessions ? existingSessions[existingSessions.length-1] : undefined;
|
|
1334
1335
|
if(lastSession && localStorage[KEY+":lastExpiredSessionTopic"] !== lastSession.topic && lastSession.expiry > Math.ceil(Date.now()/1000)) {
|
|
1335
1336
|
const result = await Promise.race([signClient.ping({ topic: lastSession.topic }), new Promise((resolve)=>setTimeout(resolve, 1500))]);
|
package/dist/umd/index.js
CHANGED
|
@@ -1664,7 +1664,7 @@
|
|
|
1664
1664
|
params: [{
|
|
1665
1665
|
from: transaction.from,
|
|
1666
1666
|
to: transaction.to,
|
|
1667
|
-
value:
|
|
1667
|
+
value: transaction.value ? ethers.ethers.BigNumber.from(transaction.value.toString()).toHexString() : undefined,
|
|
1668
1668
|
data: await transaction.getData(),
|
|
1669
1669
|
gas: gas.toHexString(),
|
|
1670
1670
|
gasPrice: gasPrice.toHexString(),
|
|
@@ -1687,7 +1687,7 @@
|
|
|
1687
1687
|
params: [{
|
|
1688
1688
|
from: transaction.from,
|
|
1689
1689
|
to: transaction.to,
|
|
1690
|
-
value:
|
|
1690
|
+
value: transaction.value ? ethers.ethers.BigNumber.from(transaction.value.toString()).toHexString() : undefined,
|
|
1691
1691
|
gas: gas.toHexString(),
|
|
1692
1692
|
gasPrice: gasPrice.toHexString(),
|
|
1693
1693
|
nonce: transaction.nonce
|
|
@@ -1800,7 +1800,8 @@
|
|
|
1800
1800
|
if(!localStorage[KEY+":projectId"]) { return }
|
|
1801
1801
|
if(walletName !== localStorage[KEY+":lastSessionWalletName"]) { return }
|
|
1802
1802
|
let signClient = await getSignClient();
|
|
1803
|
-
|
|
1803
|
+
let existingSessions;
|
|
1804
|
+
try { existingSessions = signClient.find(getWalletConnectV2Config(walletName)); } catch (e) {}
|
|
1804
1805
|
const lastSession = existingSessions ? existingSessions[existingSessions.length-1] : undefined;
|
|
1805
1806
|
if(lastSession && localStorage[KEY+":lastExpiredSessionTopic"] !== lastSession.topic && lastSession.expiry > Math.ceil(Date.now()/1000)) {
|
|
1806
1807
|
const result = await Promise.race([signClient.ping({ topic: lastSession.topic }), new Promise((resolve)=>setTimeout(resolve, 1500))]);
|
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.10",
|
|
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",
|