Skip to content
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
6 changes: 6 additions & 0 deletions backend/cmd/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"encoding/gob"
"fmt"
"os"

Expand All @@ -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)
Expand Down
8 changes: 8 additions & 0 deletions backend/pkg/commons/types/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Loading