github.com/unicornultrafoundation/go-u2u@v1.0.0-rc1.0.20240205080301-e74a83d3fadc/eventcheck/heavycheck/adapters.go (about)

     1  package heavycheck
     2  
     3  import (
     4  	"github.com/unicornultrafoundation/go-helios/native/dag"
     5  
     6  	"github.com/unicornultrafoundation/go-u2u/native"
     7  )
     8  
     9  type EventsOnly struct {
    10  	*Checker
    11  }
    12  
    13  func (c *EventsOnly) Enqueue(e dag.Event, onValidated func(error)) error {
    14  	return c.Checker.EnqueueEvent(e.(native.EventPayloadI), onValidated)
    15  }
    16  
    17  type BVsOnly struct {
    18  	*Checker
    19  }
    20  
    21  func (c *BVsOnly) Enqueue(bvs native.LlrSignedBlockVotes, onValidated func(error)) error {
    22  	return c.Checker.EnqueueBVs(bvs, onValidated)
    23  }
    24  
    25  type EVOnly struct {
    26  	*Checker
    27  }
    28  
    29  func (c *EVOnly) Enqueue(ers native.LlrSignedEpochVote, onValidated func(error)) error {
    30  	return c.Checker.EnqueueEV(ers, onValidated)
    31  }