migration

package
v0.0.0-...-3bf8caa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2024 License: Apache-2.0, GPL-3.0, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AltairToV1Alpha1SignedBlock

func AltairToV1Alpha1SignedBlock(altairBlk *ethpbv2.SignedBeaconBlockAltair) (*ethpbalpha.SignedBeaconBlockAltair, error)

AltairToV1Alpha1SignedBlock converts a v2 SignedBeaconBlockAltair proto to a v1alpha1 proto.

func BeaconStateAltairToProto

func BeaconStateAltairToProto(altairState state.BeaconState) (*ethpbv2.BeaconState, error)

BeaconStateAltairToProto converts a state.BeaconState object to its protobuf equivalent.

func BeaconStateBellatrixToProto

func BeaconStateBellatrixToProto(st state.BeaconState) (*ethpbv2.BeaconStateBellatrix, error)

BeaconStateBellatrixToProto converts a state.BeaconState object to its protobuf equivalent.

func BeaconStateCapellaToProto

func BeaconStateCapellaToProto(st state.BeaconState) (*ethpbv2.BeaconStateCapella, error)

BeaconStateCapellaToProto converts a state.BeaconState object to its protobuf equivalent.

func BeaconStateToProto

func BeaconStateToProto(state state.BeaconState) (*ethpbv1.BeaconState, error)

BeaconStateToProto converts a state.BeaconState object to its protobuf equivalent.

func BellatrixToV1Alpha1SignedBlock

func BellatrixToV1Alpha1SignedBlock(bellatrixBlk *ethpbv2.SignedBeaconBlockBellatrix) (*ethpbalpha.SignedBeaconBlockBellatrix, error)

BellatrixToV1Alpha1SignedBlock converts a v2 SignedBeaconBlockBellatrix proto to a v1alpha1 proto.

func BlindedBellatrixToV1Alpha1SignedBlock

func BlindedBellatrixToV1Alpha1SignedBlock(bellatrixBlk *ethpbv2.SignedBlindedBeaconBlockBellatrix) (*ethpbalpha.SignedBlindedBeaconBlockBellatrix, error)

BlindedBellatrixToV1Alpha1SignedBlock converts a v2 SignedBlindedBeaconBlockBellatrix proto to a v1alpha1 proto.

func BlindedCapellaToV1Alpha1SignedBlock

func BlindedCapellaToV1Alpha1SignedBlock(capellaBlk *ethpbv2.SignedBlindedBeaconBlockCapella) (*ethpbalpha.SignedBlindedBeaconBlockCapella, error)

BlindedCapellaToV1Alpha1SignedBlock converts a v2 SignedBlindedBeaconBlockCapella proto to a v1alpha1 proto.

func BlockIfaceToV1BlockHeader

func BlockIfaceToV1BlockHeader(block interfaces.ReadOnlySignedBeaconBlock) (*ethpbv1.SignedBeaconBlockHeader, error)

BlockIfaceToV1BlockHeader converts a signed beacon block interface into a signed beacon block header.

func CapellaToV1Alpha1SignedBlock

func CapellaToV1Alpha1SignedBlock(capellaBlk *ethpbv2.SignedBeaconBlockCapella) (*ethpbalpha.SignedBeaconBlockCapella, error)

CapellaToV1Alpha1SignedBlock converts a v2 SignedBeaconBlockCapella proto to a v1alpha1 proto.

func SignedBeaconBlock

SignedBeaconBlock converts a signed beacon block interface to a v1alpha1 block.

func V1Alpha1AggregateAttAndProofToV1

func V1Alpha1AggregateAttAndProofToV1(v1alpha1Att *ethpbalpha.AggregateAttestationAndProof) *ethpbv1.AggregateAttestationAndProof

V1Alpha1AggregateAttAndProofToV1 converts a v1alpha1 aggregate attestation and proof to v1.

func V1Alpha1AttDataToV1

func V1Alpha1AttDataToV1(v1alpha1AttData *ethpbalpha.AttestationData) *ethpbv1.AttestationData

V1Alpha1AttDataToV1 converts a v1alpha1 attestation data to v1.

func V1Alpha1AttSlashingToV1

func V1Alpha1AttSlashingToV1(v1alpha1Slashing *ethpbalpha.AttesterSlashing) *ethpbv1.AttesterSlashing

V1Alpha1AttSlashingToV1 converts a v1alpha1 attester slashing to v1.

func V1Alpha1AttestationToV1

func V1Alpha1AttestationToV1(v1alpha1Att *ethpbalpha.Attestation) *ethpbv1.Attestation

V1Alpha1AttestationToV1 converts a v1alpha1 attestation to v1.

