Skip to content

Commit

Permalink
feat(sentry): Support contribution_and_proof (#23)
Browse files Browse the repository at this point in the history
* feat(sentry): Support contribution_and_proof

* feat(sentry): Support contribution_and_proof

* feat(sentry): Support contribution_and_proof

* feat(sentry): Support contribution_and_proof
  • Loading branch information
samcm authored Nov 23, 2022
1 parent 8f10c58 commit 96a64a3
Show file tree
Hide file tree
Showing 11 changed files with 687 additions and 256 deletions.
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ go 1.18
require (
github.com/attestantio/go-eth2-client v0.14.3
github.com/beevik/ntp v0.3.0
github.com/cenkalti/backoff/v4 v4.2.0
github.com/creasty/defaults v1.6.0
github.com/go-co-op/gocron v1.18.0
github.com/google/uuid v1.3.0
github.com/mitchellh/hashstructure/v2 v2.0.2
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.14.0
github.com/samcm/beacon v0.7.0
github.com/samcm/beacon v0.8.0
github.com/savid/ttlcache/v3 v3.0.2
github.com/sirupsen/logrus v1.9.0
github.com/spf13/cobra v1.6.1
Expand All @@ -21,15 +23,13 @@ require (

require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/cenkalti/backoff/v4 v4.2.0 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/chuckpreslar/emission v0.0.0-20170206194824-a7ddd980baf9 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/ferranbt/fastssz v0.1.2 // indirect
github.com/goccy/go-yaml v1.9.6 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/inconshreveable/mousetrap v1.0.1 // indirect
github.com/klauspost/cpuid/v2 v2.2.1 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
Expand Down
6 changes: 2 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,8 @@ github.com/rs/zerolog v1.26.1/go.mod h1:/wSSJWX7lVrsOwlbyTRSOJvqRlc+WjWlfes+CiJ+
github.com/rs/zerolog v1.28.0 h1:MirSo27VyNi7RJYP3078AA1+Cyzd2GB66qy3aUHvsWY=
github.com/rs/zerolog v1.28.0/go.mod h1:NILgTygv/Uej1ra5XxGf82ZFSLk58MFGAUS2o6usyD0=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/samcm/beacon v0.6.0 h1:4Lsv465/NSFJIKF4YerU8NURUDIeDUabxPvZXCTZfRk=
github.com/samcm/beacon v0.6.0/go.mod h1:PHKxsJH6MOc4f8xUGOkDfGPIe8jqOjMaIN1hST3faWw=
github.com/samcm/beacon v0.7.0 h1:S5UoLr8CGp74v63DmEcblSmEasa+gmrSJUEVdPiVN14=
github.com/samcm/beacon v0.7.0/go.mod h1:PHKxsJH6MOc4f8xUGOkDfGPIe8jqOjMaIN1hST3faWw=
github.com/samcm/beacon v0.8.0 h1:2/M9nX7rJM+oqZZipwzGviKKRhGZcqjfZyQZV1Z36wM=
github.com/samcm/beacon v0.8.0/go.mod h1:PHKxsJH6MOc4f8xUGOkDfGPIe8jqOjMaIN1hST3faWw=
github.com/savid/ttlcache/v3 v3.0.2 h1:P7LAHoFNfCjKKJyYcSTFYsNmO+xHaRXTTrLrjb2UJJY=
github.com/savid/ttlcache/v3 v3.0.2/go.mod h1:9OBR4zMFiOT3Vk2aghO8vOhmsdfTFT4orFnQ4cl+VyM=
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
Expand Down
4 changes: 4 additions & 0 deletions pkg/proto/eth/v1/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ func EpochAsString(epoch phase0.Epoch) string {
return fmt.Sprintf("%d", epoch)
}

func BLSSignatureToString(s *phase0.BLSSignature) string {
return fmt.Sprintf("%#x", s)
}

func BytesToString(b []byte) string {
return fmt.Sprintf("%#x", b)
}
304 changes: 288 additions & 16 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.

Loading

0 comments on commit 96a64a3

Please sign in to comment.