Skip to content

Commit

Permalink
feat: use ImmutableDictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclair-aefinder committed Aug 2, 2024
1 parent 7d773d8 commit 5373989
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/AeFinder.Cli.Core/CliConsts.cs
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
using System.Collections.Immutable;

namespace AeFinder.Cli;

public static class CliConsts
{
public static Dictionary<AeFinderNetwork, AeFinderEndpoint> AeFinderEndpoints =
new()
{
public static readonly ImmutableDictionary<AeFinderNetwork, AeFinderEndpoint> AeFinderEndpoints =
ImmutableDictionary.CreateRange(
new[]
{
AeFinderNetwork.MainNet, new AeFinderEndpoint
KeyValuePair.Create(AeFinderNetwork.MainNet, new AeFinderEndpoint
{
AuthEndpoint = "https://indexer-auth.aefinder.io/",
ApiEndpoint = "https://indexer-api.aefinder.io/"
}
},
{
AeFinderNetwork.TestNet, new AeFinderEndpoint
}),
KeyValuePair.Create(AeFinderNetwork.TestNet, new AeFinderEndpoint
{
AuthEndpoint = "https://gcptest-indexer-auth.aefinder.io/",
ApiEndpoint = "https://gcptest-indexer-api.aefinder.io/"
}
}
};
})
});

public const string HttpClientName = "AeFinderHttpClient";
}

0 comments on commit 5373989

Please sign in to comment.