Skip to content

feat: use aztec codegen for typesafe contract definitions#355

Merged
dipkakwani merged 1 commit intomainfrom
feat/codegen
Apr 3, 2026
Merged

feat: use aztec codegen for typesafe contract definitions#355
dipkakwani merged 1 commit intomainfrom
feat/codegen

Conversation

@dipkakwani
Copy link
Copy Markdown
Member

@dipkakwani dipkakwani commented Apr 3, 2026

  • Adds a codegen script that runs aztec codegen target --outdir codegen -f to generate typed contract classes from compiled Noir artifacts
  • Replaces Contract.at(addr, artifact, wallet) with typed FPCMultiAssetContract.at(addr, wallet) (and similar) across SDK, contract-deployment, scripts/tests, and attestation service
  • Removes manual artifact loading (loadArtifact, requireDefaultArtifact, REQUIRED_ARTIFACTS, copy-artifacts) - typed classes bundle their own artifact

NOTE: Profiling benchmarks left as-is (they use runtime artifact introspection for multi-variant FPC support)

Closes #323

@dipkakwani dipkakwani force-pushed the feat/codegen branch 2 times, most recently from bb60146 to 117b2bd Compare April 3, 2026 06:58
@dipkakwani dipkakwani merged commit ef7fe01 into main Apr 3, 2026
13 of 15 checks passed
@dipkakwani dipkakwani deleted the feat/codegen branch April 3, 2026 08:25
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.

Use aztec codegen for typesafe contract definitions

1 participant