devnetutils

package
v0.0.0-...-92d349b Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildLog

func BuildLog(hash libcommon.Hash, blockNum string, address libcommon.Address, topics []libcommon.Hash, data hexutility.Bytes, txIndex hexutil.Uint, blockHash libcommon.Hash, index hexutil.Uint, removed bool) rpctest.Log

func ClearDevDB

func ClearDevDB()

ClearDevDB cleans up the dev folder used for the operations

func CompareLogEvents

func CompareLogEvents(expected, actual rpctest.Log) ([]error, bool)

func DeleteLogs

func DeleteLogs()

func GenerateTopic

func GenerateTopic(signature string) []libcommon.Hash

func HashSlicesAreEqual

func HashSlicesAreEqual(s1, s2 []libcommon.Hash) bool

func HexToInt

func HexToInt(hexStr string) uint64

HexToInt converts a hexadecimal string to uint64

func NamespaceAndSubMethodFromMethod

func NamespaceAndSubMethodFromMethod(method string) (string, string, error)

NamespaceAndSubMethodFromMethod splits a parent method into namespace and the actual method

func ParseResponse

func ParseResponse(resp interface{}) (string, error)

ParseResponse converts any of the rpctest interfaces to a string for readability

func RandomNumberInRange

func RandomNumberInRange(min, max uint64) (uint64, error)

RandomNumberInRange returns a random number between min and max NOT inclusive

func UniqueIDFromEnode

func UniqueIDFromEnode(enode string) (string, error)

UniqueIDFromEnode returns the unique ID from a node's enode, removing the `?discport=0` part

Types

This section is empty.

Jump to

Keyboard shortcuts

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