Skip to content

Commit

Permalink
feat: Add Lido Flow (#389)
Browse files Browse the repository at this point in the history
* feat: add method GetRelaysURI and adjust mevboostrelaylist package

* feat: add lido flow for cli.go

* refactor: adjust prompts for lido flow

* feat: add non-interactive lido flow

* style: adjust formatting

* fix: adjust formatting

* test: add e2e test for non-interactive setup

* fix: adjust e2e test

* style: adjust formatting

* test: Add mocks test for non-interactive setup in cli/generate_test.go

* doc: documentation for lido csm on sedge

* test: adjust e2e tests for lido flow

* fix: update go.mod

* fix: Adjust generate_test.go

* feat: Add --lido to sedge keys

* feat: Overwrite WithdrawalAddress in prompts setup

* refactor: error messages

* refactor: adjust tests and naming

* test: adjust keys for holesky

* doc: Update Sedge with Lido guide (#390)

* feat: MEV prompt with lido

* refactor: Validate lido supported networks

* refactor: NodeOptionsFactory interface for cli

* refactor: NodeOptionsFactory interface for sedge generate

* fix: Holesky fork version

* refac: New pkg options for Sedge setup type logic

* feat(keys): Log keystore path after generation

* doc: Add --network holesky to sedge keys --lido example

* chore: Update go.mod

* fix documentation for update on commands

* doc: Update CHANGELOG

---------

Co-authored-by: Marcos Maceo <[email protected]>
Co-authored-by: Miguel Tenorio <[email protected]>
Co-authored-by: AntiD2ta <[email protected]>
  • Loading branch information
4 people authored and samtin0x committed Oct 13, 2024
1 parent dd97045 commit f5d8732
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 1,670 deletions.
7 changes: 7 additions & 0 deletions cli/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,13 @@ func runGenCmd(out io.Writer, flags *GenCmdFlags, sedgeAction actions.SedgeActio
flags.relayURLs, _ = opts.RelayURLs(network)
}

// Overwrite feeRecipient and relayURLs for Lido Node
if lidoNode {
opts := sedgeOpts.CreateSedgeOptions(sedgeOpts.LidoNode)
flags.feeRecipient = opts.FeeRecipient(network)
flags.relayURLs, _ = opts.RelayURLs(network)
}

// Warning if no fee recipient is set
if flags.feeRecipient == "" {
log.Warn(configs.EmptyFeeRecipientError)
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit f5d8732

Please sign in to comment.