mirror of
https://github.com/status-im/status-react.git
synced 2025-02-18 05:48:12 +00:00
missed default networks fix :load-default-networks network settings screen fix network details screen networks in account fix network property saving update startNode and stopNode on iOS test RPC proxy on iOS StopNode and StartNode on androd pass UpstreamConfig to status-go upgrade status-go added default network on login fixed UI, added vector icons added network name in drawer migrated accounts workaround for account v4 migration
23 lines
448 B
Clojure
23 lines
448 B
Clojure
(ns status-im.data-store.networks
|
|
(:require [status-im.data-store.realm.networks :as data-store]))
|
|
|
|
(defn get-all
|
|
[]
|
|
(data-store/get-all-as-list))
|
|
|
|
(defn save
|
|
[{:keys [id] :as network}]
|
|
(data-store/save network (data-store/exists? id)))
|
|
|
|
(defn save-all
|
|
[networks]
|
|
(mapv save networks))
|
|
|
|
(defn save-property
|
|
[id property-name value]
|
|
(data-store/save-property id property-name value))
|
|
|
|
(defn delete
|
|
[id]
|
|
(data-store/delete id))
|