types

package
v1.6.1-0.2023053011482... Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DepositContractTreeDepth = 32

	GenesisValidatorsRootKiln    = "0x99b09fcd43e5905236c370f184056bec6e6638cfc31a323b304fc4aa789cb4ad"
	GenesisValidatorsRootRopsten = "0x44f1e56283ca88b35c789f7f449e52339bc1fefe3a45913a43a6d16edcd33cf1"
	GenesisValidatorsRootSepolia = "0xd8ea171f3c94aea21ebc42a1ed61052acf3f9209c00e4efbaaddac09ed9b8078"
	GenesisValidatorsRootGoerli  = "0x043db0d9a83813551ee2f33450d23797757d430911a9320530ad8a0eabc43efb"
	GenesisValidatorsRootMainnet = "0x4b363db94e286120d76eb905340fdd4e54bfe9f06bf33ff6cf5ad27f511bfe95"

	GenesisForkVersionKiln    = "0x70000069"
	GenesisForkVersionRopsten = "0x80000069"
	GenesisForkVersionSepolia = "0x90000069"
	GenesisForkVersionGoerli  = "0x00001020"
	GenesisForkVersionMainnet = "0x00000000"

	BellatrixForkVersionKiln    = "0x70000071"
	BellatrixForkVersionRopsten = "0x80000071"
	BellatrixForkVersionSepolia = "0x90000071"
	BellatrixForkVersionGoerli  = "0x02001020"
	BellatrixForkVersionMainnet = "0x02000000"
)

Variables

View Source
var (
	ErrSign   = errors.New("invalid sign")
	ErrLength = errors.New("invalid length")
)

Functions

This section is empty.

Types

type U256Str

type U256Str [32]byte

func IntToU256

func IntToU256(i uint64) (ret U256Str)

func (*U256Str) BigInt

func (n *U256Str) BigInt() *big.Int

func (*U256Str) Cmp

func (n *U256Str) Cmp(b *U256Str) int

Cmp compares one U256Str to another and returns an integer indicating whether a > b. The result will be 0 if a == b, -1 if a < b, and +1 if a > b.

func (*U256Str) FromBig

func (n *U256Str) FromBig(x *big.Int) error

func (*U256Str) FromSlice

func (n *U256Str) FromSlice(x []byte) error

func (*U256Str) MarshalText

func (n *U256Str) MarshalText() ([]byte, error)

func (*U256Str) String

func (n *U256Str) String() string

func (*U256Str) UnmarshalJSON

func (n *U256Str) UnmarshalJSON(input []byte) error

func (*U256Str) UnmarshalText

func (n *U256Str) UnmarshalText(input []byte) error

Jump to

Keyboard shortcuts

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