Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Groxan committed Feb 7, 2025
1 parent b5735f9 commit a62154b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Tzkt.Api/Models/ProtocolConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@ public class ProtocolConstants
/// </summary>
public int SmartRollupTimeoutPeriod { get; set; }

/// <summary>
/// Number of DAL Shards
/// </summary>
public int DalNumberOfShards { get; set; }

/// <summary>
/// Governance dictator
/// </summary>
Expand Down
4 changes: 4 additions & 0 deletions Tzkt.Api/Repositories/ProtocolRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ ORDER BY ""FirstLevel"" DESC
SmartRollupOriginationSize= row.SmartRollupOriginationSize,
SmartRollupStakeAmount= row.SmartRollupStakeAmount,
SmartRollupTimeoutPeriod= row.SmartRollupTimeoutPeriod,
DalNumberOfShards = row.NumberOfShards,
Dictator = row.Dictator
},
Extras = row.Extras
Expand Down Expand Up @@ -155,6 +156,7 @@ public async Task<Protocol> Get(int code)
SmartRollupOriginationSize = row.SmartRollupOriginationSize,
SmartRollupStakeAmount = row.SmartRollupStakeAmount,
SmartRollupTimeoutPeriod = row.SmartRollupTimeoutPeriod,
DalNumberOfShards = row.NumberOfShards,
Dictator = row.Dictator
},
Extras = row.Extras
Expand Down Expand Up @@ -225,6 +227,7 @@ public async Task<Protocol> Get(string hash)
SmartRollupOriginationSize = row.SmartRollupOriginationSize,
SmartRollupStakeAmount = row.SmartRollupStakeAmount,
SmartRollupTimeoutPeriod = row.SmartRollupTimeoutPeriod,
DalNumberOfShards = row.NumberOfShards,
Dictator = row.Dictator
},
Extras = row.Extras
Expand Down Expand Up @@ -296,6 +299,7 @@ public async Task<IEnumerable<Protocol>> Get(SortParameter sort, OffsetParameter
SmartRollupOriginationSize = row.SmartRollupOriginationSize,
SmartRollupStakeAmount = row.SmartRollupStakeAmount,
SmartRollupTimeoutPeriod = row.SmartRollupTimeoutPeriod,
DalNumberOfShards = row.NumberOfShards,
Dictator = row.Dictator
},
Extras = row.Extras
Expand Down

0 comments on commit a62154b

Please sign in to comment.