@dynamic-labs-wallet/browser-wallet-client 0.0.82 → 0.0.84
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/index.cjs.js +30 -20
- package/index.esm.js +30 -20
- package/package.json +2 -2
- package/src/client/client.d.ts +12 -10
- package/src/client/client.d.ts.map +1 -1
package/index.cjs.js
CHANGED
|
@@ -321,7 +321,7 @@ class DynamicWalletClient {
|
|
|
321
321
|
signedSessionId
|
|
322
322
|
});
|
|
323
323
|
}
|
|
324
|
-
async createWalletAccount({ thresholdSignatureScheme, password = undefined }) {
|
|
324
|
+
async createWalletAccount({ thresholdSignatureScheme, password = undefined, signedSessionId }) {
|
|
325
325
|
await this.initializeMessageTransport();
|
|
326
326
|
if (!this.iframeMessageHandler) {
|
|
327
327
|
throw new Error('Iframe message handler not initialized');
|
|
@@ -329,7 +329,8 @@ class DynamicWalletClient {
|
|
|
329
329
|
return this.iframeMessageHandler.createWalletAccount({
|
|
330
330
|
chainName: this.chainName,
|
|
331
331
|
thresholdSignatureScheme,
|
|
332
|
-
password
|
|
332
|
+
password,
|
|
333
|
+
signedSessionId
|
|
333
334
|
});
|
|
334
335
|
}
|
|
335
336
|
async requiresPasswordForOperation({ accountAddress, walletOperation = core$1.WalletOperation.REACH_THRESHOLD }) {
|
|
@@ -353,7 +354,7 @@ class DynamicWalletClient {
|
|
|
353
354
|
accountAddress
|
|
354
355
|
});
|
|
355
356
|
}
|
|
356
|
-
async signMessage({ message, accountAddress, password = undefined }) {
|
|
357
|
+
async signMessage({ message, accountAddress, password = undefined, signedSessionId }) {
|
|
357
358
|
await this.initializeMessageTransport();
|
|
358
359
|
if (!this.iframeMessageHandler) {
|
|
359
360
|
throw new Error('Iframe message handler not initialized');
|
|
@@ -362,10 +363,11 @@ class DynamicWalletClient {
|
|
|
362
363
|
chainName: this.chainName,
|
|
363
364
|
message,
|
|
364
365
|
accountAddress,
|
|
365
|
-
password
|
|
366
|
+
password,
|
|
367
|
+
signedSessionId
|
|
366
368
|
});
|
|
367
369
|
}
|
|
368
|
-
async signRawMessage({ message, accountAddress, password = undefined }) {
|
|
370
|
+
async signRawMessage({ message, accountAddress, password = undefined, signedSessionId }) {
|
|
369
371
|
await this.initializeMessageTransport();
|
|
370
372
|
if (!this.iframeMessageHandler) {
|
|
371
373
|
throw new Error('Iframe message handler not initialized');
|
|
@@ -374,7 +376,8 @@ class DynamicWalletClient {
|
|
|
374
376
|
chainName: this.chainName,
|
|
375
377
|
message,
|
|
376
378
|
accountAddress,
|
|
377
|
-
password
|
|
379
|
+
password,
|
|
380
|
+
signedSessionId
|
|
378
381
|
});
|
|
379
382
|
}
|
|
380
383
|
/**
|
|
@@ -387,7 +390,7 @@ class DynamicWalletClient {
|
|
|
387
390
|
* SUI:
|
|
388
391
|
* const txBytes = await txb.build({ client });
|
|
389
392
|
* const txString = Buffer.from(txBytes).toString("hex");
|
|
390
|
-
*/ async signTransaction({ senderAddress, transaction, password = undefined }) {
|
|
393
|
+
*/ async signTransaction({ senderAddress, transaction, password = undefined, signedSessionId }) {
|
|
391
394
|
await this.initializeMessageTransport();
|
|
392
395
|
if (!this.iframeMessageHandler) {
|
|
393
396
|
throw new Error('Iframe message handler not initialized');
|
|
@@ -396,10 +399,11 @@ class DynamicWalletClient {
|
|
|
396
399
|
chainName: this.chainName,
|
|
397
400
|
senderAddress,
|
|
398
401
|
transaction,
|
|
399
|
-
password
|
|
402
|
+
password,
|
|
403
|
+
signedSessionId
|
|
400
404
|
});
|
|
401
405
|
}
|
|
402
|
-
async backupKeySharesToGoogleDrive({ accountAddress, password = undefined }) {
|
|
406
|
+
async backupKeySharesToGoogleDrive({ accountAddress, password = undefined, signedSessionId }) {
|
|
403
407
|
await this.initializeMessageTransport();
|
|
404
408
|
if (!this.iframeMessageHandler) {
|
|
405
409
|
throw new Error('Iframe message handler not initialized');
|
|
@@ -407,10 +411,11 @@ class DynamicWalletClient {
|
|
|
407
411
|
return this.iframeMessageHandler.backupKeySharesToGoogleDrive({
|
|
408
412
|
chainName: this.chainName,
|
|
409
413
|
accountAddress,
|
|
410
|
-
password
|
|
414
|
+
password,
|
|
415
|
+
signedSessionId
|
|
411
416
|
});
|
|
412
417
|
}
|
|
413
|
-
async restoreBackupFromGoogleDrive({ accountAddress, displayContainer, password }) {
|
|
418
|
+
async restoreBackupFromGoogleDrive({ accountAddress, displayContainer, password, signedSessionId }) {
|
|
414
419
|
const { iframeDisplay } = await this.initializeIframeDisplayForContainer({
|
|
415
420
|
container: displayContainer
|
|
416
421
|
});
|
|
@@ -420,10 +425,11 @@ class DynamicWalletClient {
|
|
|
420
425
|
return iframeDisplay.restoreBackupFromGoogleDrive({
|
|
421
426
|
chainName: this.chainName,
|
|
422
427
|
accountAddress,
|
|
423
|
-
password
|
|
428
|
+
password,
|
|
429
|
+
signedSessionId
|
|
424
430
|
});
|
|
425
431
|
}
|
|
426
|
-
async refreshWalletAccountShares({ accountAddress, password }) {
|
|
432
|
+
async refreshWalletAccountShares({ accountAddress, password, signedSessionId }) {
|
|
427
433
|
await this.initializeMessageTransport();
|
|
428
434
|
if (!this.iframeMessageHandler) {
|
|
429
435
|
throw new Error('Iframe message handler not initialized');
|
|
@@ -431,10 +437,11 @@ class DynamicWalletClient {
|
|
|
431
437
|
return this.iframeMessageHandler.refreshWalletAccountShares({
|
|
432
438
|
chainName: this.chainName,
|
|
433
439
|
accountAddress: accountAddress,
|
|
434
|
-
password: password
|
|
440
|
+
password: password,
|
|
441
|
+
signedSessionId
|
|
435
442
|
});
|
|
436
443
|
}
|
|
437
|
-
async reshare({ accountAddress, oldThresholdSignatureScheme, newThresholdSignatureScheme, password }) {
|
|
444
|
+
async reshare({ accountAddress, oldThresholdSignatureScheme, newThresholdSignatureScheme, password, signedSessionId }) {
|
|
438
445
|
await this.initializeMessageTransport();
|
|
439
446
|
if (!this.iframeMessageHandler) {
|
|
440
447
|
throw new Error('Iframe message handler not initialized');
|
|
@@ -444,10 +451,11 @@ class DynamicWalletClient {
|
|
|
444
451
|
accountAddress,
|
|
445
452
|
oldThresholdSignatureScheme,
|
|
446
453
|
newThresholdSignatureScheme,
|
|
447
|
-
password
|
|
454
|
+
password,
|
|
455
|
+
signedSessionId
|
|
448
456
|
});
|
|
449
457
|
}
|
|
450
|
-
async exportPrivateKey({ accountAddress, displayContainer, password }) {
|
|
458
|
+
async exportPrivateKey({ accountAddress, displayContainer, password, signedSessionId }) {
|
|
451
459
|
const { iframeDisplay } = await this.initializeIframeDisplayForContainer({
|
|
452
460
|
container: displayContainer
|
|
453
461
|
});
|
|
@@ -457,7 +465,8 @@ class DynamicWalletClient {
|
|
|
457
465
|
return iframeDisplay.exportPrivateKey({
|
|
458
466
|
chainName: this.chainName,
|
|
459
467
|
accountAddress,
|
|
460
|
-
password
|
|
468
|
+
password,
|
|
469
|
+
signedSessionId
|
|
461
470
|
});
|
|
462
471
|
}
|
|
463
472
|
async verifyPassword({ accountAddress, password, walletOperation = core$1.WalletOperation.NO_OPERATION, signedSessionId }) {
|
|
@@ -473,7 +482,7 @@ class DynamicWalletClient {
|
|
|
473
482
|
signedSessionId
|
|
474
483
|
});
|
|
475
484
|
}
|
|
476
|
-
async updatePassword({ accountAddress, existingPassword, newPassword }) {
|
|
485
|
+
async updatePassword({ accountAddress, existingPassword, newPassword, signedSessionId }) {
|
|
477
486
|
await this.initializeMessageTransport();
|
|
478
487
|
if (!this.iframeMessageHandler) {
|
|
479
488
|
throw new Error('Iframe message handler not initialized');
|
|
@@ -482,7 +491,8 @@ class DynamicWalletClient {
|
|
|
482
491
|
chainName: this.chainName,
|
|
483
492
|
accountAddress,
|
|
484
493
|
existingPassword,
|
|
485
|
-
newPassword
|
|
494
|
+
newPassword,
|
|
495
|
+
signedSessionId
|
|
486
496
|
});
|
|
487
497
|
}
|
|
488
498
|
async importPrivateKey({ privateKey, thresholdSignatureScheme }) {
|
package/index.esm.js
CHANGED
|
@@ -320,7 +320,7 @@ class DynamicWalletClient {
|
|
|
320
320
|
signedSessionId
|
|
321
321
|
});
|
|
322
322
|
}
|
|
323
|
-
async createWalletAccount({ thresholdSignatureScheme, password = undefined }) {
|
|
323
|
+
async createWalletAccount({ thresholdSignatureScheme, password = undefined, signedSessionId }) {
|
|
324
324
|
await this.initializeMessageTransport();
|
|
325
325
|
if (!this.iframeMessageHandler) {
|
|
326
326
|
throw new Error('Iframe message handler not initialized');
|
|
@@ -328,7 +328,8 @@ class DynamicWalletClient {
|
|
|
328
328
|
return this.iframeMessageHandler.createWalletAccount({
|
|
329
329
|
chainName: this.chainName,
|
|
330
330
|
thresholdSignatureScheme,
|
|
331
|
-
password
|
|
331
|
+
password,
|
|
332
|
+
signedSessionId
|
|
332
333
|
});
|
|
333
334
|
}
|
|
334
335
|
async requiresPasswordForOperation({ accountAddress, walletOperation = WalletOperation.REACH_THRESHOLD }) {
|
|
@@ -352,7 +353,7 @@ class DynamicWalletClient {
|
|
|
352
353
|
accountAddress
|
|
353
354
|
});
|
|
354
355
|
}
|
|
355
|
-
async signMessage({ message, accountAddress, password = undefined }) {
|
|
356
|
+
async signMessage({ message, accountAddress, password = undefined, signedSessionId }) {
|
|
356
357
|
await this.initializeMessageTransport();
|
|
357
358
|
if (!this.iframeMessageHandler) {
|
|
358
359
|
throw new Error('Iframe message handler not initialized');
|
|
@@ -361,10 +362,11 @@ class DynamicWalletClient {
|
|
|
361
362
|
chainName: this.chainName,
|
|
362
363
|
message,
|
|
363
364
|
accountAddress,
|
|
364
|
-
password
|
|
365
|
+
password,
|
|
366
|
+
signedSessionId
|
|
365
367
|
});
|
|
366
368
|
}
|
|
367
|
-
async signRawMessage({ message, accountAddress, password = undefined }) {
|
|
369
|
+
async signRawMessage({ message, accountAddress, password = undefined, signedSessionId }) {
|
|
368
370
|
await this.initializeMessageTransport();
|
|
369
371
|
if (!this.iframeMessageHandler) {
|
|
370
372
|
throw new Error('Iframe message handler not initialized');
|
|
@@ -373,7 +375,8 @@ class DynamicWalletClient {
|
|
|
373
375
|
chainName: this.chainName,
|
|
374
376
|
message,
|
|
375
377
|
accountAddress,
|
|
376
|
-
password
|
|
378
|
+
password,
|
|
379
|
+
signedSessionId
|
|
377
380
|
});
|
|
378
381
|
}
|
|
379
382
|
/**
|
|
@@ -386,7 +389,7 @@ class DynamicWalletClient {
|
|
|
386
389
|
* SUI:
|
|
387
390
|
* const txBytes = await txb.build({ client });
|
|
388
391
|
* const txString = Buffer.from(txBytes).toString("hex");
|
|
389
|
-
*/ async signTransaction({ senderAddress, transaction, password = undefined }) {
|
|
392
|
+
*/ async signTransaction({ senderAddress, transaction, password = undefined, signedSessionId }) {
|
|
390
393
|
await this.initializeMessageTransport();
|
|
391
394
|
if (!this.iframeMessageHandler) {
|
|
392
395
|
throw new Error('Iframe message handler not initialized');
|
|
@@ -395,10 +398,11 @@ class DynamicWalletClient {
|
|
|
395
398
|
chainName: this.chainName,
|
|
396
399
|
senderAddress,
|
|
397
400
|
transaction,
|
|
398
|
-
password
|
|
401
|
+
password,
|
|
402
|
+
signedSessionId
|
|
399
403
|
});
|
|
400
404
|
}
|
|
401
|
-
async backupKeySharesToGoogleDrive({ accountAddress, password = undefined }) {
|
|
405
|
+
async backupKeySharesToGoogleDrive({ accountAddress, password = undefined, signedSessionId }) {
|
|
402
406
|
await this.initializeMessageTransport();
|
|
403
407
|
if (!this.iframeMessageHandler) {
|
|
404
408
|
throw new Error('Iframe message handler not initialized');
|
|
@@ -406,10 +410,11 @@ class DynamicWalletClient {
|
|
|
406
410
|
return this.iframeMessageHandler.backupKeySharesToGoogleDrive({
|
|
407
411
|
chainName: this.chainName,
|
|
408
412
|
accountAddress,
|
|
409
|
-
password
|
|
413
|
+
password,
|
|
414
|
+
signedSessionId
|
|
410
415
|
});
|
|
411
416
|
}
|
|
412
|
-
async restoreBackupFromGoogleDrive({ accountAddress, displayContainer, password }) {
|
|
417
|
+
async restoreBackupFromGoogleDrive({ accountAddress, displayContainer, password, signedSessionId }) {
|
|
413
418
|
const { iframeDisplay } = await this.initializeIframeDisplayForContainer({
|
|
414
419
|
container: displayContainer
|
|
415
420
|
});
|
|
@@ -419,10 +424,11 @@ class DynamicWalletClient {
|
|
|
419
424
|
return iframeDisplay.restoreBackupFromGoogleDrive({
|
|
420
425
|
chainName: this.chainName,
|
|
421
426
|
accountAddress,
|
|
422
|
-
password
|
|
427
|
+
password,
|
|
428
|
+
signedSessionId
|
|
423
429
|
});
|
|
424
430
|
}
|
|
425
|
-
async refreshWalletAccountShares({ accountAddress, password }) {
|
|
431
|
+
async refreshWalletAccountShares({ accountAddress, password, signedSessionId }) {
|
|
426
432
|
await this.initializeMessageTransport();
|
|
427
433
|
if (!this.iframeMessageHandler) {
|
|
428
434
|
throw new Error('Iframe message handler not initialized');
|
|
@@ -430,10 +436,11 @@ class DynamicWalletClient {
|
|
|
430
436
|
return this.iframeMessageHandler.refreshWalletAccountShares({
|
|
431
437
|
chainName: this.chainName,
|
|
432
438
|
accountAddress: accountAddress,
|
|
433
|
-
password: password
|
|
439
|
+
password: password,
|
|
440
|
+
signedSessionId
|
|
434
441
|
});
|
|
435
442
|
}
|
|
436
|
-
async reshare({ accountAddress, oldThresholdSignatureScheme, newThresholdSignatureScheme, password }) {
|
|
443
|
+
async reshare({ accountAddress, oldThresholdSignatureScheme, newThresholdSignatureScheme, password, signedSessionId }) {
|
|
437
444
|
await this.initializeMessageTransport();
|
|
438
445
|
if (!this.iframeMessageHandler) {
|
|
439
446
|
throw new Error('Iframe message handler not initialized');
|
|
@@ -443,10 +450,11 @@ class DynamicWalletClient {
|
|
|
443
450
|
accountAddress,
|
|
444
451
|
oldThresholdSignatureScheme,
|
|
445
452
|
newThresholdSignatureScheme,
|
|
446
|
-
password
|
|
453
|
+
password,
|
|
454
|
+
signedSessionId
|
|
447
455
|
});
|
|
448
456
|
}
|
|
449
|
-
async exportPrivateKey({ accountAddress, displayContainer, password }) {
|
|
457
|
+
async exportPrivateKey({ accountAddress, displayContainer, password, signedSessionId }) {
|
|
450
458
|
const { iframeDisplay } = await this.initializeIframeDisplayForContainer({
|
|
451
459
|
container: displayContainer
|
|
452
460
|
});
|
|
@@ -456,7 +464,8 @@ class DynamicWalletClient {
|
|
|
456
464
|
return iframeDisplay.exportPrivateKey({
|
|
457
465
|
chainName: this.chainName,
|
|
458
466
|
accountAddress,
|
|
459
|
-
password
|
|
467
|
+
password,
|
|
468
|
+
signedSessionId
|
|
460
469
|
});
|
|
461
470
|
}
|
|
462
471
|
async verifyPassword({ accountAddress, password, walletOperation = WalletOperation.NO_OPERATION, signedSessionId }) {
|
|
@@ -472,7 +481,7 @@ class DynamicWalletClient {
|
|
|
472
481
|
signedSessionId
|
|
473
482
|
});
|
|
474
483
|
}
|
|
475
|
-
async updatePassword({ accountAddress, existingPassword, newPassword }) {
|
|
484
|
+
async updatePassword({ accountAddress, existingPassword, newPassword, signedSessionId }) {
|
|
476
485
|
await this.initializeMessageTransport();
|
|
477
486
|
if (!this.iframeMessageHandler) {
|
|
478
487
|
throw new Error('Iframe message handler not initialized');
|
|
@@ -481,7 +490,8 @@ class DynamicWalletClient {
|
|
|
481
490
|
chainName: this.chainName,
|
|
482
491
|
accountAddress,
|
|
483
492
|
existingPassword,
|
|
484
|
-
newPassword
|
|
493
|
+
newPassword,
|
|
494
|
+
signedSessionId
|
|
485
495
|
});
|
|
486
496
|
}
|
|
487
497
|
async importPrivateKey({ privateKey, thresholdSignatureScheme }) {
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs-wallet/browser-wallet-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.84",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@dynamic-labs-wallet/core": "0.0.
|
|
6
|
+
"@dynamic-labs-wallet/core": "0.0.84",
|
|
7
7
|
"@dynamic-labs/message-transport": "^4.9.9",
|
|
8
8
|
"@dynamic-labs/logger": "^4.9.9",
|
|
9
9
|
"@noble/hashes": "1.7.1"
|
package/src/client/client.d.ts
CHANGED
|
@@ -75,11 +75,11 @@ export declare class DynamicWalletClient {
|
|
|
75
75
|
walletOperation?: WalletOperation;
|
|
76
76
|
signedSessionId?: string;
|
|
77
77
|
}): Promise<GetWalletResponse>;
|
|
78
|
-
createWalletAccount({ thresholdSignatureScheme, password, }: Omit<CreateWalletAccountRequest, 'chainName'>): Promise<CreateWalletAccountResponse>;
|
|
78
|
+
createWalletAccount({ thresholdSignatureScheme, password, signedSessionId, }: Omit<CreateWalletAccountRequest, 'chainName'>): Promise<CreateWalletAccountResponse>;
|
|
79
79
|
requiresPasswordForOperation({ accountAddress, walletOperation, }: Omit<RequiresPasswordForOperationRequest, 'chainName'>): Promise<boolean>;
|
|
80
80
|
isPasswordEncrypted({ accountAddress, }: Omit<IsPasswordEncryptedRequest, 'chainName'>): Promise<boolean>;
|
|
81
|
-
signMessage({ message, accountAddress, password, }: Omit<SignMessageRequest, 'chainName'>): Promise<string>;
|
|
82
|
-
signRawMessage({ message, accountAddress, password, }: Omit<SignRawMessageRequest, 'chainName'>): Promise<string>;
|
|
81
|
+
signMessage({ message, accountAddress, password, signedSessionId, }: Omit<SignMessageRequest, 'chainName'>): Promise<string>;
|
|
82
|
+
signRawMessage({ message, accountAddress, password, signedSessionId, }: Omit<SignRawMessageRequest, 'chainName'>): Promise<string>;
|
|
83
83
|
/**
|
|
84
84
|
* Signs a transaction and returns the signature, @transaction is a string of the serialized transaction
|
|
85
85
|
* EVM:
|
|
@@ -91,22 +91,24 @@ export declare class DynamicWalletClient {
|
|
|
91
91
|
* const txBytes = await txb.build({ client });
|
|
92
92
|
* const txString = Buffer.from(txBytes).toString("hex");
|
|
93
93
|
*/
|
|
94
|
-
signTransaction({ senderAddress, transaction, password, }: Omit<SignTransactionRequest, 'chainName'>): Promise<string>;
|
|
95
|
-
backupKeySharesToGoogleDrive({ accountAddress, password, }: Omit<BackupKeySharesToGoogleDriveRequest, 'chainName'>): Promise<void>;
|
|
96
|
-
restoreBackupFromGoogleDrive({ accountAddress, displayContainer, password, }: {
|
|
94
|
+
signTransaction({ senderAddress, transaction, password, signedSessionId, }: Omit<SignTransactionRequest, 'chainName'>): Promise<string>;
|
|
95
|
+
backupKeySharesToGoogleDrive({ accountAddress, password, signedSessionId, }: Omit<BackupKeySharesToGoogleDriveRequest, 'chainName'>): Promise<void>;
|
|
96
|
+
restoreBackupFromGoogleDrive({ accountAddress, displayContainer, password, signedSessionId, }: {
|
|
97
97
|
accountAddress: string;
|
|
98
98
|
displayContainer: HTMLElement;
|
|
99
99
|
password?: string;
|
|
100
|
+
signedSessionId?: string;
|
|
100
101
|
}): Promise<void>;
|
|
101
|
-
refreshWalletAccountShares({ accountAddress, password, }: Omit<RefreshWalletAccountSharesRequest, 'chainName'>): Promise<void>;
|
|
102
|
-
reshare({ accountAddress, oldThresholdSignatureScheme, newThresholdSignatureScheme, password, }: Omit<ReshareRequest, 'chainName'>): Promise<void>;
|
|
103
|
-
exportPrivateKey({ accountAddress, displayContainer, password, }: {
|
|
102
|
+
refreshWalletAccountShares({ accountAddress, password, signedSessionId, }: Omit<RefreshWalletAccountSharesRequest, 'chainName'>): Promise<void>;
|
|
103
|
+
reshare({ accountAddress, oldThresholdSignatureScheme, newThresholdSignatureScheme, password, signedSessionId, }: Omit<ReshareRequest, 'chainName'>): Promise<void>;
|
|
104
|
+
exportPrivateKey({ accountAddress, displayContainer, password, signedSessionId, }: {
|
|
104
105
|
accountAddress: string;
|
|
105
106
|
displayContainer: HTMLElement;
|
|
106
107
|
password?: string;
|
|
108
|
+
signedSessionId?: string;
|
|
107
109
|
}): Promise<void>;
|
|
108
110
|
verifyPassword({ accountAddress, password, walletOperation, signedSessionId, }: Omit<VerifyPasswordRequest, 'chainName'>): Promise<void>;
|
|
109
|
-
updatePassword({ accountAddress, existingPassword, newPassword, }: Omit<UpdatePasswordRequest, 'chainName'>): Promise<void>;
|
|
111
|
+
updatePassword({ accountAddress, existingPassword, newPassword, signedSessionId, }: Omit<UpdatePasswordRequest, 'chainName'>): Promise<void>;
|
|
110
112
|
importPrivateKey({ privateKey, thresholdSignatureScheme, }: Omit<ImportPrivateKeyRequest, 'chainName'>): Promise<CreateWalletAccountResponse>;
|
|
111
113
|
exportClientKeyshares({ accountAddress, password, signedSessionId, }: Omit<ExportClientKeysharesRequest, 'chainName'>): Promise<void>;
|
|
112
114
|
offlineExportPrivateKey({ keyShares, derivationPath, }: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,iCAAiC,EACvC,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE,OAAO,KAAK,EACV,iBAAiB,EACjB,2BAA2B,EAC3B,mCAAmC,EACnC,kBAAkB,EAClB,0BAA0B,EAC1B,mCAAmC,EACnC,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,4BAA4B,EAC5B,+BAA+B,EAC/B,qBAAqB,EACrB,0BAA0B,EAC1B,sBAAsB,EACtB,iCAAiC,EACjC,cAAc,EACf,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAGL,eAAe,EAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAE7E,qBAAa,mBAAmB;IAC9B,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,MAAM,wCAAU;IACnB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAQ;IACjC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAQ;IACnC,aAAa,EAAE,MAAM,CAAC;IAC7B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,MAAM,CAAC;IAClC,SAAS,CAAC,gBAAgB,EAAE,iCAAiC,G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