diff --git a/NftFaucetRadzen/Plugins/ProviderPlugins/Phantom/PhantomProviderPlugin.cs b/NftFaucetRadzen/Plugins/ProviderPlugins/Phantom/PhantomProviderPlugin.cs new file mode 100644 index 0000000..5b83d37 --- /dev/null +++ b/NftFaucetRadzen/Plugins/ProviderPlugins/Phantom/PhantomProviderPlugin.cs @@ -0,0 +1,11 @@ +using NftFaucetRadzen.Plugins.ProviderPlugins.Phantom.Providers; + +namespace NftFaucetRadzen.Plugins.ProviderPlugins.Phantom; + +public class PhantomProviderPlugin : IProviderPlugin +{ + public IReadOnlyCollection Providers { get; } = new IProvider[] + { + new PhantomProvider(), + }; +} diff --git a/NftFaucetRadzen/Plugins/ProviderPlugins/Phantom/Providers/PhantomProvider.cs b/NftFaucetRadzen/Plugins/ProviderPlugins/Phantom/Providers/PhantomProvider.cs new file mode 100644 index 0000000..4e1d2a1 --- /dev/null +++ b/NftFaucetRadzen/Plugins/ProviderPlugins/Phantom/Providers/PhantomProvider.cs @@ -0,0 +1,24 @@ +namespace NftFaucetRadzen.Plugins.ProviderPlugins.Phantom.Providers; + +public class PhantomProvider : IProvider +{ + public Guid Id { get; } = Guid.Parse("ae860901-5441-463c-a16e-4786f041500d"); + public string Name { get; } = "Phantom"; + public string ShortName { get; } = "Phantom"; + public string ImageName { get; } = "phantom.svg"; + public bool IsSupported { get; } = false; + + public bool IsInitialized { get; private set; } + + public void Initialize() + { + IsInitialized = true; + } + + public List<(string Name, string Value)> GetProperties() + => new List<(string Name, string Value)> + { + ("Installed", "YES"), + ("Connected", IsInitialized ? "YES" : "NO"), + }; +} diff --git a/NftFaucetRadzen/wwwroot/images/phantom.svg b/NftFaucetRadzen/wwwroot/images/phantom.svg new file mode 100644 index 0000000..64c1e62 --- /dev/null +++ b/NftFaucetRadzen/wwwroot/images/phantom.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + +