status-react/src/status_im/native_module/core.cljs

68 lines
1.9 KiB
Plaintext
Raw Normal View History

2017-09-05 14:14:45 +00:00
(ns status-im.native-module.core
2018-07-30 03:47:08 +00:00
(:require [status-im.native-module.impl.module :as native-module]))
2017-09-05 14:14:45 +00:00
(def adjust-resize 16)
(defn move-to-internal-storage [callback]
2018-07-30 03:47:08 +00:00
(native-module/move-to-internal-storage callback))
2017-09-05 14:14:45 +00:00
(defn start-node [config]
2018-07-30 03:47:08 +00:00
(native-module/start-node config))
(defn stop-node []
2018-07-30 03:47:08 +00:00
(native-module/stop-node))
2017-09-05 14:14:45 +00:00
(defn create-account [password callback]
2018-07-30 03:47:08 +00:00
(native-module/create-account password callback))
2017-09-05 14:14:45 +00:00
(defn recover-account [passphrase password callback]
2018-07-30 03:47:08 +00:00
(native-module/recover-account passphrase password callback))
2017-09-05 14:14:45 +00:00
(defn login [address password callback]
2018-07-30 03:47:08 +00:00
(native-module/login address password callback))
2017-09-05 14:14:45 +00:00
(defn approve-sign-request [id password callback]
2018-07-30 03:47:08 +00:00
(native-module/approve-sign-request id password callback))
(defn approve-sign-request-with-args [id password gas gas-price callback]
2018-07-30 03:47:08 +00:00
(native-module/approve-sign-request-with-args id password gas gas-price callback))
2017-09-05 14:14:45 +00:00
(defn discard-sign-request [id]
2018-07-30 03:47:08 +00:00
(native-module/discard-sign-request id))
2017-09-05 14:14:45 +00:00
(defn set-soft-input-mode [mode]
2018-07-30 03:47:08 +00:00
(native-module/set-soft-input-mode mode))
2017-09-05 14:14:45 +00:00
(defn clear-web-data []
2018-07-30 03:47:08 +00:00
(native-module/clear-web-data))
2017-09-05 14:14:45 +00:00
2017-12-04 15:05:15 +00:00
(defn call-web3 [payload callback]
2018-07-30 03:47:08 +00:00
(native-module/call-web3 payload callback))
2017-09-05 14:14:45 +00:00
(defn call-web3-private [payload callback]
2018-07-30 03:47:08 +00:00
(native-module/call-web3-private payload callback))
2017-09-05 14:14:45 +00:00
(defn module-initialized! []
2018-07-30 03:47:08 +00:00
(native-module/module-initialized!))
2017-09-05 14:14:45 +00:00
(defn should-move-to-internal-storage? [callback]
2018-07-30 03:47:08 +00:00
(native-module/should-move-to-internal-storage? callback))
2018-07-30 03:47:08 +00:00
(defn notify-users [m callback]
(native-module/notify-users m callback))
(defn add-peer [enode callback]
2018-07-30 03:47:08 +00:00
(native-module/add-peer enode callback))
(defn close-application []
2018-07-30 03:47:08 +00:00
(native-module/close-application))
(defn connection-change [data]
2018-07-30 03:47:08 +00:00
(native-module/connection-change data))
(defn app-state-change [state]
2018-07-30 03:47:08 +00:00
(native-module/app-state-change state))
2018-05-01 10:27:04 +00:00
(defn get-device-UUID [callback]
2018-07-30 03:47:08 +00:00
(native-module/get-device-UUID callback))