spec_types

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SpecTypes = []*SpecType{
	{"state", "BeaconState", phase0.BeaconStateSSZ, func() interface{} { return new(phase0.BeaconState) }},
	{"block", "BeaconBlock", phase0.BeaconBlockSSZ, func() interface{} { return new(phase0.BeaconBlock) }},
	{"block_header", "BlockHeader", header.BeaconBlockHeaderSSZ, func() interface{} { return new(header.BeaconBlockHeader) }},
	{"block_body", "BeaconBlockBody", phase0.BeaconBlockBodySSZ, func() interface{} { return new(phase0.BeaconBlockBody) }},
	{"attestation", "Attestation", attestations.AttestationSSZ, func() interface{} { return new(attestations.Attestation) }},
	{"attester_slashing", "AttesterSlashing", attslash.AttesterSlashingSSZ, func() interface{} { return new(attslash.AttesterSlashing) }},
	{"proposer_slashing", "ProposerSlashing", propslash.ProposerSlashingSSZ, func() interface{} { return new(propslash.ProposerSlashing) }},
	{"deposit", "Deposit", deposits.DepositSSZ, func() interface{} { return new(deposits.Deposit) }},
	{"transfer", "Transfer", transfers.TransferSSZ, func() interface{} { return new(transfers.Transfer) }},
	{"voluntary_exit", "VoluntaryExit", exits.VoluntaryExitSSZ, func() interface{} { return new(exits.VoluntaryExit) }},
	{"deposit_data", "DepositData", deposits.DepositDataSSZ, func() interface{} { return new(deposits.DepositData) }},
	{"eth1_data", "Eth1Data", zssz.GetSSZ((*eth1.Eth1Data)(nil)), func() interface{} { return new(eth1.Eth1Data) }},
}

Functions

This section is empty.

Types

type SpecType

type SpecType struct {
	Name     string
	TypeName string
	SSZTyp   types.SSZ
	Alloc    func() interface{}
}

Jump to

Keyboard shortcuts

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