utils

package
v0.0.0-...-e69715a Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllDaysOfMonth

func AllDaysOfMonth(date time.Time) int

AllDaysOfMonth days of the month

func BeforeYesterdayHour

func BeforeYesterdayHour() time.Time

func ConvertStr

func ConvertStr(number string) (*big.Int, error)

func CurrentDayOfMonth

func CurrentDayOfMonth(tm time.Time) int64

CurrentDayOfMonth current time

func DayOfMonth

func DayOfMonth(date time.Time) int

DayOfMonth day of month

func FirstDayOfMonth

func FirstDayOfMonth() int64

FirstDayOfMonth the first day of the month

func HexToUint64

func HexToUint64(hex string) uint64

func Hour

func Hour(tm time.Time) time.Time

func Keccak256

func Keccak256(str string) string

func LastDayOfMonth

func LastDayOfMonth(date time.Time) int

LastDayOfMonth the last day of the month

func ParseEventToMap

func ParseEventToMap(parsedABI abi.ABI, eventLog EventLog, output map[string]interface{}) (eventName string, err error)

func ParseEventToStruct

func ParseEventToStruct(parsedABI abi.ABI, eventLog EventLog, output interface{}) (eventName string, err error)

func ParseInt64

func ParseInt64(str string) int64

func ReadFile

func ReadFile(fileName string) *os.File

func TimeHourInt

func TimeHourInt(tm time.Time) uint64

func TimeLineFormat

func TimeLineFormat(tm time.Time) string

func YesterdayHour

func YesterdayHour() time.Time

Types

type EventLog

type EventLog struct {
	Address common.Address `json:"address" gencodec:"required"`
	Topics  []common.Hash  `json:"topics" gencodec:"required"`
	Data    hexutil.Bytes  `json:"data" gencodec:"required"`
}

Jump to

Keyboard shortcuts

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