@dynamic-labs/wallet-connector-core 4.0.0-alpha.22 → 4.0.0-alpha.24
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,18 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.0.0-alpha.24](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.23...v4.0.0-alpha.24) (2024-10-31)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* prevent use-wallet-options from reading empty wallet-book ([#7319](https://github.com/dynamic-labs/dynamic-auth/issues/7319)) ([fc1269e](https://github.com/dynamic-labs/dynamic-auth/commit/fc1269ed2b59ee17fc528d24a4d34936eb20c02f))
|
|
8
|
+
|
|
9
|
+
## [4.0.0-alpha.23](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.22...v4.0.0-alpha.23) (2024-10-31)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* allow deletion of embedded wallets ([#7170](https://github.com/dynamic-labs/dynamic-auth/issues/7170)) ([40c5478](https://github.com/dynamic-labs/dynamic-auth/commit/40c54789594ba265a63b24f936da4e72b5b1c5b9))
|
|
15
|
+
|
|
2
16
|
## [4.0.0-alpha.22](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.21...v4.0.0-alpha.22) (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": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.24",
|
|
4
4
|
"description": "Core package for utilities and types for handling multiple wallet/chain support Dynamic SDK",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"@dynamic-labs/sdk-api-core": "0.0.559"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@dynamic-labs/assert-package-version": "4.0.0-alpha.
|
|
25
|
-
"@dynamic-labs/logger": "4.0.0-alpha.
|
|
26
|
-
"@dynamic-labs/rpc-providers": "4.0.0-alpha.
|
|
27
|
-
"@dynamic-labs/types": "4.0.0-alpha.
|
|
28
|
-
"@dynamic-labs/utils": "4.0.0-alpha.
|
|
29
|
-
"@dynamic-labs/wallet-book": "4.0.0-alpha.
|
|
24
|
+
"@dynamic-labs/assert-package-version": "4.0.0-alpha.24",
|
|
25
|
+
"@dynamic-labs/logger": "4.0.0-alpha.24",
|
|
26
|
+
"@dynamic-labs/rpc-providers": "4.0.0-alpha.24",
|
|
27
|
+
"@dynamic-labs/types": "4.0.0-alpha.24",
|
|
28
|
+
"@dynamic-labs/utils": "4.0.0-alpha.24",
|
|
29
|
+
"@dynamic-labs/wallet-book": "4.0.0-alpha.24",
|
|
30
30
|
"eventemitter3": "5.0.1"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -220,7 +220,9 @@ export declare abstract class WalletConnectorBase<C extends WalletConstructor<an
|
|
|
220
220
|
* Override key or the normalized wallet name if needed
|
|
221
221
|
*/
|
|
222
222
|
get key(): string;
|
|
223
|
-
get metadata(): WalletMetadata
|
|
223
|
+
get metadata(): WalletMetadata | {
|
|
224
|
+
id: string;
|
|
225
|
+
};
|
|
224
226
|
/**
|
|
225
227
|
* Wallet name
|
|
226
228
|
*/
|
|
@@ -15,4 +15,21 @@ export interface ITurnkeyWalletConnectorStamper extends WalletConnectorBase {
|
|
|
15
15
|
stampHeaderValue: string;
|
|
16
16
|
};
|
|
17
17
|
}>;
|
|
18
|
+
stampDeleteSubOrganizationRequest: ({ request, }: {
|
|
19
|
+
request: {
|
|
20
|
+
type: string;
|
|
21
|
+
timestampMs: string;
|
|
22
|
+
organizationId: string;
|
|
23
|
+
parameters: {
|
|
24
|
+
deleteWithoutExport?: boolean;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}) => Promise<{
|
|
28
|
+
body: string;
|
|
29
|
+
url: string;
|
|
30
|
+
stamp: {
|
|
31
|
+
stampHeaderName: string;
|
|
32
|
+
stampHeaderValue: string;
|
|
33
|
+
};
|
|
34
|
+
}>;
|
|
18
35
|
}
|
package/src/types.d.ts
CHANGED
|
@@ -3,11 +3,47 @@ export type ChainChangeEventHandler = (chainId: string | number) => Promise<void
|
|
|
3
3
|
export type DisconnectEventHandler = (error?: {
|
|
4
4
|
code: number;
|
|
5
5
|
}) => Promise<void>;
|
|
6
|
+
export type WalletEvent = 'accountChanged' | 'chainChanged';
|
|
7
|
+
export type WalletMethod = 'getConnectedAccounts';
|
|
8
|
+
export type WalletLimitations = {
|
|
9
|
+
browserExtension?: {
|
|
10
|
+
unsupportedEvents?: WalletEvent[];
|
|
11
|
+
unsupportedMethods?: WalletMethod[];
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export type WalletDownloadLinks = {
|
|
15
|
+
chromeId?: string;
|
|
16
|
+
edgeId?: string;
|
|
17
|
+
firefoxId?: string;
|
|
18
|
+
operaId?: string;
|
|
19
|
+
safariId?: string;
|
|
20
|
+
androidId?: string;
|
|
21
|
+
iosId?: string;
|
|
22
|
+
};
|
|
23
|
+
export type WalletDeepLinks = {
|
|
24
|
+
native?: string;
|
|
25
|
+
universal?: string;
|
|
26
|
+
};
|
|
6
27
|
/**
|
|
7
|
-
* @property id - A key that can be used to identify the wallet/connector, based on the wallet name
|
|
8
|
-
*
|
|
28
|
+
* @property id - A key that can be used to identify the wallet/connector, based on the wallet name
|
|
29
|
+
* @property name - The wallet name
|
|
30
|
+
* @property icon - The url or data for the wallet icon
|
|
31
|
+
* @property brandColor - The hex valye for the wallet brand color
|
|
32
|
+
* @property groupKey - Key used to group wallets together, for example, by chain
|
|
33
|
+
* @property deepLinks - The mobile deep links of the wallet
|
|
34
|
+
* @property downloadLinks - The ids to download the wallet in the different browsers and mobile stores
|
|
35
|
+
* @property walletLimitations - The limitations of the wallet in regards to methods and events
|
|
36
|
+
* @property rdns - The wallet rdns if it supports EIP-6963
|
|
9
37
|
*/
|
|
10
38
|
export type WalletMetadata = {
|
|
11
39
|
id: string;
|
|
40
|
+
name: string;
|
|
41
|
+
icon: string;
|
|
42
|
+
brandColor?: `#${string}`;
|
|
43
|
+
groupKey?: string;
|
|
44
|
+
deepLinks?: WalletDeepLinks;
|
|
45
|
+
downloadLinks?: WalletDownloadLinks;
|
|
46
|
+
walletLimitations?: WalletLimitations;
|
|
47
|
+
rdns?: string;
|
|
12
48
|
};
|
|
13
49
|
export declare namespace WalletConnectorCore { }
|