@dynamic-labs/waas-svm 5.4.0 → 5.5.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
CHANGED
|
@@ -1,4 +1,31 @@
|
|
|
1
1
|
|
|
2
|
+
## [5.5.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.4.1...v5.5.0) (2026-08-31)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **waas-evm:** route embedded EVM sends through gas sponsorship when enabled ([#12306](https://github.com/dynamic-labs/dynamic-auth/issues/12306)) ([6046ff3](https://github.com/dynamic-labs/dynamic-auth/commit/6046ff362d8de9402793bdaa7319fda645ff4c04))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **bitcoin:** resolve the active BTC wallet and network correctly across the widget ([#12308](https://github.com/dynamic-labs/dynamic-auth/issues/12308)) ([13e9eae](https://github.com/dynamic-labs/dynamic-auth/commit/13e9eaec19b3925db507c878988cfd82da5a6de6))
|
|
13
|
+
* **btc:** unbreak BTC transaction confirmation, testnet balances and taproot testnet switching ([#12305](https://github.com/dynamic-labs/dynamic-auth/issues/12305)) ([5fd999c](https://github.com/dynamic-labs/dynamic-auth/commit/5fd999c4c819d3a74e967c0cfa77c5877a74906b))
|
|
14
|
+
* **react-native-extension:** stop leaking expo-secure-store into consumer autolinking ([#12296](https://github.com/dynamic-labs/dynamic-auth/issues/12296)) ([1e0396a](https://github.com/dynamic-labs/dynamic-auth/commit/1e0396ab00c79aa0b2f45b6d7b1d339c1dac1203)), closes [#12254](https://github.com/dynamic-labs/dynamic-auth/issues/12254)
|
|
15
|
+
* **screening:** wire connected-wallet screening into the Send Balance UI (DYNT-1663) ([#12303](https://github.com/dynamic-labs/dynamic-auth/issues/12303)) ([5d26ff3](https://github.com/dynamic-labs/dynamic-auth/commit/5d26ff375118302522c39bd2f1fa9e04f7378eaf))
|
|
16
|
+
|
|
17
|
+
### [5.4.1](https://github.com/dynamic-labs/dynamic-auth/compare/v5.4.0...v5.4.1) (2026-08-26)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **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))
|
|
23
|
+
* **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))
|
|
24
|
+
* **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)
|
|
25
|
+
* **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))
|
|
26
|
+
* **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))
|
|
27
|
+
* **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)
|
|
28
|
+
|
|
2
29
|
## [5.4.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.3.2...v5.4.0) (2026-08-25)
|
|
3
30
|
|
|
4
31
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/waas-svm",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0",
|
|
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",
|
|
@@ -19,18 +19,18 @@
|
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@dynamic-labs/sdk-api-core": "0.12.0",
|
|
22
|
-
"@dynamic-labs/embedded-wallet-solana": "5.
|
|
22
|
+
"@dynamic-labs/embedded-wallet-solana": "5.5.0",
|
|
23
23
|
"@solana/web3.js": "1.98.1",
|
|
24
24
|
"eventemitter3": "5.0.1",
|
|
25
25
|
"bs58": "5.0.0",
|
|
26
|
-
"@dynamic-labs/assert-package-version": "5.
|
|
27
|
-
"@dynamic-labs/logger": "5.
|
|
28
|
-
"@dynamic-labs/rpc-providers": "5.
|
|
29
|
-
"@dynamic-labs/solana-core": "5.
|
|
30
|
-
"@dynamic-labs/types": "5.
|
|
31
|
-
"@dynamic-labs/utils": "5.
|
|
32
|
-
"@dynamic-labs/waas": "5.
|
|
33
|
-
"@dynamic-labs/wallet-connector-core": "5.
|
|
26
|
+
"@dynamic-labs/assert-package-version": "5.5.0",
|
|
27
|
+
"@dynamic-labs/logger": "5.5.0",
|
|
28
|
+
"@dynamic-labs/rpc-providers": "5.5.0",
|
|
29
|
+
"@dynamic-labs/solana-core": "5.5.0",
|
|
30
|
+
"@dynamic-labs/types": "5.5.0",
|
|
31
|
+
"@dynamic-labs/utils": "5.5.0",
|
|
32
|
+
"@dynamic-labs/waas": "5.5.0",
|
|
33
|
+
"@dynamic-labs/wallet-connector-core": "5.5.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {}
|
|
36
36
|
}
|
|
@@ -92,9 +92,15 @@ class DynamicWaasSVMConnector extends waas.withDynamicWaas(solanaCore.SolanaWall
|
|
|
92
92
|
// behavior this method exists to eliminate.
|
|
93
93
|
throw new utils.DynamicError('Missing environmentId, cannot sponsor transaction', 'sponsorship_missing_environment_id');
|
|
94
94
|
}
|
|
95
|
+
const { environmentId } = this;
|
|
95
96
|
for (let attempt = 1; attempt <= SPONSORSHIP_MAX_ATTEMPTS; attempt++) {
|
|
96
97
|
try {
|
|
97
|
-
const sponsoredTransaction = yield
|
|
98
|
+
const sponsoredTransaction = yield this.instrumentAsync({
|
|
99
|
+
context: { attempt, maxAttempts: SPONSORSHIP_MAX_ATTEMPTS },
|
|
100
|
+
fn: () => _tslib.__awaiter(this, void 0, void 0, function* () { return embeddedWalletSolana.sponsorSolanaTransaction(environmentId, transaction); }),
|
|
101
|
+
operation: 'maybeSponsorTransaction',
|
|
102
|
+
resource: `sponsorSolanaTransaction-attempt-${attempt}`,
|
|
103
|
+
});
|
|
98
104
|
logger.logger.info('[maybeSponsorTransaction] Transaction sponsored successfully');
|
|
99
105
|
return sponsoredTransaction;
|
|
100
106
|
}
|
|
@@ -536,12 +542,12 @@ class DynamicWaasSVMConnector extends waas.withDynamicWaas(solanaCore.SolanaWall
|
|
|
536
542
|
return this.getWalletClient();
|
|
537
543
|
}
|
|
538
544
|
// Chain-specific override for exportClientKeyshares - SVM needs to handle optional account address
|
|
539
|
-
exportClientKeyshares(
|
|
545
|
+
exportClientKeyshares(params) {
|
|
540
546
|
const _super = Object.create(null, {
|
|
541
547
|
exportClientKeyshares: { get: () => super.exportClientKeyshares }
|
|
542
548
|
});
|
|
543
|
-
return _tslib.__awaiter(this,
|
|
544
|
-
const targetAccountAddress = accountAddress || this.activeAccountAddress;
|
|
549
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
550
|
+
const targetAccountAddress = params.accountAddress || this.activeAccountAddress;
|
|
545
551
|
if (!targetAccountAddress) {
|
|
546
552
|
throw new Error('Account address is required');
|
|
547
553
|
}
|
|
@@ -553,10 +559,9 @@ class DynamicWaasSVMConnector extends waas.withDynamicWaas(solanaCore.SolanaWall
|
|
|
553
559
|
time: 0,
|
|
554
560
|
traceId,
|
|
555
561
|
});
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
});
|
|
562
|
+
// Spread, so a field added to ExportClientKeysharesParams later still
|
|
563
|
+
// reaches the base instead of being silently dropped here.
|
|
564
|
+
const result = yield _super.exportClientKeyshares.call(this, Object.assign(Object.assign({}, params), { accountAddress: targetAccountAddress }));
|
|
560
565
|
this.instrument('[exportClientKeyshares] completed', {
|
|
561
566
|
key: 'exportClientKeyshares-completed',
|
|
562
567
|
startTime,
|
|
@@ -2,7 +2,7 @@ import { Connection, SendOptions, Transaction, VersionedTransaction } from '@sol
|
|
|
2
2
|
import { MFAAction, TokenScope } from '@dynamic-labs/sdk-api-core';
|
|
3
3
|
import { ISolanaSigner, SolanaWalletConnector, SolanaWalletConnectorOpts } from '@dynamic-labs/solana-core';
|
|
4
4
|
import { IUITransaction, WalletUiUtils } from '@dynamic-labs/types';
|
|
5
|
-
import { IDynamicWaasConnector, InternalWalletConnector } from '@dynamic-labs/wallet-connector-core';
|
|
5
|
+
import { ExportClientKeysharesParams, IDynamicWaasConnector, InternalWalletConnector } from '@dynamic-labs/wallet-connector-core';
|
|
6
6
|
import { Logger } from '../../utils/logger';
|
|
7
7
|
export type DynamicWaasSVMConnectorProps = SolanaWalletConnectorOpts & {
|
|
8
8
|
walletUiUtils: WalletUiUtils<InternalWalletConnector>;
|
|
@@ -68,12 +68,7 @@ declare const DynamicWaasSVMConnector_base: (abstract new (...args: any[]) => {
|
|
|
68
68
|
getWaasWalletClient(traceContext?: import("dist/packages/waas/utils/instrumentation").TraceContext | undefined, { forceRebuild }?: {
|
|
69
69
|
forceRebuild?: boolean | undefined;
|
|
70
70
|
} | undefined): Promise<import("@dynamic-labs-wallet/browser-wallet-client").DynamicWalletClient>;
|
|
71
|
-
createWalletAccount({ thresholdSignatureScheme, password, bitcoinConfig, businessAccountId, }?: {
|
|
72
|
-
thresholdSignatureScheme?: string | undefined;
|
|
73
|
-
password?: string | undefined;
|
|
74
|
-
bitcoinConfig?: import("@dynamic-labs-wallet/browser-wallet-client").BitcoinConfig | undefined;
|
|
75
|
-
businessAccountId?: string | undefined;
|
|
76
|
-
} | undefined): Promise<{
|
|
71
|
+
createWalletAccount({ thresholdSignatureScheme, password, bitcoinConfig, businessAccountId, }?: import("@dynamic-labs/wallet-connector-core").CreateWalletAccountParams | undefined): Promise<{
|
|
77
72
|
chainName: string;
|
|
78
73
|
accountAddress: string;
|
|
79
74
|
publicKeyHex: string;
|
|
@@ -93,15 +88,7 @@ declare const DynamicWaasSVMConnector_base: (abstract new (...args: any[]) => {
|
|
|
93
88
|
}): Promise<{
|
|
94
89
|
shareSetId: string;
|
|
95
90
|
}>;
|
|
96
|
-
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, password, isRawScalarImport, }:
|
|
97
|
-
privateKey: string;
|
|
98
|
-
thresholdSignatureScheme?: string | undefined;
|
|
99
|
-
publicAddressCheck?: string | undefined;
|
|
100
|
-
addressType?: string | undefined;
|
|
101
|
-
legacyWalletId?: string | undefined;
|
|
102
|
-
password?: string | undefined;
|
|
103
|
-
isRawScalarImport?: boolean | undefined;
|
|
104
|
-
}): Promise<void>;
|
|
91
|
+
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, password, isRawScalarImport, }: import("@dynamic-labs/wallet-connector-core").ImportPrivateKeyParams): Promise<void>;
|
|
105
92
|
migrateFromFireblocks({ deviceId, jwt, walletPassword, ncwStorage, expectedAddresses, coinTypes, password, }: {
|
|
106
93
|
deviceId: string;
|
|
107
94
|
jwt: string;
|
|
@@ -119,10 +106,7 @@ declare const DynamicWaasSVMConnector_base: (abstract new (...args: any[]) => {
|
|
|
119
106
|
getExportHandler(): {
|
|
120
107
|
clear: () => void;
|
|
121
108
|
};
|
|
122
|
-
exportClientKeyshares({ accountAddress, password, }:
|
|
123
|
-
accountAddress: string;
|
|
124
|
-
password?: string | undefined;
|
|
125
|
-
}): Promise<void>;
|
|
109
|
+
exportClientKeyshares({ accountAddress, password, }: ExportClientKeysharesParams): Promise<void>;
|
|
126
110
|
runBackupLifecycle({ provider, accountAddress, password, performBackup, }: {
|
|
127
111
|
provider: string;
|
|
128
112
|
accountAddress: string;
|
|
@@ -138,11 +122,7 @@ declare const DynamicWaasSVMConnector_base: (abstract new (...args: any[]) => {
|
|
|
138
122
|
};
|
|
139
123
|
}) => Promise<void>;
|
|
140
124
|
}): Promise<void>;
|
|
141
|
-
backupKeySharesToGoogleDrive({ accountAddress, password, googleDriveAccessToken, }:
|
|
142
|
-
accountAddress: string;
|
|
143
|
-
password?: string | undefined;
|
|
144
|
-
googleDriveAccessToken?: string | undefined;
|
|
145
|
-
}): Promise<void>;
|
|
125
|
+
backupKeySharesToGoogleDrive({ accountAddress, password, googleDriveAccessToken, }: import("@dynamic-labs/wallet-connector-core").BackupKeySharesToGoogleDriveParams): Promise<void>;
|
|
146
126
|
exportClientKeysharesFromGoogleDrive({ accountAddress, password, }: {
|
|
147
127
|
accountAddress: string;
|
|
148
128
|
password?: string | undefined;
|
|
@@ -156,24 +136,13 @@ declare const DynamicWaasSVMConnector_base: (abstract new (...args: any[]) => {
|
|
|
156
136
|
}): Promise<void>;
|
|
157
137
|
hideICloudSignIn(): Promise<void>;
|
|
158
138
|
isICloudAuthenticated(): Promise<boolean>;
|
|
159
|
-
refreshWalletAccountShares({ accountAddress, password, }:
|
|
160
|
-
|
|
161
|
-
password?: string | undefined;
|
|
162
|
-
}): Promise<void>;
|
|
163
|
-
reshareWalletAccountShares({ accountAddress, thresholdSignatureScheme, password, }: {
|
|
164
|
-
accountAddress: string;
|
|
165
|
-
thresholdSignatureScheme: string;
|
|
166
|
-
password?: string | undefined;
|
|
167
|
-
}): Promise<void>;
|
|
139
|
+
refreshWalletAccountShares({ accountAddress, password, }: import("@dynamic-labs/wallet-connector-core").RefreshWalletAccountSharesParams): Promise<void>;
|
|
140
|
+
reshareWalletAccountShares({ accountAddress, thresholdSignatureScheme, password, }: import("@dynamic-labs/wallet-connector-core").ReshareWalletAccountSharesParams): Promise<void>;
|
|
168
141
|
revokeDelegation({ accountAddress, password, }: {
|
|
169
142
|
accountAddress: string;
|
|
170
143
|
password?: string | undefined;
|
|
171
144
|
}): Promise<void>;
|
|
172
|
-
updatePassword({ accountAddress, existingPassword, newPassword, }:
|
|
173
|
-
accountAddress: string;
|
|
174
|
-
existingPassword?: string | undefined;
|
|
175
|
-
newPassword: string;
|
|
176
|
-
}): Promise<void>;
|
|
145
|
+
updatePassword({ accountAddress, existingPassword, newPassword, }: import("@dynamic-labs/wallet-connector-core").UpdatePasswordParams): Promise<void>;
|
|
177
146
|
setPassword({ accountAddress, newPassword, }: {
|
|
178
147
|
accountAddress: string;
|
|
179
148
|
newPassword: string;
|
|
@@ -294,10 +263,7 @@ export declare class DynamicWaasSVMConnector extends DynamicWaasSVMConnector_bas
|
|
|
294
263
|
getWalletClientByAddress({ accountAddress, }: {
|
|
295
264
|
accountAddress: string;
|
|
296
265
|
}): Connection;
|
|
297
|
-
exportClientKeyshares(
|
|
298
|
-
accountAddress: string;
|
|
299
|
-
password?: string;
|
|
300
|
-
}): Promise<void>;
|
|
266
|
+
exportClientKeyshares(params: ExportClientKeysharesParams): Promise<void>;
|
|
301
267
|
createUiTransaction(from: string): Promise<IUITransaction>;
|
|
302
268
|
signMessageWithContext(): Promise<string>;
|
|
303
269
|
}
|
|
@@ -88,9 +88,15 @@ class DynamicWaasSVMConnector extends withDynamicWaas(SolanaWalletConnector) {
|
|
|
88
88
|
// behavior this method exists to eliminate.
|
|
89
89
|
throw new DynamicError('Missing environmentId, cannot sponsor transaction', 'sponsorship_missing_environment_id');
|
|
90
90
|
}
|
|
91
|
+
const { environmentId } = this;
|
|
91
92
|
for (let attempt = 1; attempt <= SPONSORSHIP_MAX_ATTEMPTS; attempt++) {
|
|
92
93
|
try {
|
|
93
|
-
const sponsoredTransaction = yield
|
|
94
|
+
const sponsoredTransaction = yield this.instrumentAsync({
|
|
95
|
+
context: { attempt, maxAttempts: SPONSORSHIP_MAX_ATTEMPTS },
|
|
96
|
+
fn: () => __awaiter(this, void 0, void 0, function* () { return sponsorSolanaTransaction(environmentId, transaction); }),
|
|
97
|
+
operation: 'maybeSponsorTransaction',
|
|
98
|
+
resource: `sponsorSolanaTransaction-attempt-${attempt}`,
|
|
99
|
+
});
|
|
94
100
|
logger.info('[maybeSponsorTransaction] Transaction sponsored successfully');
|
|
95
101
|
return sponsoredTransaction;
|
|
96
102
|
}
|
|
@@ -532,12 +538,12 @@ class DynamicWaasSVMConnector extends withDynamicWaas(SolanaWalletConnector) {
|
|
|
532
538
|
return this.getWalletClient();
|
|
533
539
|
}
|
|
534
540
|
// Chain-specific override for exportClientKeyshares - SVM needs to handle optional account address
|
|
535
|
-
exportClientKeyshares(
|
|
541
|
+
exportClientKeyshares(params) {
|
|
536
542
|
const _super = Object.create(null, {
|
|
537
543
|
exportClientKeyshares: { get: () => super.exportClientKeyshares }
|
|
538
544
|
});
|
|
539
|
-
return __awaiter(this,
|
|
540
|
-
const targetAccountAddress = accountAddress || this.activeAccountAddress;
|
|
545
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
546
|
+
const targetAccountAddress = params.accountAddress || this.activeAccountAddress;
|
|
541
547
|
if (!targetAccountAddress) {
|
|
542
548
|
throw new Error('Account address is required');
|
|
543
549
|
}
|
|
@@ -549,10 +555,9 @@ class DynamicWaasSVMConnector extends withDynamicWaas(SolanaWalletConnector) {
|
|
|
549
555
|
time: 0,
|
|
550
556
|
traceId,
|
|
551
557
|
});
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
});
|
|
558
|
+
// Spread, so a field added to ExportClientKeysharesParams later still
|
|
559
|
+
// reaches the base instead of being silently dropped here.
|
|
560
|
+
const result = yield _super.exportClientKeyshares.call(this, Object.assign(Object.assign({}, params), { accountAddress: targetAccountAddress }));
|
|
556
561
|
this.instrument('[exportClientKeyshares] completed', {
|
|
557
562
|
key: 'exportClientKeyshares-completed',
|
|
558
563
|
startTime,
|