package
0.11.0
Repository: https://github.com/omni-network/omni.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Command genwrap provides a code generator for ethclient.Client wrapper that adds prometheus metrics and error wrapping.
Package mock is a generated GoMock package.

# Functions

Dial connects a client to the given URL.
IsErrMethodNotAvailable returns true if the error indicates that the RPC method is not available on the server.
LoadJWTHexFile loads a hex encoded JWT secret from the provided file.
MockGenesisBlock returns a deterministic genesis block for testing.
MockPayloadID returns a deterministic payload id for the given payload.
NewAuthClient returns a new authenticated JSON-RPc engineClient.
NewClient wraps an *rpc.Client adding metrics and wrapped errors.
NewEngineMock returns a new mock engine API client.
NewFuzzer returns a new fuzzer for valid ethereum types.
No description provided by the author
WithMockSelfDelegation returns an option to add a self-delegation Delegate event to the mock.
No description provided by the author
WithRandomErr returns a context that results in random engineMock errors.

# Constants

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

# Structs

Receipt represents the results of a transaction.
Wrapper wraps an ethclient.Client adding metrics and wrapped errors.

# Interfaces

Client defines all ethereum interfaces used in omni.
EngineClient defines the Engine API authenticated JSON-RPC endpoints.

# Type aliases

No description provided by the author