# Packages
Package bigmath compensates for awkward big.Int API.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
AllEqual returns true iff all the provided elements are equal to each other.
AssertJSONEqual is a helper function to assert that two JSON objects are equal.
BatchSplit splits an slices into an slices of slicess with a maximum length.
Deprecated: use tests.Context.
ContextFromChan creates a context that finishes when the provided channel receives or is closed.
ContextWithDeadlineFn returns a copy of the parent context with the deadline modified by deadlineFn.
No description provided by the author
HashReport returns a report digest using SHA256 hash.
No description provided by the author
No description provided by the author
JustError takes a tuple and returns the last entry, the error.
Deprecated: use config.MustNewDuration.
Deprecated: use config.MustParseURL.
No description provided by the author
NewDependentAwaiter creates a new DependentAwaiter.
Deprecated: use config.NewDuration.
No description provided by the author
NewSleeperTask takes a worker and returns a SleeperTask.
NewSleeperTaskCtx is like NewSleeperTask but accepts a WorkerCtx with a [context.Context].
Deprecated: use config.ParseURL.
RawReportContext is a copy of evmutil.RawReportContext to avoid importing go-ethereum.
SleeperFuncTask returns a Worker to execute the given work function.
WaitGroupChan creates a channel that closes when the provided sync.WaitGroup is done.
WithJitter adds +/- 10% to a duration.
WrapIfError decorates an error with the given message.
# Structs
No description provided by the author
SleeperTask represents a task that waits in the background to process some work.
Subprocesses is an abstraction over the following pattern of sync.WaitGroup:
var wg sync.Subprocesses wg.Add(1) go func() { defer wg.Done() ..
# Interfaces
DependentAwaiter contains Dependent funcs.
Worker is a simple interface that represents some work to do repeatedly.
WorkerCtx is like Worker but includes [context.Context].
# Type aliases
Deprecated: use config.Duration.
StartStopOnce can be embedded in a struct to help implement types.Service.
Deprecated: use config.URL.