Skip to content

feat: refactor: create a dependency between components #1545

@joanestebanr

Description

@joanestebanr

Feature Request

The run.go has a way to decide if build a component based in something like that:

func runBridgeSyncL1IfNeeded(...) *bridgesync.BridgeSync {
	if !isNeeded([]string{aggkitcommon.BRIDGE, aggkitcommon.L1BRIDGESYNC}, components) {
		return nil
	}

The idea is create a depency list so:
AGGSENDER -> L1BRIDGESYNC, L2BRIDGESYNC
L1BRIDGESYNC -> L1REORGDETECTOR, L1CLIENT
L2BRIDGESYNC -> L2REORGDETECTOR, L2CLIENT, ROLLUPID
ROLLUPID -> ROLLUP_DATA_QUERIER
ROLLUP_DATA_QUERIER -> L1CLIENT

This allow to:

  • Be sure that you fullfill the construction of part required
  • Allow to avoid using the configuration not required (this will be another issue because if a really big task)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions