Skip to content

Commit

Permalink
Use standard SSZ generated file name.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed Aug 4, 2023
1 parent 00a8c54 commit 4ad8319
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 28 deletions.
3 changes: 2 additions & 1 deletion spec/capella/beaconblock_ssz.go

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

3 changes: 2 additions & 1 deletion spec/capella/beaconblockbody_ssz.go

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

2 changes: 1 addition & 1 deletion spec/capella/beaconstate.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type BeaconState struct {
LatestExecutionPayloadHeader *ExecutionPayloadHeader
NextWithdrawalIndex WithdrawalIndex
NextWithdrawalValidatorIndex phase0.ValidatorIndex
HistoricalSummaries []*HistoricalSummary `ssz-max:"16777216" ssz-size:"?,32"`
HistoricalSummaries []*HistoricalSummary `ssz-max:"16777216"`
}

// String returns a string version of the structure.
Expand Down
12 changes: 2 additions & 10 deletions spec/capella/beaconstate_ssz.go

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

3 changes: 2 additions & 1 deletion spec/capella/blstoexecutionchange_ssz.go

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

7 changes: 4 additions & 3 deletions spec/capella/executionpayload_ssz.go

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

5 changes: 3 additions & 2 deletions spec/capella/executionpayloadheader_ssz.go

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

8 changes: 4 additions & 4 deletions spec/capella/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,6 +14,6 @@
package capella

// Need to `go install github.com/ferranbt/fastssz/sszgen@latest` for this to work.
//go:generate rm -f blstoexecutionchange_encoding.go signedblstoexecutionchange_encoding.go withdrawal.go
//go:generate sszgen --path . --objs BLSToExecutionChange SignedBLSToExecutionChange Withdrawal
//go:generate goimports -w blstoexecutionchange_encoding.go signedblstoexecutionchange_encoding.go withdrawal_encoding.go
//go:generate rm -f beaconblockbody_ssz.go beaconblock_ssz.go beaconstate_ssz.go blstoexecutionchange_ssz.go executionpayloadheader_ssz.go executionpayload_ssz.go historicalsummary_ssz.go signedbeaconblock_ssz.go signedblstoexecutionchange_ssz.go withdrawal_ssz.go
//go:generate sszgen -suffix ssz -include ../phase0,../altair,../bellatrix -path . -objs BeaconBlockBody,BeaconBlock,BeaconState,BLSToExecutionChange,ExecutionPayload,ExecutionPayloadHeader,HistoricalSummary,SignedBeaconBlock,SignedBLSToExecutionChange,Withdrawal
//go:generate goimports -w beaconblockbody_ssz.go beaconblock_ssz.go beaconstate_ssz.go blstoexecutionchange_ssz.go executionpayloadheader_ssz.go executionpayload_ssz.go historicalsummary_ssz.go signedbeaconblock_ssz.go signedblstoexecutionchange_ssz.go withdrawal_ssz.go
4 changes: 2 additions & 2 deletions spec/capella/historicalsummary_ssz.go

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

3 changes: 2 additions & 1 deletion spec/capella/signedbeaconblock_ssz.go

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

3 changes: 2 additions & 1 deletion spec/capella/signedblstoexecutionchange_ssz.go

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

3 changes: 2 additions & 1 deletion spec/capella/withdrawal_ssz.go

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

0 comments on commit 4ad8319

Please sign in to comment.