You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`--candid <file>` (optional) specifies a Candid file containing the canister's expected interface. If omitted, the Candid interface is assumed to be embedded in the WASM file.
100
-
-`--hidden <file>` (optional) specifies a file listing endpoints that are intentionally exported by the canister but not present in the Candid interface. Each endpoint should be on a separate line, using one of the following formats:
101
-
-`canister_update:<endpoint name>`
102
-
-`canister_query:<endpoint name>`
103
-
-`canister_composite_query:<endpoint name>`
104
-
-`<endpoint name>`
105
-
106
-
**Example `hidden.txt`:**
107
-
```text
108
-
canister_update:__motoko_async_helper
109
-
canister_query:__get_candid_interface_tmp_hack
110
-
canister_query:__motoko_stable_var_info
111
-
canister_global_timer
112
-
canister_init
113
-
canister_post_upgrade
114
-
canister_pre_upgrade
115
-
```
100
+
-`--hidden <file>` (optional) specifies a file that lists endpoints which are intentionally exported by the canister but not included in the Candid interface. Each line describes a single endpoint using one of the following formats:
101
+
-`canister_update:<endpoint name>`
102
+
-`canister_query:<endpoint name>`
103
+
-`canister_composite_query:<endpoint name>`
104
+
-`<endpoint name>`
105
+
106
+
Lines beginning with `#` are treated as comments and ignored.
107
+
108
+
To include special characters (for example `#` or newlines), the entire line may be wrapped in double quotes (`"`).
109
+
When quoted this way, the line is parsed using standard JSON string syntax (see [RFC 8259 section 7](https://www.rfc-editor.org/rfc/rfc8259#section-7)).
110
+
111
+
**Example `hidden.txt`:**
112
+
```text
113
+
# A canister update endpoint named `__motoko_async_helper`
114
+
canister_update:__motoko_async_helper
115
+
116
+
# Canister query endpoints named `__get_candid_interface_tmp_hack` and `__motoko_stable_var_info`
117
+
canister_query:__get_candid_interface_tmp_hack
118
+
canister_query:__motoko_stable_var_info
119
+
120
+
# Other canister endpoints: a timer, init method, etc.
0 commit comments