Skip to content

feat: add icp-cli support to rust/evm_block_explorer#1310

Open
marc0olo wants to merge 1 commit intomasterfrom
marc0olo/icp-cli-evm-block-explorer
Open

feat: add icp-cli support to rust/evm_block_explorer#1310
marc0olo wants to merge 1 commit intomasterfrom
marc0olo/icp-cli-evm-block-explorer

Conversation

@marc0olo
Copy link
Member

Summary

  • Add icp.yaml with backend, frontend asset canister, and pre-built evm_rpc canister
  • Migrate frontend from @dfinity/* to @icp-sdk/core + @icp-sdk/bindgen (vite plugin for TypeScript bindings)
  • Add actor.js with cookie-based canister env detection (dual icp-cli/dfx support)
  • Rewrite vite.config.js with icpBindgen plugin and dual dev server auto-detection
  • Resolve evm_rpc canister ID dynamically via PUBLIC_CANISTER_ID:evm_rpc env var (using ic0 crate for the system API), falling back to the hardcoded mainnet ID from evm-rpc-canister-types
  • Bump dependencies: candid 0.10.23, evm-rpc-canister-types 5.0.1, ic-cdk 0.17.2, add ic0 1.0.1
  • Commit backend/backend.did for bindgen and add .gitignore for generated files
  • Update README.md and BUILD.md with icp-cli instructions

Note: The Motoko evm_block_explorer is not included — it uses named canister imports (canister:evm_rpc, ic:aaaaa-aa) which are not yet supported by icp-cli.

- Add icp.yaml with backend, frontend, and pre-built evm_rpc canister
- Migrate frontend from @dfinity/* to @icp-sdk/core + @icp-sdk/bindgen
- Add actor.js with cookie-based canister env detection
- Rewrite vite.config.js with bindgen plugin and dual dev server (icp-cli/dfx)
- Resolve evm_rpc canister ID dynamically via PUBLIC_CANISTER_ID:evm_rpc env var
  with fallback to hardcoded mainnet ID (using ic0 crate for env var API)
- Bump dependencies: candid 0.10.23, evm-rpc-canister-types 5.0.1, ic-cdk 0.17.2
- Commit backend.did for bindgen and add .gitignore for generated files
- Update README.md and BUILD.md with icp-cli instructions
@marc0olo marc0olo requested a review from a team as a code owner February 27, 2026 16:08
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