json

package
v0.0.0-...-49ff922 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attestation

type Attestation struct {
	AggregationBits string          `json:"aggregation_bits"`
	Data            AttestationData `json:"data"`
	Signature       string          `json:"signature"`
}

func (*Attestation) RemoveLeadingZeroHashes

func (a *Attestation) RemoveLeadingZeroHashes()

type AttestationData

type AttestationData struct {
	Slot            uint64     `json:"slot"`
	Index           uint64     `json:"index"`
	BeaconBlockRoot string     `json:"beacon_block_root"`
	Source          Checkpoint `json:"source"`
	Target          Checkpoint `json:"target"`
}

func (*AttestationData) RemoveLeadingZeroHashes

func (a *AttestationData) RemoveLeadingZeroHashes()

type AttesterSlashing

type AttesterSlashing struct {
	Attestation1 IndexedAttestation `json:"attestation_1"`
	Attestation2 IndexedAttestation `json:"attestation_2"`
}

func (*AttesterSlashing) RemoveLeadingZeroHashes

func (a *AttesterSlashing) RemoveLeadingZeroHashes()

type BeaconHeader

type BeaconHeader struct {
	Slot          uint64 `json:"slot"`
	ProposerIndex uint64 `json:"proposer_index"`
	ParentRoot    string `json:"parent_root"`
	StateRoot     string `json:"state_root"`
	BodyRoot      string `json:"body_root"`
}

func (*BeaconHeader) RemoveLeadingZeroHashes

func (b *BeaconHeader) RemoveLeadingZeroHashes()

type Block

type Block struct {
	Slot          uint64    `json:"slot"`
	ProposerIndex uint64    `json:"proposer_index"`
	ParentRoot    string    `json:"parent_root"`
	StateRoot     string    `json:"state_root"`
	Body          BlockBody `json:"body"`
}

func (*Block) RemoveLeadingZeroHashes

func (b *Block) RemoveLeadingZeroHashes()

type BlockBody

type BlockBody struct {
	RandaoReveal      string                        `json:"randao_reveal"`
	Eth1Data          Eth1Data                      `json:"eth1_data"`
	Graffiti          string                        `json:"graffiti"`
	ProposerSlashings []ProposerSlashing            `json:"proposer_slashings"`
	AttesterSlashings []AttesterSlashing            `json:"attester_slashings"`
	Attestations      []Attestation                 `json:"attestations"`
	Deposits          []Deposit                     `json:"deposits"`
	VoluntaryExits    []VoluntaryExit               `json:"voluntary_exits"`
	SyncAggregate     SyncAggregate                 `json:"sync_aggregate"`
	ExecutionPayload  ExecutionPayloadHeaderCapella `json:"execution_payload"`
}

type Checkpoint

type Checkpoint struct {
	Epoch uint64 `json:"epoch"`
	Root  string `json:"root"`
}

func (*Checkpoint) RemoveLeadingZeroHashes

func (c *Checkpoint) RemoveLeadingZeroHashes()

type Deposit

type Deposit struct {
	Proof []string    `json:"proof"`
	Data  DepositData `json:"data"`
}

func (*Deposit) RemoveLeadingZeroHashes

func (d *Deposit) RemoveLeadingZeroHashes()

type DepositData

type DepositData struct {
	Pubkey                string `json:"pubkey"`
	WithdrawalCredentials string `json:"withdrawal_credentials"`
	Amount                uint64 `json:"amount"`
	Signature             string `json:"signature"`
}

type Eth1Data

type Eth1Data struct {
	DepositRoot  string `json:"deposit_root"`
	DepositCount uint64 `json:"deposit_count"`
	BlockHash    string `json:"block_hash"`
}

type ExecutionPayloadHeaderCapella

type ExecutionPayloadHeaderCapella struct {
	ParentHash      string `json:"parent_hash"`
	FeeRecipient    string `json:"fee_recipient"`
	StateRoot       string `json:"state_root"`
	ReceiptsRoot    string `json:"receipts_root"`
	LogsBloom       string `json:"logs_bloom"`
	PrevRandao      string `json:"prev_randao"`
	BlockNumber     uint64 `json:"block_number"`
	GasLimit        uint64 `json:"gas_limit"`
	GasUsed         uint64 `json:"gas_used"`
	Timestamp       uint64 `json:"timestamp"`
	ExtraData       string `json:"extra_data"`
	BaseFeePerGas   uint64 `json:"base_fee_per_gas"`
	BlockHash       string `json:"block_hash"`
	TransactionRoot string `json:"transactions_root"`
	WithdrawalsRoot string `json:"withdrawals_root"`
}

func (*ExecutionPayloadHeaderCapella) RemoveLeadingZeroHashes

func (e *ExecutionPayloadHeaderCapella) RemoveLeadingZeroHashes()

