@depay/web3-wallets-evm 16.0.8 → 16.0.9
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 -0
- package/dist/esm/index.js +10 -0
- package/dist/esm/index.solana.js +10 -0
- package/dist/umd/index.evm.js +10 -0
- package/dist/umd/index.js +10 -0
- package/dist/umd/index.solana.js +10 -0
- package/package.json +1 -1
package/dist/esm/index.evm.js
CHANGED
|
@@ -44590,6 +44590,7 @@ const submitSimpleTransfer$1 = async ({ transaction, wallet })=>{
|
|
|
44590
44590
|
};
|
|
44591
44591
|
|
|
44592
44592
|
function _optionalChain$1(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; }
|
|
44593
|
+
|
|
44593
44594
|
const KEY = 'depay:wallets:wc2';
|
|
44594
44595
|
|
|
44595
44596
|
// configurations for wallets that require special handling
|
|
@@ -44910,6 +44911,15 @@ class WalletConnectV2 {
|
|
|
44910
44911
|
}
|
|
44911
44912
|
}
|
|
44912
44913
|
|
|
44914
|
+
async transactionCount({ blockchain, address }) {
|
|
44915
|
+
const smartContractWallet = await getSmartContractWallet(blockchain, address);
|
|
44916
|
+
if(smartContractWallet) {
|
|
44917
|
+
return await smartContractWallet.transactionCount()
|
|
44918
|
+
} else {
|
|
44919
|
+
return await request$1({ blockchain, method: 'transactionCount', address })
|
|
44920
|
+
}
|
|
44921
|
+
}
|
|
44922
|
+
|
|
44913
44923
|
async sign(message) {
|
|
44914
44924
|
if(typeof message === 'object') {
|
|
44915
44925
|
let account = await this.account();
|
package/dist/esm/index.js
CHANGED
|
@@ -1627,6 +1627,7 @@ const submitSimpleTransfer$1 = async ({ transaction, wallet })=>{
|
|
|
1627
1627
|
};
|
|
1628
1628
|
|
|
1629
1629
|
function _optionalChain$1(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; }
|
|
1630
|
+
|
|
1630
1631
|
const KEY = 'depay:wallets:wc2';
|
|
1631
1632
|
|
|
1632
1633
|
// configurations for wallets that require special handling
|
|
@@ -1947,6 +1948,15 @@ class WalletConnectV2 {
|
|
|
1947
1948
|
}
|
|
1948
1949
|
}
|
|
1949
1950
|
|
|
1951
|
+
async transactionCount({ blockchain, address }) {
|
|
1952
|
+
const smartContractWallet = await getSmartContractWallet(blockchain, address);
|
|
1953
|
+
if(smartContractWallet) {
|
|
1954
|
+
return await smartContractWallet.transactionCount()
|
|
1955
|
+
} else {
|
|
1956
|
+
return await request({ blockchain, method: 'transactionCount', address })
|
|
1957
|
+
}
|
|
1958
|
+
}
|
|
1959
|
+
|
|
1950
1960
|
async sign(message) {
|
|
1951
1961
|
if(typeof message === 'object') {
|
|
1952
1962
|
let account = await this.account();
|
package/dist/esm/index.solana.js
CHANGED
|
@@ -2463,6 +2463,7 @@ const submitSimpleTransfer$1 = async ({ transaction, wallet })=>{
|
|
|
2463
2463
|
};
|
|
2464
2464
|
|
|
2465
2465
|
function _optionalChain$1(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; }
|
|
2466
|
+
|
|
2466
2467
|
const KEY = 'depay:wallets:wc2';
|
|
2467
2468
|
|
|
2468
2469
|
// configurations for wallets that require special handling
|
|
@@ -2783,6 +2784,15 @@ class WalletConnectV2 {
|
|
|
2783
2784
|
}
|
|
2784
2785
|
}
|
|
2785
2786
|
|
|
2787
|
+
async transactionCount({ blockchain, address }) {
|
|
2788
|
+
const smartContractWallet = await getSmartContractWallet(blockchain, address);
|
|
2789
|
+
if(smartContractWallet) {
|
|
2790
|
+
return await smartContractWallet.transactionCount()
|
|
2791
|
+
} else {
|
|
2792
|
+
return await request$1({ blockchain, method: 'transactionCount', address })
|
|
2793
|
+
}
|
|
2794
|
+
}
|
|
2795
|
+
|
|
2786
2796
|
async sign(message) {
|
|
2787
2797
|
if(typeof message === 'object') {
|
|
2788
2798
|
let account = await this.account();
|
package/dist/umd/index.evm.js
CHANGED
|
@@ -44593,6 +44593,7 @@
|
|
|
44593
44593
|
};
|
|
44594
44594
|
|
|
44595
44595
|
function _optionalChain$1(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; }
|
|
44596
|
+
|
|
44596
44597
|
const KEY = 'depay:wallets:wc2';
|
|
44597
44598
|
|
|
44598
44599
|
// configurations for wallets that require special handling
|
|
@@ -44913,6 +44914,15 @@
|
|
|
44913
44914
|
}
|
|
44914
44915
|
}
|
|
44915
44916
|
|
|
44917
|
+
async transactionCount({ blockchain, address }) {
|
|
44918
|
+
const smartContractWallet = await getSmartContractWallet(blockchain, address);
|
|
44919
|
+
if(smartContractWallet) {
|
|
44920
|
+
return await smartContractWallet.transactionCount()
|
|
44921
|
+
} else {
|
|
44922
|
+
return await web3ClientEvm.request({ blockchain, method: 'transactionCount', address })
|
|
44923
|
+
}
|
|
44924
|
+
}
|
|
44925
|
+
|
|
44916
44926
|
async sign(message) {
|
|
44917
44927
|
if(typeof message === 'object') {
|
|
44918
44928
|
let account = await this.account();
|
package/dist/umd/index.js
CHANGED
|
@@ -1629,6 +1629,7 @@
|
|
|
1629
1629
|
};
|
|
1630
1630
|
|
|
1631
1631
|
function _optionalChain$1(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; }
|
|
1632
|
+
|
|
1632
1633
|
const KEY = 'depay:wallets:wc2';
|
|
1633
1634
|
|
|
1634
1635
|
// configurations for wallets that require special handling
|
|
@@ -1949,6 +1950,15 @@
|
|
|
1949
1950
|
}
|
|
1950
1951
|
}
|
|
1951
1952
|
|
|
1953
|
+
async transactionCount({ blockchain, address }) {
|
|
1954
|
+
const smartContractWallet = await getSmartContractWallet(blockchain, address);
|
|
1955
|
+
if(smartContractWallet) {
|
|
1956
|
+
return await smartContractWallet.transactionCount()
|
|
1957
|
+
} else {
|
|
1958
|
+
return await web3Client.request({ blockchain, method: 'transactionCount', address })
|
|
1959
|
+
}
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1952
1962
|
async sign(message) {
|
|
1953
1963
|
if(typeof message === 'object') {
|
|
1954
1964
|
let account = await this.account();
|
package/dist/umd/index.solana.js
CHANGED
|
@@ -2465,6 +2465,7 @@
|
|
|
2465
2465
|
};
|
|
2466
2466
|
|
|
2467
2467
|
function _optionalChain$1(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; }
|
|
2468
|
+
|
|
2468
2469
|
const KEY = 'depay:wallets:wc2';
|
|
2469
2470
|
|
|
2470
2471
|
// configurations for wallets that require special handling
|
|
@@ -2785,6 +2786,15 @@
|
|
|
2785
2786
|
}
|
|
2786
2787
|
}
|
|
2787
2788
|
|
|
2789
|
+
async transactionCount({ blockchain, address }) {
|
|
2790
|
+
const smartContractWallet = await getSmartContractWallet(blockchain, address);
|
|
2791
|
+
if(smartContractWallet) {
|
|
2792
|
+
return await smartContractWallet.transactionCount()
|
|
2793
|
+
} else {
|
|
2794
|
+
return await web3ClientSolana.request({ blockchain, method: 'transactionCount', address })
|
|
2795
|
+
}
|
|
2796
|
+
}
|
|
2797
|
+
|
|
2788
2798
|
async sign(message) {
|
|
2789
2799
|
if(typeof message === 'object') {
|
|
2790
2800
|
let account = await this.account();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depay/web3-wallets-evm",
|
|
3
3
|
"moduleName": "Web3Wallets",
|
|
4
|
-
"version": "16.0.
|
|
4
|
+
"version": "16.0.9",
|
|
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",
|