move status-im under legacy (#18237)

This commit is contained in:
flexsurfer 2023-12-19 18:41:30 +01:00 committed by GitHub
parent 842203a4d0
commit f89fd8ca54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
428 changed files with 2029 additions and 2020 deletions

View File

@ -1,55 +1,55 @@
status-im.utils.build/warning-handler
status-im.utils.build/get-current-sha
legacy.status-im.utils.build/warning-handler
legacy.status-im.utils.build/get-current-sha
status-im2.constants/spacing-char
status-im2.constants/arg-wrapping-char
status-im.ios.core/init
status-im.ui.components.camera/aspects
status-im.ui.components.camera/capture-targets
status-im.ui.components.camera/set-torch
status-im.ui.components.camera/request-access-ios
status-im.chat.models.message-content/stylings
status-im.chat.models.message-content/actions
status-im.chat.models.message-content/blank-string
status-im.chat.models.message-content/sorted-ranges
status-im.ethereum.mnemonic/words->passphrase
legacy.status-im.ios.core/init
legacy.status-im.ui.components.camera/aspects
legacy.status-im.ui.components.camera/capture-targets
legacy.status-im.ui.components.camera/set-torch
legacy.status-im.ui.components.camera/request-access-ios
legacy.status-im.chat.models.message-content/stylings
legacy.status-im.chat.models.message-content/actions
legacy.status-im.chat.models.message-content/blank-string
legacy.status-im.chat.models.message-content/sorted-ranges
legacy.status-im.ethereum.mnemonic/words->passphrase
native-module.core/listener
native-module.core/multiaccount-reset
native-module.core/extract-group-membership-signatures
native-module.core/sign-group-membership
native-module.core/update-mailservers
status-im.ethereum.abi-spec/bytes-to-hex
status-im.android.core/init
status-im.chat.models.message/transport-keys
status-im.utils.datetime/week
status-im.utils.datetime/time-ago
status-im.utils.datetime/format-date
status-im.utils.datetime/get-ordinal-date
legacy.status-im.ethereum.abi-spec/bytes-to-hex
legacy.status-im.android.core/init
legacy.status-im.chat.models.message/transport-keys
legacy.status-im.utils.datetime/week
legacy.status-im.utils.datetime/time-ago
legacy.status-im.utils.datetime/format-date
legacy.status-im.utils.datetime/get-ordinal-date
reagent.dom/render
reagent.dom/unmount-component-at-node
reagent.dom/dom-node
reagent.dom/force-update-all
status-im.multiaccounts.create.core/get-new-key-code
status-im.ethereum.decode/string
status-im.ui.screens.network.views/mainnet?
status-im.data-store.chats/event->string
status-im.mailserver.constants/seven-days
status-im.mailserver.constants/connection-timeout
status-im.hardwallet.card/install-applet
status-im.hardwallet.card/install-cash-applet
status-im.multiaccount.login.data-test/all-contacts
status-im.multiaccount.login.data-test/multiaccounts
status-im.multiaccount.login.data-test/get-chats
status-im.multiaccount.login.data-test/transport
status-im.multiaccount.login.data-test/topics
status-im.utils.utils/clear-timeout
status-im.utils.handlers/logged-in
status-im.multiaccounts.model/credentials
status-im.multiaccounts.login.core/contract-fleet?
status-im.multiaccounts.login.core/fetch-nodes
legacy.status-im.multiaccounts.create.core/get-new-key-code
legacy.status-im.ethereum.decode/string
legacy.status-im.ui.screens.network.views/mainnet?
legacy.status-im.data-store.chats/event->string
legacy.status-im.mailserver.constants/seven-days
legacy.status-im.mailserver.constants/connection-timeout
legacy.status-im.hardwallet.card/install-applet
legacy.status-im.hardwallet.card/install-cash-applet
legacy.status-im.multiaccount.login.data-test/all-contacts
legacy.status-im.multiaccount.login.data-test/multiaccounts
legacy.status-im.multiaccount.login.data-test/get-chats
legacy.status-im.multiaccount.login.data-test/transport
legacy.status-im.multiaccount.login.data-test/topics
legacy.status-im.utils.utils/clear-timeout
legacy.status-im.utils.handlers/logged-in
legacy.status-im.multiaccounts.model/credentials
legacy.status-im.multiaccounts.login.core/contract-fleet?
legacy.status-im.multiaccounts.login.core/fetch-nodes
status-im2.config/rpc-networks-only?
status-im2.config/waku-enabled?
status-im.utils.pairing/has-paired-installations?
status-im.tribute-to-talk.core-test/user-cofx
legacy.status-im.utils.pairing/has-paired-installations?
legacy.status-im.tribute-to-talk.core-test/user-cofx
mocks.js-dependencies/action-button
mocks.js-dependencies/camera
mocks.js-dependencies/dismiss-keyboard
@ -78,36 +78,36 @@ mocks.js-dependencies/react-navigation-bottom-tabs
mocks.js-dependencies/react-native-haptic-feedback
mocks.js-dependencies/mock
quo.previews.main/init
status-im.chat.models.message-list-test/descending-range
status-im.chat.models.message-list-test/random-range
status-im.ethereum.eip165/supports?
status-im.utils.hex/valid-hex?
status-im.multiaccounts.core/chat-send?
status-im.hardwallet.simulated-keycard/install-cash-applet
status-im.hardwallet.simulated-keycard/sign-typed-data
status-im.utils.core/safe-read-message-content
status-im.ui.components.react/native-modules
status-im.ui.components.react/progress-bar
legacy.status-im.chat.models.message-list-test/descending-range
legacy.status-im.chat.models.message-list-test/random-range
legacy.status-im.ethereum.eip165/supports?
legacy.status-im.utils.hex/valid-hex?
legacy.status-im.multiaccounts.core/chat-send?
legacy.status-im.hardwallet.simulated-keycard/install-cash-applet
legacy.status-im.hardwallet.simulated-keycard/sign-typed-data
legacy.status-im.utils.core/safe-read-message-content
legacy.status-im.ui.components.react/native-modules
legacy.status-im.ui.components.react/progress-bar
react-native.fs/move-file
react-native.fs/read-dir
react-native.fs/mkdir
react-native.fs/unlink
react-native.fs/file-exists?
status-im.ui.components.colors/white
status-im.ui.components.colors/black
status-im.ui.components.core/animated-header
status-im.ui.components.core/safe-area-provider
status-im.ui.components.core/safe-area-consumer
status-im.ui.components.core/safe-area-view
status-im.utils.universal-links.core/open!
status-im.transport.filters.core-test/member-2
status-im.ui.screens.chat.ttt/one-to-one-chat-description-container
status-im.ethereum.ens/ttl
status-im.ethereum.ens/addr-hash
status-im.ethereum.ens/name-hash
status-im.ethereum.ens/ABI-hash
status-im.ethereum.ens/pubkey-hash
status-im.network.core/get-network
legacy.status-im.ui.components.colors/white
legacy.status-im.ui.components.colors/black
legacy.status-im.ui.components.core/animated-header
legacy.status-im.ui.components.core/safe-area-provider
legacy.status-im.ui.components.core/safe-area-consumer
legacy.status-im.ui.components.core/safe-area-view
legacy.status-im.utils.universal-links.core/open!
legacy.status-im.transport.filters.core-test/member-2
legacy.status-im.ui.screens.chat.ttt/one-to-one-chat-description-container
legacy.status-im.ethereum.ens/ttl
legacy.status-im.ethereum.ens/addr-hash
legacy.status-im.ethereum.ens/name-hash
legacy.status-im.ethereum.ens/ABI-hash
legacy.status-im.ethereum.ens/pubkey-hash
legacy.status-im.network.core/get-network
status-im2.constants/desktop-content-types
status-im2.constants/blocks-per-hour
status-im2.constants/one-earth-day
@ -142,44 +142,44 @@ status-im2.constants/debug-metrics
status-im2.constants/scan-qr-code
status-im2.constants/ipfs-proto-code
status-im2.constants/swarm-proto-code
status-im.multiaccounts.update.publisher/publish-update!
status-im.utils.async/task-queue
status-im.utils.async/async-periodic-run!
status-im.desktop.core/app-root
status-im.desktop.core/init
status-im.chat.models-test/test-db
status-im.ui.components.spacing/padding-vertical
status-im.utils.money/percent-change
legacy.status-im.multiaccounts.update.publisher/publish-update!
legacy.status-im.utils.async/task-queue
legacy.status-im.utils.async/async-periodic-run!
legacy.status-im.desktop.core/app-root
legacy.status-im.desktop.core/init
legacy.status-im.chat.models-test/test-db
legacy.status-im.ui.components.spacing/padding-vertical
legacy.status-im.utils.money/percent-change
utils.debounce/clear-all
status-im.transport.db/create-chat
status-im.utils.priority-map/priority-map
status-im.utils.priority-map/priority-map-by
status-im.utils.priority-map/priority-map-keyfn
status-im.utils.priority-map/empty-message-map
status-im.wallet.choose-recipient.core/use-default-eth-gas
status-im.ui.components.animation/decay
status-im.ui.components.animation/remove-all-listeners
status-im.ui.components.animation/stop-animation
status-im.ui.components.animation/animated
status-im.ui.components.animation/add
status-im.ui.components.animation/subtract
status-im.ui.components.animation/get-layout
status-im.wallet.transactions-test/uri-query-data
status-im.utils.name/shortened-name
status-im.ui.components.button.haptic/trigger
status-im.contact.db/filter-dapps
status-im.contact.db/filter-group-contacts
status-im.contact.db/legacy-pending?
status-im.utils.transducers-test/preview-call-1
status-im.utils.transducers-test/preview-call-2
status-im.utils.types/to-string
status-im.chat.db/datemark?
status-im.chat.db/gap?
status-im.chat.db/map->sorted-seq
status-im.utils.snoopy/status-module-filter
status-im.utils.snoopy/websocket-filter
status-im.utils.snoopy/touches-filter
status-im.utils.snoopy/native-animation-filter
status-im.utils.snoopy/keyboard-observer-filter
status-im.utils.multihash/hex
status-im.utils.multihash/decode-array
legacy.status-im.transport.db/create-chat
legacy.status-im.utils.priority-map/priority-map
legacy.status-im.utils.priority-map/priority-map-by
legacy.status-im.utils.priority-map/priority-map-keyfn
legacy.status-im.utils.priority-map/empty-message-map
legacy.status-im.wallet.choose-recipient.core/use-default-eth-gas
legacy.status-im.ui.components.animation/decay
legacy.status-im.ui.components.animation/remove-all-listeners
legacy.status-im.ui.components.animation/stop-animation
legacy.status-im.ui.components.animation/animated
legacy.status-im.ui.components.animation/add
legacy.status-im.ui.components.animation/subtract
legacy.status-im.ui.components.animation/get-layout
legacy.status-im.wallet.transactions-test/uri-query-data
legacy.status-im.utils.name/shortened-name
legacy.status-im.ui.components.button.haptic/trigger
legacy.status-im.contact.db/filter-dapps
legacy.status-im.contact.db/filter-group-contacts
legacy.status-im.contact.db/legacy-pending?
legacy.status-im.utils.transducers-test/preview-call-1
legacy.status-im.utils.transducers-test/preview-call-2
legacy.status-im.utils.types/to-string
legacy.status-im.chat.db/datemark?
legacy.status-im.chat.db/gap?
legacy.status-im.chat.db/map->sorted-seq
legacy.status-im.utils.snoopy/status-module-filter
legacy.status-im.utils.snoopy/websocket-filter
legacy.status-im.utils.snoopy/touches-filter
legacy.status-im.utils.snoopy/native-animation-filter
legacy.status-im.utils.snoopy/keyboard-observer-filter
legacy.status-im.utils.multihash/hex
legacy.status-im.utils.multihash/decode-array

View File

@ -1,15 +1,15 @@
{:config-paths ["status-im"]
:lint-as {status-im.utils.views/defview clojure.core/defn
status-im.utils.views/letsubs clojure.core/let
reagent.core/with-let clojure.core/let
status-im.utils.fx/defn clj-kondo.lint-as/def-catch-all
utils.re-frame/defn clj-kondo.lint-as/def-catch-all
quo.react/with-deps-check clojure.core/fn
quo.previews.preview/list-comp clojure.core/for
status-im.utils.styles/def clojure.core/def
status-im.utils.styles/defn clojure.core/defn
test-helpers.unit/deftest-sub clojure.core/defn
taoensso.tufte/defnp clojure.core/defn}
:lint-as {legacy.status-im.utils.views/defview clojure.core/defn
legacy.status-im.utils.views/letsubs clojure.core/let
reagent.core/with-let clojure.core/let
legacy.status-im.utils.fx/defn clj-kondo.lint-as/def-catch-all
utils.re-frame/defn clj-kondo.lint-as/def-catch-all
quo.react/with-deps-check clojure.core/fn
quo.previews.preview/list-comp clojure.core/for
legacy.status-im.utils.styles/def clojure.core/def
legacy.status-im.utils.styles/defn clojure.core/defn
test-helpers.unit/deftest-sub clojure.core/defn
taoensso.tufte/defnp clojure.core/defn}
:linters {:case-duplicate-test {:level :error}
:case-quoted-test {:level :error}
:case-symbol-test {:level :error}
@ -32,7 +32,8 @@
:docstring-blank {:level :error}
:equals-true {:level :error}
:inline-def {:level :error}
:invalid-arity {:skip-args [status-im.utils.fx/defn utils.re-frame/defn]}
:invalid-arity {:skip-args [legacy.status-im.utils.fx/defn
utils.re-frame/defn]}
:loop-without-recur {:level :error}
:minus-one {:level :error}
:misplaced-docstring {:level :error}
@ -62,7 +63,7 @@
;; https://github.com/borkdude/clj-kondo/issues/867
:unresolved-symbol {:exclude [PersistentPriorityMap.EMPTY
number
status-im.test-helpers/restore-app-db]}
legacy.status-im.test-helpers/restore-app-db]}
:unresolved-var {:level :error}
:unsorted-required-namespaces {:level :error}
:unused-alias {:level :warning}

6
.nycrc
View File

@ -1,10 +1,10 @@
{
"include": [
"target/test/status_im/**"
"target/test/legacy/status_im/**"
],
"exclude": [
"target/test/status_im/test/**",
"target/test/status_im/ui/**"
"target/test/legacy/status_im/test/**",
"target/test/legacy/status_im/ui/**"
],
"report-dir": "./coverage-report",
"all": true,

View File

@ -37,7 +37,7 @@
:http {:port 3449
:host "0.0.0.0"}
:cache-blockers #{status-im.utils.js-resources status-im.ui.components.icons.icons}
:cache-blockers #{legacy.status-im.utils.js-resources legacy.status-im.ui.components.icons.icons}
:builds
{:mobile
@ -84,7 +84,7 @@
;; in the SHADOW_HOST env variable to make sure that
;; it will use the right interface
:local-ip #shadow/env "SHADOW_HOST"}
:chunks {:fleets status-im.fleet.default-fleet/default-fleets}
:chunks {:fleets legacy.status-im.fleet.default-fleet/default-fleets}
:release
{:closure-defines
{status-im2.config/POKT_TOKEN #shadow/env "POKT_TOKEN"
@ -115,7 +115,7 @@
:dev {:devtools {:preloads [status-im2.setup.schema-preload]}}
;; Uncomment line below to `make test-watch` a specific file
;; :ns-regexp "status-im2.subs.messages-test$"
:main status-im.test-runner/main
:main legacy.status-im.test-runner/main
;; set :ui-driven to true to let shadow-cljs inject node-repl
:ui-driven true
:closure-defines

View File

@ -1,4 +1,4 @@
(ns status-im.backup.core
(ns legacy.status-im.backup.core
(:require
[re-frame.core :as re-frame]
[taoensso.timbre :as log]

View File

@ -1,8 +1,8 @@
(ns status-im.bootnodes.core
(ns legacy.status-im.bootnodes.core
(:require
[clojure.string :as string]
[legacy.status-im.multiaccounts.update.core :as multiaccounts.update]
[re-frame.core :as re-frame]
[status-im.multiaccounts.update.core :as multiaccounts.update]
[status-im2.navigation.events :as navigation]
[utils.i18n :as i18n]
[utils.re-frame :as rf]))

View File

@ -1,7 +1,7 @@
(ns status-im.bootnodes.core-test
(ns legacy.status-im.bootnodes.core-test
(:require
[cljs.test :refer-macros [deftest is testing]]
[status-im.bootnodes.core :as model]))
[legacy.status-im.bootnodes.core :as model]))
(def bootnode-id
"1da276e34126e93babf24ec88aac1a7602b4cbb2e11b0961d0ab5e989ca9c261aa7f7c1c85f15550a5f1e5a5ca2305b53b9280cf5894d5ecf7d257b173136d40")

View File

@ -1,4 +1,4 @@
(ns status-im.bottom-sheet.events
(ns legacy.status-im.bottom-sheet.events
(:require
[utils.re-frame :as rf]))

View File

@ -1,11 +1,11 @@
(ns status-im.bottom-sheet.sheets
(ns legacy.status-im.bottom-sheet.sheets
(:require
[legacy.status-im.bottom-sheet.view :as bottom-sheet]
[legacy.status-im.ui.screens.about-app.views :as about-app]
[legacy.status-im.ui.screens.keycard.views :as keycard]
[legacy.status-im.ui.screens.mobile-network-settings.view :as mobile-network-settings]
[quo.theme :as theme]
[react-native.core :as rn]
[status-im.bottom-sheet.view :as bottom-sheet]
[status-im.ui.screens.about-app.views :as about-app]
[status-im.ui.screens.keycard.views :as keycard]
[status-im.ui.screens.mobile-network-settings.view :as mobile-network-settings]
[utils.re-frame :as rf]))
(defn bottom-sheet

View File

@ -1,4 +1,4 @@
(ns status-im.bottom-sheet.styles
(ns legacy.status-im.bottom-sheet.styles
(:require
[quo.foundations.colors :as colors]))

View File

@ -1,5 +1,6 @@
(ns status-im.bottom-sheet.view
(ns legacy.status-im.bottom-sheet.view
(:require
[legacy.status-im.bottom-sheet.styles :as styles]
[oops.core :refer [oget]]
[re-frame.core :as re-frame]
[react-native.background-timer :as timer]
@ -11,7 +12,6 @@
[react-native.reanimated :as reanimated]
[react-native.safe-area :as safe-area]
[reagent.core :as reagent]
[status-im.bottom-sheet.styles :as styles]
[utils.worklets.bottom-sheet :as worklets.bottom-sheet]))
(def animation-delay 450)

View File

@ -1,21 +1,21 @@
(ns status-im.browser.core
(ns legacy.status-im.browser.core
(:require
["eth-phishing-detect" :as eth-phishing-detect]
[clojure.string :as string]
[legacy.status-im.bottom-sheet.events :as bottom-sheet]
[legacy.status-im.browser.eip3085 :as eip3085]
[legacy.status-im.browser.eip3326 :as eip3326]
[legacy.status-im.browser.permissions :as browser.permissions]
[legacy.status-im.browser.webview-ref :as webview-ref]
[legacy.status-im.ethereum.ens :as ens]
[legacy.status-im.multiaccounts.update.core :as multiaccounts.update]
[legacy.status-im.signing.core :as signing]
[legacy.status-im.ui.components.list-selection :as list-selection]
[legacy.status-im.utils.deprecated-types :as types]
[legacy.status-im.utils.random :as random]
[native-module.core :as native-module]
[re-frame.core :as re-frame]
[react-native.platform :as platform]
[status-im.bottom-sheet.events :as bottom-sheet]
[status-im.browser.eip3085 :as eip3085]
[status-im.browser.eip3326 :as eip3326]
[status-im.browser.permissions :as browser.permissions]
[status-im.browser.webview-ref :as webview-ref]
[status-im.ethereum.ens :as ens]
[status-im.multiaccounts.update.core :as multiaccounts.update]
[status-im.signing.core :as signing]
[status-im.ui.components.list-selection :as list-selection]
[status-im.utils.deprecated-types :as types]
[status-im.utils.random :as random]
[status-im2.constants :as constants]
[status-im2.contexts.chat.events :as chat.events]
[status-im2.navigation.events :as navigation]

View File

@ -1,7 +1,7 @@
(ns status-im.browser.core-test
(ns legacy.status-im.browser.core-test
(:require
[cljs.test :refer-macros [deftest is testing]]
[status-im.browser.core :as browser]
[legacy.status-im.browser.core :as browser]
[utils.url :as url]))
(defn has-wrong-properties?

View File

@ -1,12 +1,12 @@
;reference https://eips.ethereum.org/EIPS/eip-3085 EIP-3085: Wallet Add Ethereum Chain RPC Method
;(`wallet_addEthereumChain`)
(ns status-im.browser.eip3085
(ns legacy.status-im.browser.eip3085
(:require
[clojure.string :as string]
[legacy.status-im.network.core :as network]
[legacy.status-im.ui.screens.browser.eip3085.sheet :as sheet]
[legacy.status-im.utils.random :as random]
[re-frame.core :as re-frame]
[status-im.network.core :as network]
[status-im.ui.screens.browser.eip3085.sheet :as sheet]
[status-im.utils.random :as random]
[status-im2.constants :as constants]
[taoensso.timbre :as log]
[utils.re-frame :as rf]))

View File

@ -1,8 +1,8 @@
;reference https://eips.ethereum.org/EIPS/eip-3326 EIP-3326: Wallet Switch Ethereum Chain RPC Method
;(`wallet_switchEthereumChain`)
(ns status-im.browser.eip3326
(ns legacy.status-im.browser.eip3326
(:require
[status-im.ui.screens.browser.eip3326.sheet :as sheet]
[legacy.status-im.ui.screens.browser.eip3326.sheet :as sheet]
[status-im2.constants :as constants]
[utils.ethereum.chain :as chain]
[utils.re-frame :as rf]))

View File

@ -1,6 +1,6 @@
(ns status-im.browser.permissions
(ns legacy.status-im.browser.permissions
(:require
[status-im.qr-scanner.core :as qr-scanner]
[legacy.status-im.qr-scanner.core :as qr-scanner]
[status-im2.constants :as constants]
[status-im2.navigation.events :as navigation]
[utils.i18n :as i18n]

View File

@ -1,10 +1,10 @@
(ns status-im.browser.permissions-test
(ns legacy.status-im.browser.permissions-test
(:require
[cljs.test :refer-macros [deftest is testing]]
[status-im.browser.core :as browser]
[status-im.browser.core-test :as core.tests]
[status-im.browser.permissions :as permissions]
[status-im.utils.deprecated-types :as types]))
[legacy.status-im.browser.core :as browser]
[legacy.status-im.browser.core-test :as core.tests]
[legacy.status-im.browser.permissions :as permissions]
[legacy.status-im.utils.deprecated-types :as types]))
(deftest permissions-test
(let [dapp-name "test.com"

View File

@ -0,0 +1,3 @@
(ns legacy.status-im.browser.webview-ref)
(def webview-ref (atom nil))

View File

@ -1,8 +1,8 @@
(ns status-im.chat.models.loading
(ns legacy.status-im.chat.models.loading
(:require
[legacy.status-im.data-store.chats :as data-store.chats]
[legacy.status-im.data-store.messages :as data-store.messages]
[re-frame.core :as re-frame]
[status-im.data-store.chats :as data-store.chats]
[status-im.data-store.messages :as data-store.messages]
[status-im2.constants :as constants]
[status-im2.contexts.chat.messages.list.events :as message-list]
[taoensso.timbre :as log]

View File

@ -1,4 +1,4 @@
(ns status-im.chat.models.mentions
(ns legacy.status-im.chat.models.mentions
(:require
[clojure.set :as set]
[taoensso.timbre :as log]

View File

@ -1,11 +1,11 @@
(ns status-im.chat.models.message
(ns legacy.status-im.chat.models.message
(:require
[clojure.string :as string]
[legacy.status-im.chat.models.loading :as chat.loading]
[legacy.status-im.data-store.messages :as data-store.messages]
[legacy.status-im.utils.deprecated-types :as types]
[re-frame.core :as re-frame]
[react-native.platform :as platform]
[status-im.chat.models.loading :as chat.loading]
[status-im.data-store.messages :as data-store.messages]
[status-im.utils.deprecated-types :as types]
[status-im2.contexts.chat.messages.delete-message.events :as delete-message]
[status-im2.contexts.chat.messages.list.events :as message-list]
[status-im2.contexts.chat.messages.list.state :as view.state]

View File

@ -1,8 +1,8 @@
(ns status-im.chat.models.message-test
(ns legacy.status-im.chat.models.message-test
(:require
[cljs.test :refer-macros [deftest is testing]]
[status-im.chat.models.loading :as loading]
[status-im.chat.models.message :as message]
[legacy.status-im.chat.models.loading :as loading]
[legacy.status-im.chat.models.message :as message]
[status-im2.contexts.chat.messages.list.state :as list.state]))
(deftest add-received-message-test
@ -121,27 +121,29 @@
(deftest message-loaded?
(testing "it returns false when it's not in loaded message"
(is (not (#'status-im.chat.models.message/message-loaded? {:messages {"a" {}}} "a" "message-id"))))
(is
(not
(#'legacy.status-im.chat.models.message/message-loaded? {:messages {"a" {}}} "a" "message-id"))))
(testing "it returns true when it's already in the loaded message"
(is (#'status-im.chat.models.message/message-loaded?
(is (#'legacy.status-im.chat.models.message/message-loaded?
{:messages {"a" {"message-id" {}}}}
"a"
"message-id"))))
(deftest earlier-than-deleted-at?
(testing "it returns true when the clock-value is the same as the deleted-clock-value in chat"
(is (#'status-im.chat.models.message/earlier-than-deleted-at?
(is (#'legacy.status-im.chat.models.message/earlier-than-deleted-at?
{:chats {"a" {:deleted-at-clock-value 1}}}
"a"
1)))
(testing "it returns false when the clock-value is greater than the deleted-clock-value in chat"
(is (not (#'status-im.chat.models.message/earlier-than-deleted-at?
(is (not (#'legacy.status-im.chat.models.message/earlier-than-deleted-at?
{:chats {"a" {:deleted-at-clock-value 1}}}
"a"
2))))
(testing "it returns true when the clock-value is less than the deleted-clock-value in chat"
(is (#'status-im.chat.models.message/earlier-than-deleted-at?
(is (#'legacy.status-im.chat.models.message/earlier-than-deleted-at?
{:chats {"a" {:deleted-at-clock-value 1}}}
"a"
0))))

View File

@ -1,9 +1,9 @@
(ns status-im.communities.core
(ns legacy.status-im.communities.core
(:require
[clojure.set :as set]
[legacy.status-im.bottom-sheet.events :as bottom-sheet]
legacy.status-im.communities.e2e
[re-frame.core :as re-frame]
[status-im.bottom-sheet.events :as bottom-sheet]
status-im.communities.e2e
[status-im2.contexts.shell.activity-center.events :as activity-center]
[status-im2.navigation.events :as navigation]
[taoensso.timbre :as log]

View File

@ -1,4 +1,4 @@
(ns status-im.communities.e2e
(ns legacy.status-im.communities.e2e
(:require [taoensso.timbre :as log]
[utils.re-frame :as rf]))

View File

@ -1,9 +1,9 @@
(ns status-im.contact.block
(ns legacy.status-im.contact.block
(:require
[legacy.status-im.contact.db :as contact.db]
[legacy.status-im.data-store.chats :as chats-store]
[legacy.status-im.utils.deprecated-types :as types]
[re-frame.core :as re-frame]
[status-im.contact.db :as contact.db]
[status-im.data-store.chats :as chats-store]
[status-im.utils.deprecated-types :as types]
[status-im2.contexts.chat.messages.list.events :as message-list]
[status-im2.contexts.contacts.events :as contacts-store]
[status-im2.contexts.shell.activity-center.events :as activity-center]

View File

@ -1,4 +1,4 @@
(ns status-im.contact.db
(ns legacy.status-im.contact.db
(:require
[clojure.set :as set]
[clojure.string :as string]

View File

@ -1,6 +1,6 @@
(ns status-im.contact.db-test
(ns legacy.status-im.contact.db-test
(:require [cljs.test :refer-macros [deftest is testing]]
[status-im.contact.db :as contact.db]))
[legacy.status-im.contact.db :as contact.db]))
(deftest contacts-subs
(testing "get-all-contacts-in-group-chat"

View File

@ -1,7 +1,7 @@
(ns status-im.currency.core
(ns legacy.status-im.currency.core
(:require
[status-im.multiaccounts.update.core :as multiaccounts.update]
[status-im.wallet.prices :as prices]
[legacy.status-im.multiaccounts.update.core :as multiaccounts.update]
[legacy.status-im.wallet.prices :as prices]
[utils.re-frame :as rf]))
(defn get-currency

View File

@ -1,7 +1,7 @@
(ns status-im.currency.core-test
(ns legacy.status-im.currency.core-test
(:require
[cljs.test :refer-macros [deftest is]]
[status-im.currency.core :as models]))
[legacy.status-im.currency.core :as models]))
(deftest get-currency
(is (= :usd (models/get-currency {:profile/profile {:currency :usd}})))

View File

@ -1,7 +1,7 @@
(ns status-im.data-store.activities
(ns legacy.status-im.data-store.activities
(:require
[clojure.set :as set]
[status-im.data-store.messages :as messages]
[legacy.status-im.data-store.messages :as messages]
[status-im2.constants :as constants]
[status-im2.contexts.shell.activity-center.notification-types :as notification-types]))

View File

@ -1,7 +1,7 @@
(ns status-im.data-store.activities-test
(ns legacy.status-im.data-store.activities-test
(:require
[cljs.test :refer [deftest is testing]]
[status-im.data-store.activities :as store]
[legacy.status-im.data-store.activities :as store]
[status-im2.constants :as constants]
[status-im2.contexts.shell.activity-center.notification-types :as notification-types]))

View File

@ -1,8 +1,8 @@
(ns status-im.data-store.chats
(ns legacy.status-im.data-store.chats
(:require
[clojure.set :as set]
[status-im.data-store.messages :as messages]
[status-im.utils.deprecated-types :as types]
[legacy.status-im.data-store.messages :as messages]
[legacy.status-im.utils.deprecated-types :as types]
[status-im2.constants :as constants]
[taoensso.timbre :as log]
[utils.re-frame :as rf]))

View File

@ -1,7 +1,7 @@
(ns status-im.data-store.chats-test
(ns legacy.status-im.data-store.chats-test
(:require
[cljs.test :refer-macros [deftest is testing]]
[status-im.data-store.chats :as chats]))
[legacy.status-im.data-store.chats :as chats]))
(deftest normalize-chat-test
(let [chat {:id "chat-id"

View File

@ -1,4 +1,4 @@
(ns status-im.data-store.communities
(ns legacy.status-im.data-store.communities
(:require [clojure.set :as set]))
(defn rpc->channel-permissions

View File

@ -1,7 +1,7 @@
(ns status-im.data-store.communities-test
(ns legacy.status-im.data-store.communities-test
(:require
[cljs.test :refer [deftest is]]
[status-im.data-store.communities :as sut]))
[legacy.status-im.data-store.communities :as sut]))
(def permissions
{"community-id-chat-1"

View File

@ -1,4 +1,4 @@
(ns status-im.data-store.invitations
(ns legacy.status-im.data-store.invitations
(:require
clojure.set))

View File

@ -1,4 +1,4 @@
(ns status-im.data-store.messages
(ns legacy.status-im.data-store.messages
(:require
[clojure.set :as set]
[taoensso.timbre :as log]

View File

@ -1,7 +1,7 @@
(ns status-im.data-store.messages-test
(ns legacy.status-im.data-store.messages-test
(:require
[cljs.test :refer-macros [deftest is testing]]
[status-im.data-store.messages :as m]))
[legacy.status-im.data-store.messages :as m]))
(def message-id "0xfe96d03da2159e632a6653d04028b0de8b55f78f03521b26ce10dc5f48a16aee")
(def chat-id "chat-id")

View File

@ -1,7 +1,7 @@
(ns status-im.data-store.pin-messages
(ns legacy.status-im.data-store.pin-messages
(:require
[clojure.set :as set]
[status-im.data-store.messages :as messages]
[legacy.status-im.data-store.messages :as messages]
[taoensso.timbre :as log]
[utils.re-frame :as rf]))

View File

@ -1,7 +1,7 @@
(ns status-im.data-store.settings
(ns legacy.status-im.data-store.settings
(:require
[clojure.set :as set]
[status-im.data-store.visibility-status-updates :as visibility-status-updates]
[legacy.status-im.data-store.visibility-status-updates :as visibility-status-updates]
[status-im2.config :as config]
[utils.ethereum.eip.eip55 :as eip55]))

View File

@ -1,4 +1,4 @@
(ns status-im.data-store.switcher-cards
(ns legacy.status-im.data-store.switcher-cards
(:require
[clojure.set :as set]
[clojure.walk :as walk]

View File

@ -1,4 +1,4 @@
(ns status-im.data-store.visibility-status-updates
(ns legacy.status-im.data-store.visibility-status-updates
(:require
[clojure.set :as set]
[re-frame.core :as re-frame]

View File

@ -1,14 +1,14 @@
(ns status-im.ens.core
(ns legacy.status-im.ens.core
(:refer-clojure :exclude [name])
(:require
[clojure.set :as set]
[clojure.string :as string]
[legacy.status-im.bottom-sheet.events :as bottom-sheet]
[legacy.status-im.ethereum.ens :as ens]
[legacy.status-im.multiaccounts.update.core :as multiaccounts.update]
[legacy.status-im.utils.random :as random]
[legacy.status-im.wallet.utils :as wallet.utils]
[re-frame.core :as re-frame]
[status-im.bottom-sheet.events :as bottom-sheet]
[status-im.ethereum.ens :as ens]
[status-im.multiaccounts.update.core :as multiaccounts.update]
[status-im.utils.random :as random]
[status-im.wallet.utils :as wallet.utils]
[status-im2.constants :as constants]
[status-im2.navigation.events :as navigation]
[taoensso.timbre :as log]

View File

@ -1,4 +1,4 @@
(ns status-im.ethereum.decode
(ns legacy.status-im.ethereum.decode
(:require
[utils.money :as money]))

View File

@ -1,4 +1,4 @@
(ns status-im.ethereum.encode
(ns legacy.status-im.ethereum.encode
(:require
[native-module.core :as native-module]))

View File

@ -1,4 +1,4 @@
(ns status-im.ethereum.ens
(ns legacy.status-im.ethereum.ens
(:require
[native-module.core :as native-module]
[status-im2.common.json-rpc.events :as json-rpc]

View File

@ -1,4 +1,4 @@
(ns status-im.ethereum.macros
(ns legacy.status-im.ethereum.macros
(:require
[clojure.java.io :as io]
[clojure.string :as string]))

View File

@ -1,4 +1,4 @@
(ns status-im.ethereum.mnemonic
(ns legacy.status-im.ethereum.mnemonic
(:require
[clojure.string :as string]))

View File

@ -1,8 +1,8 @@
(ns status-im.ethereum.mnemonic-test
(ns legacy.status-im.ethereum.mnemonic-test
(:require
[cljs.test :refer-macros [deftest is]]
[clojure.string :as string]
[status-im.ethereum.mnemonic :as mnemonic]))
[legacy.status-im.ethereum.mnemonic :as mnemonic]))
(deftest valid-length?
(is (not (mnemonic/valid-length? "rate rate")))

View File

@ -1,8 +1,8 @@
(ns status-im.ethereum.subscriptions
(ns legacy.status-im.ethereum.subscriptions
(:require
[status-im.ethereum.transactions.core :as transactions]
[status-im.wallet.core :as wallet.core]
[status-im.wallet.db :as wallet]
[legacy.status-im.ethereum.transactions.core :as transactions]
[legacy.status-im.wallet.core :as wallet.core]
[legacy.status-im.wallet.db :as wallet]
[taoensso.timbre :as log]
[utils.ethereum.eip.eip55 :as eip55]
[utils.re-frame :as rf]))

View File

@ -1,8 +1,8 @@
(ns status-im.ethereum.tokens
(ns legacy.status-im.ethereum.tokens
(:require
[clojure.string :as string]
[utils.ethereum.chain :as chain])
(:require-macros [status-im.ethereum.macros :as ethereum.macros :refer [resolve-icons]]))
(:require-macros [legacy.status-im.ethereum.macros :as ethereum.macros :refer [resolve-icons]]))
(def default-native-currency
(memoize

View File

@ -1,11 +1,11 @@
(ns status-im.ethereum.transactions.core
(ns legacy.status-im.ethereum.transactions.core
(:require
[cljs.spec.alpha :as spec]
[legacy.status-im.ethereum.decode :as decode]
[legacy.status-im.ethereum.encode :as encode]
[legacy.status-im.utils.mobile-sync :as utils.mobile-sync]
[legacy.status-im.wallet.core :as wallet]
[re-frame.core :as re-frame]
[status-im.ethereum.decode :as decode]
[status-im.ethereum.encode :as encode]
[status-im.utils.mobile-sync :as utils.mobile-sync]
[status-im.wallet.core :as wallet]
[status-im2.common.json-rpc.events :as json-rpc]
[taoensso.timbre :as log]
[utils.ethereum.chain :as chain]

View File

@ -1,47 +1,47 @@
(ns status-im.events
(ns legacy.status-im.events
(:require
clojure.set
legacy.status-im.backup.core
legacy.status-im.bootnodes.core
legacy.status-im.browser.core
legacy.status-im.browser.permissions
legacy.status-im.chat.models.loading
legacy.status-im.contact.block
legacy.status-im.currency.core
legacy.status-im.ethereum.subscriptions
legacy.status-im.fleet.core
[legacy.status-im.keycard.core :as keycard]
legacy.status-im.log-level.core
legacy.status-im.mailserver.constants
[legacy.status-im.mailserver.core :as mailserver]
legacy.status-im.multiaccounts.login.core
legacy.status-im.multiaccounts.logout.core
[legacy.status-im.multiaccounts.model :as multiaccounts.model]
legacy.status-im.multiaccounts.update.core
legacy.status-im.network.net-info
legacy.status-im.pairing.core
legacy.status-im.profile.core
legacy.status-im.search.core
legacy.status-im.stickers.core
legacy.status-im.ui.components.invite.events
[legacy.status-im.ui.components.react :as react]
legacy.status-im.ui.screens.notifications-settings.events
legacy.status-im.ui.screens.privacy-and-security-settings.events
[legacy.status-im.utils.dimensions :as dimensions]
legacy.status-im.utils.logging.core
[legacy.status-im.utils.utils :as utils]
legacy.status-im.visibility-status-popover.core
legacy.status-im.visibility-status-updates.core
legacy.status-im.waku.core
legacy.status-im.wallet.accounts.core
legacy.status-im.wallet.choose-recipient.core
[legacy.status-im.wallet.core :as wallet]
legacy.status-im.wallet.custom-tokens.core
[native-module.core :as native-module]
[re-frame.core :as re-frame]
[react-native.core :as rn]
[react-native.permissions :as permissions]
[react-native.platform :as platform]
status-im.backup.core
status-im.bootnodes.core
status-im.browser.core
status-im.browser.permissions
status-im.chat.models.loading
status-im.contact.block
status-im.currency.core
status-im.ethereum.subscriptions
status-im.fleet.core
[status-im.keycard.core :as keycard]
status-im.log-level.core
status-im.mailserver.constants
[status-im.mailserver.core :as mailserver]
status-im.multiaccounts.login.core
status-im.multiaccounts.logout.core
[status-im.multiaccounts.model :as multiaccounts.model]
status-im.multiaccounts.update.core
status-im.network.net-info
status-im.pairing.core
status-im.profile.core
status-im.search.core
status-im.stickers.core
status-im.ui.components.invite.events
[status-im.ui.components.react :as react]
status-im.ui.screens.notifications-settings.events
status-im.ui.screens.privacy-and-security-settings.events
[status-im.utils.dimensions :as dimensions]
status-im.utils.logging.core
[status-im.utils.utils :as utils]
status-im.visibility-status-popover.core
status-im.visibility-status-updates.core
status-im.waku.core
status-im.wallet.accounts.core
status-im.wallet.choose-recipient.core
[status-im.wallet.core :as wallet]
status-im.wallet.custom-tokens.core
[status-im2.common.biometric.events :as biometric]
status-im2.common.standard-authentication.events
[status-im2.common.theme.core :as theme]

View File

@ -1,8 +1,8 @@
(ns status-im.fleet.core
(ns legacy.status-im.fleet.core
(:require
[legacy.status-im.multiaccounts.update.core :as multiaccounts.update]
[legacy.status-im.node.core :as node]
[re-frame.core :as re-frame]
[status-im.multiaccounts.update.core :as multiaccounts.update]
[status-im.node.core :as node]
[status-im2.config :as config]
[status-im2.constants :as constants]
[utils.i18n :as i18n]

View File

@ -1,7 +1,7 @@
(ns status-im.fleet.core-test
(ns legacy.status-im.fleet.core-test
(:require
[cljs.test :refer-macros [deftest is testing]]
[status-im.fleet.core :as fleet]
[legacy.status-im.fleet.core :as fleet]
[status-im2.constants :as constants]))
#_(deftest fleets-test

View File

@ -0,0 +1,4 @@
(ns legacy.status-im.fleet.default-fleet (:require-macros [legacy.status-im.utils.slurp :refer [slurp]]))
(def default-fleets
(slurp "resources/config/fleets.json"))

View File

@ -1,11 +1,11 @@
(ns status-im.group-chats.core
(ns legacy.status-im.group-chats.core
(:refer-clojure :exclude [remove])
(:require
[clojure.spec.alpha :as spec]
[clojure.string :as string]
[legacy.status-im.data-store.invitations :as data-store.invitations]
[oops.core :as oops]
[re-frame.core :as re-frame]
[status-im.data-store.invitations :as data-store.invitations]
[status-im2.constants :as constants]
[status-im2.contexts.chat.events :as chat.events]
[status-im2.contexts.shell.activity-center.events :as activity-center]

View File

@ -1,4 +1,4 @@
(ns status-im.group-chats.db)
(ns legacy.status-im.group-chats.db)
(def members-added-type 3)

View File

@ -1,11 +1,11 @@
(ns status-im.keycard.backup-key
(ns legacy.status-im.keycard.backup-key
(:require
[legacy.status-im.ethereum.mnemonic :as mnemonic]
[legacy.status-im.keycard.common :as common]
[legacy.status-im.multiaccounts.recover.core :as multiaccounts.recover]
[legacy.status-im.signing.core :as signing.core]
[legacy.status-im.utils.utils :as utils]
[re-frame.core :as re-frame]
[status-im.ethereum.mnemonic :as mnemonic]
[status-im.keycard.common :as common]
[status-im.multiaccounts.recover.core :as multiaccounts.recover]
[status-im.signing.core :as signing.core]
[status-im.utils.utils :as utils]
[status-im2.navigation.events :as navigation]
[taoensso.timbre :as log]
[utils.i18n :as i18n]

View File

@ -1,9 +1,9 @@
(ns status-im.keycard.card
(ns legacy.status-im.keycard.card
(:require
[legacy.status-im.keycard.keycard :as keycard]
[legacy.status-im.keycard.real-keycard :as real-keycard]
[legacy.status-im.keycard.simulated-keycard :as simulated-keycard]
[re-frame.core :as re-frame]
[status-im.keycard.keycard :as keycard]
[status-im.keycard.real-keycard :as real-keycard]
[status-im.keycard.simulated-keycard :as simulated-keycard]
[status-im2.config :as config]
[taoensso.timbre :as log]))

View File

@ -1,7 +1,7 @@
(ns status-im.keycard.change-pin
(ns legacy.status-im.keycard.change-pin
(:require
[status-im.keycard.common :as common]
[status-im.keycard.onboarding :as onboarding]
[legacy.status-im.keycard.common :as common]
[legacy.status-im.keycard.onboarding :as onboarding]
[status-im2.navigation.events :as navigation]
[taoensso.timbre :as log]
[utils.i18n :as i18n]

View File

@ -1,14 +1,14 @@
(ns status-im.keycard.common
(ns legacy.status-im.keycard.common
(:require
[clojure.string :as string]
[legacy.status-im.bottom-sheet.events :as bottom-sheet]
[legacy.status-im.keycard.nfc :as nfc]
[legacy.status-im.popover.core :as popover]
[legacy.status-im.ui.screens.keycard.keycard-interaction :as keycard-sheet]
[legacy.status-im.utils.deprecated-types :as types]
[legacy.status-im.utils.keychain.core :as keychain]
[re-frame.core :as re-frame]
[react-native.platform :as platform]
[status-im.bottom-sheet.events :as bottom-sheet]
[status-im.keycard.nfc :as nfc]
[status-im.popover.core :as popover]
[status-im.ui.screens.keycard.keycard-interaction :as keycard-sheet]
[status-im.utils.deprecated-types :as types]
[status-im.utils.keychain.core :as keychain]
[status-im2.navigation.events :as navigation]
[taoensso.timbre :as log]
[utils.address :as address]

View File

@ -1,7 +1,7 @@
(ns status-im.keycard.common-test
(ns legacy.status-im.keycard.common-test
(:require
[cljs.test :refer-macros [deftest is testing]]
[status-im.keycard.common :as common]))
[legacy.status-im.keycard.common :as common]))
(deftest test-show-connection-sheet
(testing "the card is not connected yet"

View File

@ -1,20 +1,20 @@
(ns status-im.keycard.core
(ns legacy.status-im.keycard.core
(:require
legacy.status-im.keycard.backup-key
[legacy.status-im.keycard.card :as card]
[legacy.status-im.keycard.change-pin :as change-pin]
[legacy.status-im.keycard.common :as common]
legacy.status-im.keycard.delete-key
legacy.status-im.keycard.export-key
[legacy.status-im.keycard.login :as login]
[legacy.status-im.keycard.mnemonic :as mnemonic]
[legacy.status-im.keycard.onboarding :as onboarding]
[legacy.status-im.keycard.recovery :as recovery]
[legacy.status-im.keycard.sign :as sign]
legacy.status-im.keycard.unpair
[legacy.status-im.keycard.wallet :as wallet]
[legacy.status-im.multiaccounts.update.core :as multiaccounts.update]
[re-frame.db]
status-im.keycard.backup-key
[status-im.keycard.card :as card]
[status-im.keycard.change-pin :as change-pin]
[status-im.keycard.common :as common]
status-im.keycard.delete-key
status-im.keycard.export-key
[status-im.keycard.login :as login]
[status-im.keycard.mnemonic :as mnemonic]
[status-im.keycard.onboarding :as onboarding]
[status-im.keycard.recovery :as recovery]
[status-im.keycard.sign :as sign]
status-im.keycard.unpair
[status-im.keycard.wallet :as wallet]
[status-im.multiaccounts.update.core :as multiaccounts.update]
[status-im2.navigation.events :as navigation]
[taoensso.timbre :as log]
[utils.datetime :as datetime]

View File

@ -1,4 +1,4 @@
(ns status-im.keycard.core-test)
(ns legacy.status-im.keycard.core-test)
;;TODO re-enable after fixing keycard flow
#_(deftest process-pin-input

View File

@ -1,6 +1,6 @@
(ns status-im.keycard.delete-key
(ns legacy.status-im.keycard.delete-key
(:require
[status-im.keycard.common :as common]
[legacy.status-im.keycard.common :as common]
[status-im2.navigation.events :as navigation]
[utils.re-frame :as rf]))

View File

@ -1,7 +1,7 @@
(ns status-im.keycard.export-key
(ns legacy.status-im.keycard.export-key
(:require
[status-im.keycard.common :as common]
[status-im.keycard.wallet :as wallet]
[legacy.status-im.keycard.common :as common]
[legacy.status-im.keycard.wallet :as wallet]
[taoensso.timbre :as log]
[utils.re-frame :as rf]))

View File

@ -1,10 +1,10 @@
(ns status-im.keycard.fx
(ns legacy.status-im.keycard.fx
(:require
["@react-native-async-storage/async-storage" :default AsyncStorage]
["react-native" :refer (BackHandler)]
[legacy.status-im.keycard.card :as card]
[legacy.status-im.utils.deprecated-types :as types]
[re-frame.core :as re-frame]
[status-im.keycard.card :as card]
[status-im.utils.deprecated-types :as types]
[taoensso.timbre :as log]))
(re-frame/reg-fx

View File

@ -1,4 +1,4 @@
(ns status-im.keycard.keycard)
(ns legacy.status-im.keycard.keycard)
(defprotocol Keycard
(start-nfc [this args])

View File

@ -1,12 +1,12 @@
(ns status-im.keycard.login
(ns legacy.status-im.keycard.login
(:require
[status-im.bottom-sheet.events :as bottom-sheet]
[status-im.keycard.common :as common]
status-im.keycard.fx
[status-im.keycard.onboarding :as onboarding]
[status-im.keycard.recovery :as recovery]
[status-im.signing.core :as signing.core]
[status-im.utils.deprecated-types :as types]
[legacy.status-im.bottom-sheet.events :as bottom-sheet]
[legacy.status-im.keycard.common :as common]
legacy.status-im.keycard.fx
[legacy.status-im.keycard.onboarding :as onboarding]
[legacy.status-im.keycard.recovery :as recovery]
[legacy.status-im.signing.core :as signing.core]
[legacy.status-im.utils.deprecated-types :as types]
[status-im2.navigation.events :as navigation]
[taoensso.timbre :as log]
[utils.address :as address]

View File

@ -1,7 +1,7 @@
(ns status-im.keycard.mnemonic
(ns legacy.status-im.keycard.mnemonic
(:require
[status-im.keycard.common :as common]
status-im.keycard.fx
[legacy.status-im.keycard.common :as common]
legacy.status-im.keycard.fx
[status-im2.navigation.events :as navigation]
[taoensso.timbre :as log]
[utils.re-frame :as rf]))

View File

@ -1,4 +1,4 @@
(ns status-im.keycard.nfc)
(ns legacy.status-im.keycard.nfc)
(def is-nfc-supported? (atom nil))

View File

@ -1,12 +1,12 @@
(ns status-im.keycard.onboarding
(ns legacy.status-im.keycard.onboarding
(:require
[clojure.string :as string]
[legacy.status-im.keycard.common :as common]
legacy.status-im.keycard.fx
[legacy.status-im.keycard.mnemonic :as mnemonic]
[legacy.status-im.ui.components.react :as react]
[legacy.status-im.utils.utils :as utils]
[re-frame.core :as re-frame]
[status-im.keycard.common :as common]
status-im.keycard.fx
[status-im.keycard.mnemonic :as mnemonic]
[status-im.ui.components.react :as react]
[status-im.utils.utils :as utils]
[status-im2.constants :as constants]
[status-im2.navigation.events :as navigation]
[taoensso.timbre :as log]

View File

@ -1,12 +1,12 @@
(ns status-im.keycard.real-keycard
(ns legacy.status-im.keycard.real-keycard
(:require
["react-native" :as rn]
["react-native-status-keycard" :default status-keycard]
[clojure.string :as string]
[legacy.status-im.keycard.keycard :as keycard]
[legacy.status-im.utils.deprecated-types :as types]
[native-module.core :as native-module]
[react-native.platform :as platform]
[status-im.keycard.keycard :as keycard]
[status-im.utils.deprecated-types :as types]
[taoensso.timbre :as log]
[utils.address :as address]))

View File

@ -1,16 +1,16 @@
(ns status-im.keycard.recovery
(ns legacy.status-im.keycard.recovery
(:require
[clojure.string :as string]
[legacy.status-im.bottom-sheet.events :as bottom-sheet]
[legacy.status-im.keycard.common :as common]
legacy.status-im.keycard.fx
[legacy.status-im.multiaccounts.create.core :as multiaccounts.create]
[legacy.status-im.multiaccounts.model :as multiaccounts.model]
[legacy.status-im.popover.core :as popover]
[legacy.status-im.utils.deprecated-types :as types]
[native-module.core :as native-module]
[re-frame.core :as re-frame]
[react-native.platform :as platform]
[status-im.bottom-sheet.events :as bottom-sheet]
[status-im.keycard.common :as common]
status-im.keycard.fx
[status-im.multiaccounts.create.core :as multiaccounts.create]
[status-im.multiaccounts.model :as multiaccounts.model]
[status-im.popover.core :as popover]
[status-im.utils.deprecated-types :as types]
[status-im2.constants :as constants]
[status-im2.navigation.events :as navigation]
[taoensso.timbre :as log]

View File

@ -1,10 +1,10 @@
(ns status-im.keycard.sign
(ns legacy.status-im.keycard.sign
(:require
[clojure.string :as string]
[legacy.status-im.keycard.common :as common]
[legacy.status-im.utils.deprecated-types :as types]
[legacy.status-im.wallet.utils :as wallet.utils]
[re-frame.core :as re-frame]
[status-im.keycard.common :as common]
[status-im.utils.deprecated-types :as types]
[status-im.wallet.utils :as wallet.utils]
[taoensso.timbre :as log]
[utils.address :as address]
[utils.ethereum.chain :as chain]

View File

@ -1,14 +1,14 @@
(ns status-im.keycard.simulated-keycard
(ns legacy.status-im.keycard.simulated-keycard
(:require
[clojure.string :as string]
[legacy.status-im.keycard.keycard :as keycard]
[legacy.status-im.multiaccounts.create.core :as multiaccounts.create]
[legacy.status-im.node.core :as node]
[legacy.status-im.utils.deprecated-types :as types]
[legacy.status-im.utils.utils :as utils]
[native-module.core :as native-module]
[re-frame.core :as re-frame]
[re-frame.db :as re-frame.db]
[status-im.keycard.keycard :as keycard]
[status-im.multiaccounts.create.core :as multiaccounts.create]
[status-im.node.core :as node]
[status-im.utils.deprecated-types :as types]
[status-im.utils.utils :as utils]
[status-im2.constants :as constants]
[taoensso.timbre :as log]
[utils.address :as address]

View File

@ -1,7 +1,7 @@
(ns status-im.keycard.test-menu
(ns legacy.status-im.keycard.test-menu
(:require
[status-im.keycard.simulated-keycard :as simulated-keycard]
[status-im.ui.components.react :as react]))
[legacy.status-im.keycard.simulated-keycard :as simulated-keycard]
[legacy.status-im.ui.components.react :as react]))
(defn button
[label accessibility-label handler]

View File

@ -1,8 +1,8 @@
(ns status-im.keycard.unpair
(ns legacy.status-im.keycard.unpair
(:require
[legacy.status-im.keycard.common :as common]
[legacy.status-im.multiaccounts.update.core :as multiaccounts.update]
[re-frame.core :as re-frame]
[status-im.keycard.common :as common]
[status-im.multiaccounts.update.core :as multiaccounts.update]
[status-im2.navigation.events :as navigation]
[taoensso.timbre :as log]
[utils.i18n :as i18n]

View File

@ -1,10 +1,10 @@
(ns status-im.keycard.wallet
(ns legacy.status-im.keycard.wallet
(:require
[legacy.status-im.bottom-sheet.events :as bottom-sheet]
[legacy.status-im.keycard.common :as common]
[legacy.status-im.ui.screens.wallet.add-new.views :as add-new.views]
[legacy.status-im.utils.hex :as utils.hex]
[native-module.core :as native-module]
[status-im.bottom-sheet.events :as bottom-sheet]
[status-im.keycard.common :as common]
[status-im.ui.screens.wallet.add-new.views :as add-new.views]
[status-im.utils.hex :as utils.hex]
[status-im2.constants :as constants]
[utils.ethereum.eip.eip55 :as eip55]
[utils.re-frame :as rf]))

View File

@ -1,8 +1,8 @@
(ns status-im.log-level.core
(ns legacy.status-im.log-level.core
(:require
[legacy.status-im.multiaccounts.update.core :as multiaccounts.update]
[legacy.status-im.node.core :as node]
[re-frame.core :as re-frame]
[status-im.multiaccounts.update.core :as multiaccounts.update]
[status-im.node.core :as node]
[utils.i18n :as i18n]
[utils.re-frame :as rf]))

View File

@ -1,4 +1,4 @@
(ns ^{:doc "Mailserver events and API"} status-im.mailserver.constants)
(ns ^{:doc "Mailserver events and API"} legacy.status-im.mailserver.constants)
(def one-day (* 24 3600))
(def seven-days (* 7 one-day))

View File

@ -1,10 +1,10 @@
(ns ^{:doc "Mailserver events and API"} status-im.mailserver.core
(ns ^{:doc "Mailserver events and API"} legacy.status-im.mailserver.core
(:require
[clojure.string :as string]
[legacy.status-im.multiaccounts.update.core :as multiaccounts.update]
[legacy.status-im.node.core :as node]
[legacy.status-im.utils.mobile-sync :as mobile-network-utils]
[re-frame.core :as re-frame]
[status-im.multiaccounts.update.core :as multiaccounts.update]
[status-im.node.core :as node]
[status-im.utils.mobile-sync :as mobile-network-utils]
[status-im2.navigation.events :as navigation]
[taoensso.timbre :as log]
[utils.i18n :as i18n]

View File

@ -1,11 +1,11 @@
(ns status-im.mobile-sync-settings.core
(ns legacy.status-im.mobile-sync-settings.core
(:require
[status-im.bottom-sheet.events :as bottom-sheet]
[status-im.mailserver.core :as mailserver]
[status-im.multiaccounts.model :as multiaccounts.model]
[status-im.multiaccounts.update.core :as multiaccounts.update]
[status-im.utils.mobile-sync :as utils]
[status-im.wallet.core :as wallet]
[legacy.status-im.bottom-sheet.events :as bottom-sheet]
[legacy.status-im.mailserver.core :as mailserver]
[legacy.status-im.multiaccounts.model :as multiaccounts.model]
[legacy.status-im.multiaccounts.update.core :as multiaccounts.update]
[legacy.status-im.utils.mobile-sync :as utils]
[legacy.status-im.wallet.core :as wallet]
[status-im2.contexts.add-new-contact.events :as add-new-contact]
[status-im2.navigation.events :as navigation]
[taoensso.timbre :as log]

View File

@ -1,12 +1,12 @@
(ns status-im.multiaccounts.create.core
(ns legacy.status-im.multiaccounts.create.core
(:require
[legacy.status-im.data-store.settings :as data-store.settings]
[legacy.status-im.node.core :as node]
[legacy.status-im.ui.components.colors :as colors]
[legacy.status-im.utils.deprecated-types :as types]
[legacy.status-im.utils.signing-phrase.core :as signing-phrase]
[native-module.core :as native-module]
[re-frame.core :as re-frame]
[status-im.data-store.settings :as data-store.settings]
[status-im.node.core :as node]
[status-im.ui.components.colors :as colors]
[status-im.utils.deprecated-types :as types]
[status-im.utils.signing-phrase.core :as signing-phrase]
[status-im2.config :as config]
[status-im2.constants :as constants]
[utils.ethereum.eip.eip55 :as eip55]

View File

@ -1,4 +1,4 @@
(ns status-im.multiaccounts.db
(ns legacy.status-im.multiaccounts.db
(:require
[cljs.spec.alpha :as spec]
[status-im2.constants :as const]))

View File

@ -1,10 +1,10 @@
(ns status-im.multiaccounts.login.core
(ns legacy.status-im.multiaccounts.login.core
(:require
[legacy.status-im.ui.components.react :as react]
[legacy.status-im.utils.deprecated-types :as types]
[native-module.core :as native-module]
[re-frame.core :as re-frame]
[react-native.platform :as platform]
[status-im.ui.components.react :as react]
[status-im.utils.deprecated-types :as types]
[utils.re-frame :as rf]
[utils.security.core :as security]))

View File

@ -1,8 +1,8 @@
(ns status-im.multiaccounts.logout.core
(ns legacy.status-im.multiaccounts.logout.core
(:require
[legacy.status-im.wallet.core :as wallet]
[native-module.core :as native-module]
[re-frame.core :as re-frame]
[status-im.wallet.core :as wallet]
[status-im2.common.keychain.events :as keychain]
[status-im2.db :as db]
[utils.i18n :as i18n]

View File

@ -1,4 +1,4 @@
(ns status-im.multiaccounts.model)
(ns legacy.status-im.multiaccounts.model)
(defn logged-in?
[{:keys [profile/profile]}]

View File

@ -1,7 +1,7 @@
(ns status-im.multiaccounts.model-test
(ns legacy.status-im.multiaccounts.model-test
(:require
[cljs.test :refer-macros [deftest is testing]]
[status-im.multiaccounts.model :as multiaccounts.model]))
[legacy.status-im.multiaccounts.model :as multiaccounts.model]))
(deftest logged-in-test
(testing "multiaccount is defined"

View File

@ -1,9 +1,9 @@
(ns status-im.multiaccounts.recover.core
(ns legacy.status-im.multiaccounts.recover.core
(:require
[legacy.status-im.multiaccounts.create.core :as multiaccounts.create]
[legacy.status-im.utils.deprecated-types :as types]
[native-module.core :as native-module]
[re-frame.core :as re-frame]
[status-im.multiaccounts.create.core :as multiaccounts.create]
[status-im.utils.deprecated-types :as types]
[status-im2.constants :as constants]
[taoensso.timbre :as log]))

View File

@ -1,10 +1,10 @@
(ns status-im.multiaccounts.reset-password.core
(ns legacy.status-im.multiaccounts.reset-password.core
(:require
[clojure.string :as string]
[legacy.status-im.popover.core :as popover]
[legacy.status-im.utils.deprecated-types :as types]
[native-module.core :as native-module]
[re-frame.core :as re-frame]
[status-im.popover.core :as popover]
[status-im.utils.deprecated-types :as types]
[utils.re-frame :as rf]
[utils.security.core :as security]))

View File

@ -1,6 +1,6 @@
(ns status-im.multiaccounts.update.core
(ns legacy.status-im.multiaccounts.update.core
(:require
[status-im.utils.deprecated-types :as types]
[legacy.status-im.utils.deprecated-types :as types]
[status-im2.constants :as constants]
[taoensso.timbre :as log]
[utils.ens.core :as utils.ens]
@ -127,5 +127,5 @@
(rf/merge cofx
{:db (assoc-in (:db cofx) [:profile/profile :opensea-enabled?] visible?)
;; need to add fully qualified namespace to counter circular deps
:dispatch [:status-im.wallet.core/fetch-collectibles-collection]}
:dispatch [:legacy.status-im.wallet.core/fetch-collectibles-collection]}
(multiaccount-update :opensea-enabled? visible? {})))

View File

@ -1,7 +1,7 @@
(ns status-im.multiaccounts.update.core-test
(ns legacy.status-im.multiaccounts.update.core-test
(:require
[clojure.test :refer-macros [deftest is testing]]
[status-im.multiaccounts.update.core :as multiaccounts.update]))
[legacy.status-im.multiaccounts.update.core :as multiaccounts.update]))
(deftest test-multiaccount-update
;;TODO this test case actually shows that we are doing a needless rpc call when

View File

@ -1,8 +1,8 @@
(ns status-im.network.core
(ns legacy.status-im.network.core
(:require
[clojure.string :as string]
[legacy.status-im.node.core :as node]
[re-frame.core :as re-frame]
[status-im.node.core :as node]
[status-im2.navigation.events :as navigation]
[utils.ethereum.chain :as chain]
[utils.i18n :as i18n]

View File

@ -1,7 +1,7 @@
(ns status-im.network.core-test
(ns legacy.status-im.network.core-test
(:require
[cljs.test :refer-macros [deftest is testing]]
[status-im.network.core :as network.core]))
[legacy.status-im.network.core :as network.core]))
(deftest valid-rpc-url-test
(testing "nil?"

View File

@ -1,10 +1,10 @@
(ns status-im.network.net-info
(ns legacy.status-im.network.net-info
(:require
["@react-native-community/netinfo" :default net-info]
[legacy.status-im.mobile-sync-settings.core :as mobile-network]
[legacy.status-im.wallet.core :as wallet]
[native-module.core :as native-module]
[re-frame.core :as re-frame]
[status-im.mobile-sync-settings.core :as mobile-network]
[status-im.wallet.core :as wallet]
[taoensso.timbre :as log]
[utils.re-frame :as rf]))

View File

@ -1,10 +1,10 @@
(ns status-im.node.core
(ns legacy.status-im.node.core
(:require
[clojure.string :as string]
[legacy.status-im.utils.deprecated-types :as types]
[native-module.core :as native-module]
[re-frame.core :as re-frame]
[react-native.platform :as platform]
[status-im.utils.deprecated-types :as types]
[status-im2.config :as config]
[utils.re-frame :as rf]))

View File

@ -1,9 +1,9 @@
(ns status-im.notifications.wallet
(ns legacy.status-im.notifications.wallet
(:require
[clojure.string :as string]
[status-im.ethereum.decode :as decode]
[status-im.ethereum.tokens :as tokens]
[status-im.utils.utils :as utils]
[legacy.status-im.ethereum.decode :as decode]
[legacy.status-im.ethereum.tokens :as tokens]
[legacy.status-im.utils.utils :as utils]
[taoensso.timbre :as log]
[utils.i18n :as i18n]
[utils.money :as money]

View File

@ -1,8 +1,8 @@
(ns status-im.pairing.core
(ns legacy.status-im.pairing.core
(:require
[legacy.status-im.multiaccounts.update.core :as multiaccounts.update]
[re-frame.core :as re-frame]
[react-native.platform :as utils.platform]
[status-im.multiaccounts.update.core :as multiaccounts.update]
[status-im2.common.json-rpc.events :as json-rpc]
[status-im2.config :as config]
[status-im2.navigation.events :as navigation]

Some files were not shown because too many files have changed in this diff Show More