testcases

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Code generated by fastssz. DO NOT EDIT. Hash: 663bf5f44a061a5323c14ee77b0fdaa2eac9c717999dc83d0a3cbd1453853ab7 Version: 0.1.2

Code generated by fastssz. DO NOT EDIT. Hash: 039f728d0a83f6c37950a05aef7e053a7b77d2afdb939fa245e114a8f1cd4248 Version: 0.1.2

Code generated by fastssz. DO NOT EDIT. Hash: a4ca3dbd5970787ed95868f04832d48028a1b4eb02d92b413b8d3991e6b7cddb Version: 0.1.2

Code generated by fastssz. DO NOT EDIT. Hash: 66053eefcc6dcfad1fe624b1b92bc03a744080d1627336be7d4457e7be9750c3 Version: 0.1.2

Code generated by fastssz. DO NOT EDIT. Hash: 3b793de1231011fbfef0a1e924c686b45a5857a57832bae7df9eae716b873b1b Version: 0.1.2

Code generated by fastssz. DO NOT EDIT. Hash: 04ac916e8f15c6e500617c8195a73e18b9b9f9a76652d4bec1f96b4bb045bef4

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bytes

type Bytes []byte

type Case1A

type Case1A struct {
	Foo Bytes `ssz-max:"2048"`
}

func (*Case1A) GetTree

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

GetTree ssz hashes the Case1A object

func (*Case1A) HashTreeRoot

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

HashTreeRoot ssz hashes the Case1A object

func (*Case1A) HashTreeRootWith

func (c *Case1A) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the Case1A object with a hasher

func (*Case1A) MarshalSSZ

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

MarshalSSZ ssz marshals the Case1A object

func (*Case1A) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Case1A object to a target array

func (*Case1A) SizeSSZ

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

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

func (*Case1A) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the Case1A object

type Case1B

type Case1B struct {
	Bar Bytes `ssz-max:"32"`
}

func (*Case1B) GetTree

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

GetTree ssz hashes the Case1B object

func (*Case1B) HashTreeRoot

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

HashTreeRoot ssz hashes the Case1B object

func (*Case1B) HashTreeRootWith

func (c *Case1B) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the Case1B object with a hasher

func (*Case1B) MarshalSSZ

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

MarshalSSZ ssz marshals the Case1B object

func (*Case1B) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Case1B object to a target array

func (*Case1B) SizeSSZ

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

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

func (*Case1B) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the Case1B object

type Case2A

type Case2A struct {
	A uint64
}

func (*Case2A) GetTree

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

GetTree ssz hashes the Case2A object

func (*Case2A) HashTreeRoot

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

HashTreeRoot ssz hashes the Case2A object

func (*Case2A) HashTreeRootWith

func (c *Case2A) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the Case2A object with a hasher

func (*Case2A) MarshalSSZ

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

MarshalSSZ ssz marshals the Case2A object

func (*Case2A) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Case2A object to a target array

func (*Case2A) SizeSSZ

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

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

func (*Case2A) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the Case2A object

type Case2B

type Case2B struct {
	Case2A

	B uint64
}

func (*Case2B) GetTree

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

GetTree ssz hashes the Case2B object

func (*Case2B) HashTreeRoot

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

HashTreeRoot ssz hashes the Case2B object

func (*Case2B) HashTreeRootWith

func (c *Case2B) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the Case2B object with a hasher

func (*Case2B) MarshalSSZ

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

MarshalSSZ ssz marshals the Case2B object

func (*Case2B) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Case2B object to a target array

func (*Case2B) SizeSSZ

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

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

func (*Case2B) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the Case2B object

type Case3A

type Case3A struct {
	A Case3B
	B *Case3B
	C other.Case3B
	D *other.Case3B
}

func (*Case3A) GetTree

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

GetTree ssz hashes the Case3A object

func (*Case3A) HashTreeRoot

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

HashTreeRoot ssz hashes the Case3A object

func (*Case3A) HashTreeRootWith

func (c *Case3A) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the Case3A object with a hasher

func (*Case3A) MarshalSSZ

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

MarshalSSZ ssz marshals the Case3A object

func (*Case3A) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Case3A object to a target array

