Skip to content

chore: remove deploy script, deployments.json, and their five dependencies - #33

Open
alejoamiras wants to merge 1 commit into
chore/less-dependenciesfrom
chore/remove-deploy-script
Open

chore: remove deploy script, deployments.json, and their five dependencies#33
alejoamiras wants to merge 1 commit into
chore/less-dependenciesfrom
chore/remove-deploy-script

Conversation

@alejoamiras

Copy link
Copy Markdown
Collaborator

Stacked on #28 (merge that first; if it squash-merges, this branch gets rebased before retargeting main).

What & why

The Foundation doesn't intend to publish canonical devnet example deployments, so the whole deploy chain goes:

  • src/deployments.json — inherited from the defi-wonderland fork (their feat: residency defi-wonderland/aztec-standards#95). Recorded pre-5.0 addresses, unshipped since d7637ef, no in-repo reader, zero public consumers on GitHub code search.
  • scripts/deploy.ts (+ deploy-config.ts, constants.ts, the deploy script) — per its original PR, "not meant for a productive environment"; broken since 4.2.0 with nobody noticing; never invoked by CI; unrelated to benchmarks (those deploy their own instances via setupTestSuite).

Why five dependencies fall out

Each of these had scripts/deploy.ts as its only consumer (verified by exhaustive import audit — all import forms, subpaths, workflows): commander (its CLI), dotenv (its .env load), tsx (its runner via the deploy script), @aztec/accounts (deriveSecretKeyFromSigningKey), @aztec/noir-contracts.js (SponsoredFPC registration). With the script deleted they're removable with zero replacement code. @aztec/accounts/dotenv/commander remain in the lockfile as transitives of the Aztec SDK; aztec-benchmark ships its own pinned tsx internally.

Also trimmed: deploy-only vars from .env.example (NODE_URL stays — tests use it), a stale packaging comment in build-package.sh, and a stale deploy reference in the bump-aztec-version skill doc.

Validation

yarn install --frozen-lockfile, yarn format:check, and a repo-wide dangling-reference sweep all pass; CI/release workflows and READMEs never referenced the deploy chain. Codex-reviewed (1 round): approved; its one finding (stale skill-doc line) is fixed in this diff.

🤖 Generated with Claude Code

…ncies

The Foundation does not intend to publish canonical devnet example
deployments. deployments.json (inherited from the defi-wonderland fork,
PR defi-wonderland#95 there) recorded pre-5.0 addresses, was unshipped since d7637ef,
and has no reader in-repo or public consumer on GitHub. The deploy
script (their PR defi-wonderland#296, explicitly 'not meant for a productive
environment') had been broken since 4.2.0 with nobody noticing, is
never invoked by CI, and is unrelated to benchmarks, which deploy their
own instances via setupTestSuite.

With the deploy chain gone, its exclusive dependencies leave with it:
commander, dotenv, tsx, @aztec/accounts, @aztec/noir-contracts.js.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Benchmark Comparison

CPU Cores RAM Arch
AMD EPYC 7763 64-Core Processor 4 16 GiB x64

Contract: escrow

🚦 Function Gates DA Gas L2 Gas Proving Time (ms)
Base PR Diff Base PR Diff Base PR Diff Base PR Diff
(partial) withdraw 485,780 485,780 3,744 3,744 587,800 587,800 13,939 14,170 +231 (+1.7%)
withdraw 330,054 330,054 832 832 499,700 499,700 11,357 11,352 -5 (-0.0%)
withdraw_nft 378,231 378,231 1,440 1,440 527,400 527,400 12,433 12,503 +70 (+0.6%)

Contract: logic

🚦 Function Gates DA Gas L2 Gas Proving Time (ms)
Base PR Diff Base PR Diff Base PR Diff Base PR Diff
get_escrow 390,336 390,336 192 192 456,000 456,000 12,570 12,603 +33 (+0.3%)
secret_key_to_public_keys 387,695 387,695 192 192 456,000 456,000 12,461 12,649 +188 (+1.5%)
share_escrow 304,211 304,211 1,952 1,952 520,700 520,700 11,060 11,249 +189 (+1.7%)

Contract: multitoken

🚦 Function Gates DA Gas L2 Gas Proving Time (ms)
Base PR Diff Base PR Diff Base PR Diff Base PR Diff
burn_private 260,232 260,232 832 832 499,700 499,700 10,066 10,245 +179 (+1.8%)
burn_public 223,800 223,800 416 416 638,292 638,292 9,691 9,856 +165 (+1.7%)
initialize_transfer_commitment 225,054 225,054 768 768 474,500 474,500 9,706 9,813 +107 (+1.1%)
mint_to_private 297,795 297,795 1,408 1,408 511,400 511,400 10,944 11,266 +322 (+2.9%)
mint_to_public 223,800 223,800 416 416 637,800 637,800 9,748 9,884 +136 (+1.4%)
transfer_private_to_commitment 263,571 263,571 1,024 1,024 511,400 511,400 10,101 10,259 +158 (+1.6%)
transfer_private_to_private 336,124 336,124 2,048 2,048 555,100 555,100 11,422 11,654 +232 (+2.0%)
transfer_private_to_public 306,785 306,785 1,056 1,056 714,677 714,677 11,033 11,286 +253 (+2.3%)
transfer_public_to_commitment 223,800 223,800 640 640 663,516 663,516 9,665 9,818 +153 (+1.6%)
transfer_public_to_private 298,556 298,556 1,024 1,024 683,958 683,958 10,824 11,039 +215 (+2.0%)
transfer_public_to_public 223,800 223,800 480 480 673,505 673,505 9,692 9,900 +208 (+2.1%)

Contract: nft

🚦 Function Gates DA Gas L2 Gas Proving Time (ms)
Base PR Diff Base PR Diff Base PR Diff Base PR Diff
burn_private 275,232 275,232 416 416 661,052 661,052 10,529 10,797 +268 (+2.5%)
burn_public 223,800 223,800 448 448 670,034 670,034 9,835 10,037 +202 (+2.1%)
mint_to_private 341,272 341,272 1,600 1,600 735,342 735,342 11,396 12,008 +612 (+5.4%)
mint_to_public 223,800 223,800 448 448 670,718 670,718 9,638 10,132 +494 (+5.1%)
transfer_private_to_private 249,433 249,433 832 832 499,700 499,700 10,104 10,313 +209 (+2.1%)
transfer_private_to_public 275,261 275,261 416 416 659,258 659,258 10,617 11,107 +490 (+4.6%)
transfer_public_to_private 292,557 292,557 992 992 683,268 683,268 10,902 11,053 +151 (+1.4%)
transfer_public_to_public 223,800 223,800 384 384 633,285 633,285 9,775 10,032 +257 (+2.6%)

Contract: token

🚦 Function Gates DA Gas L2 Gas Proving Time (ms)
Base PR Diff Base PR Diff Base PR Diff Base PR Diff
burn_private 303,054 303,054 1,024 1,024 713,957 713,957 10,827 11,293 +466 (+4.3%)
burn_public 223,800 223,800 448 448 672,632 672,632 9,654 9,895 +241 (+2.5%)
initialize_transfer_commitment 225,054 225,054 768 768 474,500 474,500 9,523 9,918 +395 (+4.1%)
mint_to_private 355,507 355,507 2,144 2,144 738,070 738,070 11,816 11,912 +96 (+0.8%)
mint_to_public 223,800 223,800 448 448 672,227 672,227 9,763 9,717 -46 (-0.5%)
transfer_private_to_commitment 259,896 259,896 992 992 511,400 511,400 10,192 10,444 +252 (+2.5%)
transfer_private_to_private 343,699 343,699 2,592 2,592 557,600 557,600 11,431 11,655 +224 (+2.0%)
transfer_private_to_public 303,110 303,110 1,024 1,024 714,023 714,023 10,938 11,072 +134 (+1.2%)
transfer_private_to_public_with_commitment 307,280 307,280 1,600 1,600 747,323 747,323 11,133 11,072 -61 (-0.5%)
transfer_public_to_commitment 223,800 223,800 576 576 662,529 662,529 9,596 10,080 +484 (+5.0%)
transfer_public_to_private 296,520 296,520 992 992 683,304 683,304 10,824 11,031 +207 (+1.9%)
transfer_public_to_public 223,800 223,800 448 448 672,548 672,548 9,661 10,112 +451 (+4.7%)

Contract: vault

🚦 Function Gates DA Gas L2 Gas Proving Time (ms)
Base PR Diff Base PR Diff Base PR Diff Base PR Diff
deposit_private_to_private 507,983 507,983 1,312 1,312 878,248 878,248 14,300 14,305 +5 (+0.0%)
deposit_private_to_private_exact 611,708 611,708 1,888 1,888 915,316 915,316 16,186 16,180 -6 (-0.0%)
deposit_private_to_public 435,487 435,487 768 768 862,273 862,273 13,167 13,145 -22 (-0.2%)
deposit_public_to_private 424,931 424,931 1,984 1,984 965,045 965,045 13,027 13,116 +89 (+0.7%)
deposit_public_to_private_exact 424,942 424,942 1,952 1,952 949,469 949,469 13,023 13,062 +39 (+0.3%)
deposit_public_to_public 223,800 223,800 832 832 897,563 897,563 9,652 9,744 +92 (+1.0%)
issue_private_to_private_exact 611,708 611,708 1,888 1,888 915,976 915,976 16,235 16,247 +12 (+0.1%)
issue_private_to_public_exact 484,222 484,222 1,344 1,344 899,998 899,998 13,982 14,030 +48 (+0.3%)
issue_public_to_private 346,383 346,383 1,376 1,376 921,661 921,661 11,675 11,598 -77 (-0.7%)
issue_public_to_public 223,800 223,800 832 832 898,253 898,253 9,846 9,845 -1 (-0.0%)
redeem_private_to_private_exact 614,712 614,712 1,888 1,888 915,823 915,823 16,192 16,092 -100 (-0.6%)
redeem_private_to_public 435,430 435,430 768 768 862,717 862,717 13,104 13,075 -29 (-0.2%)
redeem_public_to_private_exact 428,003 428,003 1,952 1,952 949,790 949,790 13,111 13,049 -62 (-0.5%)
redeem_public_to_public 223,800 223,800 832 832 898,085 898,085 9,758 9,675 -83 (-0.9%)
withdraw_private_to_private 510,987 510,987 1,312 1,312 878,458 878,458 14,198 14,279 +81 (+0.6%)
withdraw_private_to_private_exact 614,712 614,712 1,888 1,888 915,769 915,769 16,243 16,188 -55 (-0.3%)
withdraw_private_to_public_exact 484,165 484,165 1,344 1,344 900,232 900,232 13,951 13,977 +26 (+0.2%)
withdraw_public_to_private 441,260 441,260 2,528 2,528 967,356 967,356 13,305 13,425 +120 (+0.9%)
withdraw_public_to_public 223,800 223,800 832 832 898,388 898,388 9,682 9,802 +120 (+1.2%)

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.

1 participant