2017-08-21 14:49:31 +00:00
|
|
|
(ns status-im.constants
|
|
|
|
(:require [status-im.utils.types :as types]))
|
2016-03-23 19:05:42 +00:00
|
|
|
|
|
|
|
(def ethereum-rpc-url "http://localhost:8545")
|
|
|
|
|
2016-06-23 12:52:54 +00:00
|
|
|
(def server-address "http://api.status.im/")
|
2016-04-08 09:17:10 +00:00
|
|
|
;; (def server-address "http://10.0.3.2:3000/")
|
2016-05-19 08:51:13 +00:00
|
|
|
;; (def server-address "http://localhost:3000/")
|
2016-03-28 12:14:57 +00:00
|
|
|
|
|
|
|
(def text-content-type "text/plain")
|
2017-05-21 14:52:52 +00:00
|
|
|
(def content-type-log-message "log-message")
|
2016-04-04 15:19:52 +00:00
|
|
|
(def content-type-command "command")
|
2016-04-06 13:40:31 +00:00
|
|
|
(def content-type-command-request "command-request")
|
2016-11-16 07:39:28 +00:00
|
|
|
(def content-type-wallet-command "wallet-command")
|
|
|
|
(def content-type-wallet-request "wallet-request")
|
2016-04-22 10:51:14 +00:00
|
|
|
(def content-type-status "status")
|
2016-05-25 09:44:00 +00:00
|
|
|
|
|
|
|
(def max-chat-name-length 20)
|
2016-05-30 13:50:23 +00:00
|
|
|
|
2016-06-19 22:20:48 +00:00
|
|
|
(def response-input-hiding-duration 100)
|
2016-05-30 13:50:23 +00:00
|
|
|
(def response-suggesstion-resize-duration 100)
|
2016-06-27 12:57:40 +00:00
|
|
|
|
2016-07-18 13:22:32 +00:00
|
|
|
(def default-number-of-messages 20)
|
2016-10-06 09:52:58 +00:00
|
|
|
(def blocks-per-hour 120)
|
2016-08-19 13:14:59 +00:00
|
|
|
|
2016-11-22 16:07:33 +00:00
|
|
|
(def default-number-of-discover-search-results 20)
|
2016-09-23 13:22:35 +00:00
|
|
|
|
|
|
|
(def console-chat-id "console")
|
2016-11-16 07:39:28 +00:00
|
|
|
(def wallet-chat-id "wallet")
|
2017-08-21 14:49:31 +00:00
|
|
|
|
|
|
|
(def default-network "testnet_rpc")
|
|
|
|
(def default-networks
|
2017-10-02 20:26:08 +00:00
|
|
|
{"testnet" {:id "testnet",
|
2017-08-21 14:49:31 +00:00
|
|
|
:name "Ropsten",
|
|
|
|
:config (types/clj->json
|
|
|
|
{:NetworkId 3
|
|
|
|
:DataDir "/ethereum/testnet"})}
|
|
|
|
"testnet_rpc" {:id "testnet_rpc",
|
2017-10-02 20:26:08 +00:00
|
|
|
:name "Ropsten with upstream RPC",
|
2017-08-21 14:49:31 +00:00
|
|
|
:config (types/clj->json
|
|
|
|
{:NetworkId 3
|
|
|
|
:DataDir "/ethereum/testnet_rpc"
|
|
|
|
:UpstreamConfig {:Enabled true
|
|
|
|
:URL "https://ropsten.infura.io/z6GCTmjdP3FETEJmMBI4"}})}
|
|
|
|
"rinkeby" {:id "rinkeby",
|
|
|
|
:name "Rinkeby",
|
|
|
|
:config (types/clj->json
|
|
|
|
{:NetworkId 4
|
2017-10-02 20:26:08 +00:00
|
|
|
:DataDir "/ethereum/rinkeby"})}
|
|
|
|
"rinkeby_rpc" {:id "rinkeby_rpc",
|
|
|
|
:name "Rinkeby with upstream RPC",
|
|
|
|
:config (types/clj->json
|
|
|
|
{:NetworkId 4
|
|
|
|
:DataDir "/ethereum/rinkeby_rpc"
|
|
|
|
:UpstreamConfig {:Enabled true
|
|
|
|
:URL "https://rinkeby.infura.io/z6GCTmjdP3FETEJmMBI4"}})}
|
|
|
|
"mainnet" {:id "mainnet",
|
|
|
|
:name "Mainnet",
|
|
|
|
:config (types/clj->json
|
|
|
|
{:NetworkId 1
|
|
|
|
:DataDir "/ethereum/mainnet"})}
|
|
|
|
"mainnet_rpc" {:id "mainnet_rpc",
|
|
|
|
:name "Mainnet with upstream RPC",
|
|
|
|
:config (types/clj->json
|
|
|
|
{:NetworkId 1
|
|
|
|
:DataDir "/ethereum/mainnet_rpc"
|
|
|
|
:UpstreamConfig {:Enabled true
|
|
|
|
:URL "https://mainnet.infura.io/z6GCTmjdP3FETEJmMBI4 "}})}})
|