func (*Case3A) SizeSSZ

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

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

func (*Case3A) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the Case3A object

type Case3B

type Case3B struct {
}

func (*Case3B) GetTree

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

GetTree ssz hashes the Case3B object

func (*Case3B) HashTreeRoot

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

HashTreeRoot ssz hashes the Case3B object

func (*Case3B) HashTreeRootWith

func (c *Case3B) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the Case3B object with a hasher

func (*Case3B) MarshalSSZ

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

MarshalSSZ ssz marshals the Case3B object

func (*Case3B) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Case3B object to a target array

func (*Case3B) SizeSSZ

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

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

func (*Case3B) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the Case3B object

type Case4

type Case4 struct {
	A other.Case4Interface  `ssz-size:"96"`
	B *other.Case4Interface `ssz-size:"96"`
	C alias.Case4Slot
	D other.Case4Bytes          `ssz-size:"96"`
	E other.Case4FixedSignature `ssz-size:"96"`
}

func (*Case4) GetTree

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

GetTree ssz hashes the Case4 object

func (*Case4) HashTreeRoot

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

HashTreeRoot ssz hashes the Case4 object

func (*Case4) HashTreeRootWith

func (c *Case4) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the Case4 object with a hasher

func (*Case4) MarshalSSZ

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

MarshalSSZ ssz marshals the Case4 object

func (*Case4) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Case4 object to a target array

func (*Case4) SizeSSZ

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

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

func (*Case4) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the Case4 object

type Case5A

type Case5A struct {
	A [][]byte     `ssz-size:"2,2"`
	B []Case5Bytes `ssz-size:"2,2"`
	C Case5Roots   `ssz-size:"2,2"`
}

func (*Case5A) GetTree

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

GetTree ssz hashes the Case5A object

func (*Case5A) HashTreeRoot

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

HashTreeRoot ssz hashes the Case5A object

func (*Case5A) HashTreeRootWith

func (c *Case5A) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the Case5A object with a hasher

func (*Case5A) MarshalSSZ

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

MarshalSSZ ssz marshals the Case5A object

func (*Case5A) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Case5A object to a target array

func (*Case5A) SizeSSZ

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

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

func (*Case5A) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the Case5A object

type Case5Bytes

type Case5Bytes []byte

type Case5Roots

type Case5Roots [][]byte

type TimeRawType

type TimeRawType struct {
	Timestamp uint64
	Int       uint64
}

func (*TimeRawType) GetTree

func (t *TimeRawType) GetTree() (*ssz.Node, error)

GetTree ssz hashes the TimeRawType object

func (*TimeRawType) HashTreeRoot

func (t *TimeRawType) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the TimeRawType object

func (*TimeRawType) HashTreeRootWith

func (t *TimeRawType) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the TimeRawType object with a hasher

func (*TimeRawType) MarshalSSZ

func (t *TimeRawType) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the TimeRawType object

func (*TimeRawType) MarshalSSZTo

func (t *TimeRawType) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the TimeRawType object to a target array

func (*TimeRawType) SizeSSZ

func (t *TimeRawType) SizeSSZ() (size int)

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

func (*TimeRawType) UnmarshalSSZ

func (t *TimeRawType) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the TimeRawType object

type TimeType

type TimeType struct {
	Timestamp time.Time
	Int       uint64
}

func (*TimeType) GetTree

func (t *TimeType) GetTree() (*ssz.Node, error)

GetTree ssz hashes the TimeType object

func (*TimeType) HashTreeRoot

func (t *TimeType) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the TimeType object

func (*TimeType) HashTreeRootWith

func (t *TimeType) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the TimeType object with a hasher

func (*TimeType) MarshalSSZ

func (t *TimeType) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the TimeType object

func (*TimeType) MarshalSSZTo

func (t *TimeType) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the TimeType object to a target array

func (*TimeType) SizeSSZ

func (t *TimeType) SizeSSZ() (size int)

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

func (*TimeType) UnmarshalSSZ

func (t *TimeType) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the TimeType object

Directories

Path Synopsis
Code generated by fastssz.
Code generated by fastssz.

Jump to

Keyboard shortcuts

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