@dynamic-labs-wallet/browser 0.0.65 → 0.0.66

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
@@ -478,11 +478,11 @@ const setupMessageTransportBridge = (messageTransport$1, iframe, iframeOrigin)=>
478
478
  };
479
479
 
480
480
  class IframeDisplayChannelAdapter {
481
- async displayClientShares(accountAddress) {
482
- await this.requestChannel.request('displayClientShares', accountAddress);
481
+ async displayClientShares(clientKeyShares) {
482
+ await this.requestChannel.request('displayClientShares', clientKeyShares);
483
483
  }
484
- async displayPrivateKey(accountAddress, privateKey) {
485
- await this.requestChannel.request('displayPrivateKey', accountAddress, privateKey);
484
+ async displayPrivateKey(privateKey) {
485
+ await this.requestChannel.request('displayPrivateKey', privateKey);
486
486
  }
487
487
  constructor(messageTransport$1){
488
488
  this.requestChannel = messageTransport.createRequestChannel(messageTransport$1);
@@ -1431,7 +1431,7 @@ class DynamicWalletClient {
1431
1431
  const { iframeDisplay } = await this.initializeIframeDisplayForContainer({
1432
1432
  container: displayContainer
1433
1433
  });
1434
- iframeDisplay.displayClientShares(accountAddress);
1434
+ iframeDisplay.displayClientShares(keyShares);
1435
1435
  return decryptedKeyShares;
1436
1436
  }
1437
1437
  async exportClientKeyshares({ accountAddress, password }) {
package/index.esm.js CHANGED
@@ -478,11 +478,11 @@ const setupMessageTransportBridge = (messageTransport, iframe, iframeOrigin)=>{
478
478
  };
479
479
 
480
480
  class IframeDisplayChannelAdapter {
481
- async displayClientShares(accountAddress) {
482
- await this.requestChannel.request('displayClientShares', accountAddress);
481
+ async displayClientShares(clientKeyShares) {
482
+ await this.requestChannel.request('displayClientShares', clientKeyShares);
483
483
  }
484
- async displayPrivateKey(accountAddress, privateKey) {
485
- await this.requestChannel.request('displayPrivateKey', accountAddress, privateKey);
484
+ async displayPrivateKey(privateKey) {
485
+ await this.requestChannel.request('displayPrivateKey', privateKey);
486
486
  }
487
487
  constructor(messageTransport){
488
488
  this.requestChannel = createRequestChannel(messageTransport);
@@ -1431,7 +1431,7 @@ class DynamicWalletClient {
1431
1431
  const { iframeDisplay } = await this.initializeIframeDisplayForContainer({
1432
1432
  container: displayContainer
1433
1433
  });
1434
- iframeDisplay.displayClientShares(accountAddress);
1434
+ iframeDisplay.displayClientShares(keyShares);
1435
1435
  return decryptedKeyShares;
1436
1436
  }
1437
1437
  async exportClientKeyshares({ accountAddress, password }) {
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@dynamic-labs-wallet/browser",
3
- "version": "0.0.65",
3
+ "version": "0.0.66",
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.65",
6
+ "@dynamic-labs-wallet/core": "0.0.66",
7
7
  "@dynamic-labs/logger": "^4.9.9",
8
8
  "@dynamic-labs/message-transport": "^4.9.9",
9
9
  "@noble/hashes": "1.7.1"
@@ -3,7 +3,7 @@ import { DisplayMessages } from '../types';
3
3
  export declare class IframeDisplayChannelAdapter {
4
4
  requestChannel: RequestChannel<DisplayMessages>;
5
5
  constructor(messageTransport: MessageTransportWithDefaultOrigin);
6
- displayClientShares(accountAddress: string): Promise<void>;
7
- displayPrivateKey(accountAddress: string, privateKey: string): Promise<void>;
6
+ displayClientShares(clientKeyShares?: string[]): Promise<void>;
7
+ displayPrivateKey(privateKey: string): Promise<void>;
8
8
  }
9
9
  //# sourceMappingURL=iframeDisplay.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"iframeDisplay.d.ts","sourceRoot":"","sources":["../../src/services/iframeDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iCAAiC,EACtC,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,qBAAa,2BAA2B;IACtC,cAAc,EAAE,cAAc,CAAC,eAAe,CAAC,CAAC;gBAEpC,gBAAgB,EAAE,iCAAiC;IAKzD,mBAAmB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI1D,iBAAiB,CACrB,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,IAAI,CAAC;CAOjB"}
1
+ {"version":3,"file":"iframeDisplay.d.ts","sourceRoot":"","sources":["../../src/services/iframeDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iCAAiC,EACtC,KAAK,cAAc,EACpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,qBAAa,2BAA2B;IACtC,cAAc,EAAE,cAAc,CAAC,eAAe,CAAC,CAAC;gBAEpC,gBAAgB,EAAE,iCAAiC;IAKzD,mBAAmB,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAI9D,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAG3D"}
package/src/types.d.ts CHANGED
@@ -8,7 +8,7 @@ export interface WalletProperties {
8
8
  derivationPath?: string;
9
9
  }
10
10
  export type DisplayMessages = {
11
- displayClientShares: (accountAddress: string, clientKeyShares?: string[]) => Promise<void>;
12
- displayPrivateKey: (accountAddress: string, privateKey: string) => Promise<void>;
11
+ displayClientShares: (clientKeyShares?: string[]) => Promise<void>;
12
+ displayPrivateKey: (privateKey: string) => Promise<void>;
13
13
  };
14
14
  //# sourceMappingURL=types.d.ts.map
@@ -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;AAEnC,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,yBAAyB,EAAE,kBAAkB,CAAC;IAC9C,wBAAwB,EAAE,wBAAwB,CAAC;IACnD,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,mBAAmB,EAAE,CACnB,cAAc,EAAE,MAAM,EACtB,eAAe,CAAC,EAAE,MAAM,EAAE,KACvB,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,iBAAiB,EAAE,CACjB,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,KACf,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB,CAAC"}
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;AAEnC,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,yBAAyB,EAAE,kBAAkB,CAAC;IAC9C,wBAAwB,EAAE,wBAAwB,CAAC;IACnD,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,mBAAmB,EAAE,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnE,iBAAiB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1D,CAAC"}