Skip to content

feat(starknet): make deploy_v2_syscall usable for starknet - #10216

Draft
ron-starkware wants to merge 1 commit into
ron/deploy-v2/corelibfrom
ron/deploy-v2/make-usable
Draft

feat(starknet): make deploy_v2_syscall usable for starknet#10216
ron-starkware wants to merge 1 commit into
ron/deploy-v2/corelibfrom
ron/deploy-v2/make-usable

Conversation

@ron-starkware

Copy link
Copy Markdown

Stack — part 3 of 3 (base: ron/deploy-v2/corelib). ⚠️ Hold for the release decisionaudited.json membership is what makes the libfunc declarable on mainnet and must wait for the measured-gas follow-up on the sequencer side.

  • deploy_v2_syscall added to audited.json.
  • Covered in the libfuncs_coverage contract; regenerated .sierra / .contract_class.json / .compiled_contract_class.json artifacts + the compiled-class-hash golden (the large diff is the mechanical statement/var reindex from adding one libfunc — same as the meta_tx_v0 coverage PR).
  • Cairo-level test_deploy_v2_differs_from_deploy: deploys the same class via deploy_syscall and deploy_v2_syscall, asserts the addresses differ (Blake-escaped vs Pedersen) and the contract at the Blake-escaped address works — pinning corelib → sierra → casm → runner incl. the DeployV2 selector string.

🤖 Generated with Claude Code

Add `deploy_v2_syscall` to the audited allowed-libfuncs list, cover it in the
libfuncs_coverage contract (regenerating the sierra / contract_class /
compiled_contract_class artifacts and the compiled-class-hash golden), and add a
cairo-level deployment test.

The deployment test (`test_deploy_v2_differs_from_deploy`) deploys the same
class via `deploy_syscall` and `deploy_v2_syscall` and asserts the addresses
differ (Blake-escaped vs Pedersen) and that the contract deployed at the
Blake-escaped address works — pinning corelib -> sierra -> casm -> runner,
including the `DeployV2` selector string.

NOTE: hold this PR for the release decision — `audited.json` membership is what
makes the libfunc declarable on mainnet and must wait for the measured-gas
follow-up on the sequencer side (see the deploy_v2 handoff).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@reviewable-StarkWare

Copy link
Copy Markdown

This change is Reviewable

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