diff --git a/backend/cmd/main.go b/backend/cmd/main.go index df242be167..746f231388 100644 --- a/backend/cmd/main.go +++ b/backend/cmd/main.go @@ -1,6 +1,7 @@ package main import ( + "encoding/gob" "fmt" "os" @@ -22,8 +23,13 @@ import ( "github.com/gobitfly/beaconchain/cmd/typescript_converter" "github.com/gobitfly/beaconchain/cmd/user_service" "github.com/gobitfly/beaconchain/pkg/commons/log" + "github.com/gobitfly/beaconchain/pkg/commons/types" ) +func init() { + gob.RegisterName("github.com/gobitfly/eth2-beaconchain-explorer/types.UserV1Notification", types.UserV1Notification(0)) +} + func main() { if len(os.Args) < 2 { log.Fatal(nil, "missing target", 0) diff --git a/backend/pkg/commons/types/templates.go b/backend/pkg/commons/types/templates.go index e6ba2dfb54..abe154a204 100644 --- a/backend/pkg/commons/types/templates.go +++ b/backend/pkg/commons/types/templates.go @@ -2099,3 +2099,11 @@ type ValidatorDutyInfo struct { ProposerSlashingsCount int8 `db:"proposerslashingscount"` AttesterSlashingsCount int8 `db:"attesterslashingscount"` } + +type UserV1Notification int + +const ( + UserV1Notification_Unknown UserV1Notification = 0 + UserV1Notification_True UserV1Notification = 1 + UserV1Notification_False UserV1Notification = 2 +)