@dynamic-labs/midnight 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 +12 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/waas/connector/DynamicWaasMidnightConnector.cjs +2 -5
- package/src/waas/connector/DynamicWaasMidnightConnector.d.ts +9 -50
- package/src/waas/connector/DynamicWaasMidnightConnector.js +2 -5
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
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/midnight",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.1",
|
|
4
4
|
"description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs/assert-package-version": "5.4.
|
|
21
|
+
"@dynamic-labs/assert-package-version": "5.4.1",
|
|
22
22
|
"@dynamic-labs/sdk-api-core": "0.12.0",
|
|
23
23
|
"@midnight-ntwrk/dapp-connector-api": "4.0.1",
|
|
24
|
-
"@dynamic-labs/logger": "5.4.
|
|
25
|
-
"@dynamic-labs/types": "5.4.
|
|
26
|
-
"@dynamic-labs/utils": "5.4.
|
|
27
|
-
"@dynamic-labs/waas": "5.4.
|
|
28
|
-
"@dynamic-labs/wallet-book": "5.4.
|
|
29
|
-
"@dynamic-labs/wallet-connector-core": "5.4.
|
|
24
|
+
"@dynamic-labs/logger": "5.4.1",
|
|
25
|
+
"@dynamic-labs/types": "5.4.1",
|
|
26
|
+
"@dynamic-labs/utils": "5.4.1",
|
|
27
|
+
"@dynamic-labs/waas": "5.4.1",
|
|
28
|
+
"@dynamic-labs/wallet-book": "5.4.1",
|
|
29
|
+
"@dynamic-labs/wallet-connector-core": "5.4.1"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {}
|
|
32
32
|
}
|
|
@@ -472,14 +472,11 @@ class DynamicWaasMidnightConnector extends waas.withDynamicWaas(WaasMidnightWall
|
|
|
472
472
|
const _super = Object.create(null, {
|
|
473
473
|
createWalletAccount: { get: () => super.createWalletAccount }
|
|
474
474
|
});
|
|
475
|
-
return _tslib.__awaiter(this, arguments, void 0, function* (
|
|
475
|
+
return _tslib.__awaiter(this, arguments, void 0, function* (params = {}) {
|
|
476
476
|
// Midnight automatically creates all address types (unshielded, dust, shielded)
|
|
477
477
|
// from a single keygen. The primary address is unshielded, additional addresses
|
|
478
478
|
// (dust and shielded) are returned as additionalAddresses from the server.
|
|
479
|
-
return _super.createWalletAccount.call(this,
|
|
480
|
-
password,
|
|
481
|
-
thresholdSignatureScheme,
|
|
482
|
-
});
|
|
479
|
+
return _super.createWalletAccount.call(this, params);
|
|
483
480
|
});
|
|
484
481
|
}
|
|
485
482
|
// Passes through the wallet client's shape. `dust` carries `{ balance, cap }`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ConnectedAPI, TokenType } from '@midnight-ntwrk/dapp-connector-api';
|
|
2
2
|
import { JwtVerifiedCredential, MFAAction, SignMessageContext, TokenScope } from '@dynamic-labs/sdk-api-core';
|
|
3
3
|
import { IUITransaction, WalletUiUtils } from '@dynamic-labs/types';
|
|
4
|
-
import { IDynamicWaasConnector, InternalWalletConnector } from '@dynamic-labs/wallet-connector-core';
|
|
4
|
+
import { CreateWalletAccountParams, IDynamicWaasConnector, InternalWalletConnector } from '@dynamic-labs/wallet-connector-core';
|
|
5
5
|
import { Logger } from '@dynamic-labs/logger';
|
|
6
6
|
import type { DynamicWaasMidnightConnectorProps, MidnightContractWalletProvider, MidnightSerializableTransaction } from '../../types';
|
|
7
7
|
import { MidnightWallet } from '../../wallet/MidnightWallet';
|
|
@@ -67,12 +67,7 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
|
|
|
67
67
|
getWaasWalletClient(traceContext?: import("dist/packages/waas/utils/instrumentation").TraceContext | undefined, { forceRebuild }?: {
|
|
68
68
|
forceRebuild?: boolean | undefined;
|
|
69
69
|
} | undefined): Promise<import("@dynamic-labs-wallet/browser-wallet-client").DynamicWalletClient>;
|
|
70
|
-
createWalletAccount({ thresholdSignatureScheme, password, bitcoinConfig, businessAccountId, }?: {
|
|
71
|
-
thresholdSignatureScheme?: string | undefined;
|
|
72
|
-
password?: string | undefined;
|
|
73
|
-
bitcoinConfig?: import("@dynamic-labs-wallet/browser-wallet-client").BitcoinConfig | undefined;
|
|
74
|
-
businessAccountId?: string | undefined;
|
|
75
|
-
} | undefined): Promise<{
|
|
70
|
+
createWalletAccount({ thresholdSignatureScheme, password, bitcoinConfig, businessAccountId, }?: CreateWalletAccountParams | undefined): Promise<{
|
|
76
71
|
chainName: string;
|
|
77
72
|
accountAddress: string;
|
|
78
73
|
publicKeyHex: string;
|
|
@@ -92,15 +87,7 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
|
|
|
92
87
|
}): Promise<{
|
|
93
88
|
shareSetId: string;
|
|
94
89
|
}>;
|
|
95
|
-
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, password, isRawScalarImport, }:
|
|
96
|
-
privateKey: string;
|
|
97
|
-
thresholdSignatureScheme?: string | undefined;
|
|
98
|
-
publicAddressCheck?: string | undefined;
|
|
99
|
-
addressType?: string | undefined;
|
|
100
|
-
legacyWalletId?: string | undefined;
|
|
101
|
-
password?: string | undefined;
|
|
102
|
-
isRawScalarImport?: boolean | undefined;
|
|
103
|
-
}): Promise<void>;
|
|
90
|
+
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, password, isRawScalarImport, }: import("@dynamic-labs/wallet-connector-core").ImportPrivateKeyParams): Promise<void>;
|
|
104
91
|
migrateFromFireblocks({ deviceId, jwt, walletPassword, ncwStorage, expectedAddresses, coinTypes, password, }: {
|
|
105
92
|
deviceId: string;
|
|
106
93
|
jwt: string;
|
|
@@ -118,10 +105,7 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
|
|
|
118
105
|
getExportHandler(): {
|
|
119
106
|
clear: () => void;
|
|
120
107
|
};
|
|
121
|
-
exportClientKeyshares({ accountAddress, password, }:
|
|
122
|
-
accountAddress: string;
|
|
123
|
-
password?: string | undefined;
|
|
124
|
-
}): Promise<void>;
|
|
108
|
+
exportClientKeyshares({ accountAddress, password, }: import("@dynamic-labs/wallet-connector-core").ExportClientKeysharesParams): Promise<void>;
|
|
125
109
|
runBackupLifecycle({ provider, accountAddress, password, performBackup, }: {
|
|
126
110
|
provider: string;
|
|
127
111
|
accountAddress: string;
|
|
@@ -137,11 +121,7 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
|
|
|
137
121
|
};
|
|
138
122
|
}) => Promise<void>;
|
|
139
123
|
}): Promise<void>;
|
|
140
|
-
backupKeySharesToGoogleDrive({ accountAddress, password, googleDriveAccessToken, }:
|
|
141
|
-
accountAddress: string;
|
|
142
|
-
password?: string | undefined;
|
|
143
|
-
googleDriveAccessToken?: string | undefined;
|
|
144
|
-
}): Promise<void>;
|
|
124
|
+
backupKeySharesToGoogleDrive({ accountAddress, password, googleDriveAccessToken, }: import("@dynamic-labs/wallet-connector-core").BackupKeySharesToGoogleDriveParams): Promise<void>;
|
|
145
125
|
exportClientKeysharesFromGoogleDrive({ accountAddress, password, }: {
|
|
146
126
|
accountAddress: string;
|
|
147
127
|
password?: string | undefined;
|
|
@@ -155,24 +135,13 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
|
|
|
155
135
|
}): Promise<void>;
|
|
156
136
|
hideICloudSignIn(): Promise<void>;
|
|
157
137
|
isICloudAuthenticated(): Promise<boolean>;
|
|
158
|
-
refreshWalletAccountShares({ accountAddress, password, }:
|
|
159
|
-
|
|
160
|
-
password?: string | undefined;
|
|
161
|
-
}): Promise<void>;
|
|
162
|
-
reshareWalletAccountShares({ accountAddress, thresholdSignatureScheme, password, }: {
|
|
163
|
-
accountAddress: string;
|
|
164
|
-
thresholdSignatureScheme: string;
|
|
165
|
-
password?: string | undefined;
|
|
166
|
-
}): Promise<void>;
|
|
138
|
+
refreshWalletAccountShares({ accountAddress, password, }: import("@dynamic-labs/wallet-connector-core").RefreshWalletAccountSharesParams): Promise<void>;
|
|
139
|
+
reshareWalletAccountShares({ accountAddress, thresholdSignatureScheme, password, }: import("@dynamic-labs/wallet-connector-core").ReshareWalletAccountSharesParams): Promise<void>;
|
|
167
140
|
revokeDelegation({ accountAddress, password, }: {
|
|
168
141
|
accountAddress: string;
|
|
169
142
|
password?: string | undefined;
|
|
170
143
|
}): Promise<void>;
|
|
171
|
-
updatePassword({ accountAddress, existingPassword, newPassword, }:
|
|
172
|
-
accountAddress: string;
|
|
173
|
-
existingPassword?: string | undefined;
|
|
174
|
-
newPassword: string;
|
|
175
|
-
}): Promise<void>;
|
|
144
|
+
updatePassword({ accountAddress, existingPassword, newPassword, }: import("@dynamic-labs/wallet-connector-core").UpdatePasswordParams): Promise<void>;
|
|
176
145
|
setPassword({ accountAddress, newPassword, }: {
|
|
177
146
|
accountAddress: string;
|
|
178
147
|
newPassword: string;
|
|
@@ -220,13 +189,6 @@ declare const DynamicWaasMidnightConnector_base: (abstract new (...args: any[])
|
|
|
220
189
|
unshielded: Record<string, string>;
|
|
221
190
|
shielded: Record<string, string>;
|
|
222
191
|
dust: {
|
|
223
|
-
/**
|
|
224
|
-
* Signs and finalizes (ZK proves) a Midnight transaction via MPC.
|
|
225
|
-
* Step 2 of the 3-step flow: createTransferTransaction → signTransaction → submitTransaction.
|
|
226
|
-
*
|
|
227
|
-
* @param serializedTransaction - Base64-encoded unsigned UnprovenTransaction
|
|
228
|
-
* @returns Base64-encoded FinalizedTransaction, ready for submitTransaction
|
|
229
|
-
*/
|
|
230
192
|
balance: string;
|
|
231
193
|
cap: string;
|
|
232
194
|
};
|
|
@@ -406,10 +368,7 @@ export declare class DynamicWaasMidnightConnector extends DynamicWaasMidnightCon
|
|
|
406
368
|
* @param password - Optional password for the wallet
|
|
407
369
|
* @returns The created wallet account information with primary (unshielded) address
|
|
408
370
|
*/
|
|
409
|
-
createWalletAccount(
|
|
410
|
-
thresholdSignatureScheme?: string;
|
|
411
|
-
password?: string;
|
|
412
|
-
}): Promise<{
|
|
371
|
+
createWalletAccount(params?: CreateWalletAccountParams): Promise<{
|
|
413
372
|
chainName: string;
|
|
414
373
|
accountAddress: string;
|
|
415
374
|
publicKeyHex: string;
|
|
@@ -468,14 +468,11 @@ class DynamicWaasMidnightConnector extends withDynamicWaas(WaasMidnightWalletCon
|
|
|
468
468
|
const _super = Object.create(null, {
|
|
469
469
|
createWalletAccount: { get: () => super.createWalletAccount }
|
|
470
470
|
});
|
|
471
|
-
return __awaiter(this, arguments, void 0, function* (
|
|
471
|
+
return __awaiter(this, arguments, void 0, function* (params = {}) {
|
|
472
472
|
// Midnight automatically creates all address types (unshielded, dust, shielded)
|
|
473
473
|
// from a single keygen. The primary address is unshielded, additional addresses
|
|
474
474
|
// (dust and shielded) are returned as additionalAddresses from the server.
|
|
475
|
-
return _super.createWalletAccount.call(this,
|
|
476
|
-
password,
|
|
477
|
-
thresholdSignatureScheme,
|
|
478
|
-
});
|
|
475
|
+
return _super.createWalletAccount.call(this, params);
|
|
479
476
|
});
|
|
480
477
|
}
|
|
481
478
|
// Passes through the wallet client's shape. `dust` carries `{ balance, cap }`
|