common

package
v0.6.3-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: MIT Imports: 19 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTimeStampToFileName

func AddTimeStampToFileName(fileName string) string

func ComputeHashKey

func ComputeHashKey(owner common.Address, workflowName string) [32]byte

func DeleteFileIfExists

func DeleteFileIfExists(filePath string) error

func GetBuildCmd

func GetBuildCmd(inputFile string, outputFile string, rootFolder string) *exec.Cmd

Gets a build command for either Golang or Typescript based on the filename

func GetDirectoryName

func GetDirectoryName() (string, error)

func IsBinaryFile

func IsBinaryFile(fileName string) (bool, error)

There is only a small group of acceptable file extensions by this tool and only few of them are considered to be binary files

func MustGetUserInputWithPrompt

func MustGetUserInputWithPrompt(l *zerolog.Logger, prompt string) (string, error)

func SimTransactOpts

func SimTransactOpts() *bind.TransactOpts

SimTransactOpts is useful to generate just the calldata for a given gethwrapper method.

func ToStringSlice

func ToStringSlice(args []any) []string

toStringSlice converts a slice of any type to a slice of strings. If an element is a byte slice, it prints it as hex.

func ValidateEventSignature

func ValidateEventSignature(l *zerolog.Logger, tx *seth.DecodedTransaction, e abi.Event) (bool, int)

func ValidatePrivateKey

func ValidatePrivateKey(key string) error

ValidatePrivateKey validates the input string is a valid Ethereum private key

func WriteJsonToFile

func WriteJsonToFile(j interface{}, filePath string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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