From 2c11c62f345362390538ab87cf1e8cbcd5fa590d Mon Sep 17 00:00:00 2001 From: Samy RABAH-MONTAROU Date: Wed, 30 Oct 2024 11:48:39 +0100 Subject: [PATCH] unused --- libs/coin-modules/coin-stacks/.unimportedrc.json | 2 ++ libs/coin-modules/coin-stacks/package.json | 4 ---- libs/coin-modules/coin-stacks/src/bridge/utils/misc.ts | 5 +++-- libs/coin-modules/coin-stacks/src/config.ts | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/libs/coin-modules/coin-stacks/.unimportedrc.json b/libs/coin-modules/coin-stacks/.unimportedrc.json index 6d288788213f..c8bea8865ac3 100644 --- a/libs/coin-modules/coin-stacks/.unimportedrc.json +++ b/libs/coin-modules/coin-stacks/.unimportedrc.json @@ -20,9 +20,11 @@ "jest-message-util" ], "ignoreUnimported": [ + "src/network/index.ts", "src/signer/signMessage.ts" ], "ignoreUnused": [ + "@ledgerhq/types-cryptoassets", "ripple-address-codec", "ripple-binary-codec" ] diff --git a/libs/coin-modules/coin-stacks/package.json b/libs/coin-modules/coin-stacks/package.json index 71218de4a972..7e8efde95089 100644 --- a/libs/coin-modules/coin-stacks/package.json +++ b/libs/coin-modules/coin-stacks/package.json @@ -54,10 +54,6 @@ "require": "./lib/bridge/deviceTransactionConfig.js", "default": "./lib-es/bridge/deviceTransactionConfig.js" }, - "./logic": { - "require": "./lib/logic/index.js", - "default": "./lib-es/logic/index.js" - }, "./signer": { "require": "./lib/signer/index.js", "default": "./lib-es/signer/index.js" diff --git a/libs/coin-modules/coin-stacks/src/bridge/utils/misc.ts b/libs/coin-modules/coin-stacks/src/bridge/utils/misc.ts index a41a8bf2a46f..7233c2a5f0ab 100644 --- a/libs/coin-modules/coin-stacks/src/bridge/utils/misc.ts +++ b/libs/coin-modules/coin-stacks/src/bridge/utils/misc.ts @@ -9,13 +9,14 @@ import { } from "@stacks/transactions"; import { decodeAccountId } from "@ledgerhq/coin-framework/account/index"; -import { fetchFullMempoolTxs, fetchNonce } from "../../network/api"; import { + fetchFullMempoolTxs, + fetchNonce, DecodedSendManyFunctionArgsCV, MempoolTransaction, StacksNetwork, TransactionResponse, -} from "../../network/api.types"; +} from "../../network/index"; import { getCryptoCurrencyById } from "@ledgerhq/cryptoassets/currencies"; import { encodeOperationId, encodeSubOperationId } from "@ledgerhq/coin-framework/operation"; import { StacksOperation } from "../../types"; diff --git a/libs/coin-modules/coin-stacks/src/config.ts b/libs/coin-modules/coin-stacks/src/config.ts index b52ea7305f95..5990d8d0255a 100644 --- a/libs/coin-modules/coin-stacks/src/config.ts +++ b/libs/coin-modules/coin-stacks/src/config.ts @@ -19,7 +19,7 @@ export const setCoinConfig = (config: StacksCoinConfig): void => { export const getCoinConfig = (): ReturnType => { if (!coinConfig?.()) { - throw new Error("Hedera module config not set"); + throw new Error("Stacks module config not set"); } return coinConfig();