util

package
v0.0.0-...-76fd6e2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ZeroAddress common.Address
	ZeroHash    common.Hash

	TruePointer  *bool
	FalsePointer *bool
)
View Source
var ErrCastError = errors.New("error cast")

Functions

func BytesToHex

func BytesToHex(
	bs []byte,
) (s string)

func MustBytesToMapJson

func MustBytesToMapJson(
	bs []byte,
) (m map[string]any)

func MustHexToBytes

func MustHexToBytes(
	s string,
) (bs []byte)

func MustMapJsonToBytes

func MustMapJsonToBytes(
	m map[string]any,
) (bs []byte)

func MustStringToBigInt

func MustStringToBigInt(
	s string,
) *big.Int

Types

This section is empty.

Jump to

Keyboard shortcuts

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