feat: add network image

This commit is contained in:
Anthony Laibe 2022-05-30 11:55:50 +02:00 committed by Anthony Laibe
parent 7c92d39359
commit 86805a6c7d
9 changed files with 8 additions and 8 deletions

View File

@ -112,7 +112,7 @@ let DEFAULT_NETWORKS* = %* [
let NETWORKS* = %* [ let NETWORKS* = %* [
{ {
"chainId": 1, "chainId": 1,
"chainName": "Ethereum Mainnet", "chainName": "Mainnet",
"rpcUrl": "https://mainnet.infura.io/v3/" & INFURA_TOKEN_RESOLVED, "rpcUrl": "https://mainnet.infura.io/v3/" & INFURA_TOKEN_RESOLVED,
"blockExplorerUrl": "https://etherscan.io/", "blockExplorerUrl": "https://etherscan.io/",
"iconUrl": "", "iconUrl": "",
@ -125,7 +125,7 @@ let NETWORKS* = %* [
}, },
{ {
"chainId": 3, "chainId": 3,
"chainName": "Ethereum Ropsten", "chainName": "Ropsten",
"rpcUrl": "https://ropsten.infura.io/v3/" & INFURA_TOKEN_RESOLVED, "rpcUrl": "https://ropsten.infura.io/v3/" & INFURA_TOKEN_RESOLVED,
"blockExplorerUrl": "https://ropsten.etherscan.io/", "blockExplorerUrl": "https://ropsten.etherscan.io/",
"iconUrl": "", "iconUrl": "",
@ -138,7 +138,7 @@ let NETWORKS* = %* [
}, },
{ {
"chainId": 4, "chainId": 4,
"chainName": "Ethereum Rinkeby", "chainName": "Rinkeby",
"rpcUrl": "https://rinkeby.infura.io/v3/" & INFURA_TOKEN_RESOLVED, "rpcUrl": "https://rinkeby.infura.io/v3/" & INFURA_TOKEN_RESOLVED,
"blockExplorerUrl": "https://rinkeby.etherscan.io/", "blockExplorerUrl": "https://rinkeby.etherscan.io/",
"iconUrl": "", "iconUrl": "",
@ -151,7 +151,7 @@ let NETWORKS* = %* [
}, },
{ {
"chainId": 5, "chainId": 5,
"chainName": "Ethereum Goerli", "chainName": "Goerli",
"rpcUrl": "http://goerli.blockscout.com/", "rpcUrl": "http://goerli.blockscout.com/",
"blockExplorerUrl": "https://goerli.etherscan.io/", "blockExplorerUrl": "https://goerli.etherscan.io/",
"iconUrl": "", "iconUrl": "",
@ -164,7 +164,7 @@ let NETWORKS* = %* [
}, },
{ {
"chainId": 10, "chainId": 10,
"chainName": "Optimistic Ethereum", "chainName": "Optimism",
"rpcUrl": "https://optimism-mainnet.infura.io/v3/" & INFURA_TOKEN_RESOLVED, "rpcUrl": "https://optimism-mainnet.infura.io/v3/" & INFURA_TOKEN_RESOLVED,
"blockExplorerUrl": "https://optimistic.etherscan.io", "blockExplorerUrl": "https://optimistic.etherscan.io",
"iconUrl": "", "iconUrl": "",
@ -190,7 +190,7 @@ let NETWORKS* = %* [
}, },
{ {
"chainId": 42161, "chainId": 42161,
"chainName": "Arbitrum Mainnet", "chainName": "Arbitrum",
"rpcUrl": "https://arbitrum-mainnet.infura.io/v3/" & INFURA_TOKEN_RESOLVED, "rpcUrl": "https://arbitrum-mainnet.infura.io/v3/" & INFURA_TOKEN_RESOLVED,
"blockExplorerUrl": "https://arbiscan.io/", "blockExplorerUrl": "https://arbiscan.io/",
"iconUrl": "", "iconUrl": "",
@ -203,7 +203,7 @@ let NETWORKS* = %* [
}, },
{ {
"chainId": 421611, "chainId": 421611,
"chainName": "Arbitrum Testnet", "chainName": "Arbitrum Rinkeby",
"rpcUrl": "https://arbitrum-rinkeby.infura.io/v3/" & INFURA_TOKEN_RESOLVED, "rpcUrl": "https://arbitrum-rinkeby.infura.io/v3/" & INFURA_TOKEN_RESOLVED,
"blockExplorerUrl": " https://testnet.arbiscan.io", "blockExplorerUrl": " https://testnet.arbiscan.io",
"iconUrl": "", "iconUrl": "",

View File

@ -7,7 +7,7 @@ import StatusQ.Core.Theme 0.1
StatusListItem { StatusListItem {
property var network property var network
title: network.chainName title: network.chainName
icon.isLetterIdenticon: true image.source: Style.png("networks/" + network.chainName.toLowerCase())
width: parent.width width: parent.width
leftPadding: Style.current.padding leftPadding: Style.current.padding
rightPadding: Style.current.padding rightPadding: Style.current.padding

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB