From edd369e9fb7357bb35a83ad0a91cd213675f9e31 Mon Sep 17 00:00:00 2001 From: Ivan Yaremenchuk Date: Fri, 19 Aug 2022 22:15:55 -0500 Subject: [PATCH] Add real network names --- NftFaucetRadzen/Models/NetworkModel.cs | 1 + NftFaucetRadzen/Pages/Network.razor.cs | 37 +++++++++++++------------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/NftFaucetRadzen/Models/NetworkModel.cs b/NftFaucetRadzen/Models/NetworkModel.cs index 5f88493..576b04c 100644 --- a/NftFaucetRadzen/Models/NetworkModel.cs +++ b/NftFaucetRadzen/Models/NetworkModel.cs @@ -5,6 +5,7 @@ public class NetworkModel public string Name { get; set; } public ulong ChainId { get; set; } public string Currency { get; set; } + public string ImageName { get; set; } public bool IsSupported { get; set; } public bool IsTestnet { get; set; } } diff --git a/NftFaucetRadzen/Pages/Network.razor.cs b/NftFaucetRadzen/Pages/Network.razor.cs index 2bc29c0..ab9193f 100644 --- a/NftFaucetRadzen/Pages/Network.razor.cs +++ b/NftFaucetRadzen/Pages/Network.razor.cs @@ -38,22 +38,16 @@ namespace NftFaucetRadzen.Pages Name = "Ethereum Mainnet", ChainId = 1, Currency = "ETH", + ImageName = "ethereum.svg", IsSupported = false, IsTestnet = false, }, new NetworkModel - { - Name = "Rinkeby", - ChainId = 4, - Currency = "ETH", - IsSupported = true, - IsTestnet = true, - }, - new NetworkModel { Name = "Ropsten", ChainId = 3, Currency = "ETH", + ImageName = "ethereum.svg", IsSupported = true, IsTestnet = true, }, @@ -62,39 +56,44 @@ namespace NftFaucetRadzen.Pages Name = "Rinkeby", ChainId = 4, Currency = "ETH", + ImageName = "ethereum.svg", IsSupported = true, IsTestnet = true, }, new NetworkModel { - Name = "Ropsten", - ChainId = 3, + Name = "Goerli", + ChainId = 5, Currency = "ETH", + ImageName = "ethereum.svg", IsSupported = true, IsTestnet = true, }, new NetworkModel { - Name = "Rinkeby", - ChainId = 4, + Name = "Kovan", + ChainId = 42, Currency = "ETH", + ImageName = "ethereum.svg", IsSupported = true, IsTestnet = true, }, new NetworkModel { - Name = "Ropsten", - ChainId = 3, + Name = "Kiln", + ChainId = 1337802, Currency = "ETH", - IsSupported = true, + ImageName = "ethereum.svg", + IsSupported = false, IsTestnet = true, }, new NetworkModel { - Name = "Rinkeby", - ChainId = 4, - Currency = "ETH", - IsSupported = true, + Name = "Sepolia", + ChainId = 11155111, + Currency = "SEP", + ImageName = "ethereum.svg", + IsSupported = false, IsTestnet = true, }, };