Skip to content

feat: migrate @dfinity/* to @icp-sdk/core and icp-cli (#378)#381

Merged
andreacerulli merged 3 commits intomainfrom
fix/merge-icp-sdk-migration
Apr 22, 2026
Merged

feat: migrate @dfinity/* to @icp-sdk/core and icp-cli (#378)#381
andreacerulli merged 3 commits intomainfrom
fix/merge-icp-sdk-migration

Conversation

@andreacerulli
Copy link
Copy Markdown
Contributor

Migrate the frontend library and backend infrastructure from deprecated @dfinity/* packages and dfx to @icp-sdk/core and icp-cli.

Frontend library (frontend/ic_vetkeys):

  • Replace @dfinity/{agent,principal,candid,identity} with @icp-sdk/core
  • Regenerate declarations with @icp-sdk/bindgen@0.3.0
  • Replace createActor wrappers with direct Actor.createActor calls
  • Update test host ports and add canister ID null guards
  • Reformat tsconfig, vite.config, eslint config

Backend infrastructure:

  • Replace dfx.json with icp.yaml for all backend canisters
  • Update Makefiles for icp-cli compatible builds
  • Update test key from dfx_test_key to test_key_1
  • Update CI workflows for icp-cli

CI:

  • Update frontend.yml and backend-motoko.yml for icp-cli
  • Update provision scripts
  • Add .icp to .gitignore

andreacerulli and others added 3 commits April 22, 2026 09:52
Migrate the frontend library and backend infrastructure from deprecated
@dfinity/* packages and dfx to @icp-sdk/core and icp-cli.

Frontend library (frontend/ic_vetkeys):
- Replace @dfinity/{agent,principal,candid,identity} with @icp-sdk/core
- Regenerate declarations with @icp-sdk/bindgen@0.3.0
- Replace createActor wrappers with direct Actor.createActor calls
- Update test host ports and add canister ID null guards
- Reformat tsconfig, vite.config, eslint config

Backend infrastructure:
- Replace dfx.json with icp.yaml for all backend canisters
- Update Makefiles for icp-cli compatible builds
- Update test key from dfx_test_key to test_key_1
- Update CI workflows for icp-cli

CI:
- Update frontend.yml and backend-motoko.yml for icp-cli
- Update provision scripts
- Add .icp to .gitignore
@andreacerulli andreacerulli marked this pull request as ready for review April 22, 2026 08:23
@andreacerulli andreacerulli requested a review from a team as a code owner April 22, 2026 08:23
Copy link
Copy Markdown
Member

@marc0olo marc0olo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM from my side. I compared this against my earlier PR #365 (which I had fully tested locally), and the changes to all overlapping files are identical except for two intentional differences:

  • .github/workflows/backend-motoko.yml: #381 adds a setup-node@v4 step for both Linux and Darwin jobs, which #365 was missing — this is a good addition.
  • .gitignore: #365 also added frontend/ic_vetkeys/.test*.env, but that entry turns out to be unnecessary (no such files are generated), so omitting it here is fine.

Approving. ✅

@andreacerulli andreacerulli merged commit 0e1ac83 into main Apr 22, 2026
16 checks passed
@andreacerulli andreacerulli deleted the fix/merge-icp-sdk-migration branch April 22, 2026 15:36
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.

3 participants