Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 13, 2026

The evm-hello-world generator was missing the sink consumption question that other EVM generators and hello-world templates include, preventing users from configuring output destinations (Postgres, Clickhouse, Parquet, custom sinks).

Changes

  • Integrated shared flow pattern: Added pre/post shared flow handling to match other hello-world generators (mantra, injective, starknet)

    • Added sharedFlowConfig with ValidChains: nil
    • Updated NextStep() to check IsPreSharedFlowDone() and call NextPostSharedFlowStep()
    • Delegated message handling to UpdatePreSharedFlowMsg() and UpdatePostSharedFlowMsg()
  • Removed redundant code: Eliminated direct handling of MsgStart, AskProjectName, InputProjectName, RunGenerate, ReturnGenerate, and sink-related messages now handled by shared flows

  • Updated tests: Added verification for initial block and sink choice steps

Flow impact

// Before
AskProjectNameAskChainNameAskInitialStartBlockTypeRunGenerate

// After  
AskProjectNameAskChainNameAskInitialStartBlockTypeAskSubstreamsConsumptionChoiceRunGenerate

Net -10 lines of code with cleaner separation of concerns.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

This change adds the missing sink question to the evm-hello-world
generator by integrating pre-shared and post-shared flow handling,
making it consistent with other EVM modules and hello-world generators.

Changes:
- Added sharedFlowConfig to enable pre/post shared flows
- Updated NextStep() to use IsPreSharedFlowDone and NextPostSharedFlowStep
- Updated Update() to delegate pre/post shared flow message handling
- Removed direct handling of MsgStart, AskProjectName, InputProjectName,
  RunGenerate, ReturnGenerate, InputSubstreamsConsumptionChoice, and
  InputSourceDownloaded (now handled by shared flow)
- Updated test to include initial block and sink choice steps

Fixes BLO-807

Co-authored-by: maoueh <123014+maoueh@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix missing sink question in evm-hello-world generator Add sink selection to evm-hello-world generator Jan 13, 2026
Copilot AI requested a review from maoueh January 13, 2026 15:12
@maoueh maoueh marked this pull request as ready for review January 13, 2026 16:31
@maoueh maoueh merged commit 3139b28 into develop Jan 13, 2026
1 check passed
@maoueh maoueh deleted the copilot/fix-missing-sink-question-blo-807 branch January 13, 2026 16:32
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.

2 participants