ENSon Ropsten on PR and e2e builds
This commit is contained in:
parent
18606f548b
commit
716e72fb5f
2
.env.e2e
2
.env.e2e
|
@ -26,6 +26,8 @@ ENABLE_REFERRAL_INVITE=1
|
|||
MAX_IMAGES_BATCH=5
|
||||
APN_TOPIC=im.status.ethereum.pr
|
||||
VERIFY_TRANSACTION_CHAIN_ID=3
|
||||
VERIFY_ENS_CHAIN_ID=3
|
||||
TEST_STATEOFUS=1
|
||||
DATABASE_MANAGEMENT_ENABLED=1
|
||||
COMMUNITIES_ENABLED=1
|
||||
COMMUNITIES_MANAGEMENT_ENABLED=1
|
||||
|
|
|
@ -25,6 +25,8 @@ ENABLE_REFERRAL_INVITE=1
|
|||
DISABLE_WALLET_ON_MOBILE_NETWORK=1
|
||||
APN_TOPIC=im.status.ethereum.pr
|
||||
VERIFY_TRANSACTION_CHAIN_ID=3
|
||||
VERIFY_ENS_CHAIN_ID=3
|
||||
TEST_STATEOFUS=1
|
||||
BLANK_PREVIEW=0
|
||||
MAX_IMAGES_BATCH=5
|
||||
GOOGLE_FREE=0
|
||||
|
|
|
@ -39,6 +39,11 @@
|
|||
(defn chain-keyword->chain-id [k]
|
||||
(get-in chains [k :id]))
|
||||
|
||||
(defn chain-keyword->snt-symbol [k]
|
||||
(case k
|
||||
:mainnet :SNT
|
||||
:STT))
|
||||
|
||||
(defn testnet? [id]
|
||||
(contains? #{(chain-keyword->chain-id :testnet)
|
||||
(chain-keyword->chain-id :rinkeby)
|
||||
|
@ -120,9 +125,7 @@
|
|||
(network->chain-id (get networks current-network)))
|
||||
|
||||
(defn snt-symbol [db]
|
||||
(case (chain-keyword db)
|
||||
:mainnet :SNT
|
||||
:STT))
|
||||
(chain-keyword->snt-symbol (chain-keyword db)))
|
||||
|
||||
(def default-transaction-gas (money/bignumber 21000))
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
(ns status-im.ethereum.stateofus
|
||||
(:require [clojure.string :as string]
|
||||
[status-im.ethereum.json-rpc :as json-rpc]
|
||||
[status-im.utils.config :as config]
|
||||
[status-im.ethereum.ens :as ens]))
|
||||
|
||||
(def domain "stateofus.eth")
|
||||
|
@ -26,10 +27,10 @@
|
|||
(first (string/split name "."))))
|
||||
|
||||
(def old-registrars
|
||||
{:mainnet "0xDB5ac1a559b02E12F29fC0eC0e37Be8E046DEF49"
|
||||
;;NOTE: can be enabled for testing builds
|
||||
;;:testnet "0x11d9F481effd20D76cEE832559bd9Aca25405841"
|
||||
})
|
||||
(merge
|
||||
{:mainnet "0xDB5ac1a559b02E12F29fC0eC0e37Be8E046DEF49"}
|
||||
(when config/test-stateofus?
|
||||
{:testnet "0x11d9F481effd20D76cEE832559bd9Aca25405841"})))
|
||||
|
||||
(def registrars-cache (atom {}))
|
||||
|
||||
|
|
|
@ -2546,8 +2546,8 @@
|
|||
:chain chain
|
||||
:amount-label (ens-amount-label chain-id)
|
||||
:sufficient-funds? (money/sufficient-funds?
|
||||
(money/formatted->internal (money/bignumber 10) :SNT 18)
|
||||
(get balance :SNT))}))
|
||||
(money/formatted->internal (money/bignumber 10) (ethereum/chain-keyword->snt-symbol chain) 18)
|
||||
(get balance (ethereum/chain-keyword->snt-symbol chain)))}))
|
||||
|
||||
(re-frame/reg-sub
|
||||
:ens/confirmation-screen
|
||||
|
|
|
@ -52,6 +52,7 @@
|
|||
(def eip1559-enabled? (enabled? (get-config :EIP1559_ENABLED "0")))
|
||||
(def delete-message-enabled? (enabled? (get-config :DELETE_MESSAGE_ENABLED "0")))
|
||||
(def collectibles-enabled? (enabled? (get-config :COLLECTIBLES_ENABLED "1")))
|
||||
(def test-stateofus? (enabled? (get-config :TEST_STATEOFUS "0")))
|
||||
|
||||
;; CONFIG VALUES
|
||||
(def log-level
|
||||
|
|
Loading…
Reference in New Issue