Commit 3b714f7
authored
Rename Motoko entry points app.mo -> main.mo (#1471)
Aligns the entry-point filename with icp new (icp-cli-templates), mops,
the Motoko skill, and Caffeine, which all use lowercase main.mo for the
composition root (the analog of Rust's lib.rs). PascalCase remains for
exported module files (Types.mo, Counter.mo).
- git mv 35 <role>/app.mo -> <role>/main.mo across the Motoko examples
(backend/, plus caller/callee, publisher/subscriber for multi-canister).
- Update mops.toml [canisters.*] main = paths and their comments.
- Update all doc/code references: AGENTS.md (structure, mops snippet,
naming rule), example READMEs (hello_world, icrc2-swap, llm_chatbot,
parallel_calls, pub-sub, threshold-ecdsa, threshold-schnorr,
unity_ii_deeplink), and an icrc.did comment.
Verified: mops check passes for hello_world and the multi-canister
parallel_calls / pub-sub (both --actor-env-alias). who_am_i already used
main.mo. Closes #1463.1 parent 89ca0c3 commit 3b714f7
78 files changed
Lines changed: 53 additions & 53 deletions
File tree
- motoko
- backend_only
- backend
- basic_bitcoin
- backend
- canister_factory
- backend
- canister_logs
- backend
- cert-var
- backend
- composite_query
- backend
- daily_planner
- backend
- evm_block_explorer
- backend
- filevault
- backend
- flying_ninja
- backend
- hello_cycles
- backend
- hello_world
- backend
- ic-pos
- backend
- icp_transfer
- backend
- icrc2-swap
- backend
- candid
- llm_chatbot
- backend
- low_wasm_memory
- backend
- parallel_calls
- callee
- caller
- pub-sub
- publisher
- subscriber
- query_stats
- backend
- random_maze
- backend
- send_http_get
- backend
- send_http_post
- backend
- superheroes
- backend
- threshold-ecdsa
- backend
- threshold-schnorr
- backend
- vetkeys
- basic_bls_signing
- backend
- basic_ibe
- backend
- basic_vetkd
- backend
- encrypted_notes_app_vetkd
- backend
- password_manager_with_metadata
- backend
- password_manager
- backend
- native-apps/unity_ii_deeplink
- backend
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
File renamed without changes.
0 commit comments