@depay/web3-wallets-evm 16.0.7 → 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 +12 -2
- package/dist/esm/index.js +12 -2
- package/dist/esm/index.solana.js +12 -2
- package/dist/umd/index.evm.js +12 -2
- package/dist/umd/index.js +12 -2
- package/dist/umd/index.solana.js +12 -2
- 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
|
|
@@ -44614,7 +44615,7 @@ const CONFIGURATIONS = {
|
|
|
44614
44615
|
],
|
|
44615
44616
|
requiredNamespaces: {
|
|
44616
44617
|
eip155: {
|
|
44617
|
-
chains: ['ethereum', 'bsc', 'polygon', 'arbitrum'
|
|
44618
|
+
chains: ['ethereum', 'bsc', 'polygon', 'arbitrum'].map((blockchainName)=>`eip155:${Blockchains[blockchainName].networkId}`)
|
|
44618
44619
|
}
|
|
44619
44620
|
},
|
|
44620
44621
|
optionalNamespaces: {},
|
|
@@ -44629,7 +44630,7 @@ const CONFIGURATIONS = {
|
|
|
44629
44630
|
],
|
|
44630
44631
|
requiredNamespaces: {
|
|
44631
44632
|
eip155: {
|
|
44632
|
-
chains: ['ethereum', 'bsc', 'polygon', 'arbitrum'
|
|
44633
|
+
chains: ['ethereum', 'bsc', 'polygon', 'arbitrum'].map((blockchainName)=>`eip155:${Blockchains[blockchainName].networkId}`)
|
|
44633
44634
|
}
|
|
44634
44635
|
},
|
|
44635
44636
|
optionalNamespaces: {},
|
|
@@ -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
|
|
@@ -1651,7 +1652,7 @@ const CONFIGURATIONS = {
|
|
|
1651
1652
|
],
|
|
1652
1653
|
requiredNamespaces: {
|
|
1653
1654
|
eip155: {
|
|
1654
|
-
chains: ['ethereum', 'bsc', 'polygon', 'arbitrum'
|
|
1655
|
+
chains: ['ethereum', 'bsc', 'polygon', 'arbitrum'].map((blockchainName)=>`eip155:${Blockchains[blockchainName].networkId}`)
|
|
1655
1656
|
}
|
|
1656
1657
|
},
|
|
1657
1658
|
optionalNamespaces: {},
|
|
@@ -1666,7 +1667,7 @@ const CONFIGURATIONS = {
|
|
|
1666
1667
|
],
|
|
1667
1668
|
requiredNamespaces: {
|
|
1668
1669
|
eip155: {
|
|
1669
|
-
chains: ['ethereum', 'bsc', 'polygon', 'arbitrum'
|
|
1670
|
+
chains: ['ethereum', 'bsc', 'polygon', 'arbitrum'].map((blockchainName)=>`eip155:${Blockchains[blockchainName].networkId}`)
|
|
1670
1671
|
}
|
|
1671
1672
|
},
|
|
1672
1673
|
optionalNamespaces: {},
|
|
@@ -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
|
|
@@ -2487,7 +2488,7 @@ const CONFIGURATIONS = {
|
|
|
2487
2488
|
],
|
|
2488
2489
|
requiredNamespaces: {
|
|
2489
2490
|
eip155: {
|
|
2490
|
-
chains: ['ethereum', 'bsc', 'polygon', 'arbitrum'
|
|
2491
|
+
chains: ['ethereum', 'bsc', 'polygon', 'arbitrum'].map((blockchainName)=>`eip155:${Blockchains[blockchainName].networkId}`)
|
|
2491
2492
|
}
|
|
2492
2493
|
},
|
|
2493
2494
|
optionalNamespaces: {},
|
|
@@ -2502,7 +2503,7 @@ const CONFIGURATIONS = {
|
|
|
2502
2503
|
],
|
|
2503
2504
|
requiredNamespaces: {
|
|
2504
2505
|
eip155: {
|
|
2505
|
-
chains: ['ethereum', 'bsc', 'polygon', 'arbitrum'
|
|
2506
|
+
chains: ['ethereum', 'bsc', 'polygon', 'arbitrum'].map((blockchainName)=>`eip155:${Blockchains[blockchainName].networkId}`)
|
|
2506
2507
|
}
|
|
2507
2508
|
},
|
|
2508
2509
|
optionalNamespaces: {},
|
|
@@ -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
|
|
@@ -44617,7 +44618,7 @@
|
|
|
44617
44618
|
],
|
|
44618
44619
|
requiredNamespaces: {
|
|
44619
44620
|
eip155: {
|
|
44620
|
-
chains: ['ethereum', 'bsc', 'polygon', 'arbitrum'
|
|
44621
|
+
chains: ['ethereum', 'bsc', 'polygon', 'arbitrum'].map((blockchainName)=>`eip155:${Blockchains__default['default'][blockchainName].networkId}`)
|
|
44621
44622
|
}
|
|
44622
44623
|
},
|
|
44623
44624
|
optionalNamespaces: {},
|
|
@@ -44632,7 +44633,7 @@
|
|
|
44632
44633
|
],
|
|
44633
44634
|
requiredNamespaces: {
|
|
44634
44635
|
eip155: {
|
|
44635
|
-
chains: ['ethereum', 'bsc', 'polygon', 'arbitrum'
|
|
44636
|
+
chains: ['ethereum', 'bsc', 'polygon', 'arbitrum'].map((blockchainName)=>`eip155:${Blockchains__default['default'][blockchainName].networkId}`)
|
|
44636
44637
|
}
|
|
44637
44638
|
},
|
|
44638
44639
|
optionalNamespaces: {},
|
|
@@ -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
|
|
@@ -1653,7 +1654,7 @@
|
|
|
1653
1654
|
],
|
|
1654
1655
|
requiredNamespaces: {
|
|
1655
1656
|
eip155: {
|
|
1656
|
-
chains: ['ethereum', 'bsc', 'polygon', 'arbitrum'
|
|
1657
|
+
chains: ['ethereum', 'bsc', 'polygon', 'arbitrum'].map((blockchainName)=>`eip155:${Blockchains__default['default'][blockchainName].networkId}`)
|
|
1657
1658
|
}
|
|
1658
1659
|
},
|
|
1659
1660
|
optionalNamespaces: {},
|
|
@@ -1668,7 +1669,7 @@
|
|
|
1668
1669
|
],
|
|
1669
1670
|
requiredNamespaces: {
|
|
1670
1671
|
eip155: {
|
|
1671
|
-
chains: ['ethereum', 'bsc', 'polygon', 'arbitrum'
|
|
1672
|
+
chains: ['ethereum', 'bsc', 'polygon', 'arbitrum'].map((blockchainName)=>`eip155:${Blockchains__default['default'][blockchainName].networkId}`)
|
|
1672
1673
|
}
|
|
1673
1674
|
},
|
|
1674
1675
|
optionalNamespaces: {},
|
|
@@ -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
|
|
@@ -2489,7 +2490,7 @@
|
|
|
2489
2490
|
],
|
|
2490
2491
|
requiredNamespaces: {
|
|
2491
2492
|
eip155: {
|
|
2492
|
-
chains: ['ethereum', 'bsc', 'polygon', 'arbitrum'
|
|
2493
|
+
chains: ['ethereum', 'bsc', 'polygon', 'arbitrum'].map((blockchainName)=>`eip155:${Blockchains__default['default'][blockchainName].networkId}`)
|
|
2493
2494
|
}
|
|
2494
2495
|
},
|
|
2495
2496
|
optionalNamespaces: {},
|
|
@@ -2504,7 +2505,7 @@
|
|
|
2504
2505
|
],
|
|
2505
2506
|
requiredNamespaces: {
|
|
2506
2507
|
eip155: {
|
|
2507
|
-
chains: ['ethereum', 'bsc', 'polygon', 'arbitrum'
|
|
2508
|
+
chains: ['ethereum', 'bsc', 'polygon', 'arbitrum'].map((blockchainName)=>`eip155:${Blockchains__default['default'][blockchainName].networkId}`)
|
|
2508
2509
|
}
|
|
2509
2510
|
},
|
|
2510
2511
|
optionalNamespaces: {},
|
|
@@ -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",
|