From 7baf050573125f36b5e4cea69e025c781de60648 Mon Sep 17 00:00:00 2001 From: Kamil Pyszkowski Date: Thu, 26 Oct 2023 14:43:50 +0200 Subject: [PATCH] Code cleanup Removed unused imports and variables --- src/threshold-ts/tbtc/index.ts | 1 - src/utils/tBTC.ts | 3 --- 2 files changed, 4 deletions(-) diff --git a/src/threshold-ts/tbtc/index.ts b/src/threshold-ts/tbtc/index.ts index 160dbcd90..6c37ff349 100644 --- a/src/threshold-ts/tbtc/index.ts +++ b/src/threshold-ts/tbtc/index.ts @@ -54,7 +54,6 @@ import { findWalletForRedemption, } from "@keep-network/tbtc-v2.ts/dist/src/redemption" import { TBTCToken as ChainTBTCToken } from "@keep-network/tbtc-v2.ts/dist/src/chain" -import { getThresholdLib } from "../../utils/getThresholdLib" export enum BridgeActivityStatus { PENDING = "PENDING", diff --git a/src/utils/tBTC.ts b/src/utils/tBTC.ts index aff8f5bdc..00edad7a3 100644 --- a/src/utils/tBTC.ts +++ b/src/utils/tBTC.ts @@ -5,7 +5,6 @@ import { createOutputScriptFromAddress, prependScriptPubKeyByLength, } from "../threshold-ts/utils" -import { getThresholdLib } from "./getThresholdLib" const MINTING_MAINNET_BTC_RECOVERY_ADDRESS_PREFIXES = ["1", "bc1"] as const const MINTING_TESTNET_BTC_RECOVERY_ADDRESS_PREFIXES = ["m", "n", "tb1"] as const @@ -13,8 +12,6 @@ const MINTING_TESTNET_BTC_RECOVERY_ADDRESS_PREFIXES = ["m", "n", "tb1"] as const const UNMINTING_MAINNET_BTC_ADDRESS_PREFIXES = ["1", "bc1", "3"] as const const UNMINTING_TESTNET_BTC_ADDRESS_PREFIXES = ["m", "n", "tb1", "2"] as const -const bitcoinNetwork = getThresholdLib().tbtc.bitcoinNetwork - type SupportedBitcoinNetworks = Exclude const supportedAddressPrefixes: Record<