-
Notifications
You must be signed in to change notification settings - Fork 21
/
generate.go
21 lines (15 loc) · 1.57 KB
/
generate.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package types
//go:generate rm -f ./operator_encoding.go
//go:generate go run github.com/ferranbt/fastssz/sszgen --path operator.go --exclude-objs OperatorID
//go:generate rm -f ./share_encoding.go
//go:generate go run github.com/ferranbt/fastssz/sszgen --path share.go --include ./operator.go,./messages.go,./signer.go,./domain_type.go
// rm -f ./messages_encoding.go
// go run github.com/ferranbt/fastssz/sszgen --path messages.go --include ./operator.go --exclude-objs ValidatorPK,MessageID,MsgType,SignedSSVMessage
//go:generate rm -f ./beacon_types_encoding.go
//go:generate go run github.com/ferranbt/fastssz/sszgen --path beacon_types.go --include $GOPATH/pkg/mod/github.com/attestantio/go-eth2-client@v0.19.7/spec/phase0 --exclude-objs BeaconNetwork,BeaconRole
//go:generate rm -f ./partial_sig_message_encoding.go
//go:generate go run github.com/ferranbt/fastssz/sszgen --path partial_sig_message.go --include $GOPATH/pkg/mod/github.com/attestantio/go-eth2-client@v0.19.7/spec/phase0,./signer.go,./operator.go --exclude-objs PartialSigMsgType
// rm -f ./consensus_data_encoding.go
// go run github.com/ferranbt/fastssz/sszgen --path consensus_data.go --include ./operator.go,./signer.go,./partial_sig_message.go,./beacon_types.go,$GOPATH/pkg/mod/github.com/attestantio/go-eth2-client@v0.19.7/spec/phase0,$GOPATH/pkg/mod/github.com/attestantio/go-eth2-client@v0.19.7/spec,$GOPATH/pkg/mod/github.com/attestantio/go-eth2-client@v0.19.7/spec/altair --exclude-objs Contributions,BeaconNetwork,BeaconRole
// go install golang.org/x/tools/cmd/goimports@latest
// goimports -w consensus_data_encoding.go