From 49902277688e4c80747cf49204d08f8fa716b963 Mon Sep 17 00:00:00 2001 From: Ivan Yaremenchuk Date: Sun, 17 Apr 2022 16:23:57 +0200 Subject: [PATCH] Add AvalancheFuji network support --- NftFaucet/Models/Enums/EthereumNetwork.cs | 2 ++ NftFaucet/Pages/Step4Page.razor.cs | 2 ++ NftFaucet/Shared/MainLayout.razor.cs | 2 ++ NftFaucet/wwwroot/appsettings.json | 5 +++++ README.md | 3 ++- 5 files changed, 13 insertions(+), 1 deletion(-) diff --git a/NftFaucet/Models/Enums/EthereumNetwork.cs b/NftFaucet/Models/Enums/EthereumNetwork.cs index 2ea837a..3b84262 100644 --- a/NftFaucet/Models/Enums/EthereumNetwork.cs +++ b/NftFaucet/Models/Enums/EthereumNetwork.cs @@ -14,4 +14,6 @@ public enum EthereumNetwork : long ArbitrumMainnetBeta = 42161, ArbitrumRinkeby = 421611, ArbitrumGoerli = 421612, + AvalancheMainnet = 43114, + AvalancheFuji = 43113, } diff --git a/NftFaucet/Pages/Step4Page.razor.cs b/NftFaucet/Pages/Step4Page.razor.cs index b0c9f2d..35dac8d 100644 --- a/NftFaucet/Pages/Step4Page.razor.cs +++ b/NftFaucet/Pages/Step4Page.razor.cs @@ -75,6 +75,8 @@ public class Step4Component : BasicComponent EthereumNetwork.ArbitrumMainnetBeta => "https://explorer.arbitrum.io/tx/", EthereumNetwork.ArbitrumRinkeby => "https://testnet.arbiscan.io/tx/", EthereumNetwork.ArbitrumGoerli => "https://nitro-devnet-explorer.arbitrum.io/tx/", + EthereumNetwork.AvalancheMainnet => "https://snowtrace.io/tx/", + EthereumNetwork.AvalancheFuji => "https://testnet.snowtrace.io/tx/", _ => null, }; if (baseUrl == null) diff --git a/NftFaucet/Shared/MainLayout.razor.cs b/NftFaucet/Shared/MainLayout.razor.cs index 04326f3..57d058f 100644 --- a/NftFaucet/Shared/MainLayout.razor.cs +++ b/NftFaucet/Shared/MainLayout.razor.cs @@ -41,6 +41,8 @@ public class MainLayoutComponent : LayoutBasicComponent EthereumNetwork.ArbitrumMainnetBeta => PresetColor.Cyan, EthereumNetwork.ArbitrumRinkeby => PresetColor.Gold, EthereumNetwork.ArbitrumGoerli => PresetColor.GeekBlue, + EthereumNetwork.AvalancheMainnet => PresetColor.Cyan, + EthereumNetwork.AvalancheFuji => PresetColor.Pink, _ => PresetColor.Yellow, }; diff --git a/NftFaucet/wwwroot/appsettings.json b/NftFaucet/wwwroot/appsettings.json index 856d86e..1379382 100644 --- a/NftFaucet/wwwroot/appsettings.json +++ b/NftFaucet/wwwroot/appsettings.json @@ -39,6 +39,11 @@ "Id": "ArbitrumGoerli", "Erc721ContractAddress": "0x9F64932Be34D5D897C4253D17707b50921f372B6", "Erc1155ContractAddress": "0xf67C575502fc1cE399a3e1895dDf41847185D7bD" + }, + { + "Id": "AvalancheFuji", + "Erc721ContractAddress": "0x9F64932Be34D5D897C4253D17707b50921f372B6", + "Erc1155ContractAddress": "0xf67C575502fc1cE399a3e1895dDf41847185D7bD" } ], "IpfsGateways": [ diff --git a/README.md b/README.md index c8202ed..7427906 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,8 @@ Used [contracts](NftFaucet/Contracts) are based on [OpenZeppilin contracts](http | OptimismKovan | [0xee52f32f4bbcedc2a1ed1c195936132937f2d371](https://kovan-optimistic.etherscan.io/token/0xee52f32f4bbcedc2a1ed1c195936132937f2d371) | [0xCc0040129f197F63D37ebd77E62a6F96dDcd4e0A](https://kovan-optimistic.etherscan.io/token/0xCc0040129f197F63D37ebd77E62a6F96dDcd4e0A) | | PolygonMumbai | [0xeE8272220A0988279627714144Ff6981E204fbE4](https://mumbai.polygonscan.com/token/0xeE8272220A0988279627714144Ff6981E204fbE4) | [0x23147CdbD963A3D0fec0F25E4604844f477F65d2](https://mumbai.polygonscan.com/token/0x23147CdbD963A3D0fec0F25E4604844f477F65d2) | | ArbitrumRinkeby | [0x9F64932Be34D5D897C4253D17707b50921f372B6](https://testnet.arbiscan.io/token/0x9F64932Be34D5D897C4253D17707b50921f372B6) | [0xf67C575502fc1cE399a3e1895dDf41847185D7bD](https://testnet.arbiscan.io/token/0xf67C575502fc1cE399a3e1895dDf41847185D7bD) | -| ArbitrumGoerli | [0x9F64932Be34D5D897C4253D17707b50921f372B6](https://nitro-devnet-explorer.arbitrum.io/token/0x9F64932Be34D5D897C4253D17707b50921f372B6) | [0xf67C575502fc1cE399a3e1895dDf41847185D7bD](https://nitro-devnet-explorer.arbitrum.io/token/0xf67C575502fc1cE399a3e1895dDf41847185D7bD) | +| ArbitrumGoerli | [0x9F64932Be34D5D897C4253D17707b50921f372B6](https://nitro-devnet-explorer.arbitrum.io/address/0x9F64932Be34D5D897C4253D17707b50921f372B6) | [0xf67C575502fc1cE399a3e1895dDf41847185D7bD](https://nitro-devnet-explorer.arbitrum.io/address/0xf67C575502fc1cE399a3e1895dDf41847185D7bD) | +| AvalancheFuji | [0x9F64932Be34D5D897C4253D17707b50921f372B6](https://testnet.snowtrace.io/token/0x9F64932Be34D5D897C4253D17707b50921f372B6) | [0xf67C575502fc1cE399a3e1895dDf41847185D7bD](https://testnet.snowtrace.io/token/0xf67C575502fc1cE399a3e1895dDf41847185D7bD) | ## Technology stack