-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from HannaAndreevna/replace-common-sql-package
Replace Lykke.Common.MsSql package to MAVN.Common.MsSql
Showing
14 changed files
with
74 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
src/MAVN.Service.QuorumExplorer.Domain/MAVN.Service.QuorumExplorer.Domain.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<Version>1.0.0</Version> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Lykke.Common" Version="7.4.0" /> | ||
<PackageReference Include="MAVN.Common.MsSql" Version="3.0.0" /> | ||
</ItemGroup> | ||
</Project> |
9 changes: 5 additions & 4 deletions
9
src/MAVN.Service.QuorumExplorer.Domain/Repositories/IEventRepository.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
using System.Collections.Generic; | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
using MAVN.Common.MsSql; | ||
using MAVN.Service.QuorumExplorer.Domain.DTOs; | ||
|
||
namespace MAVN.Service.QuorumExplorer.Domain.Repositories | ||
{ | ||
public interface IEventRepository | ||
{ | ||
Task SaveAsync(IReadOnlyCollection<Event> events); | ||
Task SaveAsync(IReadOnlyCollection<Event> events, TransactionContext txContext = null); | ||
|
||
Task<(int total, IEnumerable<EventInfo>)> GetByBlockNumberAsync(long number, int skip, int take); | ||
|
||
Task<(int total, IEnumerable<EventInfo>)> GetByBlockHashAsync(string hash, int skip, int take); | ||
|
||
Task<(int total, IEnumerable<EventInfo>)> GetByTransactionAsync(string hash, int skip, int take); | ||
|
||
Task<IEnumerable<EventInfo>> GetFilteredAsync(EventsFilter filter, int skip, int take); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/MAVN.Service.QuorumExplorer.MsSqlRepositories/ABIRepository.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/MAVN.Service.QuorumExplorer.MsSqlRepositories/Contexts/QeContext.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/MAVN.Service.QuorumExplorer.MsSqlRepositories/FunctionCallRepository.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/MAVN.Service.QuorumExplorer.MsSqlRepositories/IndexingStateRepository.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/MAVN.Service.QuorumExplorer.MsSqlRepositories/TransactionRepository.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters