Skip to content

apollo_starknet_os_program,starknet_os: add the deploy_v2 syscall to the OS - #14818

Draft
ron-starkware wants to merge 1 commit into
ron/contract-address/deploy-v2-syscallfrom
ron/contract-address/deploy-v2-os
Draft

apollo_starknet_os_program,starknet_os: add the deploy_v2 syscall to the OS#14818
ron-starkware wants to merge 1 commit into
ron/contract-address/deploy-v2-syscallfrom
ron/contract-address/deploy-v2-os

Conversation

@ron-starkware

@ron-starkware ron-starkware commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Stack — part 8 of 9 (base: #14817). Targets 0.14.5.

Implements deploy_v2 in the proving OS: execute_deploy_v2 derives with get_contract_address_blake_escaped (no pedersen builtin pointer), plus the selector, the dispatch arm and the generated DEPLOY_V2_*_GAS_COST constants, and the SNOS syscall-executor delegation.

Like deploy, deploy_v2 is excluded from the virtual OS, so the virtual-OS program hash is unchanged and the frozen stwo proof fixtures are untouched.

The dispatch arm is placed last in the OS syscall if-chain, just before the meta_tx fallthrough, so adding it costs no extra selector comparison to any pre-existing syscall — only meta_tx (the terminal fallthrough) pays, +2 steps (MetaTxV0 1307→1309, META_TX_V0_GAS_COST 168550→168750, in 0_14_5). An arm inserted mid-chain would have taxed every syscall after it.

🤖 Generated with Claude Code

@reviewable-StarkWare

Copy link
Copy Markdown

This change is Reviewable

@ron-starkware
ron-starkware force-pushed the ron/contract-address/deploy-v2-syscall branch from 7338586 to 806ae04 Compare July 15, 2026 10:00
@ron-starkware
ron-starkware force-pushed the ron/contract-address/deploy-v2-os branch from 1bddc85 to 0877f17 Compare July 15, 2026 10:00
@ron-starkware
ron-starkware force-pushed the ron/contract-address/deploy-v2-syscall branch from 806ae04 to dc34988 Compare July 15, 2026 10:17
@ron-starkware
ron-starkware force-pushed the ron/contract-address/deploy-v2-os branch 2 times, most recently from b6d936b to 294505a Compare July 15, 2026 11:38
@ron-starkware
ron-starkware force-pushed the ron/contract-address/deploy-v2-syscall branch 2 times, most recently from 5bd20a6 to 7e48036 Compare July 15, 2026 12:09
@ron-starkware
ron-starkware force-pushed the ron/contract-address/deploy-v2-os branch from 294505a to 0c7ce42 Compare July 15, 2026 12:09
@ron-starkware
ron-starkware force-pushed the ron/contract-address/deploy-v2-syscall branch from 7e48036 to f6d0ccb Compare July 15, 2026 12:42
@ron-starkware
ron-starkware force-pushed the ron/contract-address/deploy-v2-os branch 2 times, most recently from 138d0f2 to da54bae Compare July 19, 2026 09:19
@ron-starkware
ron-starkware force-pushed the ron/contract-address/deploy-v2-syscall branch from f6d0ccb to 4679c61 Compare July 19, 2026 09:19
@github-actions

Copy link
Copy Markdown

There hasn't been any activity on this pull request recently, and in order to prioritize active work, it has been marked as stale.
This PR will be closed and locked in 7 days if no further activity occurs.
Thank you for your contributions!

@ron-starkware
ron-starkware force-pushed the ron/contract-address/deploy-v2-os branch from da54bae to bce63c3 Compare August 31, 2026 13:09
@ron-starkware
ron-starkware force-pushed the ron/contract-address/deploy-v2-syscall branch from 4679c61 to 0018b4e Compare August 31, 2026 13:09
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