github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/storage/approvals.go (about) 1 package storage 2 3 import ( 4 "github.com/onflow/flow-go/model/flow" 5 ) 6 7 type ResultApprovals interface { 8 9 // Store stores a ResultApproval 10 Store(result *flow.ResultApproval) error 11 12 // Index indexes a ResultApproval by result ID and chunk index 13 Index(resultID flow.Identifier, chunkIndex uint64, approvalID flow.Identifier) error 14 15 // ByID retrieves a ResultApproval by its ID 16 ByID(approvalID flow.Identifier) (*flow.ResultApproval, error) 17 18 // ByChunk retrieves a ResultApproval by result ID and chunk index 19 ByChunk(resultID flow.Identifier, chunkIndex uint64) (*flow.ResultApproval, error) 20 }