cmd

package
v0.8.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: GPL-3.0 Imports: 53 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyTypeInsecure keyType = "insecure"
)

Variables

This section is empty.

Functions

func New

func New() *cobra.Command

New returns a new root cobra command that handles our command line tool.

func Register

func Register(ctx context.Context, cfg RegConfig, opts ...regOpt) error

Register registers the operator with the omni AVS contract.

It assumes that the operator is already registered with the Eigen-Layer and that the eigen-layer configuration file (and ecdsa keystore) is present on disk.

Types

type CliError

type CliError struct {
	Msg     string
	Suggest string
	Attrs   []any // Attributes not yet implemented.
}

CliError is a custom error type for CLI usage that adds a helpful suggestion. It wraps the Msg like a normal error It doesn't support attributes yet.

func (*CliError) Error

func (e *CliError) Error() string

func (*CliError) Wrap

func (e *CliError) Wrap(msg string, attrs ...any) error

type RegConfig

type RegConfig struct {
	ConfigFile string
	AVSAddr    string
}

type RegDeps

type RegDeps struct {
	Prompter       eigenutils.Prompter
	NewBackendFunc func(chainName string, chainID uint64, blockPeriod time.Duration, ethCl ethclient.Client, privateKeys ...*ecdsa.PrivateKey) (*ethbackend.Backend, error)
	VerifyFunc     func(eigensdktypes.Operator) error
}

RegDeps contains the Register dependencies that are abstracted for testing.

Directories

Path Synopsis
Command omni provides the omni command line interface.
Command omni provides the omni command line interface.

Jump to

Keyboard shortcuts

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