common

package
v0.0.0-...-c096a92 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEventTopicMap

func CreateEventTopicMap(topics []string) map[uint8]string

CreateEventTopicMap - Given array of event topics, returns map of valid event topics, to be used when performing selective field based queries on event topics

func ParseNumber

func ParseNumber(number string) (uint64, error)

ParseNumber - Given an integer as string, attempts to parse it

func RangeChecker

func RangeChecker(from string, to string, limit uint64) (uint64, uint64, error)

RangeChecker - Checks whether given number range is at max `limit` far away

func StringifyEventTopics

func StringifyEventTopics(data []common.Hash) []string

StringifyEventTopics - Given array of event topic signatures, returns their stringified form, to be required for publishing data to subscribers and persisting into database

Types

This section is empty.

Jump to

Keyboard shortcuts

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