Skip to content

Commit

Permalink
Fixes marketplace api mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
benbierens committed Feb 25, 2025
1 parent 3cd989c commit 3af71b1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ProjectPlugins/CodexClient/MarketplaceTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class StorageAsk
public string SlotSize { get; set; } = string.Empty;
public string Duration { get; set; } = string.Empty;
public string ProofProbability { get; set; } = string.Empty;
public string Reward { get; set; } = string.Empty;
public string PricePerBytePerSecond { get; set; } = string.Empty;
public int MaxSlotLoss { get; set; }
}

Expand Down
4 changes: 2 additions & 2 deletions Tools/AutoClient/CodexWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ public IStoragePurchaseContract RequestStorage(ContentId cid)
app.Log.Debug("Requesting storage for " + cid.Id);
var result = Node.Marketplace.RequestStorage(new StoragePurchaseRequest(cid)
{
CollateralPerByte = app.Config.CollateralPerByte.Tst(),
CollateralPerByte = app.Config.CollateralPerByte.TstWei(),
Duration = TimeSpan.FromMinutes(app.Config.ContractDurationMinutes),
Expiry = TimeSpan.FromMinutes(app.Config.ContractExpiryMinutes),
MinRequiredNumberOfNodes = Convert.ToUInt32(app.Config.NumHosts),
NodeFailureTolerance = Convert.ToUInt32(app.Config.HostTolerance),
PricePerBytePerSecond = app.Config.PricePerBytePerSecond.Tst(),
PricePerBytePerSecond = app.Config.PricePerBytePerSecond.TstWei(),
ProofProbability = 15
});
return result;
Expand Down
2 changes: 1 addition & 1 deletion Tools/AutoClient/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private CodexWrapper CreateCodexWrapper(string endpoint)
port: port
);

var instance = CodexInstance.CreateFromApiEndpoint("ac", address, EthAccountGenerator.GenerateNew());
var instance = CodexInstance.CreateFromApiEndpoint("AutoClient", address, EthAccountGenerator.GenerateNew());
var node = app.CodexNodeFactory.CreateCodexNode(instance);
return new CodexWrapper(app, node);
}
Expand Down

0 comments on commit 3af71b1

Please sign in to comment.