Skip to content

[wave 3] core: cross-chain dependency refs (contract on chain B references a deployment on chain A) #159

Description

@robercano

What

Let a spec targeting network B declare an arg that resolves to a contract deployed on network A (e.g. a bridge adapter on an L2 taking the L1 counterpart's address). Multi-network deploys and per-network journals already exist; this adds the cross-network edge to the spec graph.

Scope sketch

  • Spec: a crossRef arg kind {kind:"crossRef", network, id} (or extend RefArg with an optional network), validated against the declared network set.
  • Resolution: read the referenced address from the other network's journal/snapshot at compile/deploy time (via @redeploy/reader); hard error with a clear message if the source deployment hasn't landed yet — ordering across networks is the operator's responsibility in v1 (no cross-chain orchestrator).
  • Simulate/plan-diff: show cross-refs distinctly; studio graph rendering of cross-network edges is a follow-up issue.

Why

Near-universal need for L1/L2 systems; almost no deployment tool models it declaratively.

Metadata

Metadata

Assignees

No one assigned

    Labels

    module:core@redeploy/core deployment engineplannedOwner-approved for the autonomous loop (assigned ONLY by the owner)type:featureFeature work scoped to one module

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions