Skip to content

Commit

Permalink
Merge pull request #3102 from OnedgeLee/feature/active-release-unbonding
Browse files Browse the repository at this point in the history
Active release unbonding
  • Loading branch information
OnedgeLee authored Jan 16, 2025
2 parents f4f1a92 + 961a642 commit 7e98e07
Show file tree
Hide file tree
Showing 48 changed files with 2,515 additions and 1,392 deletions.
1 change: 0 additions & 1 deletion .Lib9c.Plugin/PluginActionEvaluator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ public PluginActionEvaluator(IPluginKeyValueStore keyValueStore)
new UpdateValidators(),
new RecordProposer(),
new RewardGold(),
new ReleaseValidatorUnbondings(),
}.ToImmutableArray(),
beginTxActions: new IAction[] {
new Mortgage(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ public void StressTest()

private IWorld Stake(IWorld world, Address agentAddress)
{
var action = new Stake(new BigInteger(500_000));
var action = new Stake(new BigInteger(500_000), TesterAvatarAddress);
var state = action.Execute(
new ActionContext
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ out var items

private IWorld Stake(IWorld world, Address agentAddress)
{
var action = new Stake(new BigInteger(500_000));
var action = new Stake(new BigInteger(500_000), TesterAvatarAddress);
var state = action.Execute(
new ActionContext
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public void Execute(

private IWorld Stake(IWorld world, Address agentAddress)
{
var action = new Stake(new BigInteger(500_000));
var action = new Stake(new BigInteger(500_000), TesterAvatarAddress);
var state = action.Execute(
new ActionContext
{
Expand Down
2 changes: 1 addition & 1 deletion .Lib9c.Tests/Action/AdventureBoss/UnlockFloorTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ Type exc

private IWorld Stake(IWorld world, Address agentAddress)
{
var action = new Stake(new BigInteger(500_000));
var action = new Stake(new BigInteger(500_000), TesterAvatarAddress);
var state = action.Execute(
new ActionContext
{
Expand Down
2 changes: 1 addition & 1 deletion .Lib9c.Tests/Action/AdventureBoss/WantedTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ private IWorld Stake(IWorld world, long amount = 0)
world = DelegationUtil.EnsureValidatorPromotionReady(world, validatorKey, 0L);
world = DelegationUtil.MakeGuild(world, AgentAddress, validatorKey.Address, 0L);

var action = new Stake(new BigInteger(amount));
var action = new Stake(new BigInteger(amount), AvatarAddress);
return action.Execute(
new ActionContext
{
Expand Down
291 changes: 226 additions & 65 deletions .Lib9c.Tests/Action/Guild/BanGuildMemberTest.cs

Large diffs are not rendered by default.

Loading

0 comments on commit 7e98e07

Please sign in to comment.