type FinalizedHeaderUpdate

type FinalizedHeaderUpdate struct {
	AttestedHeader  BeaconHeader  `json:"attested_header"`
	FinalizedHeader BeaconHeader  `json:"finalized_header"`
	FinalityBranch  []string      `json:"finality_branch"`
	SyncAggregate   SyncAggregate `json:"sync_aggregate"`
	SignatureSlot   uint64        `json:"signature_slot"`
	BlockRootsRoot  string        `json:"block_roots_root"`
	BlockRootBranch []string      `json:"block_roots_branch"`
}

func (*FinalizedHeaderUpdate) RemoveLeadingZeroHashes

func (f *FinalizedHeaderUpdate) RemoveLeadingZeroHashes()

type HeaderUpdate

type HeaderUpdate struct {
	BeaconHeader              BeaconHeader                  `json:"beacon_header"`
	ExecutionHeader           ExecutionPayloadHeaderCapella `json:"execution_header"`
	ExecutionBranch           []string                      `json:"execution_branch"`
	SyncAggregate             SyncAggregate                 `json:"sync_aggregate"`
	SignatureSlot             uint64                        `json:"signature_slot"`
	BlockRootBranch           []string                      `json:"block_root_branch"`
	BlockRootBranchHeaderRoot string                        `json:"block_root_branch_header_root"`
}

func (*HeaderUpdate) RemoveLeadingZeroHashes

func (h *HeaderUpdate) RemoveLeadingZeroHashes()

type IndexedAttestation

type IndexedAttestation struct {
	AttestingIndices []uint64        `json:"attesting_indices"`
	Data             AttestationData `json:"data"`
	Signature        string          `json:"signature"`
}

func (*IndexedAttestation) RemoveLeadingZeroHashes

func (i *IndexedAttestation) RemoveLeadingZeroHashes()

type InitialSync

type InitialSync struct {
	Header                     BeaconHeader  `json:"header"`
	CurrentSyncCommittee       SyncCommittee `json:"current_sync_committee"`
	CurrentSyncCommitteeBranch []string      `json:"current_sync_committee_branch"`
	ValidatorsRoot             string        `json:"validators_root"`
	ImportTime                 uint64        `json:"import_time"`
}

func (*InitialSync) RemoveLeadingZeroHashes

func (i *InitialSync) RemoveLeadingZeroHashes()

type ProposerSlashing

type ProposerSlashing struct {
	SignedHeader1 SignedHeader `json:"signed_header_1"`
	SignedHeader2 SignedHeader `json:"signed_header_2"`
}

func (*ProposerSlashing) RemoveLeadingZeroHashes

func (p *ProposerSlashing) RemoveLeadingZeroHashes()

type SignedHeader

type SignedHeader struct {
	Message   BeaconHeader `json:"message"`
	Signature string       `json:"signature"`
}

func (*SignedHeader) RemoveLeadingZeroHashes

func (s *SignedHeader) RemoveLeadingZeroHashes()

type SyncAggregate

type SyncAggregate struct {
	SyncCommitteeBits      string `json:"sync_committee_bits"`
	SyncCommitteeSignature string `json:"sync_committee_signature"`
}

func (*SyncAggregate) RemoveLeadingZeroHashes

func (s *SyncAggregate) RemoveLeadingZeroHashes()

type SyncCommittee

type SyncCommittee struct {
	Pubkeys         []string `json:"pubkeys"`
	AggregatePubkey string   `json:"aggregate_pubkey"`
}

func (*SyncCommittee) RemoveLeadingZeroHashes

func (s *SyncCommittee) RemoveLeadingZeroHashes()

type SyncCommitteeUpdate

type SyncCommitteeUpdate struct {
	AttestedHeader          BeaconHeader  `json:"attested_header"`
	NextSyncCommittee       SyncCommittee `json:"next_sync_committee"`
	NextSyncCommitteeBranch []string      `json:"next_sync_committee_branch"`
	FinalizedHeader         BeaconHeader  `json:"finalized_header"`
	FinalityBranch          []string      `json:"finality_branch"`
	SyncAggregate           SyncAggregate `json:"sync_aggregate"`
	SyncCommitteePeriod     uint64        `json:"sync_committee_period"`
	SignatureSlot           uint64        `json:"signature_slot"`
	BlockRootsRoot          string        `json:"block_roots_root"`
	BlockRootBranch         []string      `json:"block_roots_branch"`
}

func (*SyncCommitteeUpdate) RemoveLeadingZeroHashes

func (s *SyncCommitteeUpdate) RemoveLeadingZeroHashes()

type VoluntaryExit

type VoluntaryExit struct {
	Epoch          uint64 `json:"epoch"`
	ValidatorIndex uint64 `json:"validator_index"`
}

Jump to

Keyboard shortcuts

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