Skip to content

chore: migrate examples to arcium v0.12.0 - #74

Merged
arihantbansal merged 20 commits into
mainfrom
migrate/v0.12.0
Jul 3, 2026
Merged

arihantbansal merged 20 commits into
mainfrom
migrate/v0.12.0

Conversation

@arihantbansal

@arihantbansal arihantbansal commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Migrate the examples to Arcium v0.12.0 / Anchor v1 while keeping the test flow aligned with main/default Arcium behavior.

Changes

  • Bump Arcium TS/Rust/Arcis deps and setup-arcium action to v0.12.0.
  • Apply required v0.10-v0.12 program/client migrations: Anchor v1 imports, init_computation_def, callback CU arg, boxed Arcium queue accounts, and updated sysvar account handling.
  • Remove obsolete Anchor v1 config ([registry], legacy [test], empty [hooks]) and previous debug-only CI/test drift.
  • Exclude generated build/ from direct TypeScript checks and construct the ed25519 packer directly to avoid the current generated circuits typing issue.
  • Keep Cargo setup retries for release CI reliability.

Verification: RUSTC_WRAPPER= arcium build passed for all examples; per-example yarn lint, yarn tsc --noEmit, and cargo +nightly fmt --all --check passed; fnm exec --using 24.16.0 arcium test --skip-build passed in coinflip; PR checks are green.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request migrates the example projects in this repository to Arcium v0.12.0 and Anchor v1, updating both TypeScript client/tests and Rust programs so that examples continue to build and test against the current Arcium/Anchor APIs.

Changes:

  • Bumped Arcium (TS/Rust/Arcis) dependencies and the setup-arcium GitHub Action to v0.12.0.
  • Updated Rust programs for Arcium/Anchor API migrations (e.g., init_computation_def, updated queue_computation signature, boxed accounts, instructions sysvar handling).
  • Adjusted TypeScript configs/tests to Anchor v1 (@anchor-lang/core) and excluded generated build/ outputs from TS compilation.

Reviewed changes

Copilot reviewed 58 out of 74 changed files in this pull request and generated no comments.

