Skip to content

chore: migrate all examples to arcium v0.10.4#73

Open
arihantbansal wants to merge 16 commits into
mainfrom
migrate/v0.10.4
Open

chore: migrate all examples to arcium v0.10.4#73
arihantbansal wants to merge 16 commits into
mainfrom
migrate/v0.10.4

Conversation

@arihantbansal

@arihantbansal arihantbansal commented May 28, 2026

Copy link
Copy Markdown
Member

Summary

Migrates all examples from Arcium 0.9.6 to 0.10.4, Anchor 0.32.1 to 1.0.2, Solana CLI 2.3.0 to 3.1.10, and Node.js 20 to 24.10.0.

Changes

  • Switch TS examples from @coral-xyz/anchor to @anchor-lang/core.
  • Bump @arcium-hq/client, @arcium-hq/reader, arcium-client, arcium-macros, arcium-anchor, and arcis to 0.10.4.
  • Regenerate Cargo.lock and yarn.lock files.
  • Update programs for Arcium/Anchor API changes: init_computation_def, boxed accounts, sysvar account type/ID, and PDA macro arity.
  • Keep restored RPS, voting, and auction coverage enabled.
  • Fix scripts/sync-version.sh portability and box the remaining coinflip callback cluster account.

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 PR migrates the Arcium examples to the newer Arcium/Anchor/Solana toolchain and updates the example programs, tests, dependency manifests, lockfiles, CI, and version-sync script accordingly.

Changes:

  • Bumps Arcium Rust/TS packages to 0.10.4 and Anchor packages to 1.0.2 / @anchor-lang/core.
  • Updates on-chain program code for new Arcium/Anchor APIs, PDA macros, sysvar handling, and boxed accounts.
  • Adjusts tests, CI, and sync tooling for longer finalization windows, larger mempool usage, and portable version updates.

Reviewed changes