func V1Alpha1BeaconBlockAltairToV2

func V1Alpha1BeaconBlockAltairToV2(v1alpha1Block *ethpbalpha.BeaconBlockAltair) (*ethpbv2.BeaconBlockAltair, error)

V1Alpha1BeaconBlockAltairToV2 converts a v1alpha1 Altair beacon block to a v2 Altair block.

func V1Alpha1BeaconBlockBellatrixToV2

func V1Alpha1BeaconBlockBellatrixToV2(v1alpha1Block *ethpbalpha.BeaconBlockBellatrix) (*ethpbv2.BeaconBlockBellatrix, error)

V1Alpha1BeaconBlockBellatrixToV2 converts a v1alpha1 Bellatrix beacon block to a v2 Bellatrix block.

func V1Alpha1BeaconBlockBellatrixToV2Blinded

func V1Alpha1BeaconBlockBellatrixToV2Blinded(v1alpha1Block *ethpbalpha.BeaconBlockBellatrix) (*ethpbv2.BlindedBeaconBlockBellatrix, error)

V1Alpha1BeaconBlockBellatrixToV2Blinded converts a v1alpha1 Bellatrix beacon block to a v2 blinded Bellatrix block.

func V1Alpha1BeaconBlockBlindedBellatrixToV2Blinded

func V1Alpha1BeaconBlockBlindedBellatrixToV2Blinded(v1alpha1Block *ethpbalpha.BlindedBeaconBlockBellatrix) (*ethpbv2.BlindedBeaconBlockBellatrix, error)

V1Alpha1BeaconBlockBlindedBellatrixToV2Blinded converts a v1alpha1 Blinded Bellatrix beacon block to a v2 Blinded Bellatrix block.

func V1Alpha1BeaconBlockBlindedCapellaToV2Blinded

func V1Alpha1BeaconBlockBlindedCapellaToV2Blinded(v1alpha1Block *ethpbalpha.BlindedBeaconBlockCapella) (*ethpbv2.BlindedBeaconBlockCapella, error)

V1Alpha1BeaconBlockBlindedCapellaToV2Blinded converts a v1alpha1 Blinded Capella beacon block to a v2 Blinded Capella block.

func V1Alpha1BeaconBlockCapellaToV2

func V1Alpha1BeaconBlockCapellaToV2(v1alpha1Block *ethpbalpha.BeaconBlockCapella) (*ethpbv2.BeaconBlockCapella, error)

V1Alpha1BeaconBlockCapellaToV2 converts a v1alpha1 Capella beacon block to a v2 Capella block.

func V1Alpha1BeaconBlockCapellaToV2Blinded

func V1Alpha1BeaconBlockCapellaToV2Blinded(v1alpha1Block *ethpbalpha.BeaconBlockCapella) (*ethpbv2.BlindedBeaconBlockCapella, error)

V1Alpha1BeaconBlockCapellaToV2Blinded converts a v1alpha1 Capella beacon block to a v2 blinded Capella block.

func V1Alpha1ConnectionStateToV1

func V1Alpha1ConnectionStateToV1(connState eth.ConnectionState) ethpb.ConnectionState

func V1Alpha1ExitToV1

func V1Alpha1ExitToV1(v1alpha1Exit *ethpbalpha.SignedVoluntaryExit) *ethpbv1.SignedVoluntaryExit

V1Alpha1ExitToV1 converts a v1alpha1 SignedVoluntaryExit to v1.

func V1Alpha1IndexedAttToV1

func V1Alpha1IndexedAttToV1(v1alpha1Att *ethpbalpha.IndexedAttestation) *ethpbv1.IndexedAttestation

V1Alpha1IndexedAttToV1 converts a v1alpha1 indexed attestation to v1.

func V1Alpha1PeerDirectionToV1

func V1Alpha1PeerDirectionToV1(peerDirection eth.PeerDirection) (ethpb.PeerDirection, error)

func V1Alpha1ProposerSlashingToV1

func V1Alpha1ProposerSlashingToV1(v1alpha1Slashing *ethpbalpha.ProposerSlashing) *ethpbv1.ProposerSlashing

V1Alpha1ProposerSlashingToV1 converts a v1alpha1 proposer slashing to v1.

func V1Alpha1SignedBLSToExecChangeToV2

func V1Alpha1SignedBLSToExecChangeToV2(alphaChange *ethpbalpha.SignedBLSToExecutionChange) *ethpbv2.SignedBLSToExecutionChange

V1Alpha1SignedBLSToExecChangeToV2 converts a v1alpha1 SignedBLSToExecutionChange object to its v2 equivalent.

func V1Alpha1SignedContributionAndProofToV2

func V1Alpha1SignedContributionAndProofToV2(alphaContribution *ethpbalpha.SignedContributionAndProof) *ethpbv2.SignedContributionAndProof

V1Alpha1SignedContributionAndProofToV2 converts a v1alpha1 SignedContributionAndProof object to its v2 equivalent.

func V1Alpha1SignedHeaderToV1

func V1Alpha1SignedHeaderToV1(v1alpha1Hdr *ethpbalpha.SignedBeaconBlockHeader) *ethpbv1.SignedBeaconBlockHeader

V1Alpha1SignedHeaderToV1 converts a v1alpha1 signed beacon block header to v1.

func V1Alpha1ToV1Block

func V1Alpha1ToV1Block(alphaBlk *ethpbalpha.BeaconBlock) (*ethpbv1.BeaconBlock, error)

V1Alpha1ToV1Block converts a v1alpha1 ReadOnlyBeaconBlock proto to a v1 proto.

func V1Alpha1ToV1SignedBlock

func V1Alpha1ToV1SignedBlock(alphaBlk *ethpbalpha.SignedBeaconBlock) (*ethpbv1.SignedBeaconBlock, error)

V1Alpha1ToV1SignedBlock converts a v1alpha1 SignedBeaconBlock proto to a v1 proto.

func V1Alpha1ValidatorToV1

func V1Alpha1ValidatorToV1(v1Alpha1Validator *ethpbalpha.Validator) *ethpbv1.Validator

V1Alpha1ValidatorToV1 converts a v1alpha1 validator to v1.

func V1AttDataToV1Alpha1

func V1AttDataToV1Alpha1(v1AttData *ethpbv1.AttestationData) *ethpbalpha.AttestationData

V1AttDataToV1Alpha1 converts a v1 attestation data to v1alpha1.

func V1AttSlashingToV1Alpha1

func V1AttSlashingToV1Alpha1(v1Slashing *ethpbv1.AttesterSlashing) *ethpbalpha.AttesterSlashing

V1AttSlashingToV1Alpha1 converts a v1 attester slashing to v1alpha1.

func V1AttToV1Alpha1

func V1AttToV1Alpha1(v1Att *ethpbv1.Attestation) *ethpbalpha.Attestation

V1AttToV1Alpha1 converts a v1 attestation to v1alpha1.

func V1AttestationToV1Alpha1

func V1AttestationToV1Alpha1(v1Att *ethpbv1.Attestation) *ethpbalpha.Attestation

V1AttestationToV1Alpha1 converts a v1 attestation to v1alpha1.

func V1ExitToV1Alpha1

func V1ExitToV1Alpha1(v1Exit *ethpbv1.SignedVoluntaryExit) *ethpbalpha.SignedVoluntaryExit

V1ExitToV1Alpha1 converts a v1 SignedVoluntaryExit to v1alpha1.

func V1IndexedAttToV1Alpha1

func V1IndexedAttToV1Alpha1(v1Att *ethpbv1.IndexedAttestation) *ethpbalpha.IndexedAttestation

V1IndexedAttToV1Alpha1 converts a v1 indexed attestation to v1alpha1.

func V1ProposerSlashingToV1Alpha1

func V1ProposerSlashingToV1Alpha1(v1Slashing *ethpbv1.ProposerSlashing) *ethpbalpha.ProposerSlashing

V1ProposerSlashingToV1Alpha1 converts a v1 proposer slashing to v1alpha1.

func V1SignedAggregateAttAndProofToV1Alpha1

func V1SignedAggregateAttAndProofToV1Alpha1(v1Att *ethpbv1.SignedAggregateAttestationAndProof) *ethpbalpha.SignedAggregateAttestationAndProof

V1SignedAggregateAttAndProofToV1Alpha1 converts a v1 signed aggregate attestation and proof to v1alpha1.

func V1SignedHeaderToV1Alpha1

func V1SignedHeaderToV1Alpha1(v1Header *ethpbv1.SignedBeaconBlockHeader) *ethpbalpha.SignedBeaconBlockHeader

V1SignedHeaderToV1Alpha1 converts a v1 signed beacon block header to v1alpha1.

func V1ToV1Alpha1SignedBlock

func V1ToV1Alpha1SignedBlock(v1Blk *ethpbv1.SignedBeaconBlock) (*ethpbalpha.SignedBeaconBlock, error)

V1ToV1Alpha1SignedBlock converts a v1 SignedBeaconBlock proto to a v1alpha1 proto.

func V1ValidatorToV1Alpha1

func V1ValidatorToV1Alpha1(v1Validator *ethpbv1.Validator) *ethpbalpha.Validator

V1ValidatorToV1Alpha1 converts a v1 validator to v1alpha1.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL