Skip to content

Commit

Permalink
feat(sentry): blob_sidecar event
Browse files Browse the repository at this point in the history
  • Loading branch information
Savid committed Oct 4, 2023
1 parent 44b2000 commit 5990749
Show file tree
Hide file tree
Showing 10 changed files with 1,555 additions and 1,062 deletions.
9 changes: 9 additions & 0 deletions pkg/proto/eth/v1/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"

"github.com/attestantio/go-eth2-client/spec/capella"
"github.com/attestantio/go-eth2-client/spec/deneb"
"github.com/attestantio/go-eth2-client/spec/phase0"
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
)
Expand All @@ -25,6 +26,14 @@ func BLSSignatureToString(s *phase0.BLSSignature) string {
return fmt.Sprintf("%#x", s)
}

func KzgCommitmentToString(c deneb.KzgCommitment) string {
return fmt.Sprintf("%#x", c)
}

func VersionedHashToString(h deneb.VersionedHash) string {
return fmt.Sprintf("%#x", h)
}

func BytesToString(b []byte) string {
return fmt.Sprintf("%#x", b)
}
Expand Down
160 changes: 134 additions & 26 deletions pkg/proto/eth/v1/events.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions pkg/proto/eth/v1/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,15 @@ message EventContributionAndProofV2 {

ContributionAndProofV2 message = 2;
}

message EventBlobSidecar {
string block_root = 1 [ json_name = "block_root" ];

google.protobuf.UInt64Value slot = 2;

google.protobuf.UInt64Value index = 3;

string kzg_commitment = 4 [ json_name = "kzg_commitment" ];

string versioned_hash = 5 [ json_name = "versioned_hash" ];
}
Loading

0 comments on commit 5990749

Please sign in to comment.