tests

package
v0.0.0-...-dadd7dd Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Code generated by fastssz. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chunk

type Chunk struct {
	FIO  uint8
	Code []byte `ssz-size:"32"` // Last chunk is right-padded with zeros
}

func (*Chunk) GetTree

func (c *Chunk) GetTree() (*ssz.Node, error)

func (*Chunk) GetTreeWithWrapper

func (c *Chunk) GetTreeWithWrapper(w *ssz.Wrapper) (err error)

GetTree returns tree-backing for the Chunk object

func (*Chunk) HashTreeRoot

func (c *Chunk) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Chunk object

func (*Chunk) HashTreeRootWith

func (c *Chunk) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the Chunk object with a hasher

func (*Chunk) MarshalSSZ

func (c *Chunk) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Chunk object

func (*Chunk) MarshalSSZTo

func (c *Chunk) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the Chunk object to a target array

func (*Chunk) SizeSSZ

func (c *Chunk) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the Chunk object

func (*Chunk) UnmarshalSSZ

func (c *Chunk) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Chunk object

type CodeTrieBig

type CodeTrieBig struct {
	Metadata *Metadata
	Chunks   []*Chunk `ssz-max:"1024"`
}

func (*CodeTrieBig) GetTree

func (c *CodeTrieBig) GetTree() (*ssz.Node, error)

func (*CodeTrieBig) GetTreeWithWrapper

func (c *CodeTrieBig) GetTreeWithWrapper(w *ssz.Wrapper) (err error)

GetTree returns tree-backing for the CodeTrieBig object

func (*CodeTrieBig) HashTreeRoot

func (c *CodeTrieBig) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the CodeTrieBig object

func (*CodeTrieBig) HashTreeRootWith

func (c *CodeTrieBig) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the CodeTrieBig object with a hasher

func (*CodeTrieBig) MarshalSSZ

func (c *CodeTrieBig) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the CodeTrieBig object

func (*CodeTrieBig) MarshalSSZTo

func (c *CodeTrieBig) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the CodeTrieBig object to a target array

func (*CodeTrieBig) SizeSSZ

func (c *CodeTrieBig) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the CodeTrieBig object

func (*CodeTrieBig) UnmarshalSSZ

func (c *CodeTrieBig) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the CodeTrieBig object

type CodeTrieSmall

type CodeTrieSmall struct {
	Metadata *Metadata
	Chunks   []*Chunk `ssz-max:"4"`
}

func (*CodeTrieSmall) GetTree

func (c *CodeTrieSmall) GetTree() (*ssz.Node, error)

func (*CodeTrieSmall) GetTreeWithWrapper

func (c *CodeTrieSmall) GetTreeWithWrapper(w *ssz.Wrapper) (err error)

GetTree returns tree-backing for the CodeTrieSmall object

func (*CodeTrieSmall) HashTreeRoot

func (c *CodeTrieSmall) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the CodeTrieSmall object

func (*CodeTrieSmall) HashTreeRootWith

func (c *CodeTrieSmall) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the CodeTrieSmall object with a hasher

func (*CodeTrieSmall) MarshalSSZ

func (c *CodeTrieSmall) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the CodeTrieSmall object

func (*CodeTrieSmall) MarshalSSZTo

func (c *CodeTrieSmall) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the CodeTrieSmall object to a target array

func (*CodeTrieSmall) SizeSSZ

func (c *CodeTrieSmall) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the CodeTrieSmall object

func (*CodeTrieSmall) UnmarshalSSZ

func (c *CodeTrieSmall) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the CodeTrieSmall object

type Metadata

type Metadata struct {
	Version    uint8
	CodeHash   []byte `ssz-size:"32"`
	CodeLength uint16
}

func (*Metadata) GetTree

func (m *Metadata) GetTree() (*ssz.Node, error)

func (*Metadata) GetTreeWithWrapper

func (m *Metadata) GetTreeWithWrapper(w *ssz.Wrapper) (err error)

GetTree returns tree-backing for the Metadata object

func (*Metadata) HashTreeRoot

func (m *Metadata) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the Metadata object

func (*Metadata) HashTreeRootWith

func (m *Metadata) HashTreeRootWith(hh *ssz.Hasher) (err error)

HashTreeRootWith ssz hashes the Metadata object with a hasher

func (*Metadata) MarshalSSZ

func (m *Metadata) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the Metadata object

func (*Metadata) MarshalSSZTo

func (m *Metadata) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the Metadata object to a target array

func (*Metadata) SizeSSZ

func (m *Metadata) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the Metadata object

func (*Metadata) UnmarshalSSZ

func (m *Metadata) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the Metadata object

Jump to

Keyboard shortcuts

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