github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/storage/guarantees.go (about) 1 package storage 2 3 import ( 4 "github.com/onflow/flow-go/model/flow" 5 ) 6 7 // Guarantees represents persistent storage for collection guarantees. 8 type Guarantees interface { 9 10 // Store inserts the collection guarantee. 11 Store(guarantee *flow.CollectionGuarantee) error 12 13 // ByCollectionID retrieves the collection guarantee by collection ID. 14 ByCollectionID(collID flow.Identifier) (*flow.CollectionGuarantee, error) 15 }