move types out of libstatus; remove libstatus types references

This commit is contained in:
Iuri Matias 2021-06-08 12:31:34 -04:00
parent daed733ebb
commit eab9d68aff
67 changed files with 75 additions and 82 deletions

View File

@ -1,6 +1,5 @@
import NimQml, chronicles import NimQml, chronicles
import ../../status/status import ../../status/status
import ../../status/libstatus/types as status_types
import view import view
logScope: logScope:

View File

@ -1,7 +1,7 @@
import NimQml, json, chronicles import NimQml, json, chronicles
import ../../status/status import ../../status/status
import ../../status/libstatus/browser as status_browser import ../../status/libstatus/browser as status_browser
import ../../status/libstatus/types import ../../status/types
import views/bookmark_list import views/bookmark_list
QtObject: QtObject:

View File

@ -1,6 +1,6 @@
import NimQml, Tables, chronicles import NimQml, Tables, chronicles
import sequtils as sequtils import sequtils as sequtils
import ../../../status/libstatus/types import ../../../status/types
type type
BookmarkRoles {.pure.} = enum BookmarkRoles {.pure.} = enum

View File

@ -2,7 +2,7 @@ import NimQml, chronicles, tables
import ../../status/chat as chat_model import ../../status/chat as chat_model
import ../../status/messages as messages_model import ../../status/messages as messages_model
import ../../status/signals/types import ../../status/signals/types
import ../../status/libstatus/types as status_types import ../../status/types as status_types
import ../../status/[chat, contacts, status, wallet, stickers, settings] import ../../status/[chat, contacts, status, wallet, stickers, settings]
import view, views/channels_list, views/message_list, views/reactions, views/stickers as stickers_view import view, views/channels_list, views/message_list, views/reactions, views/stickers as stickers_view
import ../../eventemitter import ../../eventemitter

View File

@ -1,6 +1,6 @@
import NimQml, Tables, std/wrapnils import NimQml, Tables, std/wrapnils
import ../../../status/[chat/chat, status, ens, accounts, settings] import ../../../status/[chat/chat, status, ens, accounts, settings]
from ../../../status/libstatus/types import Setting from ../../../status/types import Setting
import ../../../status/libstatus/utils as status_utils import ../../../status/libstatus/utils as status_utils
import chat_members import chat_members

View File

@ -7,7 +7,7 @@ import ./community_membership_request_list
import ./channels_list import ./channels_list
import ../../utils/image_utils import ../../utils/image_utils
import ../../../status/signals/types as signal_types import ../../../status/signals/types as signal_types
import ../../../status/libstatus/types import ../../../status/types
logScope: logScope:

View File

@ -2,7 +2,7 @@ import NimQml, tables, json, chronicles
import ../../../status/[status, chat/message, chat/chat, settings] import ../../../status/[status, chat/message, chat/chat, settings]
import message_list, chat_item import message_list, chat_item
import ../../../status/libstatus/utils as status_utils import ../../../status/libstatus/utils as status_utils
import ../../../status/libstatus/types import ../../../status/types
logScope: logScope:
topics = "reactions-view" topics = "reactions-view"

View File

@ -1,6 +1,6 @@
import NimQml, Tables, sequtils import NimQml, Tables, sequtils
import ../../../status/chat/stickers import ../../../status/chat/stickers
import ../../../status/libstatus/types import ../../../status/types
type type
StickerRoles {.pure.} = enum StickerRoles {.pure.} = enum

View File

@ -1,6 +1,6 @@
import NimQml, Tables, sequtils, sugar import NimQml, Tables, sequtils, sugar
import ../../../status/chat/stickers, ./sticker_list import ../../../status/chat/stickers, ./sticker_list
import ../../../status/libstatus/types, ../../../status/libstatus/utils import ../../../status/types, ../../../status/libstatus/utils
type type
StickerPackRoles {.pure.} = enum StickerPackRoles {.pure.} = enum

View File

@ -5,7 +5,7 @@ import # vendor libs
chronicles, NimQml chronicles, NimQml
import # status-desktop libs import # status-desktop libs
../../../status/[status, stickers, wallet], ../../../status/libstatus/[types, utils], ../../../status/[status, stickers, wallet, types], ../../../status/libstatus/utils,
../../../status/libstatus/stickers as status_stickers, sticker_pack_list, sticker_list, chat_item, ../../../status/tasks/[qt, task_runner_impl] ../../../status/libstatus/stickers as status_stickers, sticker_pack_list, sticker_list, chat_item, ../../../status/tasks/[qt, task_runner_impl]
logScope: logScope:

View File

@ -1,5 +1,5 @@
import NimQml, chronicles, options, std/wrapnils import NimQml, chronicles, options, std/wrapnils
import ../../status/libstatus/types as status_types import ../../status/types as status_types
import ../../status/signals/types import ../../status/signals/types
import ../../status/status import ../../status/status
import view import view

View File

@ -1,6 +1,6 @@
import NimQml, Tables, json, nimcrypto, strformat, json_serialization, chronicles import NimQml, Tables, json, nimcrypto, strformat, json_serialization, chronicles
import ../../status/signals/types import ../../status/signals/types
import ../../status/libstatus/types as status_types import ../../status/types as status_types
import ../../status/accounts as AccountModel import ../../status/accounts as AccountModel
import ../onboarding/views/account_info import ../onboarding/views/account_info
import ../../status/status import ../../status/status

View File

@ -1,7 +1,7 @@
import NimQml, chronicles import NimQml, chronicles
import ../../status/signals/types import ../../status/signals/types
import ../../status/[status, node, network] import ../../status/[status, node, network]
import ../../status/libstatus/types as status_types import ../../status/types as status_types
import ../../eventemitter import ../../eventemitter
import view import view

View File

@ -1,5 +1,5 @@
import NimQml, chronicles, std/wrapnils import NimQml, chronicles, std/wrapnils
import ../../status/libstatus/types as status_types import ../../status/types as status_types
import ../../status/accounts as AccountModel import ../../status/accounts as AccountModel
import ../../status/status import ../../status/status
import ../../status/signals/types import ../../status/signals/types

View File

@ -1,5 +1,5 @@
import NimQml, Tables, json, nimcrypto, strformat, json_serialization, strutils import NimQml, Tables, json, nimcrypto, strformat, json_serialization, strutils
import ../../status/libstatus/types as status_types import ../../status/types as status_types
import ../../status/signals/types import ../../status/signals/types
import ../../status/accounts as AccountModel import ../../status/accounts as AccountModel
import ../../status/[status, wallet] import ../../status/[status, wallet]

View File

@ -1,5 +1,5 @@
import NimQml import NimQml
import ../../../status/libstatus/types import ../../../status/types
import std/wrapnils import std/wrapnils
QtObject: QtObject:

View File

@ -2,7 +2,7 @@ import NimQml, json, strutils, sugar, sequtils, tables
import json_serialization import json_serialization
import ../../status/signals/types import ../../status/signals/types
import ../../status/libstatus/accounts/constants import ../../status/libstatus/accounts/constants
import ../../status/libstatus/types as status_types import ../../status/types as status_types
import ../../status/profile/[profile, mailserver] import ../../status/profile/[profile, mailserver]
import ../../status/[status, settings] import ../../status/[status, settings]
import ../../status/contacts as status_contacts import ../../status/contacts as status_contacts

View File

@ -8,7 +8,7 @@ import ../../status/contacts as status_contacts
import ../../status/status import ../../status/status
import ../../status/ens as status_ens import ../../status/ens as status_ens
import ../../status/chat/chat import ../../status/chat/chat
import ../../status/libstatus/types import ../../status/types
import ../../status/libstatus/accounts/constants as accountConstants import ../../status/libstatus/accounts/constants as accountConstants
import qrcode/qrcode import qrcode/qrcode
import ../utils/image_utils import ../utils/image_utils

View File

@ -2,7 +2,7 @@ import NimQml
import Tables import Tables
import json, sequtils, sugar import json, sequtils, sugar
import ../../../status/libstatus/settings import ../../../status/libstatus/settings
import ../../../status/libstatus/types import ../../../status/types
type type
CustomNetworkRoles {.pure.} = enum CustomNetworkRoles {.pure.} = enum

View File

@ -3,7 +3,7 @@ import Tables
import json import json
import sequtils import sequtils
import strutils import strutils
from ../../../status/libstatus/types import Setting, PendingTransactionType, RpcException from ../../../status/types import Setting, PendingTransactionType, RpcException
import ../../../status/ens as status_ens import ../../../status/ens as status_ens
import ../../../status/libstatus/wallet as status_wallet import ../../../status/libstatus/wallet as status_wallet
import ../../../status/libstatus/settings as status_settings import ../../../status/libstatus/settings as status_settings

View File

@ -1,6 +1,6 @@
import NimQml import NimQml
import chronicles, strutils import chronicles, strutils
import ../../../status/libstatus/types as status_types import ../../../status/types as status_types
import ../../../status/[status, settings, accounts] import ../../../status/[status, settings, accounts]
QtObject: QtObject:

View File

@ -1,6 +1,6 @@
import NimQml, chronicles, strutils import NimQml, chronicles, strutils
import ../../../status/[status, settings] import ../../../status/[status, settings]
import ../../../status/libstatus/types import ../../../status/types
import options import options
logScope: logScope:

View File

@ -1,7 +1,7 @@
import NimQml import NimQml
import chronicles import chronicles
import ../../../status/profile/profile import ../../../status/profile/profile
import ../../../status/libstatus/types import ../../../status/types
import std/wrapnils import std/wrapnils
QtObject: QtObject:

View File

@ -1,6 +1,6 @@
import NimQml import NimQml
import ../../status/[status, ens, chat/stickers, wallet, settings] import ../../status/[status, ens, chat/stickers, wallet, settings]
import ../../status/libstatus/types import ../../status/types
import ../../status/libstatus/accounts import ../../status/libstatus/accounts
import ../../status/libstatus/core import ../../status/libstatus/core
import ../../status/libstatus/settings as status_settings import ../../status/libstatus/settings as status_settings

View File

@ -1,7 +1,7 @@
import NimQml, chronicles import NimQml, chronicles
import ../../status/signals/types import ../../status/signals/types
import ../../status/[status, node, network] import ../../status/[status, node, network]
import ../../status/libstatus/types as status_types import ../../status/types as status_types
import view import view
import ../../eventemitter import ../../eventemitter

View File

@ -4,7 +4,7 @@ import ../../status/[status, wallet]
import ../../status/stickers import ../../status/stickers
import ../../status/libstatus/accounts/constants as accountConstants import ../../status/libstatus/accounts/constants as accountConstants
import ../../status/libstatus/tokens import ../../status/libstatus/tokens
import ../../status/libstatus/types import ../../status/types
import ../../status/libstatus/settings import ../../status/libstatus/settings
import ../../status/libstatus/utils as status_utils import ../../status/libstatus/utils as status_utils
import ../../status/ens as status_ens import ../../status/ens as status_ens

View File

@ -2,7 +2,7 @@ import NimQml, strformat, strutils, chronicles, sugar, sequtils
import view import view
import views/[asset_list, account_list, account_item] import views/[asset_list, account_list, account_item]
import ../../status/libstatus/types as status_types import ../../status/types as status_types
import ../../status/signals/types import ../../status/signals/types
import ../../status/[status, wallet, settings] import ../../status/[status, wallet, settings]
import ../../status/wallet/account as WalletTypes import ../../status/wallet/account as WalletTypes

View File

@ -10,7 +10,7 @@ import # status-desktop libs
../../status/wallet/collectibles as status_collectibles, ../../status/wallet/collectibles as status_collectibles,
../../status/libstatus/accounts/constants, ../../status/libstatus/accounts/constants,
../../status/libstatus/wallet as status_wallet, ../../status/libstatus/wallet as status_wallet,
../../status/libstatus/tokens, ../../status/libstatus/types, ../../status/libstatus/tokens, ../../status/types,
../../status/libstatus/utils as status_utils, ../../status/libstatus/utils as status_utils,
../../status/libstatus/eth/contracts, ../../status/ens as status_ens, ../../status/libstatus/eth/contracts, ../../status/ens as status_ens,
views/[asset_list, account_list, account_item, token_list, transaction_list, collectibles_list], views/[asset_list, account_list, account_item, token_list, transaction_list, collectibles_list],

View File

