Skip to content

build(games): pinocchio-token 0.7, pinocchio-token-2022 0.4, codama 0.13 - #774

Merged
dev-jodee merged 1 commit into
mainfrom
deps/games-rust
Oct 28, 2026
Merged

dev-jodee merged 1 commit into
mainfrom
deps/games-rust

Conversation

@dev-jodee

Copy link
Copy Markdown
Collaborator

Last part of step 4 (Rust dependencies): the games' own workspaces.

Changes

  • pinocchio-token 0.6 → 0.7 (world-cup) and pinocchio-token-2022 0.3.1 → 0.4 (both). Gacha's prize-NFT CPIs move to the 0.7 constructors (InitializeMint2::new, MintTo::new, SetAuthority::new), with the program type supplied by the Token-2022 aliases rather than a token_program field. World-cup needed no code change.
  • codama =0.9.3 → =0.13.2 (exact pin kept, since it decides the committed IDL). Both IDLs are regenerated: empty arrays are omitted, omitted discriminator fields carry a structFieldDisplayNode (skip: always), and the root version is 1.8.0. The generated Rust clients are byte-identical.
  • Not changed: gacha's Light integration tests stay on light-program-test 0.23, the latest release, which still pins its own Solana 2.x and litesvm 0.7 stack (as the justfile documents).

Testing

  • Locally: cargo test --workspace --no-run, cargo clippy --workspace --all-targets -D warnings (the client excluded, as in the justfile) and cargo fmt --check for both games; cargo check --tests for the Light tests; generate-idl + generate-clients leave the committed clients unchanged.
  • Test runs are left to CI (just.yml: setup, check-generated, build, test).

AI disclosure

  • No AI tooling was used beyond editor autocomplete.
  • AI tooling was used. Tool and extent: Claude Code bumped the dependencies, ported the CPIs and regenerated the IDLs under maintainer direction.

- gacha's prize NFT CPIs use the pinocchio-token 0.7 constructors
  (InitializeMint2::new, MintTo::new, SetAuthority::new); the program
  type now comes from the Token-2022 aliases instead of a token_program
  field.
- codama 0.13.2 regenerates both IDLs: empty arrays are omitted, the
  omitted discriminator fields carry a skip display node, and the root
  version is 1.8.0. The generated Rust clients are unchanged.
- The Light integration tests stay on light-program-test 0.23, the latest
  release, which still pins its own Solana 2.x and litesvm stack.
@greptile-apps

greptile-apps Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable defects were found.

Summary

Updates token dependencies and pins Rust codama to =0.13.2 in both game workspaces.

  • Gacha prize mints use the newer Token-2022 constructors.
  • Both games publish IDLs in Codama’s newer format.

Reviews (1) · Last reviewed commit: "build(games): pinocchio-token 0.7, pinoc..." · Reviewed by Greptile

@dev-jodee
dev-jodee requested a review from amilz October 28, 2026 14:20
@dev-jodee
dev-jodee merged commit 657c56a into main Oct 28, 2026
28 checks passed
@dev-jodee
dev-jodee deleted the deps/games-rust branch October 28, 2026 15:30
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