-
Notifications
You must be signed in to change notification settings - Fork 174
/
receipts.go
28 lines (19 loc) · 904 Bytes
/
receipts.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// (c) 2019 Dapper Labs - ALL RIGHTS RESERVED
package storage
import (
"github.com/onflow/flow-go/model/flow"
)
type ExecutionReceipts interface {
// Store stores an execution receipt.
Store(result *flow.ExecutionReceipt) error
// ByID retrieves an execution receipt by its ID.
ByID(resultID flow.Identifier) (*flow.ExecutionReceipt, error)
// Index indexes an execution receipt by block ID.
Index(blockID flow.Identifier, resultID flow.Identifier) error
// IndexByExecutor indexes an execution receipt by block ID and execution ID
IndexByExecutor(receipt *flow.ExecutionReceipt) error
// ByBlockID retrieves an execution receipt by block ID.
ByBlockID(blockID flow.Identifier) (*flow.ExecutionReceipt, error)
// ByBlockIDAllExecutionReceipts retrieves all execution receipts for a block ID
ByBlockIDAllExecutionReceipts(blockID flow.Identifier) ([]*flow.ExecutionReceipt, error)
}