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(sentry): blob_sidecar event #226

Merged
merged 1 commit into from
Oct 5, 2023
Merged
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
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ module github.com/ethpandaops/xatu
go 1.19

require (
github.com/attestantio/go-eth2-client v0.18.3
github.com/attestantio/go-eth2-client v0.18.4-0.20231004102804-73681300fc5f
github.com/avast/retry-go/v4 v4.3.4
github.com/beevik/ntp v1.0.0
github.com/cenkalti/backoff/v4 v4.2.1
github.com/chuckpreslar/emission v0.0.0-20170206194824-a7ddd980baf9
github.com/creasty/defaults v1.7.0
github.com/ethereum/go-ethereum v1.12.0
github.com/ethpandaops/beacon v0.27.0
github.com/ethpandaops/beacon v0.29.0
github.com/ethpandaops/ethcore v0.0.0-20230804013106-6453c36c8c30
github.com/ethpandaops/ethwallclock v0.3.0
github.com/go-co-op/gocron v1.27.1
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ github.com/VictoriaMetrics/fastcache v1.12.1 h1:i0mICQuojGDL3KblA7wUNlY5lOK6a4bw
github.com/VictoriaMetrics/fastcache v1.12.1/go.mod h1:tX04vaqcNoQeGLD+ra5pU5sWkuxnzWhEzLwhP9w653o=
github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156 h1:eMwmnE/GDgah4HI848JfFxHt+iPb26b4zyfspmqY0/8=
github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM=
github.com/attestantio/go-eth2-client v0.18.3 h1:hUSYh+uMLyw4mJcXWcvrPLd8ozJl61aWMdx5Cpq9hxk=
github.com/attestantio/go-eth2-client v0.18.3/go.mod h1:KSVlZSW1A3jUg5H8O89DLtqxgJprRfTtI7k89fLdhu0=
github.com/attestantio/go-eth2-client v0.18.4-0.20231004102804-73681300fc5f h1:mD27pBWiiAFHt02Nml9lfjG1uYw2PwuGl9po2MHBZ1Q=
github.com/attestantio/go-eth2-client v0.18.4-0.20231004102804-73681300fc5f/go.mod h1:KSVlZSW1A3jUg5H8O89DLtqxgJprRfTtI7k89fLdhu0=
github.com/avast/retry-go/v4 v4.3.4 h1:pHLkL7jvCvP317I8Ge+Km2Yhntv3SdkJm7uekkqbKhM=
github.com/avast/retry-go/v4 v4.3.4/go.mod h1:rv+Nla6Vk3/ilU0H51VHddWHiwimzX66yZ0JT6T+UvE=
github.com/beevik/ntp v1.0.0 h1:d0Lgy1xbNNqVyGfvg2Z96ItKcfyn3lzgus/oRoj9vnk=
Expand Down Expand Up @@ -51,8 +51,8 @@ github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/r
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc=
github.com/ethereum/go-ethereum v1.12.0 h1:bdnhLPtqETd4m3mS8BGMNvBTf36bO5bx/hxE2zljOa0=
github.com/ethereum/go-ethereum v1.12.0/go.mod h1:/oo2X/dZLJjf2mJ6YT9wcWxa4nNJDBKDBU6sFIpx1Gs=
github.com/ethpandaops/beacon v0.27.0 h1:ex+fiN19DVcqnNB2qYUV+QJZaXhFCzpgbjrWnvMhkw4=
github.com/ethpandaops/beacon v0.27.0/go.mod h1:p+PMyAYXro2hgNEMNbCtzLOvzHund9Q9BTPATvf8/SA=
github.com/ethpandaops/beacon v0.29.0 h1:sUNcr2BAoqUQgKyg0PuQwH4wCiDj33n13AG6JlsV7bs=
github.com/ethpandaops/beacon v0.29.0/go.mod h1:m4zoHS/lI/g4rdGEPeXRIJdsC0HkhJmMjmNgzABfuV4=
github.com/ethpandaops/ethcore v0.0.0-20230804013106-6453c36c8c30 h1:xziHHIPT9iHoocM91UXwxICQoF121cdfontVAFwtapM=
github.com/ethpandaops/ethcore v0.0.0-20230804013106-6453c36c8c30/go.mod h1:5UfUQ+9IBe1iZsk3KBoF/jtnRv7WVnMjebik4EW6ULE=
github.com/ethpandaops/ethwallclock v0.3.0 h1:xF5fwtBf+bHFHZKBnwiPFEuelW3sMM7SD3ZNFq1lJY4=
Expand Down
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
Loading