common

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SlotTimeSecMainnet = 12
)

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