Documentation
¶
Overview ¶
Code generated by fastssz. DO NOT EDIT. Hash: 1eed35bb8d76ae3a78592df3216cb4344ddd9ebaeb8d0595dbfcbda96704360d Version: 0.1.3-dev
Code generated by fastssz. DO NOT EDIT. Hash: de7c757a00365678425f4fc5644ccdb196f2c7a0772f96f7ca9bd4851c42708a
Code generated by fastssz. DO NOT EDIT. Hash: 54daa11e3f97a5a021a2c3e0670047b254116f7cbdd8ea030044ad3f201278bf
Index ¶
- type BidTrace
- func (b *BidTrace) GetTree() (*ssz.Node, error)
- func (b *BidTrace) HashTreeRoot() ([32]byte, error)
- func (b *BidTrace) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (b *BidTrace) MarshalJSON() ([]byte, error)
- func (b *BidTrace) MarshalSSZ() ([]byte, error)
- func (b *BidTrace) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (b *BidTrace) MarshalYAML() ([]byte, error)
- func (b *BidTrace) SizeSSZ() (size int)
- func (b *BidTrace) String() string
- func (b *BidTrace) UnmarshalJSON(input []byte) error
- func (b *BidTrace) UnmarshalSSZ(buf []byte) error
- func (b *BidTrace) UnmarshalYAML(input []byte) error
- type SignedValidatorRegistration
- func (s *SignedValidatorRegistration) GetTree() (*ssz.Node, error)
- func (s *SignedValidatorRegistration) HashTreeRoot() ([32]byte, error)
- func (s *SignedValidatorRegistration) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (s *SignedValidatorRegistration) MarshalJSON() ([]byte, error)
- func (s *SignedValidatorRegistration) MarshalSSZ() ([]byte, error)
- func (s *SignedValidatorRegistration) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SignedValidatorRegistration) MarshalYAML() ([]byte, error)
- func (s *SignedValidatorRegistration) SizeSSZ() (size int)
- func (s *SignedValidatorRegistration) String() string
- func (s *SignedValidatorRegistration) UnmarshalJSON(input []byte) error
- func (s *SignedValidatorRegistration) UnmarshalSSZ(buf []byte) error
- func (s *SignedValidatorRegistration) UnmarshalYAML(input []byte) error
- type SignedValidatorRegistrations
- func (s *SignedValidatorRegistrations) GetTree() (*ssz.Node, error)
- func (s *SignedValidatorRegistrations) HashTreeRoot() ([32]byte, error)
- func (s *SignedValidatorRegistrations) HashTreeRootWith(hh ssz.HashWalker) error
- func (s *SignedValidatorRegistrations) MarshalJSON() ([]byte, error)
- func (s *SignedValidatorRegistrations) MarshalSSZ() ([]byte, error)
- func (s *SignedValidatorRegistrations) MarshalSSZTo(buf []byte) ([]byte, error)
- func (s *SignedValidatorRegistrations) MarshalYAML() ([]byte, error)
- func (s *SignedValidatorRegistrations) SizeSSZ() int
- func (s *SignedValidatorRegistrations) String() string
- func (s *SignedValidatorRegistrations) UnmarshalJSON(input []byte) error
- func (s *SignedValidatorRegistrations) UnmarshalSSZ(buf []byte) error
- func (s *SignedValidatorRegistrations) UnmarshalYAML(input []byte) error
- type ValidatorRegistration
- func (v *ValidatorRegistration) GetTree() (*ssz.Node, error)
- func (v *ValidatorRegistration) HashTreeRoot() ([32]byte, error)
- func (v *ValidatorRegistration) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (v *ValidatorRegistration) MarshalJSON() ([]byte, error)
- func (v *ValidatorRegistration) MarshalSSZ() ([]byte, error)
- func (v *ValidatorRegistration) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (v *ValidatorRegistration) MarshalYAML() ([]byte, error)
- func (v *ValidatorRegistration) SizeSSZ() (size int)
- func (v *ValidatorRegistration) String() string
- func (v *ValidatorRegistration) UnmarshalJSON(input []byte) error
- func (v *ValidatorRegistration) UnmarshalSSZ(buf []byte) error
- func (v *ValidatorRegistration) UnmarshalYAML(input []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BidTrace ¶ added in v0.2.7
type BidTrace struct {
Slot uint64
ParentHash phase0.Hash32 `ssz-size:"32"`
BlockHash phase0.Hash32 `ssz-size:"32"`
BuilderPubkey phase0.BLSPubKey `ssz-size:"48"`
ProposerPubkey phase0.BLSPubKey `ssz-size:"48"`
ProposerFeeRecipient bellatrix.ExecutionAddress `ssz-size:"20"`
GasLimit uint64
GasUsed uint64
Value *uint256.Int `ssz-size:"32"`
}
BidTrace represents a bid trace.
func (*BidTrace) HashTreeRoot ¶ added in v0.2.7
HashTreeRoot ssz hashes the BidTrace object
func (*BidTrace) HashTreeRootWith ¶ added in v0.2.7
func (b *BidTrace) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the BidTrace object with a hasher
func (*BidTrace) MarshalJSON ¶ added in v0.2.7
MarshalJSON implements json.Marshaler.
func (*BidTrace) MarshalSSZ ¶ added in v0.2.7
MarshalSSZ ssz marshals the BidTrace object
func (*BidTrace) MarshalSSZTo ¶ added in v0.2.7
MarshalSSZTo ssz marshals the BidTrace object to a target array
func (*BidTrace) MarshalYAML ¶ added in v0.2.7
MarshalYAML implements yaml.Marshaler.
func (*BidTrace) SizeSSZ ¶ added in v0.2.7
SizeSSZ returns the ssz encoded size in bytes for the BidTrace object
func (*BidTrace) String ¶ added in v0.2.7
String returns the string representation of the bid trace.
func (*BidTrace) UnmarshalJSON ¶ added in v0.2.7
UnmarshalJSON implements json.Unmarshaler.
func (*BidTrace) UnmarshalSSZ ¶ added in v0.2.7
UnmarshalSSZ ssz unmarshals the BidTrace object
func (*BidTrace) UnmarshalYAML ¶ added in v0.2.7
UnmarshalYAML implements yaml.Unmarshaler.
type SignedValidatorRegistration ¶
type SignedValidatorRegistration struct {
Message *ValidatorRegistration
Signature phase0.BLSSignature `ssz-size:"96"`
}
SignedValidatorRegistration is a signed ValidatorRegistrationV1.
func (*SignedValidatorRegistration) GetTree ¶
func (s *SignedValidatorRegistration) GetTree() (*ssz.Node, error)
GetTree ssz hashes the SignedValidatorRegistration object
func (*SignedValidatorRegistration) HashTreeRoot ¶
func (s *SignedValidatorRegistration) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the SignedValidatorRegistration object
func (*SignedValidatorRegistration) HashTreeRootWith ¶
func (s *SignedValidatorRegistration) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the SignedValidatorRegistration object with a hasher
func (*SignedValidatorRegistration) MarshalJSON ¶
func (s *SignedValidatorRegistration) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*SignedValidatorRegistration) MarshalSSZ ¶
func (s *SignedValidatorRegistration) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the SignedValidatorRegistration object
func (*SignedValidatorRegistration) MarshalSSZTo ¶
func (s *SignedValidatorRegistration) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the SignedValidatorRegistration object to a target array
func (*SignedValidatorRegistration) MarshalYAML ¶
func (s *SignedValidatorRegistration) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*SignedValidatorRegistration) SizeSSZ ¶
func (s *SignedValidatorRegistration) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the SignedValidatorRegistration object
func (*SignedValidatorRegistration) String ¶
func (s *SignedValidatorRegistration) String() string
String returns a string version of the structure.
func (*SignedValidatorRegistration) UnmarshalJSON ¶
func (s *SignedValidatorRegistration) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*SignedValidatorRegistration) UnmarshalSSZ ¶
func (s *SignedValidatorRegistration) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the SignedValidatorRegistration object
func (*SignedValidatorRegistration) UnmarshalYAML ¶
func (s *SignedValidatorRegistration) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type SignedValidatorRegistrations ¶ added in v0.6.1
type SignedValidatorRegistrations struct {
Registrations []*SignedValidatorRegistration `json:"registrations" ssz-max:"1099511627776" yaml:"registrations"`
}
SignedValidatorRegistrations represents a list of SignedValidatorRegistration.
func (*SignedValidatorRegistrations) GetTree ¶ added in v0.6.1
func (s *SignedValidatorRegistrations) GetTree() (*ssz.Node, error)
GetTree ssz hashes the SignedValidatorRegistrations object.
func (*SignedValidatorRegistrations) HashTreeRoot ¶ added in v0.6.1
func (s *SignedValidatorRegistrations) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the SignedValidatorRegistrations object.
func (*SignedValidatorRegistrations) HashTreeRootWith ¶ added in v0.6.1
func (s *SignedValidatorRegistrations) HashTreeRootWith(hh ssz.HashWalker) error
HashTreeRootWith ssz hashes the SignedValidatorRegistrations object with a hasher.
func (*SignedValidatorRegistrations) MarshalJSON ¶ added in v0.6.1
func (s *SignedValidatorRegistrations) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*SignedValidatorRegistrations) MarshalSSZ ¶ added in v0.6.1
func (s *SignedValidatorRegistrations) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the SignedValidatorRegistrations object.
func (*SignedValidatorRegistrations) MarshalSSZTo ¶ added in v0.6.1
func (s *SignedValidatorRegistrations) MarshalSSZTo(buf []byte) ([]byte, error)
MarshalSSZTo ssz marshals the SignedValidatorRegistrations object to a target array. Note that this does not actually marshal the object, just the list inside it. This means that the resultant encoding does not contain an offset, just the elements. This is non-standard, but required for conformance with https://ethereum.github.io/builder-specs/#/Builder/registerValidator which presents the list as a simple array rather than an object. See https://eth2book.info/capella/part2/building_blocks/ssz/#lists for details.
func (*SignedValidatorRegistrations) MarshalYAML ¶ added in v0.6.1
func (s *SignedValidatorRegistrations) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*SignedValidatorRegistrations) SizeSSZ ¶ added in v0.6.1
func (s *SignedValidatorRegistrations) SizeSSZ() int
SizeSSZ returns the ssz encoded size in bytes for the SignedValidatorRegistrations object.
func (*SignedValidatorRegistrations) String ¶ added in v0.6.1
func (s *SignedValidatorRegistrations) String() string
String returns a YAML representation of the list.
func (*SignedValidatorRegistrations) UnmarshalJSON ¶ added in v0.6.1
func (s *SignedValidatorRegistrations) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*SignedValidatorRegistrations) UnmarshalSSZ ¶ added in v0.6.1
func (s *SignedValidatorRegistrations) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the SignedValidatorRegistrations object. Note that this expects the encoded bytes to be a simple list rather than the encoded object, specifically there is not expected to be an offset before the registrations. This is non-standard, but required for conformance with https://ethereum.github.io/builder-specs/#/Builder/registerValidator which presents the list as a simple array rather than an object. See https://eth2book.info/capella/part2/building_blocks/ssz/#lists for details.
func (*SignedValidatorRegistrations) UnmarshalYAML ¶ added in v0.6.1
func (s *SignedValidatorRegistrations) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.
type ValidatorRegistration ¶
type ValidatorRegistration struct {
FeeRecipient bellatrix.ExecutionAddress `ssz-size:"20"`
GasLimit uint64
Timestamp time.Time
Pubkey phase0.BLSPubKey `ssz-size:"48"`
}
ValidatorRegistration represents a ValidatorRegistrationV1.
func (*ValidatorRegistration) GetTree ¶
func (v *ValidatorRegistration) GetTree() (*ssz.Node, error)
GetTree ssz hashes the ValidatorRegistration object
func (*ValidatorRegistration) HashTreeRoot ¶
func (v *ValidatorRegistration) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the ValidatorRegistration object
func (*ValidatorRegistration) HashTreeRootWith ¶
func (v *ValidatorRegistration) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the ValidatorRegistration object with a hasher
func (*ValidatorRegistration) MarshalJSON ¶
func (v *ValidatorRegistration) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler.
func (*ValidatorRegistration) MarshalSSZ ¶
func (v *ValidatorRegistration) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the ValidatorRegistration object
func (*ValidatorRegistration) MarshalSSZTo ¶
func (v *ValidatorRegistration) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the ValidatorRegistration object to a target array
func (*ValidatorRegistration) MarshalYAML ¶
func (v *ValidatorRegistration) MarshalYAML() ([]byte, error)
MarshalYAML implements yaml.Marshaler.
func (*ValidatorRegistration) SizeSSZ ¶
func (v *ValidatorRegistration) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the ValidatorRegistration object
func (*ValidatorRegistration) String ¶
func (v *ValidatorRegistration) String() string
String returns a string version of the structure.
func (*ValidatorRegistration) UnmarshalJSON ¶
func (v *ValidatorRegistration) UnmarshalJSON(input []byte) error
UnmarshalJSON implements json.Unmarshaler.
func (*ValidatorRegistration) UnmarshalSSZ ¶
func (v *ValidatorRegistration) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the ValidatorRegistration object
func (*ValidatorRegistration) UnmarshalYAML ¶
func (v *ValidatorRegistration) UnmarshalYAML(input []byte) error
UnmarshalYAML implements yaml.Unmarshaler.