Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update Lykke.Contracts package version to 4.0.1 #559

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 16 additions & 19 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="Autofac.Extensions.DependencyInjection" Version="8.0.1" />
<PackageVersion Include="Autofac.Extensions.DependencyInjection" Version="8.0.0" />
<PackageVersion Include="Autofac.Extras.Moq" Version="6.1.0" />
<PackageVersion Include="Autofac" Version="8.0.0" />
<PackageVersion Include="AutoMapper" Version="13.0.1" />
Expand All @@ -15,31 +15,29 @@
<PackageVersion Include="FluentScheduler" Version="5.5.1" />
<PackageVersion Include="FsCheck.NUnit" Version="2.16.5" />
<PackageVersion Include="Lykke.AzureStorage" Version="8.13.4" />
<PackageVersion Include="Lykke.Contracts" Version="3.0.0" />
<PackageVersion Include="Lykke.MarginTrading.AccountsManagement.Contracts" Version="7.16.0" />
<PackageVersion Include="Lykke.MarginTrading.AssetService.Contracts" Version="11.7.6" />
<PackageVersion Include="Lykke.MarginTrading.BookKeeper.Contracts" Version="1.6.1" />
<PackageVersion Include="Lykke.MarginTrading.OrderbookAggregator.Contracts" Version="1.0.1" />
<PackageVersion Include="Lykke.MarginTrading.OrderBookService.Contracts" Version="1.6.1" />
<PackageVersion Include="Lykke.Contracts" Version="4.0.1" />
<PackageVersion Include="Lykke.MarginTrading.AccountsManagement.Contracts" Version="8.0.1" />
<PackageVersion Include="Lykke.MarginTrading.AssetService.Contracts" Version="13.0.2" />
<PackageVersion Include="Lykke.MarginTrading.BookKeeper.Contracts" Version="2.0.0" />
<PackageVersion Include="Lykke.MarginTrading.OrderBookService.Contracts" Version="2.0.0" />
<PackageVersion Include="Lykke.Rocks.Caching" Version="1.0.0" />
<PackageVersion Include="Lykke.Service.ClientAccount.Client" Version="3.2.0" />
<PackageVersion Include="Lykke.Service.EmailSender" Version="1.1.0" />
<PackageVersion Include="Lykke.Service.Session" Version="16.0.0" />
<PackageVersion Include="Lykke.Snow.Common.Startup" Version="4.0.0" />
<PackageVersion Include="Lykke.Snow.Common" Version="4.0.3" />
<PackageVersion Include="Lykke.Snow.Domain" Version="3.0.0" />
<PackageVersion Include="Lykke.Snow.Mdm.Contracts" Version="4.3.6" />
<PackageVersion Include="Lykke.Snow.Common" Version="5.0.1" />
<PackageVersion Include="Lykke.Snow.Domain" Version="4.0.0" />
<PackageVersion Include="Lykke.Snow.Mdm.Contracts" Version="5.0.2" />
<PackageVersion Include="LykkeBiz.HttpClientGenerator" Version="6.0.0" />
<PackageVersion Include="LykkeBiz.Logs.MsSql" Version="4.0.0" />
<PackageVersion Include="LykkeBiz.Logs.Serilog" Version="3.3.3" />
<PackageVersion Include="LykkeBiz.MarginTrading.BrokerBase" Version="8.6.0" />
<PackageVersion Include="LykkeBiz.Messaging.RabbitMq" Version="9.0.0" />
<PackageVersion Include="LykkeBiz.RabbitMqBroker" Version="14.0.0" />
<PackageVersion Include="LykkeBiz.SettingsReader" Version="9.0.0" />
<PackageVersion Include="LykkeBiz.Snow.Cqrs" Version="5.1.0" />
<PackageVersion Include="MessagePack" Version="1.9.11" />
<PackageVersion Include="LykkeBiz.MarginTrading.BrokerBase" Version="8.7.0" />
<PackageVersion Include="LykkeBiz.Messaging.RabbitMq" Version="10.0.1" />
<PackageVersion Include="LykkeBiz.RabbitMqBroker" Version="16.0.0" />
<PackageVersion Include="LykkeBiz.SettingsReader" Version="9.0.1" />
<PackageVersion Include="LykkeBiz.Snow.Cqrs" Version="7.0.1" />
<PackageVersion Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.22.0" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.7" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.10" />
<PackageVersion Include="Microsoft.Extensions.Caching.Abstractions" Version="8.0.0" />
<PackageVersion Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.2" />
<PackageVersion Include="Microsoft.Extensions.Configuration.CommandLine" Version="8.0.0" />
Expand All @@ -62,10 +60,9 @@
<PackageVersion Include="Refit" Version="5.2.4" />
<PackageVersion Include="Serilog.Sinks.Elasticsearch" Version="8.4.1" />
<PackageVersion Include="StackExchange.Redis" Version="2.6.66" />
<PackageVersion Include="Swashbuckle.AspNetCore.Newtonsoft" Version="6.6.2" />
<PackageVersion Include="Swashbuckle.AspNetCore.Newtonsoft" Version="6.7.0" />
<PackageVersion Include="Swashbuckle.AspNetCore.SwaggerGen" Version="6.7.0" />
<PackageVersion Include="Swashbuckle.AspNetCore.SwaggerUI" Version="6.7.0" />
<PackageVersion Include="System.ComponentModel.Annotations" Version="5.0.0" />
<PackageVersion Include="System.ComponentModel.TypeConverter" Version="4.3.0" />
<PackageVersion Include="System.Linq.Async" Version="6.0.1" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Lykke.Contracts" />
<PackageReference Include="MessagePack" />
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" />
<PackageReference Include="Newtonsoft.Json" />
<PackageReference Include="Refit" />
<PackageReference Include="System.ComponentModel.Annotations" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Lykke.MarginTrading.AssetService.Contracts" />
<PackageReference Include="Lykke.MarginTrading.OrderbookAggregator.Contracts" />
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" />
<PackageReference Include="Refit" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;

