Skip to content

Commit 06ccead

Browse files
authored
Merge pull request #2288 from planetarium/release/1.6.0
Release/1.6.0
2 parents 8df9184 + 4ffef62 commit 06ccead

File tree

375 files changed

+7410
-2597
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

375 files changed

+7410
-2597
lines changed

.Lib9c.DevExtensions.Tests/Action/CreateOrReplaceAvatarTest.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ public void Execute_Success(
369369
equipments.Add((row.ResultEquipmentId, data.level));
370370
}
371371
}
372-
var agentAddr = new PrivateKey().ToAddress();
372+
var agentAddr = new PrivateKey().Address;
373373
Execute(
374374
_initialStates,
375375
blockIndex,
@@ -405,7 +405,7 @@ public void Execute_Failure(
405405
(int runeId, int level)[]? runes,
406406
(int stageId, int[] crystalRandomBuffIds)? crystalRandomBuff)
407407
{
408-
var agentAddr = new PrivateKey().ToAddress();
408+
var agentAddr = new PrivateKey().Address;
409409
Assert.Throws<ArgumentException>(() => Execute(
410410
_initialStates,
411411
blockIndex,
@@ -460,7 +460,6 @@ private static void Execute(
460460
PreviousState = previousStates,
461461
Signer = agentAddr,
462462
RandomSeed = 0,
463-
Rehearsal = false,
464463
BlockIndex = blockIndex,
465464
});
466465
var agent = new AgentState((Dictionary)nextStates.GetState(agentAddr)!);

.Lib9c.DevExtensions.Tests/Action/FaucetCurrencyTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public FaucetCurrencyTest(ITestOutputHelper outputHelper)
3636
.AddBalance(GoldCurrencyState.Address, _ncg * int.MaxValue));
3737

3838
var goldCurrencyState = new GoldCurrencyState(_ncg);
39-
_agentAddress = new PrivateKey().ToAddress();
39+
_agentAddress = new PrivateKey().Address;
4040
var agentState = new AgentState(_agentAddress);
4141

4242
_initialState = _initialState

.Lib9c.DevExtensions.Tests/Action/FaucetRuneTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,16 @@ public FaucetRuneTest(ITestOutputHelper outputHelper)
4343
var tableSheets = new TableSheets(sheets);
4444
_runeSheet = _initialState.GetSheet<RuneSheet>();
4545

46-
Address agentAddress = new PrivateKey().ToAddress();
47-
_avatarAddress = new PrivateKey().ToAddress();
46+
Address agentAddress = new PrivateKey().Address;
47+
_avatarAddress = new PrivateKey().Address;
4848
var agentState = new AgentState(agentAddress);
4949
var avatarState = new AvatarState(
5050
_avatarAddress,
5151
agentAddress,
5252
0,
5353
tableSheets.GetAvatarSheets(),
5454
new GameConfigState(sheets[nameof(GameConfigSheet)]),
55-
new PrivateKey().ToAddress()
55+
new PrivateKey().Address
5656
);
5757
agentState.avatarAddresses.Add(0, _avatarAddress);
5858

.Lib9c.DevExtensions.Tests/Action/ManipulateStateTest.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace Lib9c.DevExtensions.Tests.Action
2525
{
2626
public class ManipulateStateTest
2727
{
28-
private static readonly Address AdminAddr = new PrivateKey().ToAddress();
28+
private static readonly Address AdminAddr = new PrivateKey().Address;
2929

3030
// See also InitializeUtil.cs
3131
private static readonly Currency Ncg = Currency.Legacy(
@@ -305,37 +305,37 @@ public static IEnumerable<object[]> FetchBalance()
305305
{
306306
yield return new object[]
307307
{
308-
new PrivateKey().ToAddress(),
308+
new PrivateKey().Address,
309309
new FungibleAssetValue(Ncg, 0, 1),
310310
};
311311
yield return new object[]
312312
{
313-
new PrivateKey().ToAddress(),
313+
new PrivateKey().Address,
314314
new FungibleAssetValue(Ncg, 1, 0),
315315
};
316316
yield return new object[]
317317
{
318-
new PrivateKey().ToAddress(),
318+
new PrivateKey().Address,
319319
new FungibleAssetValue(Ncg, 1_000_000_000 - 1, 99),
320320
};
321321
yield return new object[]
322322
{
323-
new PrivateKey().ToAddress(),
323+
new PrivateKey().Address,
324324
new FungibleAssetValue(Ncg, 1_000_000_000, 0),
325325
};
326326
yield return new object[]
327327
{
328-
new PrivateKey().ToAddress(),
328+
new PrivateKey().Address,
329329
new FungibleAssetValue(Crystal, 0, 1),
330330
};
331331
yield return new object[]
332332
{
333-
new PrivateKey().ToAddress(),
333+
new PrivateKey().Address,
334334
new FungibleAssetValue(Crystal, 1, 0),
335335
};
336336
yield return new object[]
337337
{
338-
new PrivateKey().ToAddress(),
338+
new PrivateKey().Address,
339339
new FungibleAssetValue(
340340
Crystal,
341341
long.MaxValue,

.Lib9c.Miner.Tests/CustomActionsDeserializableValidatorTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ private class DailyReward : IAction
4444

4545
public void LoadPlainValue(IValue plainValue)
4646
{
47-
AvatarAddress = new Address(((Binary)((Dictionary)plainValue)["a"]).ByteArray);
47+
AvatarAddress = new Address(((Dictionary)plainValue)["a"]);
4848
}
4949

5050
public IAccount Execute(IActionContext context)

.Lib9c.StateService.Shared/Lib9c.StateService.Shared.csproj

Lines changed: 0 additions & 9 deletions
This file was deleted.

.Lib9c.StateService.Shared/RemoteEvaluationRequest.cs

Lines changed: 0 additions & 8 deletions
This file was deleted.

.Lib9c.StateService.Shared/RemoteEvaluationResponse.cs

Lines changed: 0 additions & 6 deletions
This file was deleted.

.Lib9c.StateService/Controllers/RemoteEvaluationController.cs

Lines changed: 0 additions & 62 deletions
This file was deleted.

.Lib9c.StateService/Lib9c.StateService.csproj

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)