-
Notifications
You must be signed in to change notification settings - Fork 144
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 #3748 from limebell/feature/tx-action
Introduce Transaction-Actions
- Loading branch information
Showing
32 changed files
with
730 additions
and
174 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
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
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
using Libplanet.Types.Blocks; | ||
using Libplanet.Types.Tx; | ||
|
||
namespace Libplanet.Action | ||
{ | ||
public class PolicyActionsRegistry | ||
{ | ||
/// <summary> | ||
/// A class containing delegators | ||
/// to get policy actions to evaluate at each situation. | ||
/// </summary> | ||
/// <param name="beginBlockActionsGetter">A delegator to get policy block actions to | ||
/// evaluate at the beginning for each <see cref="IPreEvaluationBlock"/> that gets | ||
/// evaluated. | ||
/// Note the order of the returned list determines the execution order. | ||
/// </param> | ||
/// <param name="endBlockActionsGetter">A delegator to get policy block actions to | ||
/// evaluate at the end for each <see cref="IPreEvaluationBlock"/> that gets evaluated. | ||
/// Note the order of the returned list determines the execution order. | ||
/// </param> | ||
/// <param name="beginTxActionsGetter">A delegator to get policy block actions to | ||
/// evaluate at the beginning for each <see cref="Transaction"/> that gets evaluated. | ||
/// Note the order of the returned list determines the execution order. | ||
/// </param> | ||
/// <param name="endTxActionsGetter">A delegator to get policy block actions to | ||
/// evaluate at the end for each <see cref="Transaction"/> that gets evaluated. | ||
/// Note the order of the returned list determines the execution order. | ||
/// </param> | ||
public PolicyActionsRegistry( | ||
PolicyActionsGetter beginBlockActionsGetter, | ||
PolicyActionsGetter endBlockActionsGetter, | ||
PolicyActionsGetter beginTxActionsGetter, | ||
PolicyActionsGetter endTxActionsGetter) | ||
{ | ||
BeginBlockActionsGetter = beginBlockActionsGetter; | ||
EndBlockActionsGetter = endBlockActionsGetter; | ||
BeginTxActionsGetter = beginTxActionsGetter; | ||
EndTxActionsGetter = endTxActionsGetter; | ||
} | ||
|
||
public PolicyActionsGetter BeginBlockActionsGetter { get; } | ||
|
||
public PolicyActionsGetter EndBlockActionsGetter { get; } | ||
|
||
public PolicyActionsGetter BeginTxActionsGetter { get; } | ||
|
||
public PolicyActionsGetter EndTxActionsGetter { get; } | ||
} | ||
} |
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
Oops, something went wrong.