@ -10,7 +10,7 @@ import app/onboarding/core as onboarding
import app/login/core as login import app/login/core as login
import app/provider/core as provider import app/provider/core as provider
import status/signals/core as signals import status/signals/core as signals
import status/libstatus/types import status/types
import status/libstatus/accounts/constants import status/libstatus/accounts/constants
import status_go import status_go
import status/status as statuslib import status/status as statuslib

View File

@ -2,7 +2,7 @@ import options, chronicles, json, json_serialization, sequtils, sugar
import libstatus/accounts as status_accounts import libstatus/accounts as status_accounts
import libstatus/settings as status_settings import libstatus/settings as status_settings
import libstatus/accounts/constants import libstatus/accounts/constants
import libstatus/types import types
import libstatus/utils import libstatus/utils
import ../eventemitter import ../eventemitter

View File

@ -3,7 +3,7 @@ import libstatus/chat as status_chat
import libstatus/mailservers as status_mailservers import libstatus/mailservers as status_mailservers
import libstatus/chatCommands as status_chat_commands import libstatus/chatCommands as status_chat_commands
import libstatus/accounts/constants as constants import libstatus/accounts/constants as constants
import libstatus/types import types
import libstatus/utils as status_utils import libstatus/utils as status_utils
import libstatus/contacts as status_contacts import libstatus/contacts as status_contacts
import stickers import stickers

View File

@ -1,6 +1,6 @@
import strformat, json, sequtils import strformat, json, sequtils
from message import Message from message import Message
import ../libstatus/types import ../types
type ChatType* {.pure.}= enum type ChatType* {.pure.}= enum
Unknown = 0, Unknown = 0,

View File

@ -1,6 +1,6 @@
import system import system
import libstatus/settings import libstatus/settings
import libstatus/types import types
import libstatus/installations import libstatus/installations
import profile/devices import profile/devices
import json import json

View File

@ -6,7 +6,7 @@ import json_serialization
import tables import tables
import strformat import strformat
import libstatus/core import libstatus/core
import libstatus/types import types
import libstatus/utils import libstatus/utils
import libstatus/wallet import libstatus/wallet
import stew/byteutils import stew/byteutils

View File

@ -1,5 +1,5 @@
import json import json
import libstatus/types import types
type type
FleetModel* = ref object FleetModel* = ref object

View File

@ -3,7 +3,7 @@ import json, os, nimcrypto, uuids, json_serialization, chronicles, strutils
from status_go import multiAccountGenerateAndDeriveAddresses, generateAlias, identicon, saveAccountAndLogin, login, openAccounts from status_go import multiAccountGenerateAndDeriveAddresses, generateAlias, identicon, saveAccountAndLogin, login, openAccounts
import core import core
import utils as utils import utils as utils
import types as types import ../types as types
import accounts/constants import accounts/constants
import ../signals/types as signal_types import ../signals/types as signal_types
import ../wallet/account import ../wallet/account

View File

@ -1,4 +1,4 @@
import core, types, json, chronicles import core, ../types, json, chronicles
proc storeBookmark*(url: string, name: string): Bookmark = proc storeBookmark*(url: string, name: string): Bookmark =
let payload = %* [{"url": url, "name": name}] let payload = %* [{"url": url, "name": name}]

View File

@ -2,7 +2,7 @@ import json, times, strutils, sequtils, chronicles, json_serialization, algorith
import core, utils import core, utils
import ../chat/[chat, message] import ../chat/[chat, message]
import ../signals/messages import ../signals/messages
import ./types import ../types
import ./settings as status_settings import ./settings as status_settings
proc buildFilter*(chat: Chat):JsonNode = proc buildFilter*(chat: Chat):JsonNode =

View File

@ -1,5 +1,5 @@
import json, strmisc, atomics import json, strmisc, atomics
import core, utils, types, settings import core, utils, ../types, settings
from ../profile/profile import Profile from ../profile/profile import Profile
var var

View File

@ -1,6 +1,6 @@
import typetraits import typetraits
import edn, chronicles import edn, chronicles
import ./types # FIXME: there should be no type deps import ../types # FIXME: there should be no type deps
# forward declaration: # forward declaration:
proc parseNode[T](node: EdnNode, searchName: string): T proc parseNode[T](node: EdnNode, searchName: string): T

View File

