Skip to content

Commit

Permalink
Merge pull request #2078 from planetarium/release/0.5.0
Browse files Browse the repository at this point in the history
Release/0.5.0
  • Loading branch information
area363 authored Aug 18, 2023
2 parents 700c770 + 6284e93 commit 54809f0
Show file tree
Hide file tree
Showing 57 changed files with 4,029 additions and 186 deletions.
3 changes: 2 additions & 1 deletion .Lib9c.StateService/Lib9c.StateService.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<OutputType>Exe</OutputType>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\.Libplanet.Extensions.RemoteBlockChainStates\Libplanet.Extensions.RemoteBlockChainStates.csproj" />
<ProjectReference Include="..\.Libplanet.Extensions.ActionEvaluatorCommonComponents\Libplanet.Extensions.ActionEvaluatorCommonComponents.csproj" />
Expand Down
2 changes: 2 additions & 0 deletions .Lib9c.Tests/Action/ClaimStakeReward1Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ public ClaimStakeReward1Test(ITestOutputHelper outputHelper)
_initialState = new MockStateDelta();

var sheets = TableSheetsImporter.ImportSheets();
sheets[nameof(StakeRegularRewardSheet)] =
ClaimStakeReward.V2.StakeRegularRewardSheetCsv;
foreach (var (key, value) in sheets)
{
_initialState = _initialState
Expand Down
2 changes: 2 additions & 0 deletions .Lib9c.Tests/Action/ClaimStakeReward2Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ public ClaimStakeReward2Test(ITestOutputHelper outputHelper)
_initialState = new MockStateDelta();

var sheets = TableSheetsImporter.ImportSheets();
sheets[nameof(StakeRegularRewardSheet)] =
ClaimStakeReward.V2.StakeRegularRewardSheetCsv;
foreach (var (key, value) in sheets)
{
_initialState = _initialState
Expand Down
15 changes: 12 additions & 3 deletions .Lib9c.Tests/Action/ClaimStakeReward3Test.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#nullable enable

namespace Lib9c.Tests.Action
{
#nullable enable

using System.Collections.Generic;
using System.Linq;
using Lib9c.Tests.Util;
using Libplanet.Action.State;
Expand All @@ -10,6 +11,7 @@ namespace Lib9c.Tests.Action
using Nekoyume.Action;
using Nekoyume.Helper;
using Nekoyume.Model.State;
using Nekoyume.TableData;
using Serilog;
using Xunit;
using Xunit.Abstractions;
Expand All @@ -35,7 +37,14 @@ public ClaimStakeReward3Test(ITestOutputHelper outputHelper)
_avatarAddr,
_initialStatesWithAvatarStateV1,
_initialStatesWithAvatarStateV2) = InitializeUtil.InitializeStates(
agentAddr: _agentAddr);
agentAddr: _agentAddr,
sheetsOverride: new Dictionary<string, string>
{
{
nameof(StakeRegularRewardSheet),
ClaimStakeReward.V2.StakeRegularRewardSheetCsv
},
});
_ncg = _initialStatesWithAvatarStateV1.GetGoldCurrency();
}

Expand Down
15 changes: 12 additions & 3 deletions .Lib9c.Tests/Action/ClaimStakeReward4Test.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#nullable enable

namespace Lib9c.Tests.Action
{
#nullable enable

using System.Collections.Generic;
using System.Linq;
using Lib9c.Tests.Util;
using Libplanet.Action.State;
Expand All @@ -10,6 +11,7 @@ namespace Lib9c.Tests.Action
using Nekoyume.Action;
using Nekoyume.Helper;
using Nekoyume.Model.State;
using Nekoyume.TableData;
using Serilog;
using Xunit;
using Xunit.Abstractions;
Expand All @@ -35,7 +37,14 @@ public ClaimStakeReward4Test(ITestOutputHelper outputHelper)
_avatarAddr,
_initialStatesWithAvatarStateV1,
_initialStatesWithAvatarStateV2) = InitializeUtil.InitializeStates(
agentAddr: _agentAddr);
agentAddr: _agentAddr,
sheetsOverride: new Dictionary<string, string>
{
{
nameof(StakeRegularRewardSheet),
ClaimStakeReward.V2.StakeRegularRewardSheetCsv
},
});
_ncg = _initialStatesWithAvatarStateV1.GetGoldCurrency();
}

Expand Down
Loading

0 comments on commit 54809f0

Please sign in to comment.