From fd964337a8030b675d0fb7a43ec754d649d68aee Mon Sep 17 00:00:00 2001 From: Stefan Date: Thu, 28 Mar 2024 13:44:00 +0200 Subject: [PATCH] Remove relative imports and unused variable from transaction/service.nim --- .../service/transaction/service.nim | 37 +++++++++---------- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/src/app_service/service/transaction/service.nim b/src/app_service/service/transaction/service.nim index 90eff1f445..47ca218062 100644 --- a/src/app_service/service/transaction/service.nim +++ b/src/app_service/service/transaction/service.nim @@ -1,14 +1,14 @@ import Tables, NimQml, chronicles, sequtils, sugar, stint, strutils, json, stew/shims/strformat, algorithm -import ../../../backend/collectibles as collectibles -import ../../../backend/transactions as transactions -import ../../../backend/backend -import ../../../backend/eth +import backend/collectibles as collectibles +import backend/transactions as transactions +import backend/backend +import backend/eth -import ../ens/utils as ens_utils -import ../../common/conversion as common_conversion -import ../../common/utils as common_utils -import ../../common/types as common_types +import app_service/service/ens/utils as ens_utils +import app_service/common/conversion as common_conversion +import app_service/common/utils as common_utils +import app_service/common/types as common_types import app/core/[main] import app/core/signals/types @@ -16,16 +16,16 @@ import app/core/tasks/[qt, threadpool] import app/global/global_singleton import app/global/app_signals -import ../wallet_account/service as wallet_account_service -import ../network/service as network_service -import ../token/service as token_service -import ../settings/service as settings_service -import ../eth/dto/transaction as transaction_data_dto -import ../eth/dto/[coder, method_dto] +import app_service/service/wallet_account/service as wallet_account_service +import app_service/service/network/service as network_service +import app_service/service/token/service as token_service +import app_service/service/settings/service as settings_service +import app_service/service/eth/dto/transaction as transaction_data_dto +import app_service/service/eth/dto/[coder, method_dto] import ./dto as transaction_dto import ./cryptoRampDto -import ../eth/utils as eth_utils -import ../../common/conversion +import app_service/service/eth/utils as eth_utils +import app_service/common/conversion export transaction_dto @@ -35,10 +35,7 @@ logScope: topics = "transaction-service" include async_tasks -include ../../common/json_utils - -# Maximum number of collectibles to be fetched at a time -const collectiblesLimit = 200 +include app_service/common/json_utils # Signals which may be emitted by this service: const SIGNAL_TRANSACTION_SENT* = "transactionSent"