[#280] ir: Add balance processor unit tests

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2023-04-26 11:42:02 +03:00 committed by Evgenii Stratonikov
parent e89fa7f69f
commit 686f01bce5
2 changed files with 96 additions and 2 deletions

View file

@ -25,11 +25,15 @@ type (
ToFixed8(int64) int64
}
FrostFSClient interface {
Cheque(p frostfscontract.ChequePrm) error
}
// Processor of events produced by balance contract in the morphchain.
Processor struct {
log *logger.Logger
pool *ants.Pool
frostfsClient *frostfscontract.Client
frostfsClient FrostFSClient
balanceSC util.Uint160
alphabetState AlphabetState
converter PrecisionConverter
@ -39,7 +43,7 @@ type (
Params struct {
Log *logger.Logger
PoolSize int
FrostFSClient *frostfscontract.Client
FrostFSClient FrostFSClient
BalanceSC util.Uint160
AlphabetState AlphabetState
Converter PrecisionConverter