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

Commit

Permalink
Added "Market" to Coin API
Browse files Browse the repository at this point in the history
  • Loading branch information
lurchinms committed Jul 8, 2022
1 parent 03c069a commit 0ca4310
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 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

0 comments on commit 0ca4310

Please sign in to comment.