generator

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(source string, targets []string, output string, includePaths []string, excludeTypeNames map[string]bool, suffix string) error

func GetSSZTags

func GetSSZTags(tag string) (map[string]string, error)

Types

type SSZDimension

type SSZDimension struct {
	VectorLength *int
	ListLength   *int
	// contains filtered or unexported fields
}

func (*SSZDimension) IsBitlist

func (dim *SSZDimension) IsBitlist() bool

func (*SSZDimension) IsList

func (dim *SSZDimension) IsList() bool

func (*SSZDimension) IsVector

func (dim *SSZDimension) IsVector() bool

func (*SSZDimension) ListLen

func (dim *SSZDimension) ListLen() int

func (*SSZDimension) ValueLen

func (dim *SSZDimension) ValueLen() uint64

ValueType returns ssz-max or ssz-size, to be used in the construction of a fastssz Value type

func (*SSZDimension) ValueType

func (dim *SSZDimension) ValueType() Type

ValueType returns a Type enum to be used in the construction of a fastssz Value type

func (*SSZDimension) VectorLen

func (dim *SSZDimension) VectorLen() int

type Type

type Type int

Type is a SSZ type

const (
	// TypeUndefined is a sentinel zero value to make initialization problems detectable
	TypeUndefined Type = iota
	// TypeUint is a SSZ int type
	TypeUint
	// TypeBool is a SSZ bool type
	TypeBool
	// TypeBytes is a SSZ fixed or dynamic bytes type
	TypeBytes
	// TypeBitList is a SSZ bitlist
	TypeBitList
	// TypeVector is a SSZ vector
	TypeVector
	// TypeList is a SSZ list
	TypeList
	// TypeContainer is a SSZ container
	TypeContainer
	// TypeReference is a SSZ reference
	TypeReference
	// TypeTime is a timestamp
	TypeTime
)

func (Type) String

func (t Type) String() string

type Value

type Value struct {
	// contains filtered or unexported fields
}

Value is a type that represents a Go field or struct and his correspondent SSZ type.

Jump to

Keyboard shortcuts

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