@dynamic-labs/wallet-connector-core 3.4.5 → 3.4.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.
- package/CHANGELOG.md +14 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +7 -7
- package/src/lib/WalletConnector.d.ts +3 -1
- package/src/lib/types.d.ts +38 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
|
|
2
|
+
### [3.4.6](https://github.com/dynamic-labs/DynamicAuth/compare/v3.4.5...v3.4.6) (2024-10-31)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add support for compass and leap wallets ([ab170c9](https://github.com/dynamic-labs/DynamicAuth/commit/ab170c962099ed6356d2f31c947b122f1aa7ec73))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* prevent use-wallet-options from reading empty wallet-book ([#7320](https://github.com/dynamic-labs/DynamicAuth/issues/7320)) ([24c6cb1](https://github.com/dynamic-labs/DynamicAuth/commit/24c6cb14ce324925b120d363e029e29b72560895))
|
|
13
|
+
* sats-connect wallets not prompting correctly to sync account when making a transaction ([#7311](https://github.com/dynamic-labs/DynamicAuth/issues/7311)) ([#7312](https://github.com/dynamic-labs/DynamicAuth/issues/7312)) ([2026be4](https://github.com/dynamic-labs/DynamicAuth/commit/2026be412edcbb7e98341a5a5b2a3bd75ffdb83f))
|
|
14
|
+
* update check for wallet provider event listeners support ([#7303](https://github.com/dynamic-labs/DynamicAuth/issues/7303)) ([#7304](https://github.com/dynamic-labs/DynamicAuth/issues/7304)) ([1e91c76](https://github.com/dynamic-labs/DynamicAuth/commit/1e91c767ebe078f63c27884e4a8e7729d49b2114))
|
|
15
|
+
|
|
2
16
|
### [3.4.5](https://github.com/dynamic-labs/DynamicAuth/compare/v3.4.4...v3.4.5) (2024-10-30)
|
|
3
17
|
|
|
4
18
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wallet-connector-core",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.6",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"@dynamic-labs/sdk-api-core": "0.0.559"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@dynamic-labs/assert-package-version": "3.4.
|
|
33
|
-
"@dynamic-labs/logger": "3.4.
|
|
34
|
-
"@dynamic-labs/rpc-providers": "3.4.
|
|
35
|
-
"@dynamic-labs/types": "3.4.
|
|
36
|
-
"@dynamic-labs/utils": "3.4.
|
|
37
|
-
"@dynamic-labs/wallet-book": "3.4.
|
|
32
|
+
"@dynamic-labs/assert-package-version": "3.4.6",
|
|
33
|
+
"@dynamic-labs/logger": "3.4.6",
|
|
34
|
+
"@dynamic-labs/rpc-providers": "3.4.6",
|
|
35
|
+
"@dynamic-labs/types": "3.4.6",
|
|
36
|
+
"@dynamic-labs/utils": "3.4.6",
|
|
37
|
+
"@dynamic-labs/wallet-book": "3.4.6",
|
|
38
38
|
"eventemitter3": "5.0.1"
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -254,7 +254,9 @@ export declare abstract class WalletConnectorBase<C extends WalletConstructor<an
|
|
|
254
254
|
* Override key or the normalized wallet name if needed
|
|
255
255
|
*/
|
|
256
256
|
get key(): string;
|
|
257
|
-
get metadata(): WalletMetadata
|
|
257
|
+
get metadata(): WalletMetadata | {
|
|
258
|
+
id: string;
|
|
259
|
+
};
|
|
258
260
|
/**
|
|
259
261
|
* Wallet name
|
|
260
262
|
*/
|
package/src/lib/types.d.ts
CHANGED
|
@@ -5,11 +5,47 @@ export type ChainInfo = {
|
|
|
5
5
|
name: string;
|
|
6
6
|
symbol: Chain;
|
|
7
7
|
};
|
|
8
|
+
export type WalletEvent = 'accountChanged' | 'chainChanged';
|
|
9
|
+
export type WalletMethod = 'getConnectedAccounts';
|
|
10
|
+
export type WalletLimitations = {
|
|
11
|
+
browserExtension?: {
|
|
12
|
+
unsupportedEvents?: WalletEvent[];
|
|
13
|
+
unsupportedMethods?: WalletMethod[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type WalletDownloadLinks = {
|
|
17
|
+
chromeId?: string;
|
|
18
|
+
edgeId?: string;
|
|
19
|
+
firefoxId?: string;
|
|
20
|
+
operaId?: string;
|
|
21
|
+
safariId?: string;
|
|
22
|
+
androidId?: string;
|
|
23
|
+
iosId?: string;
|
|
24
|
+
};
|
|
25
|
+
export type WalletDeepLinks = {
|
|
26
|
+
native?: string;
|
|
27
|
+
universal?: string;
|
|
28
|
+
};
|
|
8
29
|
/**
|
|
9
|
-
* @property id - A key that can be used to identify the wallet/connector, based on the wallet name
|
|
10
|
-
*
|
|
30
|
+
* @property id - A key that can be used to identify the wallet/connector, based on the wallet name
|
|
31
|
+
* @property name - The wallet name
|
|
32
|
+
* @property icon - The url or data for the wallet icon
|
|
33
|
+
* @property brandColor - The hex valye for the wallet brand color
|
|
34
|
+
* @property groupKey - Key used to group wallets together, for example, by chain
|
|
35
|
+
* @property deepLinks - The mobile deep links of the wallet
|
|
36
|
+
* @property downloadLinks - The ids to download the wallet in the different browsers and mobile stores
|
|
37
|
+
* @property walletLimitations - The limitations of the wallet in regards to methods and events
|
|
38
|
+
* @property rdns - The wallet rdns if it supports EIP-6963
|
|
11
39
|
*/
|
|
12
40
|
export type WalletMetadata = {
|
|
13
41
|
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
icon: string;
|
|
44
|
+
brandColor?: `#${string}`;
|
|
45
|
+
groupKey?: string;
|
|
46
|
+
deepLinks?: WalletDeepLinks;
|
|
47
|
+
downloadLinks?: WalletDownloadLinks;
|
|
48
|
+
walletLimitations?: WalletLimitations;
|
|
49
|
+
rdns?: string;
|
|
14
50
|
};
|
|
15
51
|
export declare namespace WalletConnectorCore { }
|