Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add backfiller #36

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module github.com/Layr-Labs/protocol-apis
go 1.23.6

require (
github.com/Layr-Labs/protobuf-libs v0.0.0-20250305032038-8d1047b56aab
github.com/akuity/grpc-gateway-client v0.0.0-20240912082144-55a48e8b4b89
github.com/grpc-ecosystem/grpc-gateway/v2 v2.15.2
google.golang.org/genproto/googleapis/api v0.0.0-20230525234035-dd9d682886f9
Expand All @@ -11,7 +12,6 @@ require (
)

require (
github.com/Layr-Labs/protobuf-libs v0.0.0-20250305032038-8d1047b56aab // indirect
github.com/alevinval/sse v1.0.1 // indirect
github.com/go-resty/resty/v2 v2.7.0 // indirect
github.com/golang/protobuf v1.5.3 // indirect
Expand Down
18 changes: 18 additions & 0 deletions protos/eigenlayer/sidecar/v1/backfiller/backfiller.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
syntax = "proto3";

package eigenlayer.sidecar.v1.backfiller;

option go_package = "github.com/Layr-Labs/protocol-apis/gen/protos/eigenlayer/sidecar/v1/backfiller";

import "google/api/annotations.proto";
import "eigenlayer/sidecar/v1/ethereumTypes/ethereumTypes.proto";

message BackfillRequest {
uint64 start_block = 1;
uint64 end_block = 2;
repeated string addresses = 3;
}

message BackfillResponse {
bool success = 1;
}
18 changes: 18 additions & 0 deletions protos/eigenlayer/sidecar/v1/backfiller/rpc.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
syntax = "proto3";

package eigenlayer.sidecar.v1.backfiller;

option go_package = "github.com/Layr-Labs/protocol-apis/gen/protos/eigenlayer/sidecar/v1/backfiller";

import "google/api/annotations.proto";
import "eigenlayer/sidecar/v1/backfiller/backfiller.proto";

service Backfiller {
// BackfillBlocks initiates a backfill operation for a range of blocks
rpc BackfillBlocks(BackfillRequest) returns (BackfillResponse) {
option (google.api.http) = {
post: "/backfiller/v1/backfill-blocks"
body: "*"
};
}
}