1
+ syntax = "proto3" ;
2
+
3
+ package eigenlayer.sidecar.v1.backfiller ;
4
+
5
+ option go_package = "github.com/Layr-Labs/protocol-apis/gen/protos/eigenlayer/sidecar/v1/backfiller" ;
6
+
7
+ import "google/api/annotations.proto" ;
8
+ import "eigenlayer/sidecar/v1/ethereumTypes/ethereumTypes.proto" ;
9
+
10
+ // BackfillRequest represents a request to backfill transaction data for a range of blocks
11
+ message BackfillRequest {
12
+ // StartBlock is the first block to process (inclusive)
13
+ uint64 start_block = 1 ;
14
+
15
+ // EndBlock is the last block to process (inclusive)
16
+ uint64 end_block = 2 ;
17
+
18
+ // Addresses is a list of contract addresses to filter logs by
19
+ repeated string addresses = 3 ;
20
+
21
+ // EventSignatures is a list of event signatures to filter logs by
22
+ repeated string event_signatures = 4 ;
23
+ }
24
+
25
+ // BackfillResponse represents the result of a backfill operation
26
+ message BackfillResponse {
27
+ // Success indicates whether the backfill operation was successful
28
+ bool success = 1 ;
29
+
30
+ // Errors is a list of errors encountered during backfilling
31
+ repeated string errors = 2 ;
32
+
33
+ // ProcessedBlocks is the number of blocks that were processed
34
+ uint64 processed_blocks = 3 ;
35
+
36
+ // ProcessedLogs is the number of logs that were processed
37
+ uint64 processed_logs = 4 ;
38
+ }
39
+
40
+ // BackfillStatusRequest represents a request to get the status of a backfill operation
41
+ message BackfillStatusRequest {
42
+ // RequestId is the ID of the backfill request to get status for
43
+ string request_id = 1 ;
44
+ }
45
+
46
+ // BackfillStatusResponse represents the status of a backfill operation
47
+ message BackfillStatusResponse {
48
+ // RequestId is the ID of the backfill request
49
+ string request_id = 1 ;
50
+
51
+ // Status is the current status of the backfill operation
52
+ enum Status {
53
+ UNKNOWN = 0 ;
54
+ QUEUED = 1 ;
55
+ PROCESSING = 2 ;
56
+ COMPLETED = 3 ;
57
+ FAILED = 4 ;
58
+ }
59
+ Status status = 2 ;
60
+
61
+ // Progress is the percentage of completion (0-100)
62
+ uint32 progress = 3 ;
63
+
64
+ // StartBlock is the first block being processed
65
+ uint64 start_block = 4 ;
66
+
67
+ // CurrentBlock is the block currently being processed
68
+ uint64 current_block = 5 ;
69
+
70
+ // EndBlock is the last block to be processed
71
+ uint64 end_block = 6 ;
72
+
73
+ // Errors is a list of errors encountered during backfilling
74
+ repeated string errors = 7 ;
75
+ }
0 commit comments