@ -5,7 +5,7 @@ import
web3/ethtypes, stew/byteutils, nimcrypto, json_serialization, chronicles web3/ethtypes, stew/byteutils, nimcrypto, json_serialization, chronicles
import import
../types, ../settings, ../coder, transactions, methods, ../utils ../../types, ../settings, ../coder, transactions, methods, ../utils
export export
GetPackData, PackData, BuyToken, ApproveAndCall, Transfer, BalanceOf, Register, SetPubkey, GetPackData, PackData, BuyToken, ApproveAndCall, Transfer, BalanceOf, Register, SetPubkey,

View File

@ -2,7 +2,7 @@ import
web3/ethtypes web3/ethtypes
import import
transactions, ../types transactions, ../../types
proc sendTransaction*(tx: var EthSend, password: string, success: var bool): string = proc sendTransaction*(tx: var EthSend, password: string, success: var bool): string =
success = true success = true

View File

@ -5,7 +5,7 @@ import
nimcrypto, web3/[encoding, ethtypes] nimcrypto, web3/[encoding, ethtypes]
import import
../coder, eth, transactions, ../types # FIXME: 'types' produces a compiler warning, but doesn't compiler without it 🤷‍♂️ ../coder, eth, transactions, ../../types # FIXME: 'types' produces a compiler warning, but doesn't compiler without it 🤷‍♂️
export sendTransaction export sendTransaction

View File

@ -5,7 +5,7 @@ import
json_serialization, chronicles, web3/ethtypes json_serialization, chronicles, web3/ethtypes
import import
../core, ../types, ../conversions ../core, ../../types, ../conversions
proc estimateGas*(tx: EthSend): RpcResponse = proc estimateGas*(tx: EthSend): RpcResponse =
let response = core.callPrivateRPC("eth_estimateGas", %*[%tx]) let response = core.callPrivateRPC("eth_estimateGas", %*[%tx])

View File

@ -5,7 +5,7 @@ import
json_serialization, chronicles, uuids json_serialization, chronicles, uuids
import import
./core, ./types, ../signals/types as statusgo_types, ./accounts/constants, ./core, ../types, ../signals/types as statusgo_types, ./accounts/constants,
./utils ./utils
var var

View File

@ -8,7 +8,7 @@ import # vendor libs
from nimcrypto import fromHex from nimcrypto import fromHex
import # status-desktop libs import # status-desktop libs
./core as status, ./types, ./eth/contracts, ./settings, ./edn_helpers ./core as status, ../types, ./eth/contracts, ./settings, ./edn_helpers
proc decodeContentHash*(value: string): string = proc decodeContentHash*(value: string): string =
if value == "": if value == "":

View File

@ -6,7 +6,7 @@ import
import import
./settings, ./core, ./wallet, ./eth/contracts ./settings, ./core, ./wallet, ./eth/contracts
from types import Setting, Network, RpcResponse, RpcException from ../types import Setting, Network, RpcResponse, RpcException
from utils import parseAddress from utils import parseAddress
logScope: logScope:

View File

@ -1,12 +1,9 @@
import # std libs import json, json, options, json_serialization, stint, chronicles
json, times, options, strutils, strformat import core, ../types, utils, strutils, strformat
import utils
import # vendor libs from status_go import validateMnemonic#, startWallet
json_serialization, stint, chronicles, web3/ethtypes import ../wallet/account
from status_go import validateMnemonic import web3/ethtypes
import # status-desktop libs
../wallet/account, ./types, ./conversions, ./core, ./types, ./utils
proc getWalletAccounts*(): seq[WalletAccount] = proc getWalletAccounts*(): seq[WalletAccount] =
try: try:

View File

@ -8,7 +8,7 @@ import ../eventemitter
import signals/types import signals/types
#TODO: temporary? #TODO: temporary?
import libstatus/types as LibStatusTypes import types as LibStatusTypes
type type
MailserversModel* = ref object MailserversModel* = ref object

View File

@ -4,7 +4,7 @@ import libstatus/settings
import json import json
import uuids import uuids
import json_serialization import json_serialization
import libstatus/types import types
logScope: logScope:
topics = "network-model" topics = "network-model"

View File

@ -1,5 +1,5 @@
import json import json
import libstatus/types import types
import profile/profile import profile/profile
import libstatus/core as libstatus_core import libstatus/core as libstatus_core
import libstatus/accounts as status_accounts import libstatus/accounts as status_accounts

