common

package
v1.10.2-alpha1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SlotTimeSecMainnet = 12
	// FieldElementsPerBlob is the number of field elements needed to represent a blob.
	FieldElementsPerBlob = 4096
	// BlobExpansionFactor is the factor by which we extend a blob for PeerDAS.
	BlobExpansionFactor = 2
	// FieldElementsPerCell is the number of field elements in a cell.
	FieldElementsPerCell = 64
	BytesPerFieldElement = 32
	// FieldElementsPerExtBlob is the number of field elements needed to represent an extended blob.
	FieldElementsPerExtBlob = FieldElementsPerBlob * BlobExpansionFactor
	// CellsPerExtBlob is the number of cells in an extended blob.
	CellsPerExtBlob = FieldElementsPerExtBlob / FieldElementsPerCell
)

Variables

This section is empty.

Functions

func FloatEthTo256Wei

func FloatEthTo256Wei(val float64) (*types.U256Str, error)

FloatEthTo256Wei converts a float (precision 10) denominated in eth to a U256Str denominated in wei

func GetEnv

func GetEnv(key, defaultValue string) string

func GetEnvFloat64

func GetEnvFloat64(key string, defaultValue float64) float64

func GetEnvInt

func GetEnvInt(key string, defaultValue int) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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