utils

package
v0.0.0-...-3be5031 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanUpHex

func CleanUpHex(s string) string

func GetHighestBlock

func GetHighestBlock(ctx context.Context, db *db.DB) (*int64, error)

func GetQueryLimit

func GetQueryLimit(c *gin.Context) (int64, error)

func GetQueryPage

func GetQueryPage(c *gin.Context) (int64, error)

func NormalizeAddress

func NormalizeAddress(addr string) string

func NormalizeAddresses

func NormalizeAddresses(addrs []string) []string

func Trim0x

func Trim0x(str string) string

Trim0x removes the "0x" prefix of hexes if it exists

func ValidateAccount

func ValidateAccount(accountAddress string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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