Repository navigation
chore: migrate examples to arcium v0.12.0 - #74
Merged
Merged
Conversation
There was a problem hiding this comment.
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-arciumGitHub Action to v0.12.0. - Updated Rust programs for Arcium/Anchor API migrations (e.g.,
init_computation_def, updatedqueue_computationsignature, boxed accounts, instructions sysvar handling). - Adjusted TypeScript configs/tests to Anchor v1 (
@anchor-lang/core) and excluded generatedbuild/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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrate the examples to Arcium v0.12.0 / Anchor v1 while keeping the test flow aligned with main/default Arcium behavior.
Changes
init_computation_def, callback CU arg, boxed Arcium queue accounts, and updated sysvar account handling.[registry], legacy[test], empty[hooks]) and previous debug-only CI/test drift.build/from direct TypeScript checks and construct the ed25519 packer directly to avoid the current generated circuits typing issue.Verification:
RUSTC_WRAPPER= arcium buildpassed for all examples; per-exampleyarn lint,yarn tsc --noEmit, andcargo +nightly fmt --all --checkpassed;fnm exec --using 24.16.0 arcium test --skip-buildpassed incoinflip; PR checks are green.