@dynamic-labs/bitcoin 2.2.0-alpha.4 → 2.2.0-alpha.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/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
|
|
2
|
+
## [2.2.0-alpha.5](https://github.com/dynamic-labs/DynamicAuth/compare/v2.2.0-alpha.4...v2.2.0-alpha.5) (2024-06-08)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* find solana provider from wallet standard ([#5897](https://github.com/dynamic-labs/DynamicAuth/issues/5897)) ([2144041](https://github.com/dynamic-labs/DynamicAuth/commit/21440410c3a75983195260ce57f4442177480c65))
|
|
8
|
+
* remove force consent and account selection even for returning google users ([#5911](https://github.com/dynamic-labs/DynamicAuth/issues/5911)) ([8b2a358](https://github.com/dynamic-labs/DynamicAuth/commit/8b2a3586ee559c553a1615a57c34226c175db2f9))
|
|
9
|
+
* retrieve connected account from cache when MagicEden wallet is secondary and locked ([#5885](https://github.com/dynamic-labs/DynamicAuth/issues/5885)) ([fb35a65](https://github.com/dynamic-labs/DynamicAuth/commit/fb35a651dc18dbdc2bfaad87b7528bfae977f7e3))
|
|
10
|
+
|
|
2
11
|
## [2.2.0-alpha.4](https://github.com/dynamic-labs/DynamicAuth/compare/v2.2.0-alpha.3...v2.2.0-alpha.4) (2024-06-06)
|
|
3
12
|
|
|
4
13
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/bitcoin",
|
|
3
|
-
"version": "2.2.0-alpha.
|
|
3
|
+
"version": "2.2.0-alpha.5",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"@wallet-standard/base": "1.0.1",
|
|
33
33
|
"bitcoinjs-lib": "6.1.5",
|
|
34
34
|
"sats-connect": "2.0.0",
|
|
35
|
-
"@dynamic-labs/utils": "2.2.0-alpha.
|
|
36
|
-
"@dynamic-labs/wallet-book": "2.2.0-alpha.
|
|
37
|
-
"@dynamic-labs/wallet-connector-core": "2.2.0-alpha.
|
|
35
|
+
"@dynamic-labs/utils": "2.2.0-alpha.5",
|
|
36
|
+
"@dynamic-labs/wallet-book": "2.2.0-alpha.5",
|
|
37
|
+
"@dynamic-labs/wallet-connector-core": "2.2.0-alpha.5",
|
|
38
38
|
"stream": "0.0.2"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {}
|
|
@@ -33,6 +33,11 @@ class BitcoinWalletConnector extends walletConnectorCore.WalletConnectorBase {
|
|
|
33
33
|
}
|
|
34
34
|
this.cache = new BitcoinLocalStorageCache.BitcoinLocalStorageCache(this.overrideKey);
|
|
35
35
|
}
|
|
36
|
+
clearConnectedAccounts() {
|
|
37
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
yield this.cache.clearConnectedAcccounts();
|
|
39
|
+
});
|
|
40
|
+
}
|
|
36
41
|
canConnectWithHardwareWallet() {
|
|
37
42
|
const wallet = walletBook.findWalletBookWallet(this.walletBook, this.key);
|
|
38
43
|
if (!wallet || !wallet.hardwareWallets)
|
|
@@ -48,10 +53,7 @@ class BitcoinWalletConnector extends walletConnectorCore.WalletConnectorBase {
|
|
|
48
53
|
}
|
|
49
54
|
endSession() {
|
|
50
55
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
51
|
-
yield
|
|
52
|
-
this.cache.clearConnectedAcccounts(),
|
|
53
|
-
this.cache.clearLastBalance(),
|
|
54
|
-
]);
|
|
56
|
+
yield this.cache.clearLastBalance();
|
|
55
57
|
});
|
|
56
58
|
}
|
|
57
59
|
getBalance() {
|
|
@@ -24,12 +24,13 @@ export declare abstract class BitcoinWalletConnector extends WalletConnectorBase
|
|
|
24
24
|
isHardwareWalletEnabled: boolean;
|
|
25
25
|
verifiedCredentials: JwtVerifiedCredential[];
|
|
26
26
|
constructor(opts: BitcoinWalletConnectorOpts);
|
|
27
|
+
clearConnectedAccounts(): Promise<void>;
|
|
27
28
|
canConnectWithHardwareWallet(): boolean;
|
|
28
29
|
isInstalledOnBrowser(): boolean;
|
|
29
30
|
getDeepLink(): string | undefined;
|
|
30
31
|
endSession(): Promise<void>;
|
|
31
32
|
getBalance(): Promise<string | undefined>;
|
|
32
|
-
|
|
33
|
+
getConnectedAccountsFromCache(): Promise<string[]>;
|
|
33
34
|
getConnectedAccounts(): Promise<string[]>;
|
|
34
35
|
getAdditionalAddresses(mainAddress?: string): Promise<WalletAdditionalAddress[]>;
|
|
35
36
|
setAdditionalAddresses(mainAddress: string, additionalAddresses: WalletAdditionalAddress[]): Promise<void>;
|
|
@@ -29,6 +29,11 @@ class BitcoinWalletConnector extends WalletConnectorBase {
|
|
|
29
29
|
}
|
|
30
30
|
this.cache = new BitcoinLocalStorageCache(this.overrideKey);
|
|
31
31
|
}
|
|
32
|
+
clearConnectedAccounts() {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
yield this.cache.clearConnectedAcccounts();
|
|
35
|
+
});
|
|
36
|
+
}
|
|
32
37
|
canConnectWithHardwareWallet() {
|
|
33
38
|
const wallet = findWalletBookWallet(this.walletBook, this.key);
|
|
34
39
|
if (!wallet || !wallet.hardwareWallets)
|
|
@@ -44,10 +49,7 @@ class BitcoinWalletConnector extends WalletConnectorBase {
|
|
|
44
49
|
}
|
|
45
50
|
endSession() {
|
|
46
51
|
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
-
yield
|
|
48
|
-
this.cache.clearConnectedAcccounts(),
|
|
49
|
-
this.cache.clearLastBalance(),
|
|
50
|
-
]);
|
|
52
|
+
yield this.cache.clearLastBalance();
|
|
51
53
|
});
|
|
52
54
|
}
|
|
53
55
|
getBalance() {
|