@openocean.finance/wallet 1.10.4 → 1.10.6
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.
|
@@ -214,7 +214,7 @@ var WalletConnect = /** @class */ (function (_super) {
|
|
|
214
214
|
console.log('providerType', providerType);
|
|
215
215
|
isConnected = this.modal.getIsConnectedState();
|
|
216
216
|
console.log('requestConnect333-----------------');
|
|
217
|
-
if (!(provider1_1 && isConnected)) return [3 /*break*/, 6];
|
|
217
|
+
if (!(provider1_1 && isConnected && !this.disconnected)) return [3 /*break*/, 6];
|
|
218
218
|
// let provider =await provider1.getProvider()
|
|
219
219
|
// console.log(provider)
|
|
220
220
|
console.log('requestConnect333322222-----------------');
|
|
@@ -238,6 +238,7 @@ var WalletConnect = /** @class */ (function (_super) {
|
|
|
238
238
|
console.log(address_1, address1);
|
|
239
239
|
this.address = address_1 || address1;
|
|
240
240
|
this.chainId = currentChainId_1;
|
|
241
|
+
this.disconnected = false;
|
|
241
242
|
return [2 /*return*/, address_1];
|
|
242
243
|
case 6:
|
|
243
244
|
console.log('requestConnect777-----------------');
|
|
@@ -266,6 +267,7 @@ var WalletConnect = /** @class */ (function (_super) {
|
|
|
266
267
|
case 9:
|
|
267
268
|
currentChainId = _a.sent();
|
|
268
269
|
console.log('autoWalletCheck333-----------------');
|
|
270
|
+
this.disconnected = false;
|
|
269
271
|
if (chainId && currentChainId != chainId) {
|
|
270
272
|
throw new Error(types_1.EnumErrors.ChainIdNotMath);
|
|
271
273
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openocean.finance/wallet",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.6",
|
|
4
4
|
"description": "A multi-chain wallets manager",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -56,22 +56,22 @@
|
|
|
56
56
|
"@onflow/fcl": "^0.0.71",
|
|
57
57
|
"@ont-dev/ontology-dapi": "^0.5.7",
|
|
58
58
|
"@project-serum/sol-wallet-adapter": "0.2.0",
|
|
59
|
-
"@reown/appkit": "
|
|
60
|
-
"@reown/appkit-adapter-wagmi": "
|
|
59
|
+
"@reown/appkit": "1.3.2",
|
|
60
|
+
"@reown/appkit-adapter-wagmi": "1.3.2",
|
|
61
61
|
"@siddomains/sidjs": "^0.1.22",
|
|
62
62
|
"@solana/web3.js": "^1.91.0",
|
|
63
63
|
"@terra-money/terra.js": "3.1.10",
|
|
64
64
|
"@uauth/js": "^2.4.0",
|
|
65
|
-
"@walletconnect/ethereum-provider": "
|
|
66
|
-
"@walletconnect/modal": "
|
|
65
|
+
"@walletconnect/ethereum-provider": "2.17.1",
|
|
66
|
+
"@walletconnect/modal": "2.6.2",
|
|
67
67
|
"buffer": "^6.0.3",
|
|
68
68
|
"fs": "^0.0.1-security",
|
|
69
69
|
"near-api-js": "^0.44.2",
|
|
70
70
|
"osmojs": "^13.0.0-rc.7-i-alpha",
|
|
71
71
|
"path-browserify": "^1.0.1",
|
|
72
72
|
"starknet": "^4.22.0",
|
|
73
|
-
"viem": "
|
|
74
|
-
"wagmi": "
|
|
73
|
+
"viem": "2.21.44",
|
|
74
|
+
"wagmi": "2.12.30",
|
|
75
75
|
"web3": "^1.7.4",
|
|
76
76
|
"web3-ledgerhq-frame-connector": "^1.1.0"
|
|
77
77
|
},
|