forked from TrueCloudLab/frostfs-node
4204a9f920
Define a processor of events related to monetary transactions. Define audit-related event. Provide an interface for processing the audit payout event. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
27 lines
555 B
Go
27 lines
555 B
Go
package settlement
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neofs-node/pkg/morph/event"
|
|
)
|
|
|
|
// AuditEvent is an event of the start of
|
|
// cash settlements for data audit.
|
|
type AuditEvent struct {
|
|
epoch uint64
|
|
}
|
|
|
|
// MorphEvent implements Neo:Morph event.
|
|
func (e AuditEvent) MorphEvent() {}
|
|
|
|
// NewAuditEvent creates new AuditEvent for epoch.
|
|
func NewAuditEvent(epoch uint64) event.Event {
|
|
return AuditEvent{
|
|
epoch: epoch,
|
|
}
|
|
}
|
|
|
|
// Epoch returns the number of the epoch
|
|
// in which the event was generated.
|
|
func (e AuditEvent) Epoch() uint64 {
|
|
return e.epoch
|
|
}
|