Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1302 from lurchinms/master
Browse files Browse the repository at this point in the history
Added "market to coin API and updated coin list
  • Loading branch information
Oliver Weichhold authored Jul 8, 2022
2 parents e96690f + 0ca4310 commit f42b9f9
Show file tree
Hide file tree
Showing 4 changed files with 3,086 additions and 747 deletions.
3 changes: 3 additions & 0 deletions src/Miningcore/Api/Responses/GetPoolsResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ public class ApiCoinConfig
[System.Text.Json.Serialization.JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string Website { get; set; }

[System.Text.Json.Serialization.JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string Market { get; set; }

[System.Text.Json.Serialization.JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string Family { get; set; }

Expand Down
1 change: 1 addition & 0 deletions src/Miningcore/AutoMapperProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public AutoMapperProfile()
.ForMember(dest => dest.Family, opt => opt.MapFrom(src => src.Family.ToString().ToLower()))
.ForMember(dest => dest.Symbol, opt => opt.MapFrom(src => src.Symbol))
.ForMember(dest => dest.Website, opt => opt.MapFrom(src => src.Website))
.ForMember(dest => dest.Market, opt => opt.MapFrom(src => src.Market))
.ForMember(dest => dest.Twitter, opt => opt.MapFrom(src => src.Twitter))
.ForMember(dest => dest.Discord, opt => opt.MapFrom(src => src.Discord))
.ForMember(dest => dest.Telegram, opt => opt.MapFrom(src => src.Telegram))
Expand Down
7 changes: 7 additions & 0 deletions src/Miningcore/Configuration/ClusterConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ public abstract partial class CoinTemplate
[JsonProperty(Order = -9)]
public string Website { get; set; }

/// <summary>
/// Market
/// </summary>
[JsonProperty(Order = -9)]
public string Market { get; set; }


/// <summary>
/// Family
/// </summary>
Expand Down
Loading

0 comments on commit f42b9f9

Please sign in to comment.