Skip to content

Port block-list/pinocchio CLI to solana 3.x#94

Merged
mikemaccana merged 2 commits into
mainfrom
claude/solana-examples-ci-asm-jb73x0
Jul 2, 2026
Merged

Port block-list/pinocchio CLI to solana 3.x#94
mikemaccana merged 2 commits into
mainfrom
claude/solana-examples-ci-asm-jb73x0

Conversation

@mikemaccana

Copy link
Copy Markdown
Collaborator

Follow-up to the litesvm 0.13.1 / solana 3.x migration (#93). The block-list/pinocchio CLI was still on solana-2.x crates and no longer compiled against the ported block-list-client.

Changes

  • cli/Cargo.toml: bump solana-* 2.23.0 (solana-sdk, solana-client, solana-clap-v3-utils, solana-cli-config, solana-logger, solana-remote-wallet) and add solana-commitment-config = "3.0.0"; bump spl-token-client 0.130.18.0 (the release aligned with the spl-token-2022 10.x used by the ported program/test — 0.19.x diverges to spl-token-2022 ^11), spl-tlv-account-resolution 0.8.10.11.0, spl-transfer-hook-interface 0.8.22.0.0.
  • cli/src/main.rs: solana-sdk 3.0 no longer re-exports commitment_config, so import CommitmentConfig from solana-commitment-config. No other API or behaviour changes — all other call sites compiled unchanged against the 3.x APIs.

Verification

Validated with cargo check --manifest-path cli/Cargo.toml (zero errors) against the merged client on main. Note: no CI workflow builds this CLI, so it is verified by local compile only. Building the CLI also requires libudev-dev on the host (for solana-remote-wallet's hidapi).

🤖 Generated with Claude Code


Generated by Claude Code

Claude added 2 commits July 1, 2026 20:14
Follow-up to the litesvm 0.13.1 / solana 3.x migration: the CLI was still on
solana-2.x crates and no longer compiled against the ported block-list-client.

- cli/Cargo.toml: bump solana-* 2.2 -> 3.0 (solana-sdk, solana-client,
  solana-clap-v3-utils, solana-cli-config, solana-logger, solana-remote-wallet)
  and add solana-commitment-config 3.0; bump spl-token-client 0.13 -> 0.18.0
  (the release aligned with spl-token-2022 10.x used by the ported program/
  test), spl-tlv-account-resolution 0.8.1 -> 0.11.0, spl-transfer-hook-interface
  0.8.2 -> 2.0.0
- cli/src/main.rs: solana-sdk 3.0 dropped the commitment_config re-export, so
  import CommitmentConfig from solana-commitment-config. No other API or
  behaviour changes.

Verified with `cargo check --manifest-path cli/Cargo.toml` (zero errors). The
CLI is not built by CI, so this is validated locally.
The block-list/pinocchio project ships a `cli/` host binary that no CI
workflow built, so its client-facing code could break (e.g. against a
dependency bump) without CI noticing. Build any project's `cli/` explicitly
in build_and_test, after the program build/tests.

libudev-dev is installed because hidapi (pulled in transitively by
solana-remote-wallet) needs libudev at build time and the runner image does
not ship the -dev package. The step is guarded on a `cli/` directory
existing, so it only runs for projects that have one (currently just
block-list).
@mikemaccana mikemaccana merged commit b9771e1 into main Jul 2, 2026
29 checks passed
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