evm

package
v1.9.0-test Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License: LGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagUseDevDA     = "dev"
	FlagDAAuthToken  = "da-auth-token" //nolint:gosec // false positive
	EnvDAAuthToken   = "DA_AUTH_TOKEN" //nolint:gosec // false positive
	EnvDABaseURL     = "DA_BASE_URL"
	EnvDANamespaceID = "DA_NAMESPACE_ID"
)

Variables

View Source
var EvmCmdPlugin struct {
	Evm *EvmCmd `cmd:"" group:"EVM Commands:" help:"Manage your EVM blockchain environment"`
}

Functions

func NewHandler

func NewHandler() interfaces.EVMHandler

Types

type EvmCmd added in v1.8.0

type EvmCmd struct {
	Config string `flag:"" help:"A TOML config file"`

	Start *StartCmd `cmd:"" group:"EVM Commands:" help:"Launch your EVM blockchain environment"`
	Stop  *StopCmd  `cmd:"" group:"EVM Commands:" help:"Shut down your EVM blockchain environment"`
}

type Handler

type Handler struct {
}

func (*Handler) Start

func (h *Handler) Start(ctx context.Context, flags models.StartEVMFlags) error

func (*Handler) Stop

func (h *Handler) Stop(ctx context.Context, flags models.StopEVMFlags) error

type MockHandler

type MockHandler struct {
	mock.Mock
}

func (*MockHandler) Start

func (m *MockHandler) Start(ctx context.Context, flags models.StartEVMFlags) error

func (*MockHandler) Stop

func (m *MockHandler) Stop(ctx context.Context, flags models.StopEVMFlags) error

type StartCmd added in v1.8.0

type StartCmd struct {
	Parent       *EvmCmd               `kong:"-"`
	Context      context.Context       `kong:"-"`
	Dependencies cmdsetup.Dependencies `kong:"-"`
	DAAuthToken  string                `         flag:"" optional:"" help:"The DA Auth Token that allows the rollup to communicate with the Celestia client."`
	UseDevDA     bool                  `` /* 128-byte string literal not displayed */
}

func (*StartCmd) Run added in v1.8.0

func (c *StartCmd) Run() error

type StopCmd added in v1.8.0

type StopCmd struct {
	Parent       *EvmCmd               `kong:"-"`
	Context      context.Context       `kong:"-"`
	Dependencies cmdsetup.Dependencies `kong:"-"`
}

func (*StopCmd) Run added in v1.8.0

func (c *StopCmd) Run() error

Jump to

Keyboard shortcuts

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