common

package
v0.2.18 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Base10 decimal base
	Base10 = 10
	// Gwei represents 1000000000 wei
	Gwei = 1000000000

	// SQLLiteDriverName is the name for the SQL lite driver
	SQLLiteDriverName = "sqlite3"
)

Variables

This section is empty.

Functions

func SlicePtrsToSlice added in v0.2.0

func SlicePtrsToSlice[T any](ptrSlice []*T) []T

SlicePtrsToSlice converts a slice of pointers to a slice of values.

func ToAddressPtr added in v0.2.0

func ToAddressPtr(addr string) *common.Address

ToAddressPtr converts a string to a common.Address pointer or returns nil if empty.

func ToUint64Ptr added in v0.2.0

func ToUint64Ptr(v uint64) *uint64

ToUint64Ptr is a helper to create uint64 pointer

Types

This section is empty.

Jump to

Keyboard shortcuts

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