cmd

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: GPL-3.0 Imports: 65 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyTypeInsecure keyType = "insecure"
)

Variables

This section is empty.

Functions

func AVSDeregister added in v0.12.0

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

AVSDeregister deregisters the operator from the omni AVS contract.

func AVSRegister added in v0.12.0

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

AVSRegister 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.

func CreateValidator added in v0.13.0

func CreateValidator(ctx context.Context, cfg CreateValConfig) error

func Delegate added in v0.12.0

func Delegate(ctx context.Context, cfg DelegateConfig) error

func EditVal added in v0.13.0

func EditVal(ctx context.Context, cfg EditValConfig) error

func InitNodes added in v0.10.0

func InitNodes(ctx context.Context, cfg InitConfig) error

func New

func New() *cobra.Command

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

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 CreateValConfig added in v0.13.0

type CreateValConfig struct {
	EOAConfig
	ConsensusPubKeyHex string
	SelfDelegation     uint64
}

type DelegateConfig added in v0.12.0

type DelegateConfig struct {
	EOAConfig
	Amount           uint64
	Self             bool
	ValidatorAddress string
}

type EOAConfig added in v0.12.0

type EOAConfig struct {
	Network        netconf.ID
	ExecutionRPC   string
	ConsensusRPC   string
	PrivateKeyFile string
}

EOAConfig defines the required data to sign and submit evm transactions.

type EditValConfig added in v0.13.0

type EditValConfig struct {
	EOAConfig
	Moniker                  string
	Identity                 string
	Website                  string
	SecurityContact          string
	Details                  string
	CommissionRatePercentage int32
	MinSelfDelegationEther   int64
}

func NoopEditValConfig added in v0.13.0

func NoopEditValConfig() EditValConfig

NoopEditValConfig returns a default EditValConfig that will not modify existing values.

type InitConfig added in v0.10.0

type InitConfig struct {
	Network      netconf.ID
	Home         string
	Moniker      string
	Clean        bool
	Archive      bool
	Debug        bool
	NodeSnapshot bool
	HaloTag      string
}

func DefaultInitConfig added in v0.13.0

func DefaultInitConfig() InitConfig

DefaultInitConfig returns the default configuration for the init command.

func (InitConfig) Verify added in v0.10.0

func (c InitConfig) Verify() 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
JackTT - Gopher 🇻🇳