github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/storage/epoch_setups.go (about)

     1  package storage
     2  
     3  import (
     4  	"github.com/onflow/flow-go/model/flow"
     5  	"github.com/onflow/flow-go/storage/badger/transaction"
     6  )
     7  
     8  type EpochSetups interface {
     9  
    10  	// StoreTx allows us to store a new epoch setup in a DB transaction while going through the cache.
    11  	StoreTx(*flow.EpochSetup) func(*transaction.Tx) error
    12  
    13  	// ByID will return the EpochSetup event by its ID.
    14  	// Error returns:
    15  	// * storage.ErrNotFound if no EpochSetup with the ID exists
    16  	ByID(flow.Identifier) (*flow.EpochSetup, error)
    17  }