View File

@ -1,5 +1,5 @@
import json import json
import ../libstatus/types import ../types
type Profile* = ref object type Profile* = ref object
id*, alias*, username*, identicon*, address*, ensName*, localNickname*: string id*, alias*, username*, identicon*, address*, ensName*, localNickname*: string

View File

@ -8,7 +8,7 @@ import ../eventemitter
import signals/types import signals/types
#TODO: temporary? #TODO: temporary?
import libstatus/types as LibStatusTypes import types as LibStatusTypes
type type
SettingsModel* = ref object SettingsModel* = ref object

View File

@ -1,6 +1,6 @@
import json, strutils, sequtils, sugar, chronicles import json, strutils, sequtils, sugar, chronicles
import json_serialization import json_serialization
import ../libstatus/types as status_types import ../types as status_types
import ../chat/[chat] import ../chat/[chat]
import types, messages import types, messages

View File

@ -1,5 +1,5 @@
import NimQml, tables, json, chronicles, strutils, json_serialization import NimQml, tables, json, chronicles, strutils, json_serialization
import ../libstatus/types as status_types import ../types as status_types
import types, messages, discovery, whisperFilter, envelopes, expired, wallet, mailserver, communities import types, messages, discovery, whisperFilter, envelopes, expired, wallet, mailserver, communities
import ../status import ../status
import ../../eventemitter import ../../eventemitter

View File

@ -5,7 +5,7 @@ import ../libstatus/accounts as status_accounts
import ../libstatus/accounts/constants as constants import ../libstatus/accounts/constants as constants
import ../libstatus/settings as status_settings import ../libstatus/settings as status_settings
import ../libstatus/tokens as status_tokens import ../libstatus/tokens as status_tokens
import ../libstatus/types as status_types import ../types as status_types
import ../libstatus/eth/contracts as status_contracts import ../libstatus/eth/contracts as status_contracts
import ../chat/[chat, message] import ../chat/[chat, message]
import ../profile/[profile, devices] import ../profile/[profile, devices]

View File

@ -1,5 +1,5 @@
import json, chronicles, json_serialization, tables import json, chronicles, json_serialization, tables
import ../libstatus/types import ../types
import ../chat/[chat, message] import ../chat/[chat, message]
import ../profile/[profile, devices] import ../profile/[profile, devices]
import ../../eventemitter import ../../eventemitter

View File

@ -1,7 +1,7 @@
import libstatus/accounts as libstatus_accounts import libstatus/accounts as libstatus_accounts
import libstatus/core as libstatus_core import libstatus/core as libstatus_core
import libstatus/settings as libstatus_settings import libstatus/settings as libstatus_settings
import libstatus/types as libstatus_types import types as libstatus_types
import chat, accounts, wallet, node, network, messages, contacts, profile, stickers, permissions, fleet, settings, mailservers import chat, accounts, wallet, node, network, messages, contacts, profile, stickers, permissions, fleet, settings, mailservers
import ../eventemitter import ../eventemitter
import ./tasks/task_runner_impl import ./tasks/task_runner_impl

View File

@ -5,7 +5,7 @@ import # project deps
chronicles, web3/[ethtypes, conversions], stint chronicles, web3/[ethtypes, conversions], stint
import # local deps import # local deps
libstatus/types, libstatus/eth/contracts as status_contracts, types, libstatus/eth/contracts as status_contracts,
libstatus/stickers as status_stickers, transactions, libstatus/stickers as status_stickers, transactions,
libstatus/wallet, ../eventemitter libstatus/wallet, ../eventemitter
from libstatus/utils as libstatus_utils import eth2Wei, gwei2Wei, toUInt64, parseAddress from libstatus/utils as libstatus_utils import eth2Wei, gwei2Wei, toUInt64, parseAddress

View File

@ -7,7 +7,7 @@ import
../../../libstatus/settings as status_settings, ../../../libstatus/settings as status_settings,
../../../libstatus/mailservers as status_mailservers, ../../../libstatus/mailservers as status_mailservers,
../../../libstatus/core as status_core, ../../../libstatus/chat as status_chat, ../../../libstatus/core as status_core, ../../../libstatus/chat as status_chat,
../../../libstatus/types, ../../../fleet, ../../../types, ../../../fleet,
./events as mailserver_events ./events as mailserver_events
logScope: logScope:

View File

@ -5,7 +5,7 @@ import
stint, web3/ethtypes stint, web3/ethtypes
import import
libstatus/types types
from libstatus/utils as status_utils import toUInt64, gwei2Wei, parseAddress from libstatus/utils as status_utils import toUInt64, gwei2Wei, parseAddress
proc buildTransaction*(source: Address, value: Uint256, gas = "", gasPrice = "", data = ""): EthSend = proc buildTransaction*(source: Address, value: Uint256, gas = "", gasPrice = "", data = ""): EthSend =

View File

@ -1,11 +1,7 @@
import # std libs import json, options, typetraits, tables, sequtils
json, options, typetraits, tables, sequtils, strutils import web3/ethtypes, json_serialization, stint
import libstatus/accounts/constants
import # vendor libs import ../eventemitter
web3/ethtypes, json_serialization, stint
import # status-desktop libs
accounts/constants, ../../eventemitter
type SignalType* {.pure.} = enum type SignalType* {.pure.} = enum
Message = "messages.new" Message = "messages.new"
@ -270,3 +266,4 @@ proc getNodes*(self: FleetConfig, fleet: Fleet, nodeType: FleetNodes = FleetNode
proc getMailservers*(self: FleetConfig, fleet: Fleet): Table[string, string] = proc getMailservers*(self: FleetConfig, fleet: Fleet): Table[string, string] =
result = self.fleet[$fleet][$FleetNodes.Mailservers] result = self.fleet[$fleet][$FleetNodes.Mailservers]

View File

@ -10,7 +10,7 @@ import libstatus/wallet as status_wallet
import libstatus/accounts/constants as constants import libstatus/accounts/constants as constants
import libstatus/eth/[eth, contracts] import libstatus/eth/[eth, contracts]
from libstatus/core import getBlockByNumber from libstatus/core import getBlockByNumber
from libstatus/types import PendingTransactionType, GeneratedAccount, DerivedAccount, Transaction, Setting, GasPricePrediction, `%`, StatusGoException, Network, RpcResponse, RpcException from types import PendingTransactionType, GeneratedAccount, DerivedAccount, Transaction, Setting, GasPricePrediction, `%`, StatusGoException, Network, RpcResponse, RpcException
from libstatus/utils as libstatus_utils import eth2Wei, gwei2Wei, first, toUInt64, parseAddress from libstatus/utils as libstatus_utils import eth2Wei, gwei2Wei, first, toUInt64, parseAddress
import wallet/[balance_manager, account, collectibles] import wallet/[balance_manager, account, collectibles]
import transactions import transactions

View File

@ -1,5 +1,5 @@
from ../../eventemitter import Args from ../../eventemitter import Args
import ../libstatus/types import ../types
import options import options
type CollectibleList* = ref object type CollectibleList* = ref object

View File

@ -1,7 +1,7 @@
import strformat, strutils, stint, httpclient, json, chronicles, net import strformat, strutils, stint, httpclient, json, chronicles, net
import ../libstatus/wallet as status_wallet import ../libstatus/wallet as status_wallet
import ../libstatus/tokens as status_tokens import ../libstatus/tokens as status_tokens
import ../libstatus/types as status_types import ../types as status_types
import ../utils/cache import ../utils/cache
import account import account
import options import options

View File

@ -7,7 +7,7 @@ import # vendor libs
import # status-desktop libs import # status-desktop libs
../libstatus/core as status, ../libstatus/eth/contracts as contracts, ../libstatus/core as status, ../libstatus/eth/contracts as contracts,
../libstatus/stickers as status_stickers, ../libstatus/types, ../libstatus/stickers as status_stickers, ../types,
web3/[conversions, ethtypes], ../libstatus/utils, account web3/[conversions, ethtypes], ../libstatus/utils, account
const CRYPTOKITTY* = "cryptokitty" const CRYPTOKITTY* = "cryptokitty"

2
vendor/status-go vendored

@ -1 +1 @@
Subproject commit 43fa2edc1e6e0afa65724d47a95d47cd28c21d85 Subproject commit 10becb490228d416ff361bdb8a965537b4803af5