@dynamic-labs/waas-evm 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/DynamicWaasEVMConnector.cjs +25 -37
- package/src/DynamicWaasEVMConnector.d.ts +13 -62
- package/src/DynamicWaasEVMConnector.js +25 -37
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/waas-evm",
|
|
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",
|
|
@@ -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.4.
|
|
24
|
-
"@dynamic-labs/ethereum-core": "5.4.
|
|
25
|
-
"@dynamic-labs/logger": "5.4.
|
|
26
|
-
"@dynamic-labs/types": "5.4.
|
|
27
|
-
"@dynamic-labs/utils": "5.4.
|
|
28
|
-
"@dynamic-labs/waas": "5.4.
|
|
29
|
-
"@dynamic-labs/wallet-connector-core": "5.4.
|
|
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,15 +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, isRawScalarImport, }:
|
|
105
|
-
privateKey: string;
|
|
106
|
-
thresholdSignatureScheme?: string | undefined;
|
|
107
|
-
publicAddressCheck?: string | undefined;
|
|
108
|
-
addressType?: string | undefined;
|
|
109
|
-
legacyWalletId?: string | undefined;
|
|
110
|
-
password?: string | undefined;
|
|
111
|
-
isRawScalarImport?: boolean | undefined;
|
|
112
|
-
}): Promise<void>;
|
|
99
|
+
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, password, isRawScalarImport, }: import("@dynamic-labs/wallet-connector-core").ImportPrivateKeyParams): Promise<void>;
|
|
113
100
|
migrateFromFireblocks({ deviceId, jwt, walletPassword, ncwStorage, expectedAddresses, coinTypes, password, }: {
|
|
114
101
|
deviceId: string;
|
|
115
102
|
jwt: string;
|
|
@@ -127,10 +114,7 @@ declare const DynamicWaasEVMConnector_base: (abstract new (...args: any[]) => {
|
|
|
127
114
|
getExportHandler(): {
|
|
128
115
|
clear: () => void;
|
|
129
116
|
};
|
|
130
|
-
exportClientKeyshares({ accountAddress, password, }:
|
|
131
|
-
accountAddress: string;
|
|
132
|
-
password?: string | undefined;
|
|
133
|
-
}): Promise<void>;
|
|
117
|
+
exportClientKeyshares({ accountAddress, password, }: ExportClientKeysharesParams): Promise<void>;
|
|
134
118
|
runBackupLifecycle({ provider, accountAddress, password, performBackup, }: {
|
|
135
119
|
provider: string;
|
|
136
120
|
accountAddress: string;
|
|
@@ -146,11 +130,7 @@ declare const DynamicWaasEVMConnector_base: (abstract new (...args: any[]) => {
|
|
|
146
130
|
};
|
|
147
131
|
}) => Promise<void>;
|
|
148
132
|
}): Promise<void>;
|
|
149
|
-
backupKeySharesToGoogleDrive({ accountAddress, password, googleDriveAccessToken, }:
|
|
150
|
-
accountAddress: string;
|
|
151
|
-
password?: string | undefined;
|
|
152
|
-
googleDriveAccessToken?: string | undefined;
|
|
153
|
-
}): Promise<void>;
|
|
133
|
+
backupKeySharesToGoogleDrive({ accountAddress, password, googleDriveAccessToken, }: BackupKeySharesToGoogleDriveParams): Promise<void>;
|
|
154
134
|
exportClientKeysharesFromGoogleDrive({ accountAddress, password, }: {
|
|
155
135
|
accountAddress: string;
|
|
156
136
|
password?: string | undefined;
|
|
@@ -164,24 +144,13 @@ declare const DynamicWaasEVMConnector_base: (abstract new (...args: any[]) => {
|
|
|
164
144
|
}): Promise<void>;
|
|
165
145
|
hideICloudSignIn(): Promise<void>;
|
|
166
146
|
isICloudAuthenticated(): Promise<boolean>;
|
|
167
|
-
refreshWalletAccountShares({ accountAddress, password, }:
|
|
168
|
-
|
|
169
|
-
password?: string | undefined;
|
|
170
|
-
}): Promise<void>;
|
|
171
|
-
reshareWalletAccountShares({ accountAddress, thresholdSignatureScheme, password, }: {
|
|
172
|
-
accountAddress: string;
|
|
173
|
-
thresholdSignatureScheme: string;
|
|
174
|
-
password?: string | undefined;
|
|
175
|
-
}): Promise<void>;
|
|
147
|
+
refreshWalletAccountShares({ accountAddress, password, }: RefreshWalletAccountSharesParams): Promise<void>;
|
|
148
|
+
reshareWalletAccountShares({ accountAddress, thresholdSignatureScheme, password, }: ReshareWalletAccountSharesParams): Promise<void>;
|
|
176
149
|
revokeDelegation({ accountAddress, password, }: {
|
|
177
150
|
accountAddress: string;
|
|
178
151
|
password?: string | undefined;
|
|
179
152
|
}): Promise<void>;
|
|
180
|
-
updatePassword({ accountAddress, existingPassword, newPassword, }:
|
|
181
|
-
accountAddress: string;
|
|
182
|
-
existingPassword?: string | undefined;
|
|
183
|
-
newPassword: string;
|
|
184
|
-
}): Promise<void>;
|
|
153
|
+
updatePassword({ accountAddress, existingPassword, newPassword, }: UpdatePasswordParams): Promise<void>;
|
|
185
154
|
setPassword({ accountAddress, newPassword, }: {
|
|
186
155
|
accountAddress: string;
|
|
187
156
|
newPassword: string;
|
|
@@ -305,29 +274,11 @@ export declare class DynamicWaasEVMConnector extends DynamicWaasEVMConnector_bas
|
|
|
305
274
|
getWalletClientByAddress({ accountAddress, }: {
|
|
306
275
|
accountAddress: string;
|
|
307
276
|
}): WalletClient<Transport, ViemChain, Account> | undefined;
|
|
308
|
-
exportClientKeyshares(
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
accountAddress: string;
|
|
314
|
-
password?: string;
|
|
315
|
-
googleDriveAccessToken?: string;
|
|
316
|
-
}): Promise<void>;
|
|
317
|
-
refreshWalletAccountShares({ accountAddress, password, }: {
|
|
318
|
-
accountAddress: string;
|
|
319
|
-
password?: string;
|
|
320
|
-
}): Promise<void>;
|
|
321
|
-
reshareWalletAccountShares({ accountAddress, password, thresholdSignatureScheme, }: {
|
|
322
|
-
accountAddress: string;
|
|
323
|
-
password?: string;
|
|
324
|
-
thresholdSignatureScheme: string;
|
|
325
|
-
}): Promise<void>;
|
|
326
|
-
updatePassword({ accountAddress, existingPassword, newPassword, }: {
|
|
327
|
-
accountAddress: string;
|
|
328
|
-
existingPassword: string;
|
|
329
|
-
newPassword: string;
|
|
330
|
-
}): 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>;
|
|
331
282
|
createUiTransaction(from: string): Promise<IUITransaction>;
|
|
332
283
|
getConnectedAccounts(): Promise<string[]>;
|
|
333
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) {
|