Skip to content

chore: finalize motoko/flying_ninja migration to icp-cli#1374

Draft
marc0olo wants to merge 7 commits into
masterfrom
chore/finalize-flying-ninja-migration
Draft

chore: finalize motoko/flying_ninja migration to icp-cli#1374
marc0olo wants to merge 7 commits into
masterfrom
chore/finalize-flying-ninja-migration

Conversation

@marc0olo

@marc0olo marc0olo commented Jun 10, 2026

Copy link
Copy Markdown
Member

Summary

Finalizes the icp-cli migration for motoko/flying_ninja and rust/flying_ninja (both previously had dual dfx/icp support).

Motoko:

  • Bump recipe @dfinity/motoko@v4.1.0v5.0.0 + @dfinity/asset-canister@v2.1.0v2.2.1; move backend config to mops.toml [canisters.backend]
  • Update mops.toml: moc 1.9.0, core 2.5.0, --default-persistent-actors; remove redundant persistent keyword; fix -W flag format
  • Remove dfx fallback from vite.config.js and actor.js; keep icp-cli path only
  • Add Makefile with tests; delete dfx.json, BUILD.md, .devcontainer/
  • README: rewrite per canonical structure; fix dapp→app

Rust:

  • Bump recipe to @dfinity/rust@v3.2.0 + @dfinity/asset-canister@v2.1.0v2.2.1
  • Bump ic-cdk 0.16 → 0.20, candid 0.10.10 → 0.10
  • Add Makefile with 4 tests (is_high_score, add_leaderboard_entry, get_leaderboard, get_randomness); delete dfx.json, BUILD.md
  • backend/backend.did committed (required for frontend bindings)

CI: New flying_ninja.yml workflow; both jobs on icp-dev-env-{motoko,rust}:0.3.2

Test plan

  • motoko-flying_ninja CI passes
  • rust-flying_ninja CI passes

🤖 Generated with Claude Code

marc0olo and others added 7 commits June 10, 2026 23:49
Upgrades icp.yaml to motoko@v5.0.0 and asset-canister@v2.2.1, updates
mops.toml toolchain to moc 1.9.0 / core 2.5.0 with correct args format,
removes dfx fallbacks from vite.config.js and actor.js, adds Makefile
with tests for all public functions, adds CI workflow, rewrites README,
and deletes dfx.json, BUILD.md, and .devcontainer/.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Bump @dfinity/asset-canister v2.1.0 → v2.2.1
- Bump ic-cdk 0.16 → 0.20, candid 0.10.10 → 0.10
- Add Makefile with 4 tests
- Delete dfx.json, BUILD.md
- Bump both container images to icp-dev-env 0.3.2

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ll for raw_rand

ic_cdk::api::management_canister was removed in ic-cdk 0.17+.
Use ic_cdk::call(Principal::management_canister(), "raw_rand", ()) instead.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ic_cdk::management_canister was removed — the canonical approach is the
dedicated ic-cdk-management-canister = "0.1.1" crate.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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