@dynamic-labs/waas-evm 5.3.2 → 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 +34 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/DynamicWaasEVMConnector.cjs +25 -37
- package/src/DynamicWaasEVMConnector.d.ts +13 -61
- package/src/DynamicWaasEVMConnector.js +25 -37
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,38 @@
|
|
|
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
|
+
|
|
14
|
+
## [5.4.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.3.2...v5.4.0) (2026-08-25)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **aleo:** wire up signMessage on the WaaS Aleo connector ([#12235](https://github.com/dynamic-labs/dynamic-auth/issues/12235)) ([e56cbf5](https://github.com/dynamic-labs/dynamic-auth/commit/e56cbf5546bdcc21ce916dece43ae36dcea9b808))
|
|
20
|
+
* **waas:** thread isRawScalarImport through importPrivateKey for ed25519 chains ([#12220](https://github.com/dynamic-labs/dynamic-auth/issues/12220)) ([ced9efa](https://github.com/dynamic-labs/dynamic-auth/commit/ced9efac5fa5a4a1280383419f56fe22733722cd))
|
|
21
|
+
* **webview:** add policies message contract and controller ([#12248](https://github.com/dynamic-labs/dynamic-auth/issues/12248)) ([8557c1e](https://github.com/dynamic-labs/dynamic-auth/commit/8557c1ed3861e12f1f06b2bb610184813b577daa))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* **bitcoin:** pass the wallet's address type when signing ([#12265](https://github.com/dynamic-labs/dynamic-auth/issues/12265)) ([b8a8eab](https://github.com/dynamic-labs/dynamic-auth/commit/b8a8eab7e4cc294cc307fb10ea6814e76111a274))
|
|
27
|
+
* remediate high-severity tar vulnerability and prune a dead override ([#12268](https://github.com/dynamic-labs/dynamic-auth/issues/12268)) ([6b1b343](https://github.com/dynamic-labs/dynamic-auth/commit/6b1b343e7947e8da30012446677e342ae9bfe14a))
|
|
28
|
+
* **waas-svm:** fix retry-classification and environmentId gaps in [#12240](https://github.com/dynamic-labs/dynamic-auth/issues/12240) ([#12247](https://github.com/dynamic-labs/dynamic-auth/issues/12247)) ([e79cecc](https://github.com/dynamic-labs/dynamic-auth/commit/e79ceccd424c48c3a7f45fdd6ea288c269ac0171))
|
|
29
|
+
* **wallet-connect:** reopen WalletConnect IndexedDB when the browser closes the connection ([#12262](https://github.com/dynamic-labs/dynamic-auth/issues/12262)) ([1a20dde](https://github.com/dynamic-labs/dynamic-auth/commit/1a20ddeaeec590ae3390c9e47ef3c14738379b83))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Performance Improvements
|
|
33
|
+
|
|
34
|
+
* **ethereum-gasless-core:** parallel 7702 auth signing and long-poll sponsored-tx status ([#12225](https://github.com/dynamic-labs/dynamic-auth/issues/12225)) ([53ca916](https://github.com/dynamic-labs/dynamic-auth/commit/53ca91668f8dd839c52d55a0e5d7bb5257f7f415))
|
|
35
|
+
|
|
2
36
|
### [5.3.2](https://github.com/dynamic-labs/dynamic-auth/compare/v5.3.1...v5.3.2) (2026-08-19)
|
|
3
37
|
|
|
4
38
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/waas-evm",
|
|
3
|
-
"version": "5.
|
|
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",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@dynamic-labs/sdk-api-core": "0.12.0",
|
|
22
22
|
"viem": "^2.45.3",
|
|
23
|
-
"@dynamic-labs/assert-package-version": "5.
|
|
24
|
-
"@dynamic-labs/ethereum-core": "5.
|
|
25
|
-
"@dynamic-labs/logger": "5.
|
|
26
|
-
"@dynamic-labs/types": "5.
|
|
27
|
-
"@dynamic-labs/utils": "5.
|
|
28
|
-
"@dynamic-labs/waas": "5.
|
|
29
|
-
"@dynamic-labs/wallet-connector-core": "5.
|
|
23
|
+
"@dynamic-labs/assert-package-version": "5.4.1",
|
|
24
|
+
"@dynamic-labs/ethereum-core": "5.4.1",
|
|
25
|
+
"@dynamic-labs/logger": "5.4.1",
|
|
26
|
+
"@dynamic-labs/types": "5.4.1",
|
|
27
|
+
"@dynamic-labs/utils": "5.4.1",
|
|
28
|
+
"@dynamic-labs/waas": "5.4.1",
|
|
29
|
+
"@dynamic-labs/wallet-connector-core": "5.4.1"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {}
|
|
32
32
|
}
|
|
@@ -475,84 +475,72 @@ class DynamicWaasEVMConnector extends waas.withDynamicWaas(ethereumCore.Ethereum
|
|
|
475
475
|
return this.getWalletClient();
|
|
476
476
|
}
|
|
477
477
|
// Chain-specific override for exportClientKeyshares - EVM needs to set active account first
|
|
478
|
-
exportClientKeyshares(
|
|
478
|
+
exportClientKeyshares(params) {
|
|
479
479
|
const _super = Object.create(null, {
|
|
480
480
|
exportClientKeyshares: { get: () => super.exportClientKeyshares }
|
|
481
481
|
});
|
|
482
|
-
return _tslib.__awaiter(this,
|
|
483
|
-
if (!accountAddress) {
|
|
482
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
483
|
+
if (!params.accountAddress) {
|
|
484
484
|
throw new Error('Account address is required');
|
|
485
485
|
}
|
|
486
486
|
// EVM-specific: set active account before exporting
|
|
487
|
-
this.setActiveAccount(accountAddress);
|
|
488
|
-
return _super.exportClientKeyshares.call(this,
|
|
487
|
+
this.setActiveAccount(params.accountAddress);
|
|
488
|
+
return _super.exportClientKeyshares.call(this, params);
|
|
489
489
|
});
|
|
490
490
|
}
|
|
491
491
|
// Chain-specific override for backupKeySharesToGoogleDrive - EVM needs to set active account first
|
|
492
|
-
backupKeySharesToGoogleDrive(
|
|
492
|
+
backupKeySharesToGoogleDrive(params) {
|
|
493
493
|
const _super = Object.create(null, {
|
|
494
494
|
backupKeySharesToGoogleDrive: { get: () => super.backupKeySharesToGoogleDrive }
|
|
495
495
|
});
|
|
496
|
-
return _tslib.__awaiter(this,
|
|
497
|
-
if (!accountAddress) {
|
|
496
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
497
|
+
if (!params.accountAddress) {
|
|
498
498
|
throw new Error('Account address is required');
|
|
499
499
|
}
|
|
500
500
|
// EVM-specific: set active account before backing up
|
|
501
|
-
this.setActiveAccount(accountAddress);
|
|
502
|
-
return _super.backupKeySharesToGoogleDrive.call(this,
|
|
503
|
-
accountAddress,
|
|
504
|
-
googleDriveAccessToken,
|
|
505
|
-
password,
|
|
506
|
-
});
|
|
501
|
+
this.setActiveAccount(params.accountAddress);
|
|
502
|
+
return _super.backupKeySharesToGoogleDrive.call(this, params);
|
|
507
503
|
});
|
|
508
504
|
}
|
|
509
505
|
// Chain-specific override for refreshWalletAccountShares - EVM needs to set active account first
|
|
510
|
-
refreshWalletAccountShares(
|
|
506
|
+
refreshWalletAccountShares(params) {
|
|
511
507
|
const _super = Object.create(null, {
|
|
512
508
|
refreshWalletAccountShares: { get: () => super.refreshWalletAccountShares }
|
|
513
509
|
});
|
|
514
|
-
return _tslib.__awaiter(this,
|
|
515
|
-
if (!accountAddress) {
|
|
510
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
511
|
+
if (!params.accountAddress) {
|
|
516
512
|
throw new Error('Account address is required');
|
|
517
513
|
}
|
|
518
514
|
// EVM-specific: set active account before refreshing
|
|
519
|
-
this.setActiveAccount(accountAddress);
|
|
520
|
-
return _super.refreshWalletAccountShares.call(this,
|
|
515
|
+
this.setActiveAccount(params.accountAddress);
|
|
516
|
+
return _super.refreshWalletAccountShares.call(this, params);
|
|
521
517
|
});
|
|
522
518
|
}
|
|
523
519
|
// Chain-specific override for reshareWalletAccountShares - EVM needs to set active account first
|
|
524
|
-
reshareWalletAccountShares(
|
|
520
|
+
reshareWalletAccountShares(params) {
|
|
525
521
|
const _super = Object.create(null, {
|
|
526
522
|
reshareWalletAccountShares: { get: () => super.reshareWalletAccountShares }
|
|
527
523
|
});
|
|
528
|
-
return _tslib.__awaiter(this,
|
|
529
|
-
if (!accountAddress) {
|
|
524
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
525
|
+
if (!params.accountAddress) {
|
|
530
526
|
throw new Error('Account address is required');
|
|
531
527
|
}
|
|
532
|
-
this.setActiveAccount(accountAddress);
|
|
533
|
-
return _super.reshareWalletAccountShares.call(this,
|
|
534
|
-
accountAddress,
|
|
535
|
-
password,
|
|
536
|
-
thresholdSignatureScheme,
|
|
537
|
-
});
|
|
528
|
+
this.setActiveAccount(params.accountAddress);
|
|
529
|
+
return _super.reshareWalletAccountShares.call(this, params);
|
|
538
530
|
});
|
|
539
531
|
}
|
|
540
532
|
// Chain-specific override for updatePassword - EVM needs to set active account first
|
|
541
|
-
updatePassword(
|
|
533
|
+
updatePassword(params) {
|
|
542
534
|
const _super = Object.create(null, {
|
|
543
535
|
updatePassword: { get: () => super.updatePassword }
|
|
544
536
|
});
|
|
545
|
-
return _tslib.__awaiter(this,
|
|
546
|
-
if (!accountAddress) {
|
|
537
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
538
|
+
if (!params.accountAddress) {
|
|
547
539
|
throw new Error('Account address is required');
|
|
548
540
|
}
|
|
549
541
|
// EVM-specific: set active account before updating password
|
|
550
|
-
this.setActiveAccount(accountAddress);
|
|
551
|
-
return _super.updatePassword.call(this,
|
|
552
|
-
accountAddress,
|
|
553
|
-
existingPassword,
|
|
554
|
-
newPassword,
|
|
555
|
-
});
|
|
542
|
+
this.setActiveAccount(params.accountAddress);
|
|
543
|
+
return _super.updatePassword.call(this, params);
|
|
556
544
|
});
|
|
557
545
|
}
|
|
558
546
|
createUiTransaction(from) {
|
|
@@ -5,7 +5,7 @@ import { Logger } from '@dynamic-labs/logger';
|
|
|
5
5
|
import { JwtVerifiedCredential, MFAAction, SignMessageContext, TokenScope } from '@dynamic-labs/sdk-api-core';
|
|
6
6
|
import { IUITransaction } from '@dynamic-labs/types';
|
|
7
7
|
import { WaasExportHandler } from '@dynamic-labs/waas';
|
|
8
|
-
import { IDynamicWaasConnector } from '@dynamic-labs/wallet-connector-core';
|
|
8
|
+
import { BackupKeySharesToGoogleDriveParams, ExportClientKeysharesParams, IDynamicWaasConnector, RefreshWalletAccountSharesParams, ReshareWalletAccountSharesParams, UpdatePasswordParams } from '@dynamic-labs/wallet-connector-core';
|
|
9
9
|
type EvmNetwork = EthereumWalletConnector['evmNetworks'][number];
|
|
10
10
|
interface JwtVerifiedCredentialWithSmartWalletRef extends JwtVerifiedCredential {
|
|
11
11
|
smartWalletRefId?: string;
|
|
@@ -76,12 +76,7 @@ declare const DynamicWaasEVMConnector_base: (abstract new (...args: any[]) => {
|
|
|
76
76
|
getWaasWalletClient(traceContext?: import("dist/packages/waas/utils/instrumentation").TraceContext | undefined, { forceRebuild }?: {
|
|
77
77
|
forceRebuild?: boolean | undefined;
|
|
78
78
|
} | undefined): Promise<import("@dynamic-labs-wallet/browser-wallet-client").DynamicWalletClient>;
|
|
79
|
-
createWalletAccount({ thresholdSignatureScheme, password, bitcoinConfig, businessAccountId, }?: {
|
|
80
|
-
thresholdSignatureScheme?: string | undefined;
|
|
81
|
-
password?: string | undefined;
|
|
82
|
-
bitcoinConfig?: import("@dynamic-labs-wallet/browser-wallet-client").BitcoinConfig | undefined;
|
|
83
|
-
businessAccountId?: string | undefined;
|
|
84
|
-
} | undefined): Promise<{
|
|
79
|
+
createWalletAccount({ thresholdSignatureScheme, password, bitcoinConfig, businessAccountId, }?: import("@dynamic-labs/wallet-connector-core").CreateWalletAccountParams | undefined): Promise<{
|
|
85
80
|
chainName: string;
|
|
86
81
|
accountAddress: string;
|
|
87
82
|
publicKeyHex: string;
|
|
@@ -101,14 +96,7 @@ declare const DynamicWaasEVMConnector_base: (abstract new (...args: any[]) => {
|
|
|
101
96
|
}): Promise<{
|
|
102
97
|
shareSetId: string;
|
|
103
98
|
}>;
|
|
104
|
-
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, password, }:
|
|
105
|
-
privateKey: string;
|
|
106
|
-
thresholdSignatureScheme?: string | undefined;
|
|
107
|
-
publicAddressCheck?: string | undefined;
|
|
108
|
-
addressType?: string | undefined;
|
|
109
|
-
legacyWalletId?: string | undefined;
|
|
110
|
-
password?: string | undefined;
|
|
111
|
-
}): Promise<void>;
|
|
99
|
+
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, password, isRawScalarImport, }: import("@dynamic-labs/wallet-connector-core").ImportPrivateKeyParams): Promise<void>;
|
|
112
100
|
migrateFromFireblocks({ deviceId, jwt, walletPassword, ncwStorage, expectedAddresses, coinTypes, password, }: {
|
|
113
101
|
deviceId: string;
|
|
114
102
|
jwt: string;
|
|
@@ -126,10 +114,7 @@ declare const DynamicWaasEVMConnector_base: (abstract new (...args: any[]) => {
|
|
|
126
114
|
getExportHandler(): {
|
|
127
115
|
clear: () => void;
|
|
128
116
|
};
|
|
129
|
-
exportClientKeyshares({ accountAddress, password, }:
|
|
130
|
-
accountAddress: string;
|
|
131
|
-
password?: string | undefined;
|
|
132
|
-
}): Promise<void>;
|
|
117
|
+
exportClientKeyshares({ accountAddress, password, }: ExportClientKeysharesParams): Promise<void>;
|
|
133
118
|
runBackupLifecycle({ provider, accountAddress, password, performBackup, }: {
|
|
134
119
|
provider: string;
|
|
135
120
|
accountAddress: string;
|
|
@@ -145,11 +130,7 @@ declare const DynamicWaasEVMConnector_base: (abstract new (...args: any[]) => {
|
|
|
145
130
|
};
|
|
146
131
|
}) => Promise<void>;
|
|
147
132
|
}): Promise<void>;
|
|
148
|
-
backupKeySharesToGoogleDrive({ accountAddress, password, googleDriveAccessToken, }:
|
|
149
|
-
accountAddress: string;
|
|
150
|
-
password?: string | undefined;
|
|
151
|
-
googleDriveAccessToken?: string | undefined;
|
|
152
|
-
}): Promise<void>;
|
|
133
|
+
backupKeySharesToGoogleDrive({ accountAddress, password, googleDriveAccessToken, }: BackupKeySharesToGoogleDriveParams): Promise<void>;
|
|
153
134
|
exportClientKeysharesFromGoogleDrive({ accountAddress, password, }: {
|
|
154
135
|
accountAddress: string;
|
|
155
136
|
password?: string | undefined;
|
|
@@ -163,24 +144,13 @@ declare const DynamicWaasEVMConnector_base: (abstract new (...args: any[]) => {
|
|
|
163
144
|
}): Promise<void>;
|
|
164
145
|
hideICloudSignIn(): Promise<void>;
|
|
165
146
|
isICloudAuthenticated(): Promise<boolean>;
|
|
166
|
-
refreshWalletAccountShares({ accountAddress, password, }:
|
|
167
|
-
|
|
168
|
-
password?: string | undefined;
|
|
169
|
-
}): Promise<void>;
|
|
170
|
-
reshareWalletAccountShares({ accountAddress, thresholdSignatureScheme, password, }: {
|
|
171
|
-
accountAddress: string;
|
|
172
|
-
thresholdSignatureScheme: string;
|
|
173
|
-
password?: string | undefined;
|
|
174
|
-
}): Promise<void>;
|
|
147
|
+
refreshWalletAccountShares({ accountAddress, password, }: RefreshWalletAccountSharesParams): Promise<void>;
|
|
148
|
+
reshareWalletAccountShares({ accountAddress, thresholdSignatureScheme, password, }: ReshareWalletAccountSharesParams): Promise<void>;
|
|
175
149
|
revokeDelegation({ accountAddress, password, }: {
|
|
176
150
|
accountAddress: string;
|
|
177
151
|
password?: string | undefined;
|
|
178
152
|
}): Promise<void>;
|
|
179
|
-
updatePassword({ accountAddress, existingPassword, newPassword, }:
|
|
180
|
-
accountAddress: string;
|
|
181
|
-
existingPassword?: string | undefined;
|
|
182
|
-
newPassword: string;
|
|
183
|
-
}): Promise<void>;
|
|
153
|
+
updatePassword({ accountAddress, existingPassword, newPassword, }: UpdatePasswordParams): Promise<void>;
|
|
184
154
|
setPassword({ accountAddress, newPassword, }: {
|
|
185
155
|
accountAddress: string;
|
|
186
156
|
newPassword: string;
|
|
@@ -304,29 +274,11 @@ export declare class DynamicWaasEVMConnector extends DynamicWaasEVMConnector_bas
|
|
|
304
274
|
getWalletClientByAddress({ accountAddress, }: {
|
|
305
275
|
accountAddress: string;
|
|
306
276
|
}): WalletClient<Transport, ViemChain, Account> | undefined;
|
|
307
|
-
exportClientKeyshares(
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
accountAddress: string;
|
|
313
|
-
password?: string;
|
|
314
|
-
googleDriveAccessToken?: string;
|
|
315
|
-
}): Promise<void>;
|
|
316
|
-
refreshWalletAccountShares({ accountAddress, password, }: {
|
|
317
|
-
accountAddress: string;
|
|
318
|
-
password?: string;
|
|
319
|
-
}): Promise<void>;
|
|
320
|
-
reshareWalletAccountShares({ accountAddress, password, thresholdSignatureScheme, }: {
|
|
321
|
-
accountAddress: string;
|
|
322
|
-
password?: string;
|
|
323
|
-
thresholdSignatureScheme: string;
|
|
324
|
-
}): Promise<void>;
|
|
325
|
-
updatePassword({ accountAddress, existingPassword, newPassword, }: {
|
|
326
|
-
accountAddress: string;
|
|
327
|
-
existingPassword: string;
|
|
328
|
-
newPassword: string;
|
|
329
|
-
}): Promise<void>;
|
|
277
|
+
exportClientKeyshares(params: ExportClientKeysharesParams): Promise<void>;
|
|
278
|
+
backupKeySharesToGoogleDrive(params: BackupKeySharesToGoogleDriveParams): Promise<void>;
|
|
279
|
+
refreshWalletAccountShares(params: RefreshWalletAccountSharesParams): Promise<void>;
|
|
280
|
+
reshareWalletAccountShares(params: ReshareWalletAccountSharesParams): Promise<void>;
|
|
281
|
+
updatePassword(params: UpdatePasswordParams): Promise<void>;
|
|
330
282
|
createUiTransaction(from: string): Promise<IUITransaction>;
|
|
331
283
|
getConnectedAccounts(): Promise<string[]>;
|
|
332
284
|
getAddress(): Promise<string>;
|
|
@@ -471,84 +471,72 @@ class DynamicWaasEVMConnector extends withDynamicWaas(EthereumWalletConnector) {
|
|
|
471
471
|
return this.getWalletClient();
|
|
472
472
|
}
|
|
473
473
|
// Chain-specific override for exportClientKeyshares - EVM needs to set active account first
|
|
474
|
-
exportClientKeyshares(
|
|
474
|
+
exportClientKeyshares(params) {
|
|
475
475
|
const _super = Object.create(null, {
|
|
476
476
|
exportClientKeyshares: { get: () => super.exportClientKeyshares }
|
|
477
477
|
});
|
|
478
|
-
return __awaiter(this,
|
|
479
|
-
if (!accountAddress) {
|
|
478
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
479
|
+
if (!params.accountAddress) {
|
|
480
480
|
throw new Error('Account address is required');
|
|
481
481
|
}
|
|
482
482
|
// EVM-specific: set active account before exporting
|
|
483
|
-
this.setActiveAccount(accountAddress);
|
|
484
|
-
return _super.exportClientKeyshares.call(this,
|
|
483
|
+
this.setActiveAccount(params.accountAddress);
|
|
484
|
+
return _super.exportClientKeyshares.call(this, params);
|
|
485
485
|
});
|
|
486
486
|
}
|
|
487
487
|
// Chain-specific override for backupKeySharesToGoogleDrive - EVM needs to set active account first
|
|
488
|
-
backupKeySharesToGoogleDrive(
|
|
488
|
+
backupKeySharesToGoogleDrive(params) {
|
|
489
489
|
const _super = Object.create(null, {
|
|
490
490
|
backupKeySharesToGoogleDrive: { get: () => super.backupKeySharesToGoogleDrive }
|
|
491
491
|
});
|
|
492
|
-
return __awaiter(this,
|
|
493
|
-
if (!accountAddress) {
|
|
492
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
493
|
+
if (!params.accountAddress) {
|
|
494
494
|
throw new Error('Account address is required');
|
|
495
495
|
}
|
|
496
496
|
// EVM-specific: set active account before backing up
|
|
497
|
-
this.setActiveAccount(accountAddress);
|
|
498
|
-
return _super.backupKeySharesToGoogleDrive.call(this,
|
|
499
|
-
accountAddress,
|
|
500
|
-
googleDriveAccessToken,
|
|
501
|
-
password,
|
|
502
|
-
});
|
|
497
|
+
this.setActiveAccount(params.accountAddress);
|
|
498
|
+
return _super.backupKeySharesToGoogleDrive.call(this, params);
|
|
503
499
|
});
|
|
504
500
|
}
|
|
505
501
|
// Chain-specific override for refreshWalletAccountShares - EVM needs to set active account first
|
|
506
|
-
refreshWalletAccountShares(
|
|
502
|
+
refreshWalletAccountShares(params) {
|
|
507
503
|
const _super = Object.create(null, {
|
|
508
504
|
refreshWalletAccountShares: { get: () => super.refreshWalletAccountShares }
|
|
509
505
|
});
|
|
510
|
-
return __awaiter(this,
|
|
511
|
-
if (!accountAddress) {
|
|
506
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
507
|
+
if (!params.accountAddress) {
|
|
512
508
|
throw new Error('Account address is required');
|
|
513
509
|
}
|
|
514
510
|
// EVM-specific: set active account before refreshing
|
|
515
|
-
this.setActiveAccount(accountAddress);
|
|
516
|
-
return _super.refreshWalletAccountShares.call(this,
|
|
511
|
+
this.setActiveAccount(params.accountAddress);
|
|
512
|
+
return _super.refreshWalletAccountShares.call(this, params);
|
|
517
513
|
});
|
|
518
514
|
}
|
|
519
515
|
// Chain-specific override for reshareWalletAccountShares - EVM needs to set active account first
|
|
520
|
-
reshareWalletAccountShares(
|
|
516
|
+
reshareWalletAccountShares(params) {
|
|
521
517
|
const _super = Object.create(null, {
|
|
522
518
|
reshareWalletAccountShares: { get: () => super.reshareWalletAccountShares }
|
|
523
519
|
});
|
|
524
|
-
return __awaiter(this,
|
|
525
|
-
if (!accountAddress) {
|
|
520
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
521
|
+
if (!params.accountAddress) {
|
|
526
522
|
throw new Error('Account address is required');
|
|
527
523
|
}
|
|
528
|
-
this.setActiveAccount(accountAddress);
|
|
529
|
-
return _super.reshareWalletAccountShares.call(this,
|
|
530
|
-
accountAddress,
|
|
531
|
-
password,
|
|
532
|
-
thresholdSignatureScheme,
|
|
533
|
-
});
|
|
524
|
+
this.setActiveAccount(params.accountAddress);
|
|
525
|
+
return _super.reshareWalletAccountShares.call(this, params);
|
|
534
526
|
});
|
|
535
527
|
}
|
|
536
528
|
// Chain-specific override for updatePassword - EVM needs to set active account first
|
|
537
|
-
updatePassword(
|
|
529
|
+
updatePassword(params) {
|
|
538
530
|
const _super = Object.create(null, {
|
|
539
531
|
updatePassword: { get: () => super.updatePassword }
|
|
540
532
|
});
|
|
541
|
-
return __awaiter(this,
|
|
542
|
-
if (!accountAddress) {
|
|
533
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
534
|
+
if (!params.accountAddress) {
|
|
543
535
|
throw new Error('Account address is required');
|
|
544
536
|
}
|
|
545
537
|
// EVM-specific: set active account before updating password
|
|
546
|
-
this.setActiveAccount(accountAddress);
|
|
547
|
-
return _super.updatePassword.call(this,
|
|
548
|
-
accountAddress,
|
|
549
|
-
existingPassword,
|
|
550
|
-
newPassword,
|
|
551
|
-
});
|
|
538
|
+
this.setActiveAccount(params.accountAddress);
|
|
539
|
+
return _super.updatePassword.call(this, params);
|
|
552
540
|
});
|
|
553
541
|
}
|
|
554
542
|
createUiTransaction(from) {
|