using JetBrains.Annotations;

using MessagePack;

using Newtonsoft.Json;

namespace MarginTrading.Backend.Services.Events.ExternalContracts;

[MessagePackObject]
public class ExternalExchangeOrderbookMessage
{
[JsonProperty("source"), Key(0), CanBeNull]
public string ExchangeName { get; set; }

[JsonProperty("asset"), Key(1), CanBeNull]
public string AssetPairId { get; set; }

[JsonProperty("timestamp"), Key(2)]
public DateTime Timestamp { get; set; }

[JsonProperty("asks"), Key(3), ItemCanBeNull]
public List<VolumePrice> Asks { get; set; }

[JsonProperty("bids"), Key(4), ItemCanBeNull]
public List<VolumePrice> Bids { get; set; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using MessagePack;

using Newtonsoft.Json;

namespace MarginTrading.Backend.Services.Events.ExternalContracts;

[MessagePackObject]
public class VolumePrice
{
[JsonProperty("volume"), Key(0)]
public decimal Volume { get; set; }

[JsonProperty("price"), Key(1)]
public decimal Price { get; set; }
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) 2019 Lykke Corp.
// See the LICENSE file in the project root for more information.

using MarginTrading.OrderbookAggregator.Contracts.Messages;
using MarginTrading.Backend.Services.Events.ExternalContracts;

namespace MarginTrading.Backend.Services.Events
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) 2019 Lykke Corp.
// See the LICENSE file in the project root for more information.

using MarginTrading.OrderbookAggregator.Contracts.Messages;
using MarginTrading.Backend.Services.Events.ExternalContracts;

namespace MarginTrading.Backend.Services.Events
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
<PackageReference Include="Lykke.MarginTrading.AccountsManagement.Contracts" />
<PackageReference Include="Lykke.MarginTrading.AssetService.Contracts" />
<PackageReference Include="Lykke.MarginTrading.BookKeeper.Contracts" />
<PackageReference Include="Lykke.MarginTrading.OrderbookAggregator.Contracts" />
<PackageReference Include="Lykke.MarginTrading.OrderBookService.Contracts" />
<PackageReference Include="Lykke.Rocks.Caching" />
<PackageReference Include="Lykke.Snow.Domain" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private static IMapper CreateMapper()

cfg.CreateMap<VolumePriceContract, VolumePrice>();
cfg.CreateMap<ExternalOrderBookContract, ExternalOrderBook>();
cfg.CreateMap<MarginTrading.OrderbookAggregator.Contracts.Messages.VolumePrice, VolumePrice>();
cfg.CreateMap<Events.ExternalContracts.VolumePrice, VolumePrice>();
cfg.CreateMap<StpAggregatorExternalExchangeOrderbookMessage, ExternalOrderBook>();

cfg.CreateMap<IAccountMarginFreezing, AccountMarginFreezingEntity>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
using MarginTrading.Backend.Core.Settings;
using MarginTrading.Backend.Services.AssetPairs;
using MarginTrading.Backend.Services.Events;
using MarginTrading.Backend.Services.Events.ExternalContracts;
using MarginTrading.Backend.Services.Stp;
using MarginTrading.Common.Extensions;
using MarginTrading.OrderbookAggregator.Contracts.Messages;

using Microsoft.Extensions.Logging;

Expand Down
10 changes: 5 additions & 5 deletions src/MarginTrading.Backend/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,14 @@ await ApplicationContainer
.Resolve<IConfigurationValidator>()
.WarnIfInvalidAsync();

ApplicationContainer
await ApplicationContainer
.Resolve<IClientProfileSettingsCache>()
.Start();
.StartAsync();

ApplicationContainer
.Resolve<ICqrsEngine>()
.StartAll();

Program.AppHost.WriteLogs(Environment, LogLocator.CommonLog);
LogLocator.CommonLog?.WriteMonitorAsync("", "", $"{Configuration.ServerType()} Started");
}
Expand Down Expand Up @@ -366,11 +366,11 @@ private StartupDeduplicationService RunHealthChecks(IConnectionMultiplexer redis

return deduplicationService;
}

private static void OverrideEmptyRabbitMqConnectionStrings(MtBackendSettings cfg)
{
var defaultRabbitMqConnString = cfg.MtBackend.MtRabbitMqConnString;

// set main RabbitMq connection string if it was not configured on
// particular publisher/subscriber level
cfg.GetPropertiesOfType<RabbitMqConfigurationBase>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
using MarginTrading.Backend.MessageHandlers;
using MarginTrading.Backend.Services.AssetPairs;
using MarginTrading.Backend.Services.Events;
using MarginTrading.Backend.Services.Events.ExternalContracts;
using MarginTrading.Backend.Services.Stp;
using MarginTrading.OrderbookAggregator.Contracts.Messages;

using Microsoft.Extensions.Logging;

Expand Down
Loading