@@ -12,8 +12,8 @@ public StoragePurchaseRequest(ContentId cid)
12
12
}
13
13
14
14
public ContentId ContentId { get ; set ; }
15
- public TestToken PricePerSlotPerSecond { get ; set ; } = 1 . TstWei ( ) ;
16
- public TestToken RequiredCollateral { get ; set ; } = 1 . TstWei ( ) ;
15
+ public TestToken PricePerBytePerSecond { get ; set ; } = 1 . TstWei ( ) ;
16
+ public TestToken CollateralPerByte { get ; set ; } = 1 . TstWei ( ) ;
17
17
public uint MinRequiredNumberOfNodes { get ; set ; }
18
18
public uint NodeFailureTolerance { get ; set ; }
19
19
public int ProofProbability { get ; set ; }
@@ -23,8 +23,8 @@ public StoragePurchaseRequest(ContentId cid)
23
23
public void Log ( ILog log )
24
24
{
25
25
log . Log ( $ "Requesting storage for: { ContentId . Id } ... (" +
26
- $ "pricePerSlotPerSecond : { PricePerSlotPerSecond } , " +
27
- $ "requiredCollateral : { RequiredCollateral } , " +
26
+ $ "pricePerBytePerSecond : { PricePerBytePerSecond } , " +
27
+ $ "collateralPerByte : { CollateralPerByte } , " +
28
28
$ "minRequiredNumberOfNodes: { MinRequiredNumberOfNodes } , " +
29
29
$ "nodeFailureTolerance: { NodeFailureTolerance } , " +
30
30
$ "proofProbability: { ProofProbability } , " +
@@ -75,28 +75,28 @@ public class StorageContent
75
75
76
76
public class StorageAvailability
77
77
{
78
- public StorageAvailability ( ByteSize totalSpace , TimeSpan maxDuration , TestToken minPriceForTotalSpace , TestToken maxCollateral )
78
+ public StorageAvailability ( ByteSize totalSpace , TimeSpan maxDuration , TestToken minPricePerBytePerSecond , TestToken totalCollateral )
79
79
{
80
80
TotalSpace = totalSpace ;
81
81
MaxDuration = maxDuration ;
82
- MinPriceForTotalSpace = minPriceForTotalSpace ;
83
- MaxCollateral = maxCollateral ;
82
+ MinPricePerBytePerSecond = minPricePerBytePerSecond ;
83
+ TotalCollateral = totalCollateral ;
84
84
}
85
85
86
86
public string Id { get ; set ; } = string . Empty ;
87
87
public ByteSize TotalSpace { get ; }
88
88
public TimeSpan MaxDuration { get ; }
89
- public TestToken MinPriceForTotalSpace { get ; }
90
- public TestToken MaxCollateral { get ; }
89
+ public TestToken MinPricePerBytePerSecond { get ; }
90
+ public TestToken TotalCollateral { get ; }
91
91
public ByteSize FreeSpace { get ; set ; } = ByteSize . Zero ;
92
92
93
93
public void Log ( ILog log )
94
94
{
95
95
log . Log ( $ "Storage Availability: (" +
96
96
$ "totalSize: { TotalSpace } , " +
97
97
$ "maxDuration: { Time . FormatDuration ( MaxDuration ) } , " +
98
- $ "minPriceForTotalSpace : { MinPriceForTotalSpace } , " +
99
- $ "maxCollateral : { MaxCollateral } )") ;
98
+ $ "minPricePerBytePerSecond : { MinPricePerBytePerSecond } , " +
99
+ $ "totalCollateral : { TotalCollateral } )") ;
100
100
}
101
101
}
102
102
}
0 commit comments