Skip to content

Commit

Permalink
Update SSZ for API structs.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed Aug 4, 2023
1 parent 2e29e57 commit cc935ad
Show file tree
Hide file tree
Showing 8 changed files with 430 additions and 126 deletions.
7 changes: 4 additions & 3 deletions api/generate.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2022 Attestant Limited.
// Copyright © 2022, 2023 Attestant Limited.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
Expand All @@ -14,5 +14,6 @@
package api

// Need to `go install github.com/ferranbt/fastssz/sszgen@latest` for this to work.
//go:generate rm -f versionedblindedbeaconblock_encoding.go blindedbeaconblock_encoding.go signedblindedbeaconblock_encoding.go validatorregistration_encoding.go
//go:generate /home/jgm/sszgen -include ../spec -path . -exclude-objs DataVersion -objs VersionedBlindedBeaconBlock
//go:generate rm -f versionedblindedbeaconblock_ssz.go versionedsignedblindedbeaconblock_ssz.go versionedsignedvalidatorregistration_ssz.go
//go:generate sszgen -suffix=ssz -path . -include ../spec,../spec/phase0,../spec/altair,../spec/bellatrix,../spec/capella,../spec/deneb,v1,v1/bellatrix,v1/capella,v1/deneb -exclude-objs DataVersion -objs VersionedBlindedBeaconBlock,VersionedSignedBlindedBeaconBlock,VersionedSignedValidatorRegistration
//go:generate goimports -w versionedblindedbeaconblock_ssz.go versionedsignedblindedbeaconblock_ssz.go versionedsignedvalidatorregistration_ssz.go
6 changes: 3 additions & 3 deletions api/v1/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
package v1

// Need to `go install github.com/ferranbt/fastssz/sszgen@latest` for this to work.
//go:generate rm -f blindedbeaconblock_encoding.go signedblindedbeaconblock_encoding.go validatorregistration_encoding.go
//go:generate sszgen -include ../../spec/phase0,../../spec/altair,../../spec/bellatrix -path . -objs BlindedBeaconBlock,SignedBlindedBeaconBlock,ValidatorRegistration
//go:generate goimports -w blindedbeaconblock_encoding.go signedblindedbeaconblock_encoding.go validatorregistration_encoding.go
//go:generate rm -f signedvalidatorregistration_ssz.go validatorregistration_ssz.go
//go:generate sszgen -suffix ssz -include ../../spec/phase0,../../spec/altair,../../spec/bellatrix -path . -objs SignedValidatorRegistration,ValidatorRegistration
//go:generate goimports -w signedvalidatorregistration_ssz.go validatorregistration_ssz.go
88 changes: 88 additions & 0 deletions api/v1/signedvalidatorregistration_ssz.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

107 changes: 0 additions & 107 deletions api/v1/validator_encoding.go

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 48 additions & 8 deletions api/versionedblindedbeaconblock_ssz.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cc935ad

Please sign in to comment.