@dynamic-labs/wallet-connector-core 4.92.3 → 4.93.0
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 +24 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +11 -11
- package/src/index.cjs +2 -0
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -0
- package/src/utils/getMidnightNetworkTag/getMidnightNetworkTag.cjs +23 -0
- package/src/utils/getMidnightNetworkTag/getMidnightNetworkTag.d.ts +13 -0
- package/src/utils/getMidnightNetworkTag/getMidnightNetworkTag.js +19 -0
- package/src/utils/getMidnightNetworkTag/index.d.ts +1 -0
- package/src/utils/index.d.ts +1 -0
- package/src/utils/isMidnightConnector/isMidnightConnector.d.ts +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.93.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.92.4...v4.93.0) (2026-07-20)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **react-native:** add retry API and granular loading state ([#11938](https://github.com/dynamic-labs/dynamic-auth/issues/11938)) ([#11999](https://github.com/dynamic-labs/dynamic-auth/issues/11999)) ([8f4e6aa](https://github.com/dynamic-labs/dynamic-auth/commit/8f4e6aa2466da5e6b4d8ee802c814c51e79cf27c))
|
|
8
|
+
|
|
9
|
+
### [4.92.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.92.3...v4.92.4) (2026-07-16)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* **bitcoin:** per-network address switching and dust-limit send validation [v4] ([#11970](https://github.com/dynamic-labs/dynamic-auth/issues/11970)) ([76a4a9a](https://github.com/dynamic-labs/dynamic-auth/commit/76a4a9a5025d78798ebd1beffe6c0af59d2d029a)), closes [#11896](https://github.com/dynamic-labs/dynamic-auth/issues/11896) [#11800](https://github.com/dynamic-labs/dynamic-auth/issues/11800)
|
|
15
|
+
* **midnight:** per-network addresses in deposit and wallet info views [v4] ([#11949](https://github.com/dynamic-labs/dynamic-auth/issues/11949)) ([978446a](https://github.com/dynamic-labs/dynamic-auth/commit/978446aca8546eb038ba9ed3be0503d10594ee15))
|
|
16
|
+
* **midnight:** resolve wallet address per selected network [v4] ([#11948](https://github.com/dynamic-labs/dynamic-auth/issues/11948)) ([d6f858c](https://github.com/dynamic-labs/dynamic-auth/commit/d6f858c5e35defda7ed73cf97b3fdbe5ed9d131d))
|
|
17
|
+
* set useMetamaskSdk to true by default ([#11926](https://github.com/dynamic-labs/dynamic-auth/issues/11926)) ([75b5a4a](https://github.com/dynamic-labs/dynamic-auth/commit/75b5a4a0fe8b1a375afce145c0b8bdc3ce761117))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **midnight:** align per-network code with the final main iteration [v4] ([#11971](https://github.com/dynamic-labs/dynamic-auth/issues/11971)) ([3ef3ba8](https://github.com/dynamic-labs/dynamic-auth/commit/3ef3ba8c090dfd9e4286b4e51bf350ea5e6feac7))
|
|
23
|
+
* settle social sign-in when captcha is backed out or oauth popup never responds (v4) ([#11956](https://github.com/dynamic-labs/dynamic-auth/issues/11956)) ([ad49477](https://github.com/dynamic-labs/dynamic-auth/commit/ad49477f2acf61a154bb79cbe26b24f803cdb0e2))
|
|
24
|
+
* validate that private key is not empty before upgrading to WaaS ([#11952](https://github.com/dynamic-labs/dynamic-auth/issues/11952)) ([21dfb83](https://github.com/dynamic-labs/dynamic-auth/commit/21dfb83cb29e42b335bc94a0cdd2062cf14a262a))
|
|
25
|
+
|
|
2
26
|
### [4.92.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.92.2...v4.92.3) (2026-07-10)
|
|
3
27
|
|
|
4
28
|
|
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.
|
|
3
|
+
"version": "4.93.0",
|
|
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",
|
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs-sdk/client": "1.
|
|
22
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
23
|
-
"@dynamic-labs-wallet/browser-wallet-client": "1.0.
|
|
24
|
-
"@dynamic-labs-wallet/forward-mpc-client": "0.
|
|
25
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
26
|
-
"@dynamic-labs/logger": "4.
|
|
27
|
-
"@dynamic-labs/rpc-providers": "4.
|
|
28
|
-
"@dynamic-labs/types": "4.
|
|
29
|
-
"@dynamic-labs/utils": "4.
|
|
30
|
-
"@dynamic-labs/wallet-book": "4.
|
|
21
|
+
"@dynamic-labs-sdk/client": "1.20.0",
|
|
22
|
+
"@dynamic-labs/sdk-api-core": "0.0.1082",
|
|
23
|
+
"@dynamic-labs-wallet/browser-wallet-client": "1.0.70",
|
|
24
|
+
"@dynamic-labs-wallet/forward-mpc-client": "1.0.1",
|
|
25
|
+
"@dynamic-labs/assert-package-version": "4.93.0",
|
|
26
|
+
"@dynamic-labs/logger": "4.93.0",
|
|
27
|
+
"@dynamic-labs/rpc-providers": "4.93.0",
|
|
28
|
+
"@dynamic-labs/types": "4.93.0",
|
|
29
|
+
"@dynamic-labs/utils": "4.93.0",
|
|
30
|
+
"@dynamic-labs/wallet-book": "4.93.0",
|
|
31
31
|
"eventemitter3": "5.0.1"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {}
|
package/src/index.cjs
CHANGED
|
@@ -25,6 +25,7 @@ var isBloctoConnector = require('./utils/isBloctoConnector/isBloctoConnector.cjs
|
|
|
25
25
|
var isPasskeyWalletConnector = require('./utils/isPasskeyWalletConnector/isPasskeyWalletConnector.cjs');
|
|
26
26
|
var isAccountAbstractionConnector = require('./utils/isAccountAbstractionConnector/isAccountAbstractionConnector.cjs');
|
|
27
27
|
var isBitcoinConnector = require('./utils/isBitcoinConnector/isBitcoinConnector.cjs');
|
|
28
|
+
var getMidnightNetworkTag = require('./utils/getMidnightNetworkTag/getMidnightNetworkTag.cjs');
|
|
28
29
|
var isMidnightConnector = require('./utils/isMidnightConnector/isMidnightConnector.cjs');
|
|
29
30
|
var isMidnightWallet = require('./utils/isMidnightWallet/isMidnightWallet.cjs');
|
|
30
31
|
var isHardwareWalletConnector = require('./utils/isHardwareWalletConnector/isHardwareWalletConnector.cjs');
|
|
@@ -76,6 +77,7 @@ exports.isBloctoConnector = isBloctoConnector.isBloctoConnector;
|
|
|
76
77
|
exports.isPasskeyWalletConnector = isPasskeyWalletConnector.isPasskeyWalletConnector;
|
|
77
78
|
exports.isAccountAbstractionConnector = isAccountAbstractionConnector.isAccountAbstractionConnector;
|
|
78
79
|
exports.isBitcoinConnector = isBitcoinConnector.isBitcoinConnector;
|
|
80
|
+
exports.getMidnightNetworkTag = getMidnightNetworkTag.getMidnightNetworkTag;
|
|
79
81
|
exports.isMidnightConnector = isMidnightConnector.isMidnightConnector;
|
|
80
82
|
exports.isMidnightWallet = isMidnightWallet.isMidnightWallet;
|
|
81
83
|
exports.isHardwareWalletConnector = isHardwareWalletConnector.isHardwareWalletConnector;
|
package/src/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { walletConnectorEvents, type ProviderReadyEventProps } from './events';
|
|
2
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';
|
|
3
3
|
export type { AccountChangeEventHandler, ChainChangeEventHandler, DisconnectEventHandler, WalletConnectorCore, WalletMetadata, WalletDeepLinks, WalletDownloadLinks, WalletLimitations, WalletLinks, } from './types';
|
|
4
|
-
export { addHexPrefix, bufferToHex, connectorRequiresDisconnectionForNewConnection, eventListenerHandlers, getChainInfo, getChainInfoWithOverrides, getDeepLink, getMobileExperience, getRpcUrlForChain, getWalletConnectorByKey, isAccountAbstractionConnector, isBitcoinConnector, 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';
|
|
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';
|
|
6
6
|
export { Chains, socialProviders, WalletConnectorBase, type Chain, type ChainInfo, type GetAddressOpts, type InternalWalletConnector, type NameServiceData, type PayloadParams, type SocialProvider, type WalletConnector, type WalletConnectorConstructor, type WalletConnectorEventTypes, type WalletConnectorExtension, type WalletConnectorsMethod, } from './WalletConnectorBase';
|
|
7
7
|
export { WalletBookSingleton } from './WalletBookSingleton';
|
package/src/index.js
CHANGED
|
@@ -21,6 +21,7 @@ export { isBloctoConnector } from './utils/isBloctoConnector/isBloctoConnector.j
|
|
|
21
21
|
export { isPasskeyWalletConnector } from './utils/isPasskeyWalletConnector/isPasskeyWalletConnector.js';
|
|
22
22
|
export { isAccountAbstractionConnector } from './utils/isAccountAbstractionConnector/isAccountAbstractionConnector.js';
|
|
23
23
|
export { isBitcoinConnector } from './utils/isBitcoinConnector/isBitcoinConnector.js';
|
|
24
|
+
export { getMidnightNetworkTag } from './utils/getMidnightNetworkTag/getMidnightNetworkTag.js';
|
|
24
25
|
export { isMidnightConnector } from './utils/isMidnightConnector/isMidnightConnector.js';
|
|
25
26
|
export { isMidnightWallet } from './utils/isMidnightWallet/isMidnightWallet.js';
|
|
26
27
|
export { isHardwareWalletConnector } from './utils/isHardwareWalletConnector/isHardwareWalletConnector.js';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Resolves the Midnight network tag ('mainnet' | 'preview') used to select the
|
|
8
|
+
* matching per-network additional address.
|
|
9
|
+
*
|
|
10
|
+
* Thin delegate: the connector owns network selection
|
|
11
|
+
* (`IMidnightWalletConnector.getSelectedMidnightNetwork`). Connectors that
|
|
12
|
+
* predate per-network support (or non-Midnight connectors) resolve to
|
|
13
|
+
* 'preview' — Midnight's legacy default network.
|
|
14
|
+
*
|
|
15
|
+
* @param connector - The (Midnight) wallet connector
|
|
16
|
+
* @returns 'mainnet' | 'preview'
|
|
17
|
+
*/
|
|
18
|
+
const getMidnightNetworkTag = (connector) => {
|
|
19
|
+
var _a, _b;
|
|
20
|
+
return (_b = (_a = connector === null || connector === void 0 ? void 0 : connector.getSelectedMidnightNetwork) === null || _a === void 0 ? void 0 : _a.call(connector)) !== null && _b !== void 0 ? _b : 'preview';
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
exports.getMidnightNetworkTag = getMidnightNetworkTag;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolves the Midnight network tag ('mainnet' | 'preview') used to select the
|
|
3
|
+
* matching per-network additional address.
|
|
4
|
+
*
|
|
5
|
+
* Thin delegate: the connector owns network selection
|
|
6
|
+
* (`IMidnightWalletConnector.getSelectedMidnightNetwork`). Connectors that
|
|
7
|
+
* predate per-network support (or non-Midnight connectors) resolve to
|
|
8
|
+
* 'preview' — Midnight's legacy default network.
|
|
9
|
+
*
|
|
10
|
+
* @param connector - The (Midnight) wallet connector
|
|
11
|
+
* @returns 'mainnet' | 'preview'
|
|
12
|
+
*/
|
|
13
|
+
export declare const getMidnightNetworkTag: (connector: unknown) => 'mainnet' | 'preview';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
/**
|
|
3
|
+
* Resolves the Midnight network tag ('mainnet' | 'preview') used to select the
|
|
4
|
+
* matching per-network additional address.
|
|
5
|
+
*
|
|
6
|
+
* Thin delegate: the connector owns network selection
|
|
7
|
+
* (`IMidnightWalletConnector.getSelectedMidnightNetwork`). Connectors that
|
|
8
|
+
* predate per-network support (or non-Midnight connectors) resolve to
|
|
9
|
+
* 'preview' — Midnight's legacy default network.
|
|
10
|
+
*
|
|
11
|
+
* @param connector - The (Midnight) wallet connector
|
|
12
|
+
* @returns 'mainnet' | 'preview'
|
|
13
|
+
*/
|
|
14
|
+
const getMidnightNetworkTag = (connector) => {
|
|
15
|
+
var _a, _b;
|
|
16
|
+
return (_b = (_a = connector === null || connector === void 0 ? void 0 : connector.getSelectedMidnightNetwork) === null || _a === void 0 ? void 0 : _a.call(connector)) !== null && _b !== void 0 ? _b : 'preview';
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { getMidnightNetworkTag };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getMidnightNetworkTag } from './getMidnightNetworkTag';
|
package/src/utils/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from './isBloctoConnector';
|
|
|
16
16
|
export * from './isPasskeyWalletConnector';
|
|
17
17
|
export * from './isAccountAbstractionConnector';
|
|
18
18
|
export * from './isBitcoinConnector';
|
|
19
|
+
export * from './getMidnightNetworkTag';
|
|
19
20
|
export * from './isMidnightConnector';
|
|
20
21
|
export * from './isMidnightWallet';
|
|
21
22
|
export * from './isHardwareWalletConnector';
|
|
@@ -6,6 +6,14 @@ import type { WalletConnector } from '../..';
|
|
|
6
6
|
*/
|
|
7
7
|
export type IMidnightWalletConnector = WalletConnector & {
|
|
8
8
|
midnightNetworks: GenericNetwork[];
|
|
9
|
+
/**
|
|
10
|
+
* Resolves the connector's currently selected network to the Midnight
|
|
11
|
+
* network tag used on per-network addresses and wallet-client calls.
|
|
12
|
+
* Optional: connectors that predate per-network support don't implement it,
|
|
13
|
+
* and callers should treat its absence as 'preview' (Midnight's legacy
|
|
14
|
+
* default network).
|
|
15
|
+
*/
|
|
16
|
+
getSelectedMidnightNetwork?: () => 'preview' | 'mainnet';
|
|
9
17
|
};
|
|
10
18
|
/**
|
|
11
19
|
* Type guard to check if a connector is a Midnight wallet connector.
|