chore: migrate motoko/cert-var to icp-cli#1380
Draft
marc0olo wants to merge 1 commit into
Draft
Conversation
Replace dfx.json with icp.yaml, migrate src/cert_var/main.mo to backend/app.mo, update mops.toml to moc 1.9.0 + core 2.5.0 with --default-persistent-actors, add Makefile with test targets for all public functions (set, get, inc), add CI workflow cert-var.yml using icp-dev-env-motoko:0.3.2, update README to icp-cli deploy instructions, and remove the old webpack/assets frontend (backend-only example). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
dfx.jsonwithicp.yaml(backend-only,@dfinity/motoko@v5.0.0recipe)src/cert_var/main.mo→backend/app.mo; rename actor toCertVarmops.tomlto moc 1.9.0, core 2.5.0, add--default-persistent-actorsand[canisters.backend]sectionMakefilewithtesttarget covering all three public functions:set,get,inc.github/workflows/cert-var.yml(Motoko only — Rust not yet migrated) usingicp-dev-env-motoko:0.3.2README.mdwith icp-cli deploy instructions and canonical structuremo:core/CertifiedData)dfx.json,package.json,package-lock.json,webpack.config.js,src/tree (declarations, assets, frontend HTML/JS)Test plan
mops checkpasses with no warnings onbackend/app.mocert-var.ymltriggers on PR and all steps passmake testpasses:set(42)→get()returns 42 →inc()returns 43 →get()returns 43🤖 Generated with Claude Code