forked from TrueCloudLab/frostfs-node
[#280] ir: Add balance processor unit tests
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
e89fa7f69f
commit
686f01bce5
2 changed files with 96 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue