Skip to content

Commit

Permalink
Merge pull request #152 from avalonche/electra-utils
Browse files Browse the repository at this point in the history
Add consolidation request util functions
  • Loading branch information
mcdee authored Aug 3, 2024
2 parents 0a60485 + ce52cfa commit 8443c38
Show file tree
Hide file tree
Showing 2 changed files with 142 additions and 0 deletions.
21 changes: 21 additions & 0 deletions util/electra/consolidation_requests.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright © 2024 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package electra

import "github.com/attestantio/go-eth2-client/spec/electra"

// ConsolidationRequests provides information about consolidation requests.
type ConsolidationRequests struct {
ConsolidationRequests []*electra.ConsolidationRequest `ssz-max:"1"`
}
121 changes: 121 additions & 0 deletions util/electra/consolidation_requests_ssz.go

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

0 comments on commit 8443c38

Please sign in to comment.