Skip to content

Conversation

@khalifaa55
Copy link
Contributor

@khalifaa55 khalifaa55 commented Dec 17, 2025

#383
#469

Changes:

  • Add integration for Aztec Sequencers
  • Add integration for Aztec Full Node

Types of changes

What types of changes does your code introduce?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Other (please describe):

Testing

Requires testing

  • Yes
  • No

In case you checked yes, did you write tests?

  • Yes
  • No

@khalifaa55 khalifaa55 self-assigned this Dec 17, 2025
@codecov-commenter
Copy link

codecov-commenter commented Dec 19, 2025

Codecov Report

❌ Patch coverage is 70.58824% with 75 lines in your changes missing coverage. Please review.
✅ Project coverage is 24.28%. Comparing base (6be63bd) to head (e5831f1).

Files with missing lines Patch % Lines
cli/cli.go 54.11% 25 Missing and 14 partials ⚠️
cli/generate.go 80.24% 9 Missing and 7 partials ⚠️
cli/actions/generation.go 0.00% 7 Missing and 1 partial ⚠️
internal/pkg/clients/types.go 0.00% 6 Missing ⚠️
cli/sub_gen.go 91.11% 2 Missing and 2 partials ⚠️
internal/pkg/generate/types.go 60.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #539      +/-   ##
===========================================
+ Coverage    23.69%   24.28%   +0.58%     
===========================================
  Files          121      121              
  Lines        19671    19922     +251     
===========================================
+ Hits          4662     4838     +176     
- Misses       14472    14522      +50     
- Partials       537      562      +25     
Flag Coverage Δ
unittests 24.28% <70.58%> (+0.58%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@khalifaa55 khalifaa55 marked this pull request as ready for review December 23, 2025 17:07
@khalifaa55 khalifaa55 changed the title feat: Aztec sequencers integration feat: Sedge<>Aztec integration Jan 8, 2026
Copy link
Member

@stdevMac stdevMac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cli/sub_gen.go Outdated
Comment on lines 422 to 423
cmd.Flags().StringVarP(&flags.executionApiUrl, "execution-api-url", "", "", "Set execution api url. If Set, will omit the creation of execution and beacon nodes, and only create optimism nodes.")
cmd.Flags().StringVarP(&flags.consensusApiUrl, "consensus-url", "", "", "Set consensus api url. If Set, will omit the creation of execution and beacon nodes, and only create optimism nodes.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hardcoded values here for optimism, change to aztec

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is still missing.

, and only create optimism nodes.

We need to update this description to aztec

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# --- Aztec Node configuration ---
AZTEC_IMAGE_VERSION={{.AztecImage}}
AZTEC_DATA_DIRECTORY={{.AztecDataDir}}
AZTEC_KEYSTORE_PATH={{.AztecSequencerKeystorePath}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If set on full node, this shouldn't be added

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

smth like this:

{{- if eq .AztecNodeType "sequencer" }}
      - ${AZTEC_KEYSTORE_PATH}:/var/lib/keystore
{{- end }}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still not done, AZTEC_KEYSTORE_PATH is showing empty when we are running a full-node

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ETHEREUM_HOSTS: ${AZTEC_ETHEREUM_HOSTS}
L1_CONSENSUS_HOST_URLS: ${AZTEC_L1_CONSENSUS_HOST_URLS}
{{- if eq .AztecNodeType "sequencer" }}
KEY_STORE_DIRECTORY: /var/lib/keystore
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to copy the keystore file inside the folder of sedge, because we are using json file when setting the node, and set up this:

AZTEC_KEYSTORE_PATH=/root/.aztec/keystore/key1.json

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cli/sub_gen.go Outdated
cmd.Flags().StringArrayVar(&flags.aztecExtraFlags, "aztec-extra-flag", []string{}, "Additional flag to configure the Aztec node service in the generated docker-compose script. Example: 'sedge generate aztec --aztec-extra-flag \"p2p.maxPeers=200\" --aztec-extra-flag \"txPool.maxSize=10000\"'")
cmd.Flags().StringVarP(&flags.consensusName, "consensus", "c", "", "Consensus engine client, e.g. teku, lodestar, prysm, lighthouse, Nimbus. Additionally, you can use this syntax '<CLIENT>:<DOCKER_IMAGE>' to override the docker image used for the client. If you want to use the default docker image, just use the client name")
cmd.Flags().StringVarP(&flags.executionName, "execution", "e", "", "Execution engine client, e.g. geth, nethermind, besu, erigon. Additionally, you can use this syntax '<CLIENT>:<DOCKER_IMAGE>' to override the docker image used for the client. If you want to use the default docker image, just use the client name")
cmd.Flags().StringVarP(&flags.executionApiUrl, "execution-api-url", "", "", "Set execution api url. If Set, will omit the creation of execution and beacon nodes, and only create optimism nodes.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hardcoded values here for optimism, change to aztec

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cli/sub_gen.go Outdated
// Bind flags
cmd.Flags().StringVar(&flags.aztecType, "type", aztecNodeTypeFullNode, fmt.Sprintf("Aztec node type. One of: %s,%s", aztecNodeTypeFullNode, aztecNodeTypeSequencer))
cmd.Flags().StringVar(&flags.aztecSequencerKeystorePath, "aztec-keystore-path", "", "Path to Aztec sequencer keystore.json file (required when --type sequencer). The keystore must be generated using 'aztec validator-keys new' command. See https://docs.aztec.network/network/setup/sequencer_management for details.")
cmd.Flags().StringVar(&flags.aztecP2pIp, "aztec-p2p-ip", "", "P2P IP address for Aztec sequencer. This is the IP address that other nodes will use to connect to this sequencer.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is only 1 node, see if possible to show the default image here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already done here

cli/sub_gen.go Outdated
Comment on lines 423 to 424
cmd.Flags().StringVarP(&flags.executionApiUrl, "execution-api-url", "", "", "Set execution api url. If Set, will omit the creation of execution and beacon nodes, and only create optimism nodes.")
cmd.Flags().StringVarP(&flags.consensusApiUrl, "consensus-url", "", "", "Set consensus api url. If Set, will omit the creation of execution and beacon nodes, and only create optimism nodes.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still need to be fixed, look at the descriptions, it say at the create optimism nodes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cli/sub_gen.go Outdated
Comment on lines 422 to 423
cmd.Flags().StringVarP(&flags.executionApiUrl, "execution-api-url", "", "", "Set execution api url. If Set, will omit the creation of execution and beacon nodes, and only create optimism nodes.")
cmd.Flags().StringVarP(&flags.consensusApiUrl, "consensus-url", "", "", "Set consensus api url. If Set, will omit the creation of execution and beacon nodes, and only create optimism nodes.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is still missing.

, and only create optimism nodes.

We need to update this description to aztec

# --- Aztec Node configuration ---
AZTEC_IMAGE_VERSION={{.AztecImage}}
AZTEC_DATA_DIRECTORY={{.AztecDataDir}}
AZTEC_KEYSTORE_PATH={{.AztecSequencerKeystorePath}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still not done, AZTEC_KEYSTORE_PATH is showing empty when we are running a full-node

@khalifaa55
Copy link
Contributor Author

@stdevMac changes addressed for the following:

  • Aztec Keystore condition: 7756a21

  • Optimism hard-coded values: 4238354

  • Regarding aztec default image you can find it in a previous commit here:

    cmd.Flags().StringVar(&flags.aztecName, "aztec-image", configs.ClientImages.Aztec.Aztec.String(), "Aztec docker image.")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants