Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update well-known lightwallet servers #347

Merged
merged 1 commit into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 8 additions & 14 deletions src/Nerdbank.Zcash/LightWalletServers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,25 @@ public static class LightWalletServers
public static Uri GetDefaultServer(ZcashNetwork network) =>
network switch
{
ZcashNetwork.MainNet => Nighthawk.MainNet,
ZcashNetwork.TestNet => ElectricCoinCo.TestNet,
ZcashNetwork.MainNet => Nerdbank.MainNet,
ZcashNetwork.TestNet => Nerdbank.TestNet,
_ => throw new ArgumentOutOfRangeException(nameof(network)),
};

/// <summary>
/// Servers hosted by the Nighthawk Wallet team.
/// Servers hosted by the same authors as this library.
/// </summary>
public static class Nighthawk
public static class Nerdbank
{
/// <summary>
/// Gets the URI to the Nighthawk MainNet server.
/// Gets the URI to the MainNet server.
/// </summary>
public static readonly Uri MainNet = new("https://mainnet.lightwalletd.com:9067/");
}
public static readonly Uri MainNet = new("https://zcash.mysideoftheweb.com:9067/");

/// <summary>
/// Servers hosted by the Electric Coin Company.
/// </summary>
public static class ElectricCoinCo
{
/// <summary>
/// Gets the URI to the Electric Coin Company TestNet server.
/// Gets the URI to the TestNet server.
/// </summary>
public static readonly Uri TestNet = new("https://lightwalletd.testnet.electriccoin.co:9067/");
public static readonly Uri TestNet = new("https://zcash.mysideoftheweb.com:19067/");
}

/// <summary>
Expand Down
7 changes: 3 additions & 4 deletions src/Nerdbank.Zcash/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,8 @@ Nerdbank.Zcash.LightWalletException.ErrorCode.Sqlite = 3 -> Nerdbank.Zcash.Light
Nerdbank.Zcash.LightWalletException.LightWalletException(string? message) -> void
Nerdbank.Zcash.LightWalletException.LightWalletException(string? message, System.Exception? innerException) -> void
Nerdbank.Zcash.LightWalletServers
Nerdbank.Zcash.LightWalletServers.ElectricCoinCo
Nerdbank.Zcash.LightWalletServers.Hanh
Nerdbank.Zcash.LightWalletServers.Nighthawk
Nerdbank.Zcash.LightWalletServers.Nerdbank
Nerdbank.Zcash.ManagedLightWalletClient
Nerdbank.Zcash.ManagedLightWalletClient.Dispose() -> void
Nerdbank.Zcash.ManagedLightWalletClient.GetLatestBlockHeightAsync(System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.ValueTask<ulong>
Expand Down Expand Up @@ -989,8 +988,8 @@ static Nerdbank.Zcash.Zip32HDWallet.Transparent.Create(Nerdbank.Bitcoin.Bip39Mne
static Nerdbank.Zcash.Zip32HDWallet.Transparent.Create(System.ReadOnlySpan<byte> seed, Nerdbank.Zcash.ZcashNetwork network) -> Nerdbank.Zcash.Zip32HDWallet.Transparent.ExtendedSpendingKey!
static Nerdbank.Zcash.Zip32HDWallet.Transparent.ExtendedSpendingKey.TryDecode(System.ReadOnlySpan<char> encoding, out Nerdbank.Cryptocurrencies.DecodeError? decodeError, out string? errorMessage, out Nerdbank.Zcash.Zip32HDWallet.Transparent.ExtendedSpendingKey? key) -> bool
static Nerdbank.Zcash.Zip32HDWallet.Transparent.ExtendedViewingKey.TryDecode(System.ReadOnlySpan<char> encoding, out Nerdbank.Cryptocurrencies.DecodeError? decodeResult, out string? errorMessage, out Nerdbank.Zcash.Zip32HDWallet.Transparent.ExtendedViewingKey? key) -> bool
static readonly Nerdbank.Zcash.LightWalletServers.ElectricCoinCo.TestNet -> System.Uri!
static readonly Nerdbank.Zcash.LightWalletServers.Nighthawk.MainNet -> System.Uri!
static readonly Nerdbank.Zcash.LightWalletServers.Nerdbank.MainNet -> System.Uri!
static readonly Nerdbank.Zcash.LightWalletServers.Nerdbank.TestNet -> System.Uri!
static readonly Nerdbank.Zcash.UnifiedEncodingMetadata.Default -> Nerdbank.Zcash.UnifiedEncodingMetadata!
static readonly Nerdbank.Zcash.ZcashAccount.Equality.ByFullViewingKey -> System.Collections.Generic.IEqualityComparer<Nerdbank.Zcash.ZcashAccount!>!
static readonly Nerdbank.Zcash.ZcashAccount.Equality.ByIncomingViewingKey -> System.Collections.Generic.IEqualityComparer<Nerdbank.Zcash.ZcashAccount!>!
Expand Down
Loading