chore: migrate all examples to arcium v0.10.4#73
Open
arihantbansal wants to merge 16 commits into
Open
Conversation
There was a problem hiding this comment.
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.4and Anchor packages to1.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.
| program.programId, | ||
| "confirmed" | ||
| "confirmed", | ||
| 300_000 |
| program.programId, | ||
| "confirmed" | ||
| "confirmed", | ||
| 300_000 |
| program.programId, | ||
| "confirmed" | ||
| "confirmed", | ||
| 300_000 |
| program.programId, | ||
| "confirmed" | ||
| "confirmed", | ||
| 300_000 |
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
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
@coral-xyz/anchorto@anchor-lang/core.@arcium-hq/client,@arcium-hq/reader,arcium-client,arcium-macros,arcium-anchor, andarcisto0.10.4.Cargo.lockandyarn.lockfiles.init_computation_def, boxed accounts, sysvar account type/ID, and PDA macro arity.scripts/sync-version.shportability and box the remainingcoinflipcallback cluster account.