diff --git a/src/helpers/index.ts b/src/helpers/index.ts index 92a0751..4296e6a 100644 --- a/src/helpers/index.ts +++ b/src/helpers/index.ts @@ -4,4 +4,3 @@ export * from "./keyUtils"; export * from "./langrangeInterpolatePoly"; export * from "./metadataUtils"; export * from "./nodeUtils"; -export * from "./tssPubKeyUtils"; diff --git a/test/tssPubKey.test.ts b/test/tssPubKey.test.ts index 18e4e71..f62a793 100644 --- a/test/tssPubKey.test.ts +++ b/test/tssPubKey.test.ts @@ -3,7 +3,7 @@ import { TORUS_SAPPHIRE_NETWORK } from "@toruslabs/constants"; import { NodeDetailManager } from "@toruslabs/fetch-node-details"; import { expect } from "chai"; -import { GetOrSetTssDKGPubKey } from "../src"; +import { GetOrSetTssDKGPubKey } from "./utils/tssPubKeyUtils"; describe("setTssKey", function () { const TORUS_EXTENDED_VERIFIER_EMAIL = "testextenderverifierid@example.com"; diff --git a/src/helpers/tssPubKeyUtils.ts b/test/utils/tssPubKeyUtils.ts similarity index 93% rename from src/helpers/tssPubKeyUtils.ts rename to test/utils/tssPubKeyUtils.ts index dca9bb9..578e8a9 100644 --- a/src/helpers/tssPubKeyUtils.ts +++ b/test/utils/tssPubKeyUtils.ts @@ -3,10 +3,10 @@ import { JRPCResponse, KEY_TYPE } from "@toruslabs/constants"; import { generateJsonRPCObject, post } from "@toruslabs/http-helpers"; import log from "loglevel"; -import { JRPC_METHODS } from "../constants"; -import { GetORSetKeyResponse, KeyType } from "../interfaces"; -import { Some } from "../some"; -import { normalizeKeysResult, thresholdSame } from "./common"; +import { JRPC_METHODS } from "../../src/constants"; +import { normalizeKeysResult, thresholdSame } from "../../src/helpers/common"; +import { GetORSetKeyResponse, KeyType } from "../../src/interfaces"; +import { Some } from "../../src/some"; // for ex: [https://node-1.node.web3auth.io/sss/jrpc, https://node-2.node.web3auth.io/sss/jrpc ....] export const GetOrSetTssDKGPubKey = async (params: {