@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 +5 -5
- package/index.esm.js +5 -5
- package/package.json +2 -2
- package/src/services/iframeDisplay.d.ts +2 -2
- package/src/services/iframeDisplay.d.ts.map +1 -1
- package/src/types.d.ts +2 -2
- package/src/types.d.ts.map +1 -1
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(
|
|
482
|
-
await this.requestChannel.request('displayClientShares',
|
|
481
|
+
async displayClientShares(clientKeyShares) {
|
|
482
|
+
await this.requestChannel.request('displayClientShares', clientKeyShares);
|
|
483
483
|
}
|
|
484
|
-
async displayPrivateKey(
|
|
485
|
-
await this.requestChannel.request('displayPrivateKey',
|
|
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(
|
|
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(
|
|
482
|
-
await this.requestChannel.request('displayClientShares',
|
|
481
|
+
async displayClientShares(clientKeyShares) {
|
|
482
|
+
await this.requestChannel.request('displayClientShares', clientKeyShares);
|
|
483
483
|
}
|
|
484
|
-
async displayPrivateKey(
|
|
485
|
-
await this.requestChannel.request('displayPrivateKey',
|
|
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(
|
|
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.
|
|
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.
|
|
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(
|
|
7
|
-
displayPrivateKey(
|
|
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,
|
|
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: (
|
|
12
|
-
displayPrivateKey: (
|
|
11
|
+
displayClientShares: (clientKeyShares?: string[]) => Promise<void>;
|
|
12
|
+
displayPrivateKey: (privateKey: string) => Promise<void>;
|
|
13
13
|
};
|
|
14
14
|
//# sourceMappingURL=types.d.ts.map
|
package/src/types.d.ts.map
CHANGED
|
@@ -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,
|
|
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"}
|