json

package
v0.0.0-...-b4f0473 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 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 AncestryProof

type AncestryProof struct {
	HeaderBranch       []string `json:"header_branch"`
	FinalizedBlockRoot string   `json:"finalized_block_root"`
}

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 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 {
	Header                     BeaconHeader  `json:"header"`
	CurrentSyncCommittee       SyncCommittee `json:"current_sync_committee"`
	CurrentSyncCommitteeBranch []string      `json:"current_sync_committee_branch"`
	ValidatorsRoot             string        `json:"validators_root"`
	BlockRootsRoot             string        `json:"block_roots_root"`
	BlockRootsBranch           []string      `json:"block_roots_branch"`
}

func (*CheckPoint) RemoveLeadingZeroHashes

func (i *CheckPoint) RemoveLeadingZeroHashes()

type Checkpoint

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

func (*Checkpoint) RemoveLeadingZeroHashes

func (c *Checkpoint) RemoveLeadingZeroHashes()

type CompactExecutionHeader

type CompactExecutionHeader struct {
	ParentHash   string `json:"parent_hash"`
	StateRoot    string `json:"state_root"`
	ReceiptsRoot string `json:"receipts_root"`
	BlockNumber  uint64 `json:"block_number"`
}

func (*CompactExecutionHeader) RemoveLeadingZeroHashes

func (c *CompactExecutionHeader) 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"`
	TransactionsRoot string `json:"transactions_root"`
	WithdrawalsRoot  string `json:"withdrawals_root"`
}

func (*ExecutionPayloadHeaderCapella) RemoveLeadingZeroHashes

func (e *ExecutionPayloadHeaderCapella) RemoveLeadingZeroHashes()

type ExecutionPayloadHeaderDeneb

type ExecutionPayloadHeaderDeneb 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"`
	TransactionsRoot string `json:"transactions_root"`
	WithdrawalsRoot  string `json:"withdrawals_root"`
	BlobGasUsed      uint64 `json:"blob_gas_used"`
	ExcessBlobGas    uint64 `json:"excess_blob_gas"`
}

func (*ExecutionPayloadHeaderDeneb) RemoveLeadingZeroHashes

func (e *ExecutionPayloadHeaderDeneb) RemoveLeadingZeroHashes()

type FullExecutionPayloadHeaderJson

type FullExecutionPayloadHeaderJson 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      string `json:"block_number"`
	GasLimit         string `json:"gas_limit"`
	GasUsed          string `json:"gas_used"`
	Timestamp        string `json:"timestamp"`
	ExtraData        string `json:"extra_data"`
	BaseFeePerGas    string `json:"base_fee_per_gas"`
	BlockHash        string `json:"block_hash"`
	TransactionsRoot string `json:"transactions_root"`
	WithdrawalsRoot  string `json:"withdrawals_root"`
	BlobGasUsed      string `json:"blob_gas_used,omitempty"`
	ExcessBlobGas    string `json:"excess_blob_gas,omitempty"`
}

type HeaderUpdate

type HeaderUpdate struct {
	Header          BeaconHeader                    `json:"header"`
	AncestryProof   *AncestryProof                  `json:"ancestry_proof"`
	ExecutionHeader VersionedExecutionPayloadHeader `json:"execution_header"`
	ExecutionBranch []string                        `json:"execution_branch"`
}

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 NextSyncCommitteeUpdate

type NextSyncCommitteeUpdate struct {
	NextSyncCommittee       SyncCommittee `json:"next_sync_committee"`
	NextSyncCommitteeBranch []string      `json:"next_sync_committee_branch"`
}

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 Update

type Update struct {
	AttestedHeader          BeaconHeader                     `json:"attested_header"`
	SyncAggregate           SyncAggregate                    `json:"sync_aggregate"`
	SignatureSlot           uint64                           `json:"signature_slot"`
	NextSyncCommitteeUpdate *NextSyncCommitteeUpdate         `json:"next_sync_committee_update"`
	FinalizedHeader         BeaconHeader                     `json:"finalized_header"`
	FinalityBranch          []string                         `json:"finality_branch"`
	BlockRootsRoot          string                           `json:"block_roots_root"`
	BlockRootsBranch        []string                         `json:"block_roots_branch"`
	ExecutionHeader         *VersionedExecutionPayloadHeader `json:"execution_header"`
	ExecutionBranch         *[]string                        `json:"execution_branch"`
}

func (*Update) RemoveLeadingZeroHashes

func (s *Update) RemoveLeadingZeroHashes()

type VersionedExecutionPayloadHeader

type VersionedExecutionPayloadHeader struct {
	Capella *ExecutionPayloadHeaderCapella `json:"Capella,omitempty"`
	Deneb   *ExecutionPayloadHeaderDeneb   `json:"Deneb,omitempty"`
}

func (*VersionedExecutionPayloadHeader) RemoveLeadingZeroHashes

func (v *VersionedExecutionPayloadHeader) 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