@dynamic-labs/wallet-connector-core 5.4.0 → 5.4.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/CHANGELOG.md CHANGED
@@ -1,4 +1,16 @@
1
1
 
2
+ ### [5.4.1](https://github.com/dynamic-labs/dynamic-auth/compare/v5.4.0...v5.4.1) (2026-08-26)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * **webview-controller:** resolve which keychain key a session belongs to ([#12246](https://github.com/dynamic-labs/dynamic-auth/issues/12246)) ([3d110db](https://github.com/dynamic-labs/dynamic-auth/commit/3d110db831c6e9d82d07d86841f5c7733924b17e))
8
+ * **bitcoin:** forward the password through the BTC importPrivateKey override ([#12278](https://github.com/dynamic-labs/dynamic-auth/issues/12278)) ([21e1df3](https://github.com/dynamic-labs/dynamic-auth/commit/21e1df3e33e96e2efdb15ffa0fd29a441056202e))
9
+ * **react-native-extension:** recover 4.x expo-secure-store sessions on keychain miss ([#12254](https://github.com/dynamic-labs/dynamic-auth/issues/12254)) ([217e991](https://github.com/dynamic-labs/dynamic-auth/commit/217e991838f3073c12e2d2fab7a2e12830faad9e)), closes [#12092](https://github.com/dynamic-labs/dynamic-auth/issues/12092) [#12092](https://github.com/dynamic-labs/dynamic-auth/issues/12092) [#12092](https://github.com/dynamic-labs/dynamic-auth/issues/12092) [#12092](https://github.com/dynamic-labs/dynamic-auth/issues/12092) [#12242](https://github.com/dynamic-labs/dynamic-auth/issues/12242) [#12242](https://github.com/dynamic-labs/dynamic-auth/issues/12242)
10
+ * **transaction-card:** use walletConnector prop for network/fee instead of primaryWallet ([#12063](https://github.com/dynamic-labs/dynamic-auth/issues/12063)) ([81314d2](https://github.com/dynamic-labs/dynamic-auth/commit/81314d25fba4b20ab89631bc2d9ceeb9e2b6b2ac))
11
+ * **waas-svm:** instrument sponsorship retry attempts ([#12281](https://github.com/dynamic-labs/dynamic-auth/issues/12281)) ([7273a4b](https://github.com/dynamic-labs/dynamic-auth/commit/7273a4bc456cad512c0e9fbcd2abd66532a2f7df))
12
+ * **webview-controller:** recover 4.x secure-storage sessions and surface init failures ([#12242](https://github.com/dynamic-labs/dynamic-auth/issues/12242)) ([b51605c](https://github.com/dynamic-labs/dynamic-auth/commit/b51605cc9bdbb5d695173192c502a58d899bbbdd)), closes [#12094](https://github.com/dynamic-labs/dynamic-auth/issues/12094) [#12095](https://github.com/dynamic-labs/dynamic-auth/issues/12095) [#12098](https://github.com/dynamic-labs/dynamic-auth/issues/12098) [dynamic-labs/flutter-sdk#256](https://github.com/dynamic-labs/flutter-sdk/issues/256)
13
+
2
14
  ## [5.4.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.3.2...v5.4.0) (2026-08-25)
3
15
 
4
16
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "5.4.0";
6
+ var version = "5.4.1";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "5.4.0";
2
+ var version = "5.4.1";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/wallet-connector-core",
3
- "version": "5.4.0",
3
+ "version": "5.4.1",
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",
@@ -22,12 +22,12 @@
22
22
  "@dynamic-labs/sdk-api-core": "0.12.0",
23
23
  "@dynamic-labs-wallet/browser-wallet-client": "1.0.106",
24
24
  "@dynamic-labs-wallet/forward-mpc-client": "1.0.1",
25
- "@dynamic-labs/assert-package-version": "5.4.0",
26
- "@dynamic-labs/logger": "5.4.0",
27
- "@dynamic-labs/rpc-providers": "5.4.0",
28
- "@dynamic-labs/types": "5.4.0",
29
- "@dynamic-labs/utils": "5.4.0",
30
- "@dynamic-labs/wallet-book": "5.4.0",
25
+ "@dynamic-labs/assert-package-version": "5.4.1",
26
+ "@dynamic-labs/logger": "5.4.1",
27
+ "@dynamic-labs/rpc-providers": "5.4.1",
28
+ "@dynamic-labs/types": "5.4.1",
29
+ "@dynamic-labs/utils": "5.4.1",
30
+ "@dynamic-labs/wallet-book": "5.4.1",
31
31
  "eventemitter3": "5.0.1"
32
32
  },
33
33
  "peerDependencies": {}
package/src/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { walletConnectorEvents, type ProviderReadyEventProps } from './events';
2
- export { type Attestation, type AuthenticatorRecoveryHandler, type AuthenticatorType, type BitcoinSignPsbtRequest, type BitcoinSignPsbtRequestSignature, type BitcoinSignPsbtResponse, type ExportHandler, type IAccountAbstractionWalletConnector, type IBitcoinWalletConnector, type IEmailOTPWalletConnector, type IEmailWalletConnector, type IHardwareWalletConnector, type IPasskeyWalletConnector, type IPhantomRedirectConnector, type IPhantomRedirectConnectorWithEvents, type ISendBalanceWalletConnector, type ISessionKeyCompatibleWalletConnector, type ISMSWalletConnector, type ITurnkeyWalletConnector, type ITurnkeyWalletConnectorStamper, type IWalletConnectConnector, type IZeroDevConnector, type Eip7702SignedAuthorization, type RecoveryEmailParams, type RecoveryWebAuthnAttestation, type SignAllTransactionsListener, type SignAndSendTransactionListener, type SignMessageListener, type SignTransactionListener, type WebAuthnAttestation, type IEthereumConnector, type IPublicClient, type ISolanaConnection, type IDynamicWaasConnector, type GetWalletPasswordFn, } from './interfaces';
2
+ export { type Attestation, type AuthenticatorRecoveryHandler, type AuthenticatorType, type BitcoinSignPsbtRequest, type BitcoinSignPsbtRequestSignature, type BitcoinSignPsbtResponse, type ExportHandler, type IAccountAbstractionWalletConnector, type IBitcoinWalletConnector, type IEmailOTPWalletConnector, type IEmailWalletConnector, type IHardwareWalletConnector, type IPasskeyWalletConnector, type IPhantomRedirectConnector, type IPhantomRedirectConnectorWithEvents, type ISendBalanceWalletConnector, type ISessionKeyCompatibleWalletConnector, type ISMSWalletConnector, type ITurnkeyWalletConnector, type ITurnkeyWalletConnectorStamper, type IWalletConnectConnector, type IZeroDevConnector, type Eip7702SignedAuthorization, type RecoveryEmailParams, type RecoveryWebAuthnAttestation, type SignAllTransactionsListener, type SignAndSendTransactionListener, type SignMessageListener, type SignTransactionListener, type WebAuthnAttestation, type IEthereumConnector, type IPublicClient, type ISolanaConnection, type IDynamicWaasConnector, type GetWalletPasswordFn, type ImportPrivateKeyParams, type CreateWalletAccountParams, type ExportClientKeysharesParams, type UpdatePasswordParams, type ReshareWalletAccountSharesParams, type RefreshWalletAccountSharesParams, type BackupKeySharesToGoogleDriveParams, } from './interfaces';
3
3
  export type { AccountChangeEventHandler, ChainChangeEventHandler, DisconnectEventHandler, WalletConnectorCore, WalletMetadata, WalletDeepLinks, WalletDownloadLinks, WalletLimitations, WalletLinks, } from './types';
4
4
  export { addHexPrefix, bufferToHex, connectorRequiresDisconnectionForNewConnection, eventListenerHandlers, getChainInfo, getChainInfoWithOverrides, getDeepLink, getMobileExperience, getRpcUrlForChain, getWalletConnectorByKey, isAccountAbstractionConnector, isBitcoinConnector, getMidnightNetworkTag, isMidnightConnector, isMidnightWallet, type IMidnightWallet, type IMidnightWalletConnector, type MidnightFormattedBalances, isBloctoConnector, isEmailOTPWalletConnector, isEmailWalletConnector, isEmbeddedConnector, isHardwareWalletConnector, isHex, isMagicConnector, isPasskeyWalletConnector, isPhantomRedirectConnector, isSameAddress, isSendBalanceWalletConnector, isSessionKeyCompatibleWallet, isSessionKeyCompatibleWalletConnector, isSocialWalletConnector, isTurnkeyWalletConnector, isWalletConnectConnector, isConnectorMethodSupported, isConnectorEventSupported, getWalletProvider, getWalletMetadataFromWalletBook, getWalletLinks, logger, performPlatformSpecificConnectionMethod, ProviderLookup, setChainInfoOverrides, shouldLowercaseAddress, utf8ToHex, convertWalletToBaseWallet, convertWalletToBaseWalletPartial, type ChainDisplayOverrides, type DeepLinkVariant, type ProviderCondition, isDynamicWaasConnector, } from './utils';
5
5
  export { Wallet, type WalletConstructor, type WalletProps } from './Wallet';
@@ -1,4 +1,4 @@
1
- import { GetWalletResponse, WalletRecoveryState } from '@dynamic-labs-wallet/browser-wallet-client';
1
+ import { BitcoinConfig, GetWalletResponse, WalletRecoveryState } from '@dynamic-labs-wallet/browser-wallet-client';
2
2
  import { MFAAction, SignMessageContext, TokenScope, WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
3
3
  import { WalletConnectorBase } from '..';
4
4
  interface GetMfaTokenFunction {
@@ -13,6 +13,55 @@ export type GetWalletPasswordFn = (props: {
13
13
  accountAddress: string;
14
14
  chainName: string;
15
15
  }) => Promise<string | undefined>;
16
+ /**
17
+ * The single source of truth for `importPrivateKey` parameters.
18
+ *
19
+ * Chain connectors that override `importPrivateKey` MUST type their parameter
20
+ * as this type and forward the whole object to `super`, never re-declaring a
21
+ * narrower inline shape. A narrower shape is a structurally valid override, so
22
+ * TypeScript accepts it silently — which is how the Bitcoin connector kept
23
+ * dropping `password` for six months after it was added to the base, failing
24
+ * every import on passcode-required environments while other chains worked.
25
+ */
26
+ export type CreateWalletAccountParams = {
27
+ thresholdSignatureScheme?: string;
28
+ password?: string;
29
+ bitcoinConfig?: BitcoinConfig;
30
+ businessAccountId?: string;
31
+ };
32
+ export type ExportClientKeysharesParams = {
33
+ accountAddress: string;
34
+ password?: string;
35
+ };
36
+ export type UpdatePasswordParams = {
37
+ accountAddress: string;
38
+ existingPassword?: string;
39
+ newPassword: string;
40
+ };
41
+ export type ReshareWalletAccountSharesParams = {
42
+ accountAddress: string;
43
+ thresholdSignatureScheme: string;
44
+ password?: string;
45
+ };
46
+ export type RefreshWalletAccountSharesParams = {
47
+ accountAddress: string;
48
+ password?: string;
49
+ };
50
+ export type BackupKeySharesToGoogleDriveParams = {
51
+ accountAddress: string;
52
+ password?: string;
53
+ googleDriveAccessToken?: string;
54
+ };
55
+ export type ImportPrivateKeyParams = {
56
+ privateKey: string;
57
+ thresholdSignatureScheme?: string;
58
+ publicAddressCheck?: string;
59
+ addressType?: string;
60
+ legacyWalletId?: string;
61
+ password?: string;
62
+ /** ed25519 chains only: `privateKey` is a raw 32-byte scalar (hex). */
63
+ isRawScalarImport?: boolean;
64
+ };
16
65
  export interface IDynamicWaasConnector extends WalletConnectorBase {
17
66
  setWaasAuthMode(authMode: 'cookie' | 'header'): void;
18
67
  setGetWalletPasswordFunction(getWalletPassword: GetWalletPasswordFn): void;
@@ -46,16 +95,8 @@ export interface IDynamicWaasConnector extends WalletConnectorBase {
46
95
  }): Promise<{
47
96
  shareSetId: string;
48
97
  }>;
49
- importPrivateKey({ privateKey, chainName, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, password, isRawScalarImport, }: {
50
- privateKey: string;
98
+ importPrivateKey(params: ImportPrivateKeyParams & {
51
99
  chainName: string;
52
- thresholdSignatureScheme?: string;
53
- publicAddressCheck?: string;
54
- addressType?: string;
55
- legacyWalletId?: string;
56
- password?: string;
57
- /** ed25519 chains only: `privateKey` is a raw 32-byte scalar (hex). */
58
- isRawScalarImport?: boolean;
59
100
  }): Promise<void>;
60
101
  migrateFromFireblocks({ deviceId, jwt, walletPassword, ncwStorage, expectedAddresses, coinTypes, password, }: {
61
102
  deviceId: string;