Skip to content

Commit c0c8c82

Browse files
πŸ”– refactor: update references from "Mainnet" to "Ethereum" (#22460)
* refactor: update references from "Mainnet" to "Ethereum" across multiple components and tests * πŸ•ŠοΈ Update status-go to reflect network name change * βž• Replace more uses of Mainnet to Ethreum * πŸ› Fix issue with incorrect name on bridge>send to * ⬆️ Update quo component that hardcodes network val * πŸ—‚οΈ Update network name on txn confirm and nfts * πŸ˜… Found one more instance of Mainnet - Fix lint - Force push because I pushed proxy password by mistake * 🀝 Update status go * 🏷️ Status go tag
1 parent 71f37a8 commit c0c8c82

File tree

21 files changed

+40
-48
lines changed

21 files changed

+40
-48
lines changed

β€Žsrc/quo/components/list_items/network_list/component_spec.cljsβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
(def props
1111
{:state :default
12-
:label "Mainnet"
12+
:label "Ethereum"
1313
:network-image 873
1414
:customization-color :blue
1515
:token-value "100.00 ETH"
@@ -19,7 +19,7 @@
1919
(h/describe "List items: Network List"
2020
(h/test "default state explicit"
2121
(render [network-list/view props])
22-
(h/is-truthy (h/get-by-text "Mainnet")))
22+
(h/is-truthy (h/get-by-text "Ethereum")))
2323

2424
(h/test "Pressed state"
2525
(render [network-list/view props])

β€Žsrc/quo/components/wallet/network_bridge/view.cljsβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626

2727
(defn- network->text
2828
[network]
29-
(cond (not network) ""
30-
(= network :ethereum) "Mainnet"
31-
:else (string/capitalize (name network))))
29+
(cond (not network) ""
30+
(= network :mainnet) "Ethereum"
31+
:else (string/capitalize (name network))))
3232

3333
(defn view-internal
3434
[{:keys [network status amount container-style on-press on-long-press] :as args}]

β€Žsrc/quo/components/wallet/transaction_progress/component_spec.cljsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
:network network
1212
:customization-color :blue
1313
:networks [{:network :mainnet
14-
:full-name "Mainnet"
14+
:full-name "Ethereum"
1515
:state state
1616
:counter 0
1717
:total-box 85

β€Žsrc/status_im/contexts/preview/quo/list_items/network_list.cljsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
(defn view
3232
[]
3333
(let [state (reagent/atom {:network-image (quo.resources/get-network :ethereum)
34-
:label "Mainnet"
34+
:label "Ethereum"
3535
:token-value "0.00 ETH"
3636
:fiat-value "€0.00"
3737
:state :default

β€Žsrc/status_im/contexts/preview/quo/navigation/page_nav.cljsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
:picture (resources/get-mock-image :photo1)
201201
:community-name "Rarible"
202202
:community-logo (resources/get-mock-image :coinbase)
203-
:network-name "Mainnet"
203+
:network-name "Ethereum"
204204
:network-logo (resources/get-mock-image :diamond)
205205
:networks networks})]
206206
(fn []

β€Žsrc/status_im/contexts/preview/quo/notifications/activity_logs.cljsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
(def complex-user-action
7979
[[quo/context-tag {:size 24 :full-name "Alice" :blur? true}]
8080
"from"
81-
[quo/context-tag {:size 24 :full-name "Mainnet" :blur? true}]
81+
[quo/context-tag {:size 24 :full-name "Ethereum" :blur? true}]
8282
"to"
8383
[quo/context-tag {:size 24 :full-name "Optimism" :blur? true}]
8484
"on"

β€Žsrc/status_im/contexts/preview/quo/tags/summary_tag.cljsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
:customization-color :yellow}
2727
:network
2828
{:image-source (quo.resources/get-network :ethereum)
29-
:label "Mainnet"}
29+
:label "Ethereum"}
3030
:saved-address
3131
{:customization-color :pink
3232
:label "Peter Lambo"}

β€Žsrc/status_im/contexts/preview/quo/wallet/network_bridge.cljsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
(defn view
2323
[]
24-
(let [state (reagent/atom {:network :ethereum
24+
(let [state (reagent/atom {:network :mainnet
2525
:status :default
2626
:amount "50 SNT"})]
2727
(fn []

β€Žsrc/status_im/contexts/preview/quo/wallet/transaction_progress.cljsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
[state]
9595
(case (:network state)
9696
:mainnet [{:network :mainnet
97-
:full-name "Mainnet"
97+
:full-name "Ethereum"
9898
:state (:state-mainnet state)
9999
:counter @counter
100100
:total-box total-box

β€Žsrc/status_im/contexts/preview/quo/wallet/transaction_summary.cljsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
{:size 24
7373
:type :network
7474
:network-logo (quo.resources/get-network :ethereum)
75-
:network-name "Mainnet"})
75+
:network-name "Ethereum"})
7676

7777
(def optimism
7878
{:size 24

0 commit comments

Comments
Β (0)