From 5409b48a2e9a7326a4a8280fe8b4418f9a26c512 Mon Sep 17 00:00:00 2001 From: Alberto Manzaneque Date: Mon, 28 Oct 2024 15:57:35 +0100 Subject: [PATCH] Logs. --- server-backend/src/SwapInController.ts | 10 ++-------- server-backend/src/SwapOutController.ts | 2 +- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/server-backend/src/SwapInController.ts b/server-backend/src/SwapInController.ts index 5bdad70..380d78c 100644 --- a/server-backend/src/SwapInController.ts +++ b/server-backend/src/SwapInController.ts @@ -1,4 +1,4 @@ -import { BadRequestException, Body, Controller, Get, Logger, Param, Post, Query, UsePipes } from '@nestjs/common'; +import { BadRequestException, Body, Controller, Get, Param, Post, Query, UsePipes } from '@nestjs/common'; import { createZodDto, ZodValidationPipe } from '@anatine/zod-nestjs'; import assert from 'node:assert'; import { ECPairFactory } from 'ecpair'; @@ -9,13 +9,7 @@ import { DataSource } from 'typeorm'; import { SwapIn } from './entities/SwapIn.js'; import { LndService } from './LndService.js'; import { buildContractSpendBasePsbt, buildTransactionWithFee } from './bitcoin-utils.js'; -import { - GetSwapInResponse, - PsbtResponse, - signContractSpend, - swapInRequestSchema, - txRequestSchema, -} from '@40swap/shared'; +import { GetSwapInResponse, PsbtResponse, signContractSpend, swapInRequestSchema, txRequestSchema } from '@40swap/shared'; import { BitcoinConfigurationDetails, BitcoinService } from './BitcoinService.js'; import { SwapService } from './SwapService.js'; diff --git a/server-backend/src/SwapOutController.ts b/server-backend/src/SwapOutController.ts index 7218249..9e0a20a 100644 --- a/server-backend/src/SwapOutController.ts +++ b/server-backend/src/SwapOutController.ts @@ -1,7 +1,7 @@ import { NbxplorerService } from './NbxplorerService.js'; import { DataSource } from 'typeorm'; import { createZodDto } from '@anatine/zod-nestjs'; -import { BadRequestException, Body, Controller, Get, Logger, Param, Post, Query } from '@nestjs/common'; +import { BadRequestException, Body, Controller, Get, Param, Post, Query } from '@nestjs/common'; import { buildContractSpendBasePsbt, buildTransactionWithFee } from './bitcoin-utils.js'; import { ECPairFactory } from 'ecpair'; import * as ecc from 'tiny-secp256k1';