Updates codex marketplace API types
This commit is contained in:
parent
635849c37a
commit
a27b294031
|
@ -87,7 +87,7 @@ namespace CodexPlugin
|
|||
|
||||
public class CodexSalesAvailabilityRequest
|
||||
{
|
||||
public string size { get; set; } = string.Empty;
|
||||
public string totalSize { get; set; } = string.Empty;
|
||||
public string duration { get; set; } = string.Empty;
|
||||
public string minPrice { get; set; } = string.Empty;
|
||||
public string maxCollateral { get; set; } = string.Empty;
|
||||
|
@ -96,7 +96,8 @@ namespace CodexPlugin
|
|||
public class CodexSalesAvailabilityResponse
|
||||
{
|
||||
public string id { get; set; } = string.Empty;
|
||||
public string size { get; set; } = string.Empty;
|
||||
public string totalSize { get; set; } = string.Empty;
|
||||
public string freeSize { get; set; } = string.Empty;
|
||||
public string duration { get; set; } = string.Empty;
|
||||
public string minPrice { get; set; } = string.Empty;
|
||||
public string maxCollateral { get; set; } = string.Empty;
|
||||
|
|
|
@ -67,7 +67,7 @@ namespace CodexPlugin
|
|||
{
|
||||
return new CodexSalesAvailabilityRequest
|
||||
{
|
||||
size = ToDecInt(TotalSpace.SizeInBytes),
|
||||
totalSize = ToDecInt(TotalSpace.SizeInBytes),
|
||||
duration = ToDecInt(MaxDuration.TotalSeconds),
|
||||
maxCollateral = ToDecInt(MaxCollateral),
|
||||
minPrice = ToDecInt(MinPriceForTotalSpace)
|
||||
|
@ -77,7 +77,7 @@ namespace CodexPlugin
|
|||
public void Log(ILog log)
|
||||
{
|
||||
log.Log($"Making storage available... (" +
|
||||
$"size: {TotalSpace}, " +
|
||||
$"totalSize: {TotalSpace}, " +
|
||||
$"maxDuration: {Time.FormatDuration(MaxDuration)}, " +
|
||||
$"minPriceForTotalSpace: {MinPriceForTotalSpace}, " +
|
||||
$"maxCollateral: {MaxCollateral})");
|
||||
|
|
Loading…
Reference in New Issue