testcases

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Code generated by fastssz. DO NOT EDIT. Hash: 0f0655ec701db4de9479b122ccc9152b370be9116b2814917810ca4334239411 Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: 849887b610983adf4efa1abfd912b25aa4f0ffbde8211f1e3909136539b1c2d9 Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: 44566646e4c1498bce3271d6c03a9108bb4af48414b1d759c07e3572846863f1 Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: 4ebf31c9db2d40eb24702116641d6e98d75ebeb401ec69e41b7f351b81e25aa2 Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: b35462b93b5ec0e1c9d9c7f2da382a9fb37543169a41064ce4421ecac43f7f62 Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: b89ee134b519595b8276174178242203f6bfb9e0594654a23e1c35e5fb8b5369 Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: 2c62e4f3a52cd6b3a37d9953ebbc566ecb0f1f591f68f1f60aa6f5ca0f2bb4a6 Version: 0.1.3

Code generated by fastssz. DO NOT EDIT. Hash: af56ac74ccaeb89b8d2d802f56cbfab0248f088a80a7879c0e2f0fb8ca88f22c Version: 0.1.3

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

Index

Constants

View Source
const Case6Size = 32

Variables

This section is empty.

Functions

This section is empty.

Types

type BigIntType

type BigIntType struct {
	BigInt big.Int `ssz-max:"129"`
}

func (*BigIntType) GetTree

func (b *BigIntType) GetTree() (*ssz.Node, error)

GetTree ssz hashes the BigIntType object

func (*BigIntType) HashTreeRoot

func (b *BigIntType) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the BigIntType object

func (*BigIntType) HashTreeRootWith

func (b *BigIntType) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the BigIntType object with a hasher

func (*BigIntType) MarshalSSZ

func (b *BigIntType) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the BigIntType object

func (*BigIntType) MarshalSSZTo

func (b *BigIntType) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the BigIntType object to a target array

func (*BigIntType) SizeSSZ

func (b *BigIntType) SizeSSZ() (size int)

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

func (*BigIntType) UnmarshalSSZ

func (b *BigIntType) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the BigIntType object

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 Case6

type Case6 struct {
	A [Case6Size]byte `ssz-size:"32"`
}

func (*Case6) GetTree

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

GetTree ssz hashes the Case6 object

func (*Case6) HashTreeRoot

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

HashTreeRoot ssz hashes the Case6 object

func (*Case6) HashTreeRootWith

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

HashTreeRootWith ssz hashes the Case6 object with a hasher

func (*Case6) MarshalSSZ

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

MarshalSSZ ssz marshals the Case6 object

func (*Case6) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Case6 object to a target array

func (*Case6) SizeSSZ

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

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

func (*Case6) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the Case6 object

type Case7

type Case7 struct {
	BlobKzgs [][]byte `ssz-size:"?,48" ssz-max:"16"`
}

func (*Case7) GetTree

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

GetTree ssz hashes the Case7 object

func (*Case7) HashTreeRoot

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

HashTreeRoot ssz hashes the Case7 object

func (*Case7) HashTreeRootWith

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

HashTreeRootWith ssz hashes the Case7 object with a hasher

func (*Case7) MarshalSSZ

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

MarshalSSZ ssz marshals the Case7 object

func (*Case7) MarshalSSZTo

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

MarshalSSZTo ssz marshals the Case7 object to a target array

func (*Case7) SizeSSZ

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

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

func (*Case7) UnmarshalSSZ

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

UnmarshalSSZ ssz unmarshals the Case7 object

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