common

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: CC0-1.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEventTopicMap added in v1.7.0

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 added in v1.7.0

func ParseNumber(number string) (uint64, error)

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

func RangeChecker added in v1.7.0

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