@depay/web3-wallets-evm 14.6.3 → 14.6.5
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 +15 -6
- package/dist/esm/index.js +15 -6
- package/dist/umd/index.evm.js +15 -6
- package/dist/umd/index.js +15 -6
- package/package.json +1 -1
package/dist/esm/index.evm.js
CHANGED
|
@@ -59923,12 +59923,21 @@ class Safe {
|
|
|
59923
59923
|
}
|
|
59924
59924
|
|
|
59925
59925
|
async transactionCount() {
|
|
59926
|
-
|
|
59927
|
-
|
|
59928
|
-
|
|
59929
|
-
|
|
59930
|
-
|
|
59931
|
-
|
|
59926
|
+
let transactionCount;
|
|
59927
|
+
let jsonResult = await fetch(`https://safe-transaction-${transactionApiBlockchainNames[this.blockchain]}.safe.global/api/v1/safes/${this.address}/`)
|
|
59928
|
+
.then((response) => response.json())
|
|
59929
|
+
.catch((error) => { console.error('Error:', error); });
|
|
59930
|
+
if(jsonResult && jsonResult.nonce) {
|
|
59931
|
+
transactionCount = jsonResult.nonce;
|
|
59932
|
+
} else {
|
|
59933
|
+
transactionCount = parseInt((await request({
|
|
59934
|
+
blockchain: this.blockchain,
|
|
59935
|
+
address: this.address,
|
|
59936
|
+
api: [{"inputs":[],"name":"nonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}],
|
|
59937
|
+
method: 'nonce',
|
|
59938
|
+
})).toString(), 10);
|
|
59939
|
+
}
|
|
59940
|
+
return transactionCount
|
|
59932
59941
|
}
|
|
59933
59942
|
|
|
59934
59943
|
async retrieveTransaction({ blockchain, tx }) {
|
package/dist/esm/index.js
CHANGED
|
@@ -1017,12 +1017,21 @@ class Safe {
|
|
|
1017
1017
|
}
|
|
1018
1018
|
|
|
1019
1019
|
async transactionCount() {
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1020
|
+
let transactionCount;
|
|
1021
|
+
let jsonResult = await fetch(`https://safe-transaction-${transactionApiBlockchainNames[this.blockchain]}.safe.global/api/v1/safes/${this.address}/`)
|
|
1022
|
+
.then((response) => response.json())
|
|
1023
|
+
.catch((error) => { console.error('Error:', error); });
|
|
1024
|
+
if(jsonResult && jsonResult.nonce) {
|
|
1025
|
+
transactionCount = jsonResult.nonce;
|
|
1026
|
+
} else {
|
|
1027
|
+
transactionCount = parseInt((await request$1({
|
|
1028
|
+
blockchain: this.blockchain,
|
|
1029
|
+
address: this.address,
|
|
1030
|
+
api: [{"inputs":[],"name":"nonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}],
|
|
1031
|
+
method: 'nonce',
|
|
1032
|
+
})).toString(), 10);
|
|
1033
|
+
}
|
|
1034
|
+
return transactionCount
|
|
1026
1035
|
}
|
|
1027
1036
|
|
|
1028
1037
|
async retrieveTransaction({ blockchain, tx }) {
|
package/dist/umd/index.evm.js
CHANGED
|
@@ -59921,12 +59921,21 @@
|
|
|
59921
59921
|
}
|
|
59922
59922
|
|
|
59923
59923
|
async transactionCount() {
|
|
59924
|
-
|
|
59925
|
-
|
|
59926
|
-
|
|
59927
|
-
|
|
59928
|
-
|
|
59929
|
-
|
|
59924
|
+
let transactionCount;
|
|
59925
|
+
let jsonResult = await fetch(`https://safe-transaction-${transactionApiBlockchainNames[this.blockchain]}.safe.global/api/v1/safes/${this.address}/`)
|
|
59926
|
+
.then((response) => response.json())
|
|
59927
|
+
.catch((error) => { console.error('Error:', error); });
|
|
59928
|
+
if(jsonResult && jsonResult.nonce) {
|
|
59929
|
+
transactionCount = jsonResult.nonce;
|
|
59930
|
+
} else {
|
|
59931
|
+
transactionCount = parseInt((await request({
|
|
59932
|
+
blockchain: this.blockchain,
|
|
59933
|
+
address: this.address,
|
|
59934
|
+
api: [{"inputs":[],"name":"nonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}],
|
|
59935
|
+
method: 'nonce',
|
|
59936
|
+
})).toString(), 10);
|
|
59937
|
+
}
|
|
59938
|
+
return transactionCount
|
|
59930
59939
|
}
|
|
59931
59940
|
|
|
59932
59941
|
async retrieveTransaction({ blockchain, tx }) {
|
package/dist/umd/index.js
CHANGED
|
@@ -1014,12 +1014,21 @@
|
|
|
1014
1014
|
}
|
|
1015
1015
|
|
|
1016
1016
|
async transactionCount() {
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1017
|
+
let transactionCount;
|
|
1018
|
+
let jsonResult = await fetch(`https://safe-transaction-${transactionApiBlockchainNames[this.blockchain]}.safe.global/api/v1/safes/${this.address}/`)
|
|
1019
|
+
.then((response) => response.json())
|
|
1020
|
+
.catch((error) => { console.error('Error:', error); });
|
|
1021
|
+
if(jsonResult && jsonResult.nonce) {
|
|
1022
|
+
transactionCount = jsonResult.nonce;
|
|
1023
|
+
} else {
|
|
1024
|
+
transactionCount = parseInt((await web3Client.request({
|
|
1025
|
+
blockchain: this.blockchain,
|
|
1026
|
+
address: this.address,
|
|
1027
|
+
api: [{"inputs":[],"name":"nonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}],
|
|
1028
|
+
method: 'nonce',
|
|
1029
|
+
})).toString(), 10);
|
|
1030
|
+
}
|
|
1031
|
+
return transactionCount
|
|
1023
1032
|
}
|
|
1024
1033
|
|
|
1025
1034
|
async retrieveTransaction({ blockchain, tx }) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depay/web3-wallets-evm",
|
|
3
3
|
"moduleName": "Web3Wallets",
|
|
4
|
-
"version": "14.6.
|
|
4
|
+
"version": "14.6.5",
|
|
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",
|