@dynamic-labs-wallet/browser 0.0.52 → 0.0.54

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 CHANGED
@@ -416,7 +416,6 @@ const setupMessageTransportBridge = (messageTransport$1, iframe, iframeOrigin)=>
416
416
  // Forward the message to webview via postMessage
417
417
  if (message.origin === 'host') {
418
418
  var _iframe_contentWindow;
419
- logger.debug(`[host bridge] host --> bridge --> iframe`, message);
420
419
  iframe == null ? void 0 : (_iframe_contentWindow = iframe.contentWindow) == null ? void 0 : _iframe_contentWindow.postMessage(message, iframeOrigin);
421
420
  }
422
421
  });
@@ -424,16 +423,13 @@ const setupMessageTransportBridge = (messageTransport$1, iframe, iframeOrigin)=>
424
423
  const { data } = message;
425
424
  if (!data) return;
426
425
  if ((data == null ? void 0 : data.origin) !== 'webview') {
427
- logger.debug(`skipped message: ${JSON.stringify(data)}: origin is not host`);
428
426
  return;
429
427
  }
430
428
  if (typeof data !== 'object') {
431
- logger.debug(`skipped message: ${JSON.stringify(data)}: data is not an object`);
432
429
  return;
433
430
  }
434
431
  try {
435
432
  const message = messageTransport.parseMessageTransportData(data);
436
- logger.debug(`[host bridge] iframe --> bridge --> host`, message);
437
433
  messageTransport$1.emit(message);
438
434
  } catch (error) {
439
435
  if (!(error instanceof SyntaxError)) {
@@ -663,7 +659,7 @@ class DynamicWalletClient {
663
659
  try {
664
660
  const initializePromises = [
665
661
  this.restoreWallets(),
666
- this.useIframeStorage && this.initializeIframeCommunication()
662
+ this.initializeIframeCommunication()
667
663
  ];
668
664
  await Promise.all(initializePromises);
669
665
  return {
@@ -1131,13 +1127,9 @@ class DynamicWalletClient {
1131
1127
  return serializedEncryptedKeyShare;
1132
1128
  }
1133
1129
  /**
1134
- * temporary helper function to store encrypted backup by wallet based on `useIframeStorage` flag
1135
- * TODO: revise this to only use iframe storage when iframe is deployed
1130
+ * helper function to store encrypted backup by wallet from iframe local storage
1136
1131
  */ async getClientKeySharesFromLocalStorage({ accountAddress }) {
1137
1132
  var _this_iframeStorage;
1138
- if (!this.useIframeStorage) {
1139
- return this.walletMap[accountAddress].clientKeyShares;
1140
- }
1141
1133
  await this.initializeIframeCommunication();
1142
1134
  const walletObject = await ((_this_iframeStorage = this.iframeStorage) == null ? void 0 : _this_iframeStorage.getItem(accountAddress));
1143
1135
  if (!walletObject) {
@@ -1152,18 +1144,9 @@ class DynamicWalletClient {
1152
1144
  }
1153
1145
  }
1154
1146
  /**
1155
- * temporary helper function to store encrypted backup by wallet based on `useIframeStorage` flag
1156
- * TODO: revise this to only use iframe storage when iframe is deployed
1147
+ * helper function to store encrypted backup by wallet from iframe local storage
1157
1148
  */ async setClientKeySharesToLocalStorage({ accountAddress, clientKeyShares, overwriteOrMerge = 'merge' }) {
1158
1149
  var _this_iframeStorage;
1159
- if (!this.useIframeStorage) {
1160
- var _this_walletMap_accountAddress;
1161
- this.walletMap[accountAddress] = _extends({}, this.walletMap[accountAddress] || {}, {
1162
- clientKeyShares: overwriteOrMerge === 'overwrite' ? clientKeyShares : mergeUniqueKeyShares(((_this_walletMap_accountAddress = this.walletMap[accountAddress]) == null ? void 0 : _this_walletMap_accountAddress.clientKeyShares) || [], clientKeyShares)
1163
- });
1164
- await this.storage.setItem(this.storageKey, JSON.stringify(this.walletMap));
1165
- return;
1166
- }
1167
1150
  await this.initializeIframeCommunication();
1168
1151
  await ((_this_iframeStorage = this.iframeStorage) == null ? void 0 : _this_iframeStorage.setItem(accountAddress, {
1169
1152
  clientKeyShares: overwriteOrMerge === 'overwrite' ? clientKeyShares : mergeUniqueKeyShares(await this.getClientKeySharesFromLocalStorage({
@@ -1427,12 +1410,11 @@ class DynamicWalletClient {
1427
1410
  clientKeyShares: decryptedKeyShares,
1428
1411
  overwriteOrMerge: 'merge'
1429
1412
  });
1430
- if (this.useIframeStorage) {
1431
- const { iframeDisplay } = await this.initializeIframeDisplayForContainer({
1432
- container: displayContainer
1433
- });
1434
- iframeDisplay.displayClientShares(accountAddress);
1435
- }
1413
+ // Display the client shares in the container via iframe
1414
+ const { iframeDisplay } = await this.initializeIframeDisplayForContainer({
1415
+ container: displayContainer
1416
+ });
1417
+ iframeDisplay.displayClientShares(accountAddress);
1436
1418
  return decryptedKeyShares;
1437
1419
  }
1438
1420
  async exportClientKeyshares({ accountAddress, password }) {
@@ -1647,12 +1629,13 @@ class DynamicWalletClient {
1647
1629
  walletOperation: walletOperation,
1648
1630
  shareCount
1649
1631
  });
1650
- if (this.useIframeStorage) {
1651
- var _this_iframeStorage;
1652
- (_this_iframeStorage = this.iframeStorage) == null ? void 0 : _this_iframeStorage.setItem(`${accountAddress}`, JSON.stringify({
1653
- clientKeyShares: decryptedKeyShares
1654
- }));
1655
- }
1632
+ const existingKeyShares = await this.getClientKeySharesFromLocalStorage({
1633
+ accountAddress
1634
+ });
1635
+ await this.setClientKeySharesToLocalStorage({
1636
+ accountAddress,
1637
+ clientKeyShares: mergeUniqueKeyShares(existingKeyShares, decryptedKeyShares)
1638
+ });
1656
1639
  this.logger.debug('Recovered backup', decryptedKeyShares);
1657
1640
  }
1658
1641
  const walletCount = Object.keys(this.walletMap).length;
@@ -1670,7 +1653,7 @@ class DynamicWalletClient {
1670
1653
  const user = await this.apiClient.getUser();
1671
1654
  const waasWallets = (_user_verifiedCredentials = user.verifiedCredentials) == null ? void 0 : _user_verifiedCredentials.filter((vc)=>vc.walletName === 'dynamicwaas');
1672
1655
  const wallets = waasWallets.map((vc)=>{
1673
- var _this_walletMap_vc_address, _this_walletMap_vc_address1, _vc_walletProperties;
1656
+ var _this_walletMap_vc_address, _vc_walletProperties;
1674
1657
  var _this_walletMap_vc_address_derivationPath;
1675
1658
  return {
1676
1659
  walletId: vc.id,
@@ -1679,19 +1662,17 @@ class DynamicWalletClient {
1679
1662
  clientKeySharesBackupInfo: getClientKeyShareBackupInfo({
1680
1663
  walletProperties: vc.walletProperties || {}
1681
1664
  }),
1682
- clientKeyShares: ((_this_walletMap_vc_address = this.walletMap[vc.address]) == null ? void 0 : _this_walletMap_vc_address.clientKeyShares) || [],
1683
- derivationPath: (_this_walletMap_vc_address_derivationPath = (_this_walletMap_vc_address1 = this.walletMap[vc.address]) == null ? void 0 : _this_walletMap_vc_address1.derivationPath) != null ? _this_walletMap_vc_address_derivationPath : undefined,
1665
+ derivationPath: (_this_walletMap_vc_address_derivationPath = (_this_walletMap_vc_address = this.walletMap[vc.address]) == null ? void 0 : _this_walletMap_vc_address.derivationPath) != null ? _this_walletMap_vc_address_derivationPath : undefined,
1684
1666
  thresholdSignatureScheme: (_vc_walletProperties = vc.walletProperties) == null ? void 0 : _vc_walletProperties.thresholdSignatureScheme
1685
1667
  };
1686
1668
  });
1687
1669
  this.walletMap = wallets.reduce((acc, wallet)=>{
1688
- var _acc_wallet_accountAddress, _acc_accountAddress;
1670
+ var _acc_accountAddress;
1689
1671
  const accountAddress = wallet.accountAddress;
1690
1672
  acc[wallet.accountAddress] = {
1691
1673
  walletId: wallet.walletId,
1692
1674
  chainName: wallet.chainName,
1693
1675
  accountAddress: wallet.accountAddress,
1694
- clientKeyShares: ((_acc_wallet_accountAddress = acc[wallet.accountAddress]) == null ? void 0 : _acc_wallet_accountAddress.clientKeyShares) || [],
1695
1676
  clientKeySharesBackupInfo: wallet.clientKeySharesBackupInfo,
1696
1677
  derivationPath: ((_acc_accountAddress = acc[accountAddress]) == null ? void 0 : _acc_accountAddress.derivationPath) || undefined,
1697
1678
  thresholdSignatureScheme: wallet.thresholdSignatureScheme
@@ -1710,8 +1691,6 @@ class DynamicWalletClient {
1710
1691
  this.memoryStorage = null;
1711
1692
  this.messageTransport = null;
1712
1693
  this.iframe = null;
1713
- this.useIframeStorage = false // TODO: remove this when iframe is deployed
1714
- ;
1715
1694
  this.iframeLoadPromise = null;
1716
1695
  this.environmentId = environmentId;
1717
1696
  this.storageKey = `${STORAGE_KEY}-${storageKey != null ? storageKey : environmentId}`;
@@ -1730,7 +1709,25 @@ class DynamicWalletClient {
1730
1709
  this.memoryStorage = {};
1731
1710
  this.storage = memoryLocalStorageAdapter(this.memoryStorage);
1732
1711
  }
1733
- this.iframeDomain = core.IFRAME_DOMAIN;
1712
+ let environment;
1713
+ switch(baseApiUrl){
1714
+ case undefined:
1715
+ environment = core.ENVIRONMENT_ENUM.production;
1716
+ break;
1717
+ case core.DYNAMIC_AUTH_PROD_BASE_API_URL:
1718
+ environment = core.ENVIRONMENT_ENUM.production;
1719
+ break;
1720
+ case core.DYNAMIC_AUTH_PREPROD_BASE_API_URL:
1721
+ environment = core.ENVIRONMENT_ENUM.preprod;
1722
+ break;
1723
+ case core.DYNAMIC_AUTH_DEV_BASE_API_URL:
1724
+ environment = core.ENVIRONMENT_ENUM.development;
1725
+ break;
1726
+ default:
1727
+ environment = core.ENVIRONMENT_ENUM.development;
1728
+ break;
1729
+ }
1730
+ this.iframeDomain = core.IFRAME_DOMAIN_MAP[environment];
1734
1731
  // Generate unique instanceId when client is created
1735
1732
  this.instanceId = crypto.randomUUID();
1736
1733
  // initialize the client
package/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { SigningAlgorithm, MPC_RELAY_PROD_API_URL, getMPCChainConfig, BackupLocation, getClientThreshold, MPC_CONFIG, getTSSConfig, WalletOperation, getReshareConfig, DynamicApiClient, IFRAME_DOMAIN } from '@dynamic-labs-wallet/core';
1
+ import { SigningAlgorithm, MPC_RELAY_PROD_API_URL, getMPCChainConfig, BackupLocation, getClientThreshold, MPC_CONFIG, getTSSConfig, WalletOperation, getReshareConfig, DynamicApiClient, ENVIRONMENT_ENUM, DYNAMIC_AUTH_DEV_BASE_API_URL, DYNAMIC_AUTH_PREPROD_BASE_API_URL, DYNAMIC_AUTH_PROD_BASE_API_URL, IFRAME_DOMAIN_MAP } from '@dynamic-labs-wallet/core';
2
2
  export * from '@dynamic-labs-wallet/core';
3
3
  import { BIP340, Ed25519, Ecdsa, MessageHash, EcdsaKeygenResult, Ed25519KeygenResult, BIP340KeygenResult } from './internal/web';
4
4
  export { BIP340, BIP340InitKeygenResult, BIP340KeygenResult, Ecdsa, EcdsaInitKeygenResult, EcdsaKeygenResult, EcdsaPublicKey, EcdsaSignature, Ed25519, Ed25519InitKeygenResult, Ed25519KeygenResult, MessageHash } from './internal/web';
@@ -416,7 +416,6 @@ const setupMessageTransportBridge = (messageTransport, iframe, iframeOrigin)=>{
416
416
  // Forward the message to webview via postMessage
417
417
  if (message.origin === 'host') {
418
418
  var _iframe_contentWindow;
419
- logger.debug(`[host bridge] host --> bridge --> iframe`, message);
420
419
  iframe == null ? void 0 : (_iframe_contentWindow = iframe.contentWindow) == null ? void 0 : _iframe_contentWindow.postMessage(message, iframeOrigin);
421
420
  }
422
421
  });
@@ -424,16 +423,13 @@ const setupMessageTransportBridge = (messageTransport, iframe, iframeOrigin)=>{
424
423
  const { data } = message;
425
424
  if (!data) return;
426
425
  if ((data == null ? void 0 : data.origin) !== 'webview') {
427
- logger.debug(`skipped message: ${JSON.stringify(data)}: origin is not host`);
428
426
  return;
429
427
  }
430
428
  if (typeof data !== 'object') {
431
- logger.debug(`skipped message: ${JSON.stringify(data)}: data is not an object`);
432
429
  return;
433
430
  }
434
431
  try {
435
432
  const message = parseMessageTransportData(data);
436
- logger.debug(`[host bridge] iframe --> bridge --> host`, message);
437
433
  messageTransport.emit(message);
438
434
  } catch (error) {
439
435
  if (!(error instanceof SyntaxError)) {
@@ -663,7 +659,7 @@ class DynamicWalletClient {
663
659
  try {
664
660
  const initializePromises = [
665
661
  this.restoreWallets(),
666
- this.useIframeStorage && this.initializeIframeCommunication()
662
+ this.initializeIframeCommunication()
667
663
  ];
668
664
  await Promise.all(initializePromises);
669
665
  return {
@@ -1131,13 +1127,9 @@ class DynamicWalletClient {
1131
1127
  return serializedEncryptedKeyShare;
1132
1128
  }
1133
1129
  /**
1134
- * temporary helper function to store encrypted backup by wallet based on `useIframeStorage` flag
1135
- * TODO: revise this to only use iframe storage when iframe is deployed
1130
+ * helper function to store encrypted backup by wallet from iframe local storage
1136
1131
  */ async getClientKeySharesFromLocalStorage({ accountAddress }) {
1137
1132
  var _this_iframeStorage;
1138
- if (!this.useIframeStorage) {
1139
- return this.walletMap[accountAddress].clientKeyShares;
1140
- }
1141
1133
  await this.initializeIframeCommunication();
1142
1134
  const walletObject = await ((_this_iframeStorage = this.iframeStorage) == null ? void 0 : _this_iframeStorage.getItem(accountAddress));
1143
1135
  if (!walletObject) {
@@ -1152,18 +1144,9 @@ class DynamicWalletClient {
1152
1144
  }
1153
1145
  }
1154
1146
  /**
1155
- * temporary helper function to store encrypted backup by wallet based on `useIframeStorage` flag
1156
- * TODO: revise this to only use iframe storage when iframe is deployed
1147
+ * helper function to store encrypted backup by wallet from iframe local storage
1157
1148
  */ async setClientKeySharesToLocalStorage({ accountAddress, clientKeyShares, overwriteOrMerge = 'merge' }) {
1158
1149
  var _this_iframeStorage;
1159
- if (!this.useIframeStorage) {
1160
- var _this_walletMap_accountAddress;
1161
- this.walletMap[accountAddress] = _extends({}, this.walletMap[accountAddress] || {}, {
1162
- clientKeyShares: overwriteOrMerge === 'overwrite' ? clientKeyShares : mergeUniqueKeyShares(((_this_walletMap_accountAddress = this.walletMap[accountAddress]) == null ? void 0 : _this_walletMap_accountAddress.clientKeyShares) || [], clientKeyShares)
1163
- });
1164
- await this.storage.setItem(this.storageKey, JSON.stringify(this.walletMap));
1165
- return;
1166
- }
1167
1150
  await this.initializeIframeCommunication();
1168
1151
  await ((_this_iframeStorage = this.iframeStorage) == null ? void 0 : _this_iframeStorage.setItem(accountAddress, {
1169
1152
  clientKeyShares: overwriteOrMerge === 'overwrite' ? clientKeyShares : mergeUniqueKeyShares(await this.getClientKeySharesFromLocalStorage({
@@ -1427,12 +1410,11 @@ class DynamicWalletClient {
1427
1410
  clientKeyShares: decryptedKeyShares,
1428
1411
  overwriteOrMerge: 'merge'
1429
1412
  });
1430
- if (this.useIframeStorage) {
1431
- const { iframeDisplay } = await this.initializeIframeDisplayForContainer({
1432
- container: displayContainer
1433
- });
1434
- iframeDisplay.displayClientShares(accountAddress);
1435
- }
1413
+ // Display the client shares in the container via iframe
1414
+ const { iframeDisplay } = await this.initializeIframeDisplayForContainer({
1415
+ container: displayContainer
1416
+ });
1417
+ iframeDisplay.displayClientShares(accountAddress);
1436
1418
  return decryptedKeyShares;
1437
1419
  }
1438
1420
  async exportClientKeyshares({ accountAddress, password }) {
@@ -1647,12 +1629,13 @@ class DynamicWalletClient {
1647
1629
  walletOperation: walletOperation,
1648
1630
  shareCount
1649
1631
  });
1650
- if (this.useIframeStorage) {
1651
- var _this_iframeStorage;
1652
- (_this_iframeStorage = this.iframeStorage) == null ? void 0 : _this_iframeStorage.setItem(`${accountAddress}`, JSON.stringify({
1653
- clientKeyShares: decryptedKeyShares
1654
- }));
1655
- }
1632
+ const existingKeyShares = await this.getClientKeySharesFromLocalStorage({
1633
+ accountAddress
1634
+ });
1635
+ await this.setClientKeySharesToLocalStorage({
1636
+ accountAddress,
1637
+ clientKeyShares: mergeUniqueKeyShares(existingKeyShares, decryptedKeyShares)
1638
+ });
1656
1639
  this.logger.debug('Recovered backup', decryptedKeyShares);
1657
1640
  }
1658
1641
  const walletCount = Object.keys(this.walletMap).length;
@@ -1670,7 +1653,7 @@ class DynamicWalletClient {
1670
1653
  const user = await this.apiClient.getUser();
1671
1654
  const waasWallets = (_user_verifiedCredentials = user.verifiedCredentials) == null ? void 0 : _user_verifiedCredentials.filter((vc)=>vc.walletName === 'dynamicwaas');
1672
1655
  const wallets = waasWallets.map((vc)=>{
1673
- var _this_walletMap_vc_address, _this_walletMap_vc_address1, _vc_walletProperties;
1656
+ var _this_walletMap_vc_address, _vc_walletProperties;
1674
1657
  var _this_walletMap_vc_address_derivationPath;
1675
1658
  return {
1676
1659
  walletId: vc.id,
@@ -1679,19 +1662,17 @@ class DynamicWalletClient {
1679
1662
  clientKeySharesBackupInfo: getClientKeyShareBackupInfo({
1680
1663
  walletProperties: vc.walletProperties || {}
1681
1664
  }),
1682
- clientKeyShares: ((_this_walletMap_vc_address = this.walletMap[vc.address]) == null ? void 0 : _this_walletMap_vc_address.clientKeyShares) || [],
1683
- derivationPath: (_this_walletMap_vc_address_derivationPath = (_this_walletMap_vc_address1 = this.walletMap[vc.address]) == null ? void 0 : _this_walletMap_vc_address1.derivationPath) != null ? _this_walletMap_vc_address_derivationPath : undefined,
1665
+ derivationPath: (_this_walletMap_vc_address_derivationPath = (_this_walletMap_vc_address = this.walletMap[vc.address]) == null ? void 0 : _this_walletMap_vc_address.derivationPath) != null ? _this_walletMap_vc_address_derivationPath : undefined,
1684
1666
  thresholdSignatureScheme: (_vc_walletProperties = vc.walletProperties) == null ? void 0 : _vc_walletProperties.thresholdSignatureScheme
1685
1667
  };
1686
1668
  });
1687
1669
  this.walletMap = wallets.reduce((acc, wallet)=>{
1688
- var _acc_wallet_accountAddress, _acc_accountAddress;
1670
+ var _acc_accountAddress;
1689
1671
  const accountAddress = wallet.accountAddress;
1690
1672
  acc[wallet.accountAddress] = {
1691
1673
  walletId: wallet.walletId,
1692
1674
  chainName: wallet.chainName,
1693
1675
  accountAddress: wallet.accountAddress,
1694
- clientKeyShares: ((_acc_wallet_accountAddress = acc[wallet.accountAddress]) == null ? void 0 : _acc_wallet_accountAddress.clientKeyShares) || [],
1695
1676
  clientKeySharesBackupInfo: wallet.clientKeySharesBackupInfo,
1696
1677
  derivationPath: ((_acc_accountAddress = acc[accountAddress]) == null ? void 0 : _acc_accountAddress.derivationPath) || undefined,
1697
1678
  thresholdSignatureScheme: wallet.thresholdSignatureScheme
@@ -1710,8 +1691,6 @@ class DynamicWalletClient {
1710
1691
  this.memoryStorage = null;
1711
1692
  this.messageTransport = null;
1712
1693
  this.iframe = null;
1713
- this.useIframeStorage = false // TODO: remove this when iframe is deployed
1714
- ;
1715
1694
  this.iframeLoadPromise = null;
1716
1695
  this.environmentId = environmentId;
1717
1696
  this.storageKey = `${STORAGE_KEY}-${storageKey != null ? storageKey : environmentId}`;
@@ -1730,7 +1709,25 @@ class DynamicWalletClient {
1730
1709
  this.memoryStorage = {};
1731
1710
  this.storage = memoryLocalStorageAdapter(this.memoryStorage);
1732
1711
  }
1733
- this.iframeDomain = IFRAME_DOMAIN;
1712
+ let environment;
1713
+ switch(baseApiUrl){
1714
+ case undefined:
1715
+ environment = ENVIRONMENT_ENUM.production;
1716
+ break;
1717
+ case DYNAMIC_AUTH_PROD_BASE_API_URL:
1718
+ environment = ENVIRONMENT_ENUM.production;
1719
+ break;
1720
+ case DYNAMIC_AUTH_PREPROD_BASE_API_URL:
1721
+ environment = ENVIRONMENT_ENUM.preprod;
1722
+ break;
1723
+ case DYNAMIC_AUTH_DEV_BASE_API_URL:
1724
+ environment = ENVIRONMENT_ENUM.development;
1725
+ break;
1726
+ default:
1727
+ environment = ENVIRONMENT_ENUM.development;
1728
+ break;
1729
+ }
1730
+ this.iframeDomain = IFRAME_DOMAIN_MAP[environment];
1734
1731
  // Generate unique instanceId when client is created
1735
1732
  this.instanceId = crypto.randomUUID();
1736
1733
  // initialize the client
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@dynamic-labs-wallet/browser",
3
- "version": "0.0.52",
3
+ "version": "0.0.54",
4
4
  "license": "Licensed under the Dynamic Labs, Inc. Terms Of Service (https://www.dynamic.xyz/terms-conditions)",
5
5
  "dependencies": {
6
- "@dynamic-labs-wallet/core": "0.0.52",
6
+ "@dynamic-labs-wallet/core": "0.0.54",
7
7
  "@dynamic-labs/logger": "^4.9.9",
8
8
  "@dynamic-labs/message-transport": "^4.9.9"
9
9
  },
package/src/client.d.ts CHANGED
@@ -24,7 +24,6 @@ export declare class DynamicWalletClient {
24
24
  protected messageTransport: MessageTransportWithDefaultOrigin | null;
25
25
  protected iframe: HTMLIFrameElement | null;
26
26
  readonly instanceId: string;
27
- protected useIframeStorage: boolean;
28
27
  readonly iframeDomain: string;
29
28
  private iframeLoadPromise;
30
29
  constructor({ environmentId, authToken, baseApiUrl, baseMPCRelayApiUrl, storageKey, debug, }: DynamicWalletClientProps);
@@ -223,15 +222,13 @@ export declare class DynamicWalletClient {
223
222
  password?: string;
224
223
  }): Promise<string>;
225
224
  /**
226
- * temporary helper function to store encrypted backup by wallet based on `useIframeStorage` flag
227
- * TODO: revise this to only use iframe storage when iframe is deployed
225
+ * helper function to store encrypted backup by wallet from iframe local storage
228
226
  */
229
227
  getClientKeySharesFromLocalStorage({ accountAddress, }: {
230
228
  accountAddress: string;
231
229
  }): Promise<ClientKeyShare[]>;
232
230
  /**
233
- * temporary helper function to store encrypted backup by wallet based on `useIframeStorage` flag
234
- * TODO: revise this to only use iframe storage when iframe is deployed
231
+ * helper function to store encrypted backup by wallet from iframe local storage
235
232
  */
236
233
  setClientKeySharesToLocalStorage({ accountAddress, clientKeyShares, overwriteOrMerge, }: {
237
234
  accountAddress: string;
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../packages/src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,wBAAwB,EACxB,gBAAgB,EAIhB,cAAc,EAEd,wBAAwB,EACxB,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EAChB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAIL,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAElB,cAAc,EACf,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAoBrE,OAAO,EAGL,gBAAgB,EAEjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAS3C,OAAO,EAGL,KAAK,iCAAiC,EACvC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAE7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAEvE,qBAAa,mBAAmB;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACn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,EACd,cAAc,EACd,eAA8C,EAC9C,UAAsB,EACtB,QAAoB,GACrB,EAAE;QACD,cAAc,EAAE,MAAM,CAAC;QACvB,eAAe,CAAC,EAAE,eAAe,CAAC;QAClC,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB;IA2EK,UAAU;CAkCjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"messageTransportBridge.d.ts","sourceRoot":"","sources":["../../src/services/messageTransportBridge.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iCAAiC,EAGvC,MAAM,iCAAiC,CAAC;AAGzC,eAAO,MAAM,2BAA2B,qBACpB,iCAAiC,UAC3C,iBAAiB,gBACX,MAAM,SAwDrB,CAAC"}
1
+ {"version":3,"file":"messageTransportBridge.d.ts","sourceRoot":"","sources":["../../src/services/messageTransportBridge.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iCAAiC,EAGvC,MAAM,iCAAiC,CAAC;AAGzC,eAAO,MAAM,2BAA2B,qBACpB,iCAAiC,UAC3C,iBAAiB,gBACX,MAAM,SAgDrB,CAAC"}
package/src/types.d.ts CHANGED
@@ -1,10 +1,8 @@
1
1
  import { KeyShareBackupInfo, ThresholdSignatureScheme } from '@dynamic-labs-wallet/core';
2
- import { ClientKeyShare } from './mpc/types';
3
2
  export interface WalletProperties {
4
3
  chainName: string;
5
4
  walletId: string;
6
5
  accountAddress: string;
7
- clientKeyShares: ClientKeyShare[];
8
6
  clientKeySharesBackupInfo: KeyShareBackupInfo;
9
7
  thresholdSignatureScheme: ThresholdSignatureScheme;
10
8
  derivationPath?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../packages/src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,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