Skip to content

Commit

Permalink
build cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu committed May 16, 2024
1 parent eb68253 commit 9249582
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 210 deletions.
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/tss-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"@types/elliptic": "^6.4.18",
"rimraf": "^5.0.5",
"rollup-plugin-web-worker-loader": "^1.6.1",
"workerize-loader": "^2.0.2"
"workerize-loader": "^2.0.2",
"@toruslabs/tss-dkls-lib": "^2.3.3"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 3 additions & 3 deletions packages/tss-client/src/client.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* eslint-disable no-console */
import { generatePrivate } from "@toruslabs/eccrypto";
import type TssLib from "@toruslabs/tss-dkls-lib";
import BN from "bn.js";
import { keccak256 } from "ethereum-cryptography/keccak";
import { Socket } from "socket.io-client";

import { DELIMITERS, WEB3_SESSION_HEADER_KEY } from "./constants";
import type * as TssLib from "./dkls";
import { Msg } from "./interfaces";
import { getEc } from "./utils";

Expand Down Expand Up @@ -113,7 +113,7 @@ export class Client {

public websocketOnly: boolean;

public tssLib: typeof TssLib;
public tssLib: TssLib;

public _startPrecomputeTime: number;

Expand Down Expand Up @@ -154,7 +154,7 @@ export class Client {
_share: string,
_pubKey: string,
_websocketOnly: boolean,
_tssLib: typeof TssLib
_tssLib: TssLib
) {
if (_parties.length !== _sockets.length) {
throw new Error("parties and sockets length must be equal, add null for client if necessary");
Expand Down
198 changes: 0 additions & 198 deletions packages/tss-client/src/dkls.d.ts

This file was deleted.

4 changes: 0 additions & 4 deletions packages/tss-client/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import type * as WasmLib from "./dkls";

export * from "./client";
export * from "./constants";
export * from "./db";
export * from "./interfaces";
export * from "./utils";

export { WasmLib };
1 change: 0 additions & 1 deletion packages/tss-client/torus.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
module.exports = {
...require("@toruslabs/config/torus.config"),
esm: false,
};
4 changes: 2 additions & 2 deletions packages/tss-lib/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@toruslabs/tss-dkls-lib",
"version": "1.0.0",
"version": "2.3.3",
"description": "Packaged WASM library for DKLS threshold signing.",
"main": "dist/tssDklsLib.cjs.js",
"unpkg": "dist/tssDklsLib.umd.min.js",
"unpkg": "dist/n.umd.min.js",
"jsdelivr": "dist/tssDklsLib.umd.min.js",
"types": "dist/types/index.d.ts",
"files": [
Expand Down

0 comments on commit 9249582

Please sign in to comment.