Show a summary per file
File Description
voting/yarn.lock Locks updated TS dependency graph for Arcium v0.12.0 / Anchor v1.
voting/tsconfig.json Excludes generated build/ from TypeScript checks.
voting/tests/voting.ts Migrates Anchor TS imports to @anchor-lang/core.
voting/programs/voting/src/lib.rs Updates program logic/accounts for Arcium v0.12.0 + sysvar and CU arg changes.
voting/programs/voting/Cargo.toml Bumps Anchor + Arcium Rust dependencies to v1 / v0.12.0.
voting/package.json Updates JS dependencies for Arcium v0.12.0 and Anchor v1.
voting/encrypted-ixs/Cargo.toml Bumps arcis dependency to v0.12.0.
voting/Anchor.toml Updates program ID and removes legacy Anchor config sections.
share_medical_records/yarn.lock Locks updated TS dependency graph for Arcium v0.12.0 / Anchor v1.
share_medical_records/tsconfig.json Excludes generated build/ from TypeScript checks.
share_medical_records/tests/share_medical_records.ts Migrates Anchor TS imports to @anchor-lang/core.
share_medical_records/programs/share_medical_records/src/lib.rs Updates program logic/accounts for Arcium v0.12.0 + sysvar and CU arg changes.
share_medical_records/programs/share_medical_records/Cargo.toml Bumps Anchor + Arcium Rust dependencies to v1 / v0.12.0.
share_medical_records/package.json Updates JS dependencies for Arcium v0.12.0 and Anchor v1.
share_medical_records/encrypted-ixs/Cargo.toml Bumps arcis dependency to v0.12.0.
share_medical_records/Anchor.toml Updates program ID and removes legacy Anchor config sections.
sealed_bid_auction/yarn.lock Locks updated TS dependency graph for Arcium v0.12.0 / Anchor v1.
sealed_bid_auction/tsconfig.json Excludes generated build/ from TypeScript checks.
sealed_bid_auction/tests/sealed_bid_auction.ts Migrates Anchor TS imports to @anchor-lang/core.
sealed_bid_auction/programs/sealed_bid_auction/src/lib.rs Updates program logic/accounts for Arcium v0.12.0 + sysvar and CU arg changes.
sealed_bid_auction/programs/sealed_bid_auction/Cargo.toml Bumps Anchor + Arcium Rust dependencies to v1 / v0.12.0.
sealed_bid_auction/package.json Updates JS dependencies for Arcium v0.12.0 and Anchor v1.
sealed_bid_auction/encrypted-ixs/Cargo.toml Bumps arcis dependency to v0.12.0.
sealed_bid_auction/Anchor.toml Updates program ID and removes legacy Anchor config sections.
rock_paper_scissors/against-player/yarn.lock Locks updated TS dependency graph for Arcium v0.12.0 / Anchor v1.
rock_paper_scissors/against-player/tsconfig.json Excludes generated build/ from TypeScript checks.
rock_paper_scissors/against-player/tests/rock_paper_scissors.ts Migrates Anchor TS imports to @anchor-lang/core.
rock_paper_scissors/against-player/programs/rock_paper_scissors/src/lib.rs Updates program logic/accounts for Arcium v0.12.0 + sysvar and CU arg changes.
rock_paper_scissors/against-player/programs/rock_paper_scissors/Cargo.toml Bumps Anchor + Arcium Rust dependencies to v1 / v0.12.0.
rock_paper_scissors/against-player/package.json Updates JS dependencies for Arcium v0.12.0 and Anchor v1.
rock_paper_scissors/against-player/encrypted-ixs/Cargo.toml Bumps arcis dependency to v0.12.0.
rock_paper_scissors/against-player/Anchor.toml Updates program ID and removes legacy Anchor config sections.
rock_paper_scissors/against-house/tsconfig.json Excludes generated build/ from TypeScript checks.
rock_paper_scissors/against-house/tests/rock_paper_scissors_against_rng.ts Migrates Anchor TS imports to @anchor-lang/core.
rock_paper_scissors/against-house/programs/rock_paper_scissors_against_rng/src/lib.rs Updates program logic/accounts for Arcium v0.12.0 + sysvar and CU arg changes.
rock_paper_scissors/against-house/programs/rock_paper_scissors_against_rng/Cargo.toml Bumps Anchor + Arcium Rust dependencies to v1 / v0.12.0.
rock_paper_scissors/against-house/package.json Updates JS dependencies for Arcium v0.12.0 and Anchor v1.
rock_paper_scissors/against-house/encrypted-ixs/Cargo.toml Bumps arcis dependency to v0.12.0.
rock_paper_scissors/against-house/Anchor.toml Updates program ID and removes legacy Anchor config sections.
ed25519/yarn.lock Locks updated TS dependency graph for Arcium v0.12.0 / Anchor v1.
ed25519/tsconfig.json Excludes generated build/ from TypeScript checks.
ed25519/tests/ed_25519.ts Migrates Anchor TS imports and replaces generated packer usage with createPacker.
ed25519/programs/ed_25519/src/lib.rs Updates program logic/accounts for Arcium v0.12.0 + sysvar and CU arg changes.
ed25519/programs/ed_25519/Cargo.toml Bumps Anchor + Arcium Rust dependencies to v1 / v0.12.0.
ed25519/package.json Updates JS dependencies for Arcium v0.12.0 and Anchor v1.
ed25519/encrypted-ixs/Cargo.toml Bumps arcis dependency to v0.12.0.
ed25519/Anchor.toml Updates program ID and removes legacy Anchor config sections.
coinflip/yarn.lock Locks updated TS dependency graph for Arcium v0.12.0 / Anchor v1.
coinflip/tsconfig.json Excludes generated build/ from TypeScript checks.
coinflip/tests/coinflip.ts Migrates Anchor TS imports to @anchor-lang/core.
coinflip/programs/coinflip/src/lib.rs Updates program logic/accounts for Arcium v0.12.0 + sysvar and CU arg changes.
coinflip/programs/coinflip/Cargo.toml Bumps Anchor + Arcium Rust dependencies to v1 / v0.12.0.
coinflip/package.json Updates JS dependencies for Arcium v0.12.0 and Anchor v1.
coinflip/encrypted-ixs/Cargo.toml Bumps arcis dependency to v0.12.0.
coinflip/Anchor.toml Updates program ID and removes legacy Anchor config sections.
blackjack/yarn.lock Locks updated TS dependency graph for Arcium v0.12.0 / Anchor v1.
blackjack/tsconfig.json Excludes generated build/ from TypeScript checks.
blackjack/tests/blackjack.ts Migrates Anchor TS imports and updates CompDef initialization checks to use fetchNullable.
blackjack/programs/blackjack/src/lib.rs Updates program logic/accounts for Arcium v0.12.0 + sysvar and CU arg changes.
blackjack/programs/blackjack/Cargo.toml Bumps Anchor + Arcium Rust dependencies to v1 / v0.12.0.
blackjack/package.json Updates JS dependencies for Arcium v0.12.0 and Anchor v1.
blackjack/encrypted-ixs/Cargo.toml Bumps arcis dependency to v0.12.0.
blackjack/Anchor.toml Updates program ID and removes legacy Anchor config sections.
scripts/sync-version.sh Makes version sync script cross-platform for sed and updates it to handle @arcium-hq/reader and exact pins.
.github/workflows/test-examples.yaml Updates CI to Arcium v0.12.0 and adds Cargo network retry/multiplexing settings.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@arihantbansal
arihantbansal merged commit 09901c3 into main Jul 3, 2026
10 checks passed
@arihantbansal
arihantbansal deleted the migrate/v0.12.0 branch July 3, 2026 19:50
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