chore: remove nim unused imports (#12783)
This commit is contained in:
parent
c04bf2ef9e
commit
200c0b337f
|
@ -1,4 +1,4 @@
|
|||
import Tables, stint
|
||||
import stint
|
||||
import ./io_interface
|
||||
|
||||
import ../../../global/app_signals
|
||||
|
@ -7,7 +7,6 @@ import ../../../../app_service/service/activity_center/service as activity_cente
|
|||
import ../../../../app_service/service/contacts/service as contacts_service
|
||||
import ../../../../app_service/service/message/service as message_service
|
||||
import ../../../../app_service/service/community/service as community_service
|
||||
import ../../../../app_service/service/eth/utils as eth_utils
|
||||
import ../../../../app_service/service/chat/service as chat_service
|
||||
|
||||
type
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import Tables, stint
|
||||
import Tables
|
||||
import ./item
|
||||
import ../../../../app_service/service/activity_center/service as activity_center_service
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import strformat, stint
|
||||
import strformat
|
||||
import ../../shared_models/message_item_qobject
|
||||
import ../../../../app_service/service/activity_center/dto/notification
|
||||
import ../../../../app_service/service/chat/dto/chat
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, Tables, chronicles, json, sequtils, strformat, strutils
|
||||
import NimQml, Tables, json, sequtils, strutils
|
||||
import ./item
|
||||
|
||||
type
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, Tables, json, stint, sugar, sequtils
|
||||
import NimQml, Tables, json, stint, sequtils
|
||||
|
||||
import ./io_interface, ./view, ./controller
|
||||
import ../io_interface as delegate_interface
|
||||
|
@ -14,8 +14,6 @@ import ../../../../app_service/service/message/service as message_service
|
|||
import ../../../../app_service/service/chat/service as chat_service
|
||||
import ../../../../app_service/service/community/service as community_service
|
||||
|
||||
import ../../../global/app_sections_config as conf
|
||||
|
||||
export io_interface
|
||||
|
||||
type
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, json, strutils, json_serialization, sequtils, strformat, std/tables
|
||||
import NimQml, json, strutils, sequtils, strformat, std/tables
|
||||
import ../../../../app_service/service/activity_center/service as activity_center_service
|
||||
|
||||
import ./model
|
||||
|
|
|
@ -4,7 +4,7 @@ import io_interface
|
|||
import ../io_interface as delegate_interface
|
||||
import view, controller
|
||||
import location_menu_model, location_menu_item
|
||||
import location_menu_sub_model, location_menu_sub_item
|
||||
import location_menu_sub_item
|
||||
import result_model, result_item
|
||||
import ../../shared_models/message_item
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import controller
|
|||
import ../../../../global/global_singleton
|
||||
import ../../../../../app_service/service/dapp_permissions/service as dapp_permissions_service
|
||||
import ../../../../../app_service/service/wallet_account/service as wallet_account_service
|
||||
import options
|
||||
|
||||
export io_interface
|
||||
|
||||
type
|
||||
|
@ -108,4 +108,4 @@ method disconnectAddress*(self: Module, dapp: string, address: string) =
|
|||
|
||||
method disconnect*(self: Module, dapp: string) =
|
||||
self.controller.disconnect(dapp)
|
||||
self.fetchDapps()
|
||||
self.fetchDapps()
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import chronicles, uuids, times
|
||||
import io_interface
|
||||
import json
|
||||
|
||||
import ../../../../../../app/global/global_singleton
|
||||
import ../../../../../../app_service/service/contacts/service as contact_service
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import Tables, sugar, sequtils, strutils
|
||||
import Tables
|
||||
|
||||
import io_interface
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, Tables, strutils, strformat, json, sequtils, algorithm
|
||||
import NimQml, Tables, strutils, strformat, json, sequtils
|
||||
import ../../../../app_service/common/types
|
||||
import ../../../../app_service/service/chat/dto/chat
|
||||
from ../../../../app_service/service/contacts/dto/contacts import TrustStatus
|
||||
|
|
|
@ -14,9 +14,7 @@ import ../../shared_models/token_criteria_model
|
|||
import ../../shared_models/token_permission_chat_list_model
|
||||
|
||||
import chat_content/module as chat_content_module
|
||||
import chat_content/users/module as users_module
|
||||
|
||||
import ../../../global/app_sections_config as conf
|
||||
import ../../../global/global_singleton
|
||||
import ../../../core/eventemitter
|
||||
import ../../../core/unique_event_emitter
|
||||
|
|
|
@ -13,7 +13,6 @@ import app_service/service/token/service as token_service
|
|||
import app_service/service/wallet_account/service as wallet_account_service
|
||||
import app_service/service/keycard/service as keycard_service
|
||||
import app_service/common/types
|
||||
import backend/collectibles as backend_collectibles
|
||||
import app/modules/shared_modules/keycard_popup/io_interface as keycard_shared_module
|
||||
|
||||
const UNIQUE_COMMUNITIES_MODULE_AUTH_IDENTIFIER* = "CommunitiesModule-Authentication"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import NimQml, Tables
|
||||
import curated_community_item
|
||||
import ../../../shared_models/[token_permissions_model, token_permission_item]
|
||||
import ../../../shared_models/token_permission_item
|
||||
|
||||
type
|
||||
ModelRole {.pure.} = enum
|
||||
|
|
|
@ -3,7 +3,6 @@ import ../../../../../../app_service/service/community_tokens/dto/community_toke
|
|||
import ../../../../../../app_service/service/community_tokens/community_collectible_owner
|
||||
import ../../../../../../app_service/service/network/dto
|
||||
import ../../../../../../app_service/common/types
|
||||
from backend/collectibles_types import CollectibleOwner
|
||||
|
||||
import token_owners_model
|
||||
import token_owners_item
|
||||
|
|
|
@ -6,9 +6,7 @@ import ../../../../../app_service/service/network/service as networks_service
|
|||
import ../../../../../app_service/service/community/service as community_service
|
||||
import ../../../../../app_service/service/community/dto/community
|
||||
import ../../../../../app_service/service/accounts/utils as utl
|
||||
import ../../../../../app_service/common/conversion
|
||||
import ../../../../../app_service/common/types
|
||||
import ../../../../../app_service/common/utils as common_utils
|
||||
import ../../../../core/eventemitter
|
||||
import ../../../../global/global_singleton
|
||||
import ../../../shared_models/currency_amount
|
||||
|
@ -374,4 +372,4 @@ method onOwnerTokenOwnerAddress*(self: Module, chainId: int, contractAddress: st
|
|||
"chainId": chainId,
|
||||
"contractAddress": contractAddress
|
||||
}
|
||||
self.view.setOwnerTokenDetails($jsonObj)
|
||||
self.view.setOwnerTokenDetails($jsonObj)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import chronicles, stint, tables
|
||||
import chronicles, stint
|
||||
import app/global/app_sections_config as conf
|
||||
import app/global/global_singleton
|
||||
import app/global/app_signals
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import NimQml
|
||||
|
||||
import ./io_interface
|
||||
import ../../../core/eventemitter
|
||||
import ../../../../app_service/service/network_connection/service as network_connection_service
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import NimQml
|
||||
|
||||
type
|
||||
AccessInterface* {.pure inheritable.} = ref object of RootObj
|
||||
## Abstract class for any input/interaction with this module.
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import json
|
||||
import ../../../core/signals/types
|
||||
|
||||
type
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, Tables, json
|
||||
import NimQml
|
||||
|
||||
import io_interface
|
||||
import ../io_interface as delegate_interface
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, chronicles, json, strutils
|
||||
import NimQml, json, strutils
|
||||
import io_interface
|
||||
import ../../../core/signals/types
|
||||
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
import NimQml, chronicles, uuids
|
||||
import NimQml, chronicles
|
||||
import io_interface
|
||||
import ../io_interface as delegate_interface
|
||||
import view, controller
|
||||
|
||||
import ../../../../../constants
|
||||
import ../../../../core/eventemitter
|
||||
import ../../../../global/global_singleton
|
||||
import ../../../../../app_service/service/settings/service as settings_service
|
||||
import ../../../../../app_service/service/stickers/service as stickers_service
|
||||
import ../../../../../app_service/service/node_configuration/service as node_configuration_service
|
||||
|
@ -147,4 +146,4 @@ method setMaxLogBackups*(self: Module, value: int) =
|
|||
self.controller.setMaxLogBackups(value)
|
||||
|
||||
method onLogMaxBackupsChanged*(self: Module) =
|
||||
self.view.logMaxBackupsChanged()
|
||||
self.view.logMaxBackupsChanged()
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
import NimQml, chronicles
|
||||
import NimQml
|
||||
|
||||
import ./io_interface, ./view, ./controller
|
||||
import ../io_interface as delegate_interface
|
||||
|
||||
import ../../../../core/eventemitter
|
||||
import ../../../../../app_service/service/community/service as community_service
|
||||
|
||||
export io_interface
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import Tables, chronicles
|
||||
import chronicles
|
||||
import io_interface
|
||||
|
||||
import app/core/eventemitter
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, Tables, sequtils, chronicles
|
||||
import NimQml, Tables, sequtils
|
||||
import item
|
||||
import ../../../../../app_service/service/devices/dto/[installation]
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@ import NimQml, tables, strutils, chronicles
|
|||
import io_interface
|
||||
import ../io_interface as delegate_interface
|
||||
import view, controller, model, item
|
||||
import logging
|
||||
|
||||
import app/global/global_singleton
|
||||
import app/core/eventemitter
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import Tables, chronicles, json
|
||||
import chronicles, json
|
||||
import io_interface
|
||||
|
||||
import ../../../../global/global_singleton
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, chronicles, json, marshal, sequtils, sugar, strutils
|
||||
import NimQml, chronicles, sequtils, sugar, strutils
|
||||
|
||||
import ./io_interface, ./view, ./controller
|
||||
import ../io_interface as delegate_interface
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
import NimQml, tables, sequtils, sugar, chronicles
|
||||
import NimQml, tables, chronicles
|
||||
|
||||
import io_interface, view, controller, item, model, locale_table
|
||||
import ../io_interface as delegate_interface
|
||||
import ../../../../global/global_singleton
|
||||
import ../../../../../app/core/eventemitter
|
||||
|
||||
import ../../../../../app_service/service/language/service as language_service
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import NimQml
|
||||
import ../../../../global/app_signals
|
||||
from ../../../../../app_service/service/community/dto/community import CommunityDto
|
||||
from ../../../../../app_service/service/chat/dto/chat import ChatDto
|
||||
|
||||
|
@ -44,4 +43,4 @@ method addChat*(self: AccessInterface, itemId: string) {.base.} =
|
|||
raise newException(ValueError, "No implementation available")
|
||||
|
||||
method setName*(self: AccessInterface, itemId: string, name: string) {.base.} =
|
||||
raise newException(ValueError, "No implementation available")
|
||||
raise newException(ValueError, "No implementation available")
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
import NimQml, algorithm, json, chronicles
|
||||
import NimQml, algorithm, chronicles
|
||||
import io_interface
|
||||
import ../io_interface as delegate_interface
|
||||
import view, controller, model, item
|
||||
|
||||
import ../../../../global/app_signals
|
||||
import ../../../../global/global_singleton
|
||||
import ../../../../core/eventemitter
|
||||
import ../../../../../app_service/service/settings/service as settings_service
|
||||
|
@ -146,4 +145,4 @@ method addChat*(self: Module, itemId: string) =
|
|||
self.addChat(chatDto)
|
||||
|
||||
method setName*(self: Module, itemId: string, name: string) =
|
||||
self.view.exemptionsModel().updateName(itemId, name)
|
||||
self.view.exemptionsModel().updateName(itemId, name)
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import json, sugar, sequtils
|
||||
|
||||
import io_interface
|
||||
|
||||
import app/core/eventemitter
|
||||
|
|
|
@ -11,7 +11,6 @@ import app_service/service/community/service as community_service
|
|||
import app_service/service/wallet_account/service as wallet_account_service
|
||||
import app_service/service/profile/dto/profile_showcase
|
||||
import app_service/service/profile/dto/profile_showcase_preferences
|
||||
import app_service/common/types
|
||||
import app_service/common/social_links
|
||||
|
||||
import app/modules/shared_models/social_links_model
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
import Tables, chronicles
|
||||
import chronicles
|
||||
import io_interface
|
||||
|
||||
import ../../../../core/eventemitter
|
||||
import ../../../../core/fleets/fleet_configuration
|
||||
import ../../../../../app_service/service/settings/service as settings_service
|
||||
import ../../../../../app_service/service/node_configuration/service as node_configuration_service
|
||||
|
||||
|
@ -36,4 +35,4 @@ proc getAllWakuNodes*(self: Controller): seq[string] =
|
|||
return self.nodeConfigurationService.getAllWakuNodes()
|
||||
|
||||
proc saveNewWakuNode*(self: Controller, nodeAddress: string) =
|
||||
self.nodeConfigurationService.saveNewWakuNode(nodeAddress)
|
||||
self.nodeConfigurationService.saveNewWakuNode(nodeAddress)
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import io_interface
|
||||
import app_service/service/wallet_account/service as wallet_account_service
|
||||
import app_service/service/currency/dto
|
||||
import app/modules/shared_modules/keycard_popup/io_interface as keycard_shared_module
|
||||
|
||||
type
|
||||
Controller* = ref object of RootObj
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, sequtils, sugar, chronicles, tables
|
||||
import NimQml, sequtils, sugar, tables
|
||||
|
||||
import ./io_interface, ./view
|
||||
import ./controller as accountsc
|
||||
|
@ -9,7 +9,6 @@ import app/modules/shared_models/[keypair_model, currency_amount]
|
|||
import app/modules/shared_modules/collectibles/controller as collectiblesc
|
||||
import app/global/global_singleton
|
||||
import app/core/eventemitter
|
||||
import app_service/service/keycard/service as keycard_service
|
||||
import app_service/service/wallet_account/service as wallet_account_service
|
||||
import app_service/service/network/service as network_service
|
||||
import app_service/service/settings/service
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, sequtils, strutils, sugar
|
||||
import NimQml, sequtils, strutils
|
||||
|
||||
import ./io_interface
|
||||
import ./model
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import Tables, NimQml
|
||||
import NimQml
|
||||
import ../io_interface as delegate_interface
|
||||
import io_interface, view, controller, combined_item, item
|
||||
import ../../../../../core/eventemitter
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import Tables, NimQml, sequtils, sugar
|
||||
import NimQml, sequtils
|
||||
|
||||
import ./io_interface
|
||||
import ./item
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import stint
|
||||
import ./io_interface
|
||||
|
||||
import ../../../core/signals/types
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import NimQml, stint
|
||||
|
||||
import ../../../../app_service/service/shared_urls/service as urls_service
|
||||
|
||||
type
|
||||
|
@ -29,4 +27,4 @@ method parseSharedUrl*(self: AccessInterface, url: string): UrlDataDto {.base.}
|
|||
# This way (using concepts) is used only for the modules managed by AppController
|
||||
type
|
||||
DelegateInterface* = concept c
|
||||
c.mainDidLoad()
|
||||
c.mainDidLoad()
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, sequtils, stint, json
|
||||
import NimQml
|
||||
|
||||
import io_interface, view, controller
|
||||
import ../io_interface as delegate_interface
|
||||
|
@ -62,4 +62,4 @@ method parseCommunityChannelSharedUrl*(self: Module, url: string): string =
|
|||
|
||||
method parseContactSharedUrl*(self: Module, url: string): string =
|
||||
let contactData = self.controller.parseContactSharedUrl(url)
|
||||
return $contactData
|
||||
return $contactData
|
||||
|
|
|
@ -3,7 +3,6 @@ import Tables, stint, json
|
|||
import ./io_interface
|
||||
|
||||
import ../../../core/eventemitter
|
||||
import ../../../../app_service/service/node/service as node_service
|
||||
import ../../../../app_service/service/stickers/service as stickers_service
|
||||
import ../../../../app_service/service/token/service
|
||||
import ../../../../app_service/service/settings/service as settings_service
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import Tables, stint
|
||||
import ./item
|
||||
import ../../../../app_service/service/wallet_account/service as wallet_account_service
|
||||
import ../../../../app_service/service/stickers/service as stickers_service
|
||||
|
||||
type
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, Tables, stint, sugar, sequtils, json, strutils, strformat, parseutils, chronicles
|
||||
import NimQml, Tables, stint, sugar, sequtils, json, strutils, strformat, parseutils
|
||||
import ./io_interface, ./view, ./controller, ./item, ./models/sticker_pack_list
|
||||
import ../io_interface as delegate_interface
|
||||
import ../../../global/global_singleton
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
import NimQml, json, strutils, json_serialization
|
||||
import NimQml, json, strutils
|
||||
|
||||
import ./models/[sticker_list, sticker_pack_list]
|
||||
import ./io_interface, ./item
|
||||
import ../../../../app_service/service/eth/utils as eth_utils
|
||||
|
||||
QtObject:
|
||||
type
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
import sugar, sequtils, tables
|
||||
import sugar, sequtils
|
||||
import io_interface
|
||||
import ../../../../../app_service/service/wallet_account/service as wallet_account_service
|
||||
import ../../../../../app_service/service/network/service as network_service
|
||||
import ../../../../../app_service/service/currency/service as currency_service
|
||||
import ../../../../../app_service/service/currency/dto as currency_dto
|
||||
|
||||
import ../../../shared_modules/keycard_popup/io_interface as keycard_shared_module
|
||||
|
||||
type
|
||||
Controller* = ref object of RootObj
|
||||
delegate: io_interface.AccessInterface
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import ../../../../../app_service/service/wallet_account/service as wallet_account_service
|
||||
|
||||
type
|
||||
AccessInterface* {.pure inheritable.} = ref object of RootObj
|
||||
## Abstract class for any input/interaction with this module.
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import strformat
|
||||
import ../../../shared_models/wallet_account_item
|
||||
import ../../../shared_models/currency_amount
|
||||
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
import NimQml, Tables, strutils, strformat, macros
|
||||
import NimQml, Tables, strutils, strformat
|
||||
|
||||
import ./item
|
||||
import ../../../shared_models/currency_amount
|
||||
import ../../../shared_models/token_model
|
||||
|
||||
type
|
||||
ModelRole {.pure.} = enum
|
||||
|
|
|
@ -1,16 +1,13 @@
|
|||
import tables, NimQml, sequtils, sugar, chronicles
|
||||
import NimQml, sequtils, sugar
|
||||
|
||||
import ./io_interface, ./view, ./item, ./controller
|
||||
import ./io_interface, ./view, ./controller
|
||||
import ../io_interface as delegate_interface
|
||||
import ../../../../global/global_singleton
|
||||
import ../../../../core/eventemitter
|
||||
import ../../../../../app_service/common/account_constants
|
||||
import ../../../../../app_service/service/keycard/service as keycard_service
|
||||
import ../../../../../app_service/service/wallet_account/service as wallet_account_service
|
||||
import ../../../../../app_service/service/network/service as network_service
|
||||
import ../../../../../app_service/service/currency/service as currency_service
|
||||
import ../../../shared/wallet_utils
|
||||
import ../../../shared_modules/keycard_popup/io_interface as keycard_shared_module
|
||||
|
||||
export io_interface
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, sequtils, strutils, sugar
|
||||
import NimQml, sequtils, strutils
|
||||
|
||||
import ../../../../../app_service/service/wallet_account/service as wallet_account_service
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, logging, std/json, sequtils, sugar, options, strutils, locks
|
||||
import NimQml, logging, std/json, sequtils, sugar, options, strutils
|
||||
import tables, stint, sets
|
||||
|
||||
import model
|
||||
|
|
|
@ -5,7 +5,6 @@ import app/modules/shared_models/currency_amount
|
|||
|
||||
import app/global/global_singleton
|
||||
|
||||
import app_service/service/currency/dto as currency
|
||||
import app_service/service/currency/service
|
||||
|
||||
import web3/ethtypes as eth
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, logging, std/json, sequtils, strutils, options
|
||||
import NimQml, std/json, sequtils, strutils, options
|
||||
import tables, stint, sets
|
||||
|
||||
import entry
|
||||
|
@ -132,4 +132,4 @@ QtObject:
|
|||
proc updateSubscribedChainIDs*(self: EventsHandler, chainIDs: seq[int]) =
|
||||
self.subscribedChainIDs.clear()
|
||||
for chainID in chainIDs:
|
||||
self.subscribedChainIDs.incl(chainID)
|
||||
self.subscribedChainIDs.incl(chainID)
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import tables
|
||||
import algorithm
|
||||
import ./io_interface
|
||||
|
||||
import ../../../../core/eventemitter
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, sequtils, sugar
|
||||
import NimQml
|
||||
|
||||
import ./io_interface, ./view, ./controller
|
||||
import ../io_interface as delegate_interface
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, sequtils, sugar, strutils
|
||||
import NimQml, sequtils, strutils
|
||||
|
||||
import ./io_interface, ./sources_of_tokens_model, ./flat_tokens_model, ./token_by_symbol_model
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import sugar, sequtils, Tables
|
||||
import sugar, sequtils
|
||||
import io_interface
|
||||
import ../../../../../app_service/service/wallet_account/service as wallet_account_service
|
||||
import ../../../../../app_service/service/network/service as network_service
|
||||
|
@ -46,4 +46,4 @@ proc getCurrentCurrency*(self: Controller): string =
|
|||
return self.walletAccountService.getCurrency()
|
||||
|
||||
proc getCurrencyFormat*(self: Controller, symbol: string): CurrencyFormatDto =
|
||||
return self.currencyService.getCurrencyFormat(symbol)
|
||||
return self.currencyService.getCurrencyFormat(symbol)
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import strformat
|
||||
import ../../../shared_models/currency_amount
|
||||
|
||||
type
|
||||
Item* = object
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, Tables, sequtils, sugar
|
||||
import NimQml, sequtils, sugar
|
||||
|
||||
import ../../../../global/global_singleton
|
||||
import ../../../../core/eventemitter
|
||||
|
@ -9,10 +9,8 @@ import ../../../../../app_service/service/network/service as network_service
|
|||
import ../../../../../app_service/service/network_connection/service as network_connection
|
||||
import ../../../../../app_service/service/node/service as node_service
|
||||
import ../../../shared/wallet_utils
|
||||
import ../../../shared_models/currency_amount
|
||||
import ../../../shared_models/token_model as token_model
|
||||
import ../../../shared_models/token_item as token_item
|
||||
import ./item as account_item
|
||||
|
||||
import ./io_interface, ./view, ./controller
|
||||
import ../io_interface as delegate_interface
|
||||
|
@ -103,4 +101,4 @@ method filterChanged*(self: Module, addresses: seq[string], chainIds: seq[int])
|
|||
|
||||
proc onTokensRebuilt(self: Module, hasBalanceCache: bool, hasMarketValuesCache: bool) =
|
||||
self.view.setAssetsLoading(false)
|
||||
self.view.setCacheValues(hasBalanceCache, hasMarketValuesCache)
|
||||
self.view.setCacheValues(hasBalanceCache, hasMarketValuesCache)
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
import NimQml, sequtils, sugar, json
|
||||
import NimQml, json
|
||||
|
||||
import ./io_interface
|
||||
import ../../../shared_models/token_model as token_model
|
||||
import ../../../shared_models/token_item as token_item
|
||||
|
||||
import ./item as account_item
|
||||
|
||||
|
@ -78,4 +77,4 @@ QtObject:
|
|||
self.hasBalanceCache = hasBalanceCache
|
||||
self.hasBalanceCacheChanged()
|
||||
self.hasMarketValuesCache = hasMarketValuesCache
|
||||
self.hasMarketValuesCacheChanged()
|
||||
self.hasMarketValuesCacheChanged()
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import io_interface
|
||||
|
||||
import ../../../../../app_service/service/transaction/service as transaction_service
|
||||
import ../../../../../app_service/service/transaction/cryptoRampDto
|
||||
import ../../../../core/eventemitter
|
||||
|
||||
type
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import strformat, chronicles
|
||||
import strformat
|
||||
|
||||
type Item* = object
|
||||
name: string
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, sequtils, sugar
|
||||
import NimQml, sequtils
|
||||
|
||||
import ./io_interface, ./view, ./item, ./controller
|
||||
import ../io_interface as delegate_interface
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import NimQml
|
||||
|
||||
type
|
||||
AccessInterface* {.pure inheritable.} = ref object of RootObj
|
||||
## Abstract class for any input/interaction with this module.
|
||||
|
@ -26,4 +24,4 @@ method refreshNetworks*(self: AccessInterface) {.base.} =
|
|||
raise newException(ValueError, "No implementation available")
|
||||
|
||||
method getNetworkLayer*(self: AccessInterface, chainId: int): string {.base.} =
|
||||
raise newException(ValueError, "No implementation available")
|
||||
raise newException(ValueError, "No implementation available")
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import Tables, NimQml
|
||||
import NimQml
|
||||
import ../io_interface as delegate_interface
|
||||
import io_interface, view, controller
|
||||
import ../../../../global/global_singleton
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import Tables, NimQml, sequtils, sugar
|
||||
import NimQml, sequtils, sugar
|
||||
|
||||
import app_service/service/network/[dto, types]
|
||||
import ./io_interface
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import sugar, sequtils
|
||||
import io_interface
|
||||
import ../../../../../app_service/service/wallet_account/service as wallet_account_service
|
||||
import ../../../../../app_service/service/currency/service as currency_service
|
||||
|
@ -35,4 +34,4 @@ proc getCurrentCurrency*(self: Controller): string =
|
|||
return self.walletAccountService.getCurrency()
|
||||
|
||||
proc getCurrencyFormat*(self: Controller, symbol: string): CurrencyFormatDto =
|
||||
return self.currencyService.getCurrencyFormat(symbol)
|
||||
return self.currencyService.getCurrencyFormat(symbol)
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
import NimQml, Tables, sequtils, sugar
|
||||
import NimQml, sequtils, sugar
|
||||
|
||||
import ../../../../global/global_singleton
|
||||
import ../../../../core/eventemitter
|
||||
import ../../../../../app_service/service/currency/service as currency_service
|
||||
import ../../../../../app_service/service/wallet_account/service as wallet_account_service
|
||||
import ../../../../../app_service/service/network/service as network_service
|
||||
import ../../../shared/wallet_utils
|
||||
import ../../../shared_models/currency_amount
|
||||
import ./item
|
||||
|
||||
import ../filter
|
||||
import ./io_interface, ./view, ./controller
|
||||
import ../io_interface as delegate_interface
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, strformat
|
||||
import NimQml
|
||||
import ../../../shared_models/wallet_account_item
|
||||
import ../../../shared_models/token_model
|
||||
import ../../../shared_models/currency_amount
|
||||
|
@ -89,4 +89,4 @@ QtObject:
|
|||
notify = currencyBalanceChanged
|
||||
|
||||
proc canSend*(self: AccountItem): bool =
|
||||
return self.canSend
|
||||
return self.canSend
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, strformat
|
||||
import NimQml
|
||||
|
||||
QtObject:
|
||||
type GasFeesItem* = ref object of QObject
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import tables, NimQml, sequtils, sugar, json, stint, strutils, chronicles
|
||||
import tables, NimQml, sequtils, sugar, stint, strutils, chronicles
|
||||
|
||||
import ./io_interface, ./view, ./controller, ./network_item, ./transaction_routes, ./suggested_route_item, ./suggested_route_model, ./gas_estimate_item, ./gas_fees_item, ./network_model
|
||||
import ../io_interface as delegate_interface
|
||||
|
@ -8,7 +8,6 @@ import app_service/service/wallet_account/service as wallet_account_service
|
|||
import app_service/service/network/service as network_service
|
||||
import app_service/service/currency/service as currency_service
|
||||
import app_service/service/transaction/service as transaction_service
|
||||
import app_service/service/network_connection/service
|
||||
import app_service/service/keycard/service as keycard_service
|
||||
import app_service/service/keycard/constants as keycard_constants
|
||||
import app/modules/shared/wallet_utils
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, strformat
|
||||
import NimQml
|
||||
|
||||
import ./gas_fees_item
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import strutils, sequtils, sugar, chronicles
|
||||
import chronicles
|
||||
|
||||
import ../shared_models/[keypair_item, currency_amount]
|
||||
import ../../global/global_singleton
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
import NimQml, Tables, strutils, strformat, sequtils, stint, json
|
||||
import logging
|
||||
|
||||
import ./collectibles_item, ./collectible_trait_model
|
||||
import ./collectibles_item
|
||||
import web3/ethtypes as eth
|
||||
import backend/activity as backend_activity
|
||||
import backend/community_tokens_types
|
||||
import ../../../app_service/common/utils as common_utils
|
||||
|
||||
type
|
||||
CollectibleRole* {.pure.} = enum
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import strformat, stint
|
||||
import strformat
|
||||
|
||||
type
|
||||
Item* = object
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, Tables, strutils, strformat, sequtils, logging
|
||||
import NimQml, Tables, strutils, strformat, sequtils
|
||||
|
||||
import ./collectibles_model as flat_model
|
||||
import ./collectibles_item as flat_item
|
||||
|
@ -163,4 +163,4 @@ QtObject:
|
|||
self.beginResetModel()
|
||||
self.items = @[]
|
||||
self.endResetModel()
|
||||
self.countChanged()
|
||||
self.countChanged()
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import sequtils, sugar, times
|
||||
import collectibles_item as flat_item
|
||||
import collectibles_nested_item as nested_item
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import sequtils, sugar, times, options
|
||||
import options
|
||||
import backend/collectibles as backend
|
||||
import collectibles_item
|
||||
import ../../../app_service/service/community_tokens/dto/community_token
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
import strformat
|
||||
import ../../../app_service/service/message/dto/link_preview
|
||||
import ../../../app_service/service/message/dto/status_community_link_preview
|
||||
import ../../../app_service/service/message/dto/status_community_channel_link_preview
|
||||
|
||||
type
|
||||
Item* = ref object
|
||||
|
|
|
@ -2,7 +2,6 @@ import NimQml, strformat, tables, sequtils, sets
|
|||
import ./link_preview_item
|
||||
import ../../../app_service/service/message/dto/link_preview
|
||||
import ../../../app_service/service/message/dto/standard_link_preview
|
||||
import ../../../app_service/service/message/dto/status_link_preview
|
||||
import ../../../app_service/service/message/dto/status_contact_link_preview
|
||||
import ../../../app_service/service/message/dto/status_community_link_preview
|
||||
import ../../../app_service/service/message/dto/status_community_channel_link_preview
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, std/wrapnils, strutils, strformat, sugar
|
||||
import NimQml, std/wrapnils, strutils
|
||||
import ./message_item
|
||||
|
||||
QtObject:
|
||||
|
@ -196,4 +196,4 @@ QtObject:
|
|||
|
||||
proc albumImagesCount*(self: MessageItem): int {.slot.} = result = ?.self.messageItem.albumImagesCount
|
||||
QtProperty[int] albumImagesCount:
|
||||
read = albumImagesCount
|
||||
read = albumImagesCount
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import strformat
|
||||
|
||||
import ../../../app_service/service/wallet_account/dto/account_dto
|
||||
import ./balance_item as balance_item
|
||||
import ./balance_model as balance_model
|
||||
import ./currency_amount
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, tables, random, strutils, sequtils, sugar, chronicles
|
||||
import NimQml, tables, strutils, sequtils, sugar, chronicles
|
||||
|
||||
import io_interface
|
||||
import view, controller
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import Tables, NimQml
|
||||
import NimQml
|
||||
|
||||
import app/modules/shared_models/[keypair_item]
|
||||
import app_service/service/wallet_account/dto/derived_address_dto
|
||||
|
@ -75,4 +75,4 @@ method validateConnectionString*(self: AccessInterface, connectionString: string
|
|||
type
|
||||
DelegateInterface* = concept c
|
||||
c.onKeypairImportModuleLoaded()
|
||||
c.destroyKeypairImportPopup()
|
||||
c.destroyKeypairImportPopup()
|
||||
|
|
|
@ -570,4 +570,4 @@ method insertMockedKeycardAction*[T](self: Module[T], cardIndex: int) =
|
|||
self.keycardService.insertMockedKeycardAction(cardIndex)
|
||||
|
||||
method removeMockedKeycardAction*[T](self: Module[T]) =
|
||||
self.keycardService.removeMockedKeycardAction()
|
||||
self.keycardService.removeMockedKeycardAction()
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import json, os, strutils
|
||||
import json
|
||||
import ../../constants as main_constants
|
||||
|
||||
var NETWORKS* = %* [
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{.used.}
|
||||
|
||||
import std/jsonutils
|
||||
import json, sequtils, sugar, tables, strutils, json_serialization
|
||||
|
||||
import ../../../../backend/communities
|
||||
|
|
|
@ -18,7 +18,6 @@ import ../../../backend/communities as status_go
|
|||
import ../../../backend/community_tokens as tokens_backend
|
||||
|
||||
import ../../../app_service/common/types
|
||||
import ../../../app_service/common/utils
|
||||
|
||||
include ./async_tasks
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import json
|
||||
from backend/collectibles_types import CollectibleOwner
|
||||
|
||||
type
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, Tables, json, sequtils, strformat, chronicles, strutils, times, sugar, std/times
|
||||
import NimQml, Tables, json, sequtils, strformat, chronicles, strutils, times, std/times
|
||||
|
||||
import ../../../app/global/global_singleton
|
||||
import ../../../app/core/signals/types
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
import NimQml, Tables, sets, json, sequtils, strutils, chronicles
|
||||
import web3/conversions
|
||||
import web3/[conversions, ethtypes], stint
|
||||
import web3/ethtypes
|
||||
import web3/ethtypes, stint
|
||||
|
||||
import ../../../app/core/eventemitter
|
||||
import ../../../app/core/tasks/[qt, threadpool]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import std/uri, uuids
|
||||
import uuids
|
||||
include ../../common/json_utils
|
||||
include ../../../app/core/tasks/common
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import json, strformat, tables
|
||||
import ./link_preview_thumbnail, ./status_link_preview, ./standard_link_preview
|
||||
import ./status_link_preview, ./standard_link_preview
|
||||
import ./status_contact_link_preview, ./status_community_link_preview, ./status_community_channel_link_preview
|
||||
import ../../contacts/dto/contact_details
|
||||
import ../../community/dto/community
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import json, strformat, NimQml, chronicles
|
||||
import link_preview_thumbnail
|
||||
import json, chronicles
|
||||
import status_contact_link_preview
|
||||
import status_community_link_preview
|
||||
import status_community_channel_link_preview
|
||||
|
|
|
@ -17,9 +17,8 @@ import ./dto/reaction as reaction_dto
|
|||
import ../chat/dto/chat as chat_dto
|
||||
import ./dto/pinned_message_update as pinned_msg_update_dto
|
||||
import ./dto/removed_message as removed_msg_dto
|
||||
import ./dto/link_preview
|
||||
import ./dto/status_link_preview
|
||||
import ./dto/urls_unfurling_plan
|
||||
import ./dto/link_preview
|
||||
import ./message_cursor
|
||||
|
||||
import ../../common/message as message_common
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import os, parseutils
|
||||
import os
|
||||
|
||||
include ../../common/json_utils
|
||||
include ../../../app/core/tasks/common
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import json, json_serialization, sugar
|
||||
import json, json_serialization
|
||||
|
||||
include ../../../common/json_utils
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue