Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmd/devkit/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ func main() {
}

actionChain := hooks.NewActionChain()
actionChain.Use(hooks.WithCommandDependencyCheck)
actionChain.Use(hooks.WithMetricEmission)

hooks.ApplyMiddleware(app.Commands, actionChain)
Expand Down
7 changes: 7 additions & 0 deletions pkg/commands/devnet_actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
"github.com/ethereum/go-ethereum/ethclient"
"github.com/urfave/cli/v2"

"github.com/Layr-Labs/devkit-cli/pkg/hooks"
allocationmanager "github.com/Layr-Labs/eigenlayer-contracts/pkg/bindings/AllocationManager"
)

Expand Down Expand Up @@ -276,6 +277,12 @@ func StartDevnetAction(cCtx *cli.Context) error {

// Start offchain AVS components after starting devnet and deploying contracts unless skipped
if !skipDeployContracts && !skipAvsRun {
// Update project stage to running before starting AVS components (since AVSRun is long-running)
logger.Info("Updating project stage to running...")
if err := hooks.UpdateProjectStage(hooks.StageRunning, logger); err != nil {
logger.Warn("Failed to update project stage: %v", err)
}

if err := AVSRun(cCtx); err != nil && !errors.Is(err, context.Canceled) {
return fmt.Errorf("avs run failed: %w", err)
}
Expand Down
1 change: 1 addition & 0 deletions pkg/common/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ type OperatorRegistration struct {

type ChainContextConfig struct {
Name string `json:"name" yaml:"name"`
Stage string `json:"stage,omitempty" yaml:"stage,omitempty"`
Chains map[string]ChainConfig `json:"chains" yaml:"chains"`
DeployerPrivateKey string `json:"deployer_private_key" yaml:"deployer_private_key"`
AppDeployerPrivateKey string `json:"app_private_key" yaml:"app_private_key"`
Expand Down
Loading
Loading