utils

package
v0.0.0-...-07657c1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DB  = "DB_LINK"
	RPC = "RPC_LINK"
)

String constants used across the module

Variables

View Source
var TransferTopic = crypto.Keccak256Hash([]byte("Transfer(address,address,uint256)"))

TransferTopic 32 byte Keccak256 hash of transfer event

Functions

func PrintEndMessage

func PrintEndMessage()

PrintEndMessage function prints the end message after a batch of blocks is parsed

  • Returns void

func PrintServiceUptime

func PrintServiceUptime(startTime *time.Time)

PrintServiceUptime function prints the total uptime of the service since inception.

  • Returns void

func Sleep

func Sleep(seconds *time.Duration)

Sleep function puts the system to sleep for a specified amount of time

  • Returns void

func WeiToDecimal

func WeiToDecimal(value string, decimals int) string

WeiToDecimal function to convert wei value to decimal representation based on decimals

  • Returns decimal.Decimal

Types

This section is empty.

Jump to

Keyboard shortcuts

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