Copilot reviewed 50 out of 66 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.github/workflows/test-examples.yaml Updates setup action and test command for Arcium 0.10.4.
scripts/sync-version.sh Makes version updates portable and includes reader package syncing.
blackjack/Anchor.toml Updates Anchor config structure for the migrated example.
blackjack/encrypted-ixs/Cargo.toml Bumps encrypted instruction dependency to arcis 0.10.4.
blackjack/package.json Switches TS dependencies to Arcium 0.10.4 and Anchor core.
blackjack/programs/blackjack/Cargo.toml Bumps Rust dependencies to Anchor 1.0.2 and Arcium 0.10.4.
blackjack/programs/blackjack/src/lib.rs Migrates program accounts and computation definition APIs.
blackjack/tests/blackjack.ts Uses Anchor core and longer computation finalization timeout.
blackjack/yarn.lock Regenerates TS dependency lockfile.
coinflip/Anchor.toml Updates Anchor config structure for the migrated example.
coinflip/encrypted-ixs/Cargo.toml Bumps encrypted instruction dependency to arcis 0.10.4.
coinflip/package.json Switches TS dependencies to Arcium 0.10.4 and Anchor core.
coinflip/programs/coinflip/Cargo.toml Bumps Rust dependencies to Anchor 1.0.2 and Arcium 0.10.4.
coinflip/programs/coinflip/src/lib.rs Migrates program accounts and computation definition APIs.
coinflip/tests/coinflip.ts Uses Anchor core and longer computation finalization timeout.
coinflip/yarn.lock Regenerates TS dependency lockfile.
ed25519/Anchor.toml Updates Anchor config structure for the migrated example.
ed25519/encrypted-ixs/Cargo.toml Bumps encrypted instruction dependency to arcis 0.10.4.
ed25519/package.json Switches TS dependencies to Arcium 0.10.4 and Anchor core.
ed25519/programs/ed_25519/Cargo.toml Bumps Rust dependencies to Anchor 1.0.2 and Arcium 0.10.4.
ed25519/programs/ed_25519/src/lib.rs Migrates program accounts and computation definition APIs.
ed25519/tests/ed_25519.ts Uses Anchor core and longer computation finalization timeout.
ed25519/yarn.lock Regenerates TS dependency lockfile.
rock_paper_scissors/against-house/Anchor.toml Updates Anchor config structure for the migrated example.
rock_paper_scissors/against-house/encrypted-ixs/Cargo.toml Bumps encrypted instruction dependency to arcis 0.10.4.
rock_paper_scissors/against-house/package.json Switches TS dependencies to Arcium 0.10.4 and Anchor core.
rock_paper_scissors/against-house/programs/rock_paper_scissors_against_rng/Cargo.toml Bumps Rust dependencies to Anchor 1.0.2 and Arcium 0.10.4.
rock_paper_scissors/against-house/programs/rock_paper_scissors_against_rng/src/lib.rs Migrates program accounts and computation definition APIs.
rock_paper_scissors/against-house/tests/rock_paper_scissors_against_rng.ts Uses Anchor core and longer computation finalization timeout.
rock_paper_scissors/against-house/yarn.lock Regenerates TS dependency lockfile.
rock_paper_scissors/against-player/Anchor.toml Updates Anchor config structure for the migrated example.
rock_paper_scissors/against-player/encrypted-ixs/Cargo.toml Bumps encrypted instruction dependency to arcis 0.10.4.
rock_paper_scissors/against-player/package.json Switches TS dependencies to Arcium 0.10.4 and Anchor core.
rock_paper_scissors/against-player/programs/rock_paper_scissors/Cargo.toml Bumps Rust dependencies to Anchor 1.0.2 and Arcium 0.10.4.
rock_paper_scissors/against-player/programs/rock_paper_scissors/src/lib.rs Migrates program accounts and computation definition APIs.
rock_paper_scissors/against-player/tests/rock_paper_scissors.ts Uses Anchor core and longer computation finalization timeout.
rock_paper_scissors/against-player/yarn.lock Regenerates TS dependency lockfile.
sealed_bid_auction/Anchor.toml Updates Anchor config structure for the migrated example.
sealed_bid_auction/encrypted-ixs/Cargo.toml Bumps encrypted instruction dependency to arcis 0.10.4.
sealed_bid_auction/package.json Switches TS dependencies to Arcium 0.10.4 and Anchor core.
sealed_bid_auction/programs/sealed_bid_auction/Cargo.toml Bumps Rust dependencies to Anchor 1.0.2 and Arcium 0.10.4.
sealed_bid_auction/programs/sealed_bid_auction/src/lib.rs Migrates program accounts and computation definition APIs.
sealed_bid_auction/tests/sealed_bid_auction.ts Uses Anchor core and longer computation finalization timeout.
sealed_bid_auction/yarn.lock Regenerates TS dependency lockfile.
share_medical_records/Anchor.toml Updates Anchor config structure for the migrated example.
share_medical_records/encrypted-ixs/Cargo.toml Bumps encrypted instruction dependency to arcis 0.10.4.
share_medical_records/package.json Switches TS dependencies to Arcium 0.10.4 and Anchor core.
share_medical_records/programs/share_medical_records/Cargo.toml Bumps Rust dependencies to Anchor 1.0.2 and Arcium 0.10.4.
share_medical_records/programs/share_medical_records/src/lib.rs Migrates program accounts and computation definition APIs.
share_medical_records/tests/share_medical_records.ts Uses Anchor core and longer computation finalization timeout.
share_medical_records/yarn.lock Regenerates TS dependency lockfile.
voting/Anchor.toml Updates Anchor config structure for the migrated example.
voting/encrypted-ixs/Cargo.toml Bumps encrypted instruction dependency to arcis 0.10.4.
voting/package.json Switches TS dependencies to Arcium 0.10.4 and Anchor core.
voting/programs/voting/Cargo.toml Bumps Rust dependencies to Anchor 1.0.2 and Arcium 0.10.4.
voting/programs/voting/src/lib.rs Migrates program accounts and computation definition APIs.
voting/tests/voting.ts Uses Anchor core and longer computation finalization timeout.
voting/yarn.lock Regenerates TS dependency lockfile.

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

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

Copilot reviewed 50 out of 66 changed files in this pull request and generated 4 comments.

program.programId,
"confirmed"
"confirmed",
300_000
program.programId,
"confirmed"
"confirmed",
300_000
Comment thread voting/tests/voting.ts
program.programId,
"confirmed"
"confirmed",
300_000
program.programId,
"confirmed"
"confirmed",
300_000
@arihantbansal arihantbansal marked this pull request as draft May 29, 2026 04:01
@arihantbansal arihantbansal marked this pull request as ready for review June 6, 2026 19:26
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