@depay/web3-wallets-evm 14.6.0 → 14.6.1
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 +7 -1
- package/dist/esm/index.js +7 -1
- package/dist/umd/index.evm.js +7 -1
- package/dist/umd/index.js +7 -1
- package/package.json +1 -1
package/dist/esm/index.evm.js
CHANGED
|
@@ -59903,6 +59903,12 @@ class Argent {
|
|
|
59903
59903
|
}
|
|
59904
59904
|
}
|
|
59905
59905
|
|
|
59906
|
+
const blockchainNames = {
|
|
59907
|
+
'ethereum': 'mainnet',
|
|
59908
|
+
'bsc': 'bsc',
|
|
59909
|
+
'polygon': 'polygon',
|
|
59910
|
+
};
|
|
59911
|
+
|
|
59906
59912
|
class Safe {
|
|
59907
59913
|
|
|
59908
59914
|
constructor ({ address, blockchain }) {
|
|
@@ -59921,7 +59927,7 @@ class Safe {
|
|
|
59921
59927
|
|
|
59922
59928
|
async retrieveTransaction({ blockchain, tx }) {
|
|
59923
59929
|
const provider = await getProvider(blockchain);
|
|
59924
|
-
let jsonResult = await fetch(`https://safe-transaction-${blockchain}.safe.global/api/v1/multisig-transactions/${tx}/`)
|
|
59930
|
+
let jsonResult = await fetch(`https://safe-transaction-${blockchainNames[blockchain]}.safe.global/api/v1/multisig-transactions/${tx}/`)
|
|
59925
59931
|
.then((response) => response.json())
|
|
59926
59932
|
.catch((error) => { console.error('Error:', error); });
|
|
59927
59933
|
if(jsonResult && jsonResult.isExecuted && jsonResult.transactionHash) {
|
package/dist/esm/index.js
CHANGED
|
@@ -997,6 +997,12 @@ class Argent {
|
|
|
997
997
|
}
|
|
998
998
|
}
|
|
999
999
|
|
|
1000
|
+
const blockchainNames = {
|
|
1001
|
+
'ethereum': 'mainnet',
|
|
1002
|
+
'bsc': 'bsc',
|
|
1003
|
+
'polygon': 'polygon',
|
|
1004
|
+
};
|
|
1005
|
+
|
|
1000
1006
|
class Safe {
|
|
1001
1007
|
|
|
1002
1008
|
constructor ({ address, blockchain }) {
|
|
@@ -1015,7 +1021,7 @@ class Safe {
|
|
|
1015
1021
|
|
|
1016
1022
|
async retrieveTransaction({ blockchain, tx }) {
|
|
1017
1023
|
const provider = await getProvider(blockchain);
|
|
1018
|
-
let jsonResult = await fetch(`https://safe-transaction-${blockchain}.safe.global/api/v1/multisig-transactions/${tx}/`)
|
|
1024
|
+
let jsonResult = await fetch(`https://safe-transaction-${blockchainNames[blockchain]}.safe.global/api/v1/multisig-transactions/${tx}/`)
|
|
1019
1025
|
.then((response) => response.json())
|
|
1020
1026
|
.catch((error) => { console.error('Error:', error); });
|
|
1021
1027
|
if(jsonResult && jsonResult.isExecuted && jsonResult.transactionHash) {
|
package/dist/umd/index.evm.js
CHANGED
|
@@ -59901,6 +59901,12 @@
|
|
|
59901
59901
|
}
|
|
59902
59902
|
}
|
|
59903
59903
|
|
|
59904
|
+
const blockchainNames = {
|
|
59905
|
+
'ethereum': 'mainnet',
|
|
59906
|
+
'bsc': 'bsc',
|
|
59907
|
+
'polygon': 'polygon',
|
|
59908
|
+
};
|
|
59909
|
+
|
|
59904
59910
|
class Safe {
|
|
59905
59911
|
|
|
59906
59912
|
constructor ({ address, blockchain }) {
|
|
@@ -59919,7 +59925,7 @@
|
|
|
59919
59925
|
|
|
59920
59926
|
async retrieveTransaction({ blockchain, tx }) {
|
|
59921
59927
|
const provider = await getProvider(blockchain);
|
|
59922
|
-
let jsonResult = await fetch(`https://safe-transaction-${blockchain}.safe.global/api/v1/multisig-transactions/${tx}/`)
|
|
59928
|
+
let jsonResult = await fetch(`https://safe-transaction-${blockchainNames[blockchain]}.safe.global/api/v1/multisig-transactions/${tx}/`)
|
|
59923
59929
|
.then((response) => response.json())
|
|
59924
59930
|
.catch((error) => { console.error('Error:', error); });
|
|
59925
59931
|
if(jsonResult && jsonResult.isExecuted && jsonResult.transactionHash) {
|
package/dist/umd/index.js
CHANGED
|
@@ -994,6 +994,12 @@
|
|
|
994
994
|
}
|
|
995
995
|
}
|
|
996
996
|
|
|
997
|
+
const blockchainNames = {
|
|
998
|
+
'ethereum': 'mainnet',
|
|
999
|
+
'bsc': 'bsc',
|
|
1000
|
+
'polygon': 'polygon',
|
|
1001
|
+
};
|
|
1002
|
+
|
|
997
1003
|
class Safe {
|
|
998
1004
|
|
|
999
1005
|
constructor ({ address, blockchain }) {
|
|
@@ -1012,7 +1018,7 @@
|
|
|
1012
1018
|
|
|
1013
1019
|
async retrieveTransaction({ blockchain, tx }) {
|
|
1014
1020
|
const provider = await web3Client.getProvider(blockchain);
|
|
1015
|
-
let jsonResult = await fetch(`https://safe-transaction-${blockchain}.safe.global/api/v1/multisig-transactions/${tx}/`)
|
|
1021
|
+
let jsonResult = await fetch(`https://safe-transaction-${blockchainNames[blockchain]}.safe.global/api/v1/multisig-transactions/${tx}/`)
|
|
1016
1022
|
.then((response) => response.json())
|
|
1017
1023
|
.catch((error) => { console.error('Error:', error); });
|
|
1018
1024
|
if(jsonResult && jsonResult.isExecuted && jsonResult.transactionHash) {
|
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.1",
